Professional Documents
Culture Documents
Temperature Forecasting For Dar Es Salaam City Using Artificial Neural Network PDF
Temperature Forecasting For Dar Es Salaam City Using Artificial Neural Network PDF
ISSN No:-2456-2165
Abstract:- Knowing about future climate and weather is In recent years most of the meteorological stations in
important for planning and decision making. Thus the world have adopted the use of Numerical Weather
temperature forecasting is vital since it helps to Prediction (NWP) and statistical methods, with the
determine future weather and consequently climate. combination of image data collected by weather satellites to
The main focus of this paper was to develop a model predict the future trend of temperature. In view of standards
capable to forecast the seven-days-ahead temperature of that have to be considered when selecting a prediction
Dar es Salaam city in Tanzania by using Artificial method; nature of the time series to be predicted, cost and
Neural Network. In this study, a temperature prediction accuracy, it is noted that satellite-based system is
model with multilayer feedforward neural network expensive, require complete support system and uses
architecture was developed and applied to predict the generalized information from a wide range of geographical
temperature. Three combinations of daily data of area which does not give accurate results for predicting the
maximum and minimum temperature, sunshine hours, temperature of a specific location. This has led to the
air pressure, relative humidity and wind speed for the temperature results communicated to the public to have
year 2007 – 2015 were used as training data set and the limited information about the uncertainty (Darj et al., 2015;
same data for the year 20016 – 2017 was used as testing Tolstykh & Frolov, 2015).
data set for the model. Levenberg Marquardt learning
algorithm was used to train the model. The Though NWP has been extensively used in
performance of the model was measured by using root temperature prediction, it is still limited by the availability
mean square error (RMSE), mean bias error (MBE) of numerical weather prediction products (Paras, 2007).
and coefficient of determination (R2). The results Again, the use of the NWP method in the prediction of
revealed that the model with input data of relative temperature is restricted by the random nature of the
humidity, minimum and maximum temperature, wind atmospheric physical variable (Chang et al., 2010). The
speed, air pressure, and sunshine hour, and 5 hidden random nature of the atmosphere poses a difficult situation
neurons performed well with MBE=0.429 ℃ , in establishing the initial conditions of the atmosphere
RMSE=0.569℃ and R2=0.967. The model managed to which are essentially needed in temperature prediction. On
forecast the seven-days-ahead temperature with the other hand, the uses of statistical methods to predict
minimum prediction error in the range of 0.04 - 1.03 ℃. temperature do not give accurate result since they are
Thus the model developed by using Artificial Neural centered on the assumption of linear time series; thus
Network can be considered as an appropriate tool for cannot identify the non-linear pattern of atmospheric
predicting the temperature of Dar es Salaam city. temperature time series.
y y
i
* 2
m
The results of this study are presented in the form of
graphs of accurate weather forecasting. Figure 2 shows the
……………………………………………………………… performance of the model with the variation of the number
……….(2.6) of neurons in the hidden layer by using input data of year,
month, day, wind speed, minimum and maximum
Where 𝑦𝑖 is actual temperature value, 𝑦𝑖∗ is predicted temperature, relative humidity, and air pressure. It can be
∗ noted from the figure that the performance of this model in
temperature value, 𝑦𝑚 represent the average temperature of
the data set and 𝑛 represent a number of samples. terms of MBE, RMSE, and R2 is varying randomly with the
number of neurons in the hidden layer. The model
portrayed the minimum prediction error at 3 neurons with
MBE=0.444 ℃ and RMSE=0.609 ℃ . The maximum
prediction error is noted at 11 neurons with MBE=0.626℃,
MBE=0.865℃, and R2=0.899.
Figure 3 shows the performance of the model using input data of year, month, day, relative humidity, minimum and
maximum temperature, wind speed, air pressure, and sunshine hour. The figure demonstrates that MBE, RMSE, and R2 vary
randomly continually with the number of neurons in the hidden layer. The minimum prediction error of the model occurred at 5
neurons with MBE=0.388℃, RMSE=0.536℃ and R2 =0.967. The maximum prediction error was observed at 12 neurons with
RMSE=0.816℃
Figure 4 shows the performance of the model by using input data of year, month, day, relative humidity, minimum and
maximum temperature, wind speed, air pressure, and rainfall. The figure outlines that MBE, RMSE, and R2 vary randomly with
the number of neurons in the hidden layer. The minimum prediction error of the model is observed at 4 neurons with
MBE=0.429℃ , RMSE=0.569 ℃ , R2=0.962 and the maximum prediction error occur at 10 neurons with MBE =0.586 ℃ ,
RMSE=0.808℃ and R2=0,897.
Figure 5 shows the performance comparisons of the model against the inputs. It is observed from the figure that the model
with input 2 portrays minimum MBE and RMSE compared to other inputs. Therefore, the model with input data of year, month,
day, relative humidity, minimum and maximum temperature, wind speed, air pressure, and sunshine hour, 5 hidden neurons is
considered as the best model for temperature forecasting of Dar es Salaam city.
MBE RMSE
0.7
0.6
Performance of model
0.5
0.4
0.3
0.2
0.1
0
1 2 3
Input
According to Saba, et al (2017) the best model for However, the performance of the model can be improved
weather forecasting is one that has minimum prediction by increasing the training set, higher-order neural network
error. Furthermore, the higher value of R2 indicated by this and hybrid neural network (Ghazali, Ismail, Husaini, &
model shows good agreement between predicted and actual Samsuddin, 2012; Saba et al., 2017).
temperature. This result agrees with the study by Singh and
Tiwari (2017) and also a study by Doreswamy and Vastrad Figures 6-9 show the comparison of the predicted and
(2013). their corresponding actual temperatures by the model. The
figures demonstrate that in both four months, the model
The model managed to predict the daily temperature managed to predict the temperature with minimum
with minimum MBE and RMSE since it was supplied with prediction error. The prediction errors depicted by the
a suitable training set, an appropriate number of hidden model in predicting the seven-days-ahead temperature in
neurons, suitable training algorithms and significant input the four months are shown in table 2.
parameters (Abhishek et al., 2012; S.R Devi et al., 2016).
The prediction error in the four months lies in the [5]. Doreswam, & Vastrad, C. (2013). Performance
range of 0.04-1.03 ℃. These lower prediction errors Analysis of Neural Network Models for Oxazolines
indicate that there is a small difference between the and Oxazoles derivatives Descriptor Dataset.
predicted and actual temperature, thus the model managed International Journal of Information Sciences and
to predict the seven-days-ahead temperature of Dar es Techniques, 3(6), 1–15.
Salaam city. [6]. Ghazali, R., Ismail, L. H., Husaini, N. A., &
Samsuddin, N. A. (2012). An Application of Jordan
IV. CONCLUSIONS Pi-Sigma Neural Network for the Prediction of
Temperature Time Series Signal. INTECH Open
The results of this study revealed that the developed Access Publisher, 275–290.
temperature forecasting model can generate a forecasting of [7]. Kişia, Ö., & Uncuoğlu, E. (2005). Comparison of
temperature with minimum errors and the best forecast three Back-propagation Training Algorithms for two
result is obtained by using a model with inputs of year, case Studies. Indian Journal of Engineering &
month, day, relative humidity, minimum and maximum Materials Sciences, 12, 434–442.
temperature, wind speed, air pressure, and sunshine and 5 [8]. Mohita, A. S. (2012). Comparative Study of
hidden neurons. The developed model has reasonable Forecasting Models Based on Weather Parameters.
prediction accuracy and good performance. For this reason, Shobhit university 17-20.
the developed model by using ANN is considered as an [9]. Nagendra, S. M. S. K. (2006). Artificial Neural
appropriate tool for forecasting the temperature of Dar es Network Approach for Modeling nitrogen dioxide
Salaam city. dispersion from Vehicular exhaust emissions.
Ecological Model, vol 190, 99–115.
ACKNOWLEDGMENT [10]. Panchal, F. S., & Panchal, M. (2014). Review on
Methods of Selecting Number of Hidden Nodes in
The authors are thankful to the Tanzania Artificial Neural Network. International Journal of
Meteorological Agency for access to the data used in this Computer Science and Mobile Computing, 3(11),
study. 455–464.
[11]. Paras, M. et al. (2007). A Feature-Based Neural
REFERENCES Network Model for Weather Forecasting. Proceedings
of World Academy of Science, Engineering and
[1]. Abhishek, K., Singh, M. P., Ghosh, S., & Anand, A. Technology, 34, 66–74.
(2012). Weather Forecasting Model using Artificial [12]. Saba, T., Rehman, A., & AlGhamdi, J. S. (2017).
Neural Network. Procedia Technology, 4, 311–318. Weather Forecasting Based on Hybrid Neural Model.
[2]. Chang, F.-J., Chang, L.-C., Kao, H.-S., & Wu, G.-R. Applied Water Science, 7(7), 3869–3874.
(2010). Assessing the Effort of Meteorological [13]. Singh, V. K., & Tiwari, K. N. (2017). Prediction of
Variables for Evaporation Estimation by Self- greenhouse micro-climate using Artificial Neural
organizing map Neural Network. Journal of Network. Applied Ecology and Environmental
Hydrology, 384 (1-2), 118–129. Research, 15(1), 767–778.
[3]. Darj, M., Dabh, V., & Prajapati, H. (2015). Rainfall [14]. Tolstykh, M., & Frolov, A. (2015). Some Current
Forecasting Using Neural Network : A Survey. In Problems in Numerical Weather Prediction 1.
International Conference on Advances in Computer Izvestiya, Atmospheric and Oceanic Physics, 41, 285–
Engineering and Applications (ICACEA), 706–713. 295.
[4]. Devi, S. R., Arulmozhivarman, P., Venkatesh, C., &
Agarwal, P. (2016). Performance Comparison of
Artificial Neural Network Models for Daily Rainfall
Prediction. International Journal of Automation and
Computing, 1–12.