Deep Model based Classifier Working on Time- Series Data to Provide Effective Weather Prediction

DOI : 10.17577/IJERTV11IS070055

Download Full-Text PDF Cite this Publication

Text Only Version

Deep Model based Classifier Working on Time- Series Data to Provide Effective Weather Prediction

1Vasavi Ravuri and 2Dr. S. Vasundra

1 Research scholar at Department of CSE, JNTUA College of Engineering, Ananthapuramu, Andhra Pradesh, India- 515002

2Professor, Department Of CSE JNTUA College of Engineering, Ananthapuramu, 515002

Abstract: Weather forecasting is the scientific procedure of determining state of ambiance concerning time frames with the locations. This paper devises a novel Vasun feedback artificial tree Algorithm based Deep Long Short Term Memory (VFATA-based DeepLSTM) classifier with time-series data. VFATA is the combination of the Magnetic Optimization Algorithm (MOA) with that of Feedback Artificial Tree (FAT) algorithm for weather forecasting [16]. Here, the feature selection is processed by using Moth Flame Optimization based Bat (MFO-Bat) [11]. Then, based on the clustered result, the forecasting process is accomplished using a Deep LSTM classifier. Finally, the Taylor series model is employed to generate the final forecasted result.

Keywords: Weather forecasting, time-series data examination, Deep Long Short Term Memory (Deep LSTM), Numerical Weather Prediction (NWP), Magnetic Optimization Algorithm (MOA).


    Weather forecasting is the scientific procedure of forecasting the condition of the atmosphere concerning the location and unique time frames. It predicts weather conditions, like wind, pressure, temperature, and precipitation [2]. Weather prediction can also be useful in agriculture, such as planning farm operations and storage and transportation of food grains.

    • This research is modeled on designing a mechanism for weather forecasting by VFATA based Deep LSTM with spark architecture.

    • Proposed VFATA-based Deep LSTM: An optimal and robust weather prediction model is developed to forecast the weather with time-series data using a VFATAbased Deep LSTM framework. Accordingly, VFATA trains the deep LSTM strategy [16].

    • Proposed FATA: The proposed MFTA combines the Magnetic Optimization Algorithm (MOA) with that of Feedback Artificial Tree (FAT) algorithm. Thus, it obtains the benefit of both the algorithms.

    The paper is organized as follows: Section 2 describes different weather forecasting methods, section 3 elaborates the proposed method, and section 4 explains results and the discussions. The conclusion is explained in section 5.


    Hewage and Hewage, 2020 developed a lightweight data based weather forecasting approach by integrating temporal convolutional network (TCN) and LSTM [1]. Sønderby and Jahangir, 2020 introduced a neural network strategy for the weather forecasting. The system fails to consider deep learning strategy to enhance accuracy of the system.


    Developed a deep learning classifier to perform weather forecasting with time-series data. The spark architecture is designed with the master and slave nodes to achieve weather forecasting [12]. In a master node, the input data is collected and transferred to the slave node to perform feature extraction and selection [4].

    Figure 1. Process of VFATA

    1. Attaining of input weather data

      Time-series is the stretch of value on the same scale indexed by the time that naturally occurs in different areas [9]. Let us specify dataset as D with n count of time-series data is shown as,

      D T1,T2 ,T3 ,…,Ti ,…,Tn ; 1 i n


      Here, D implies dataset,

      Ti shows

      i th time-series data, and n specifies total count of data with the size ofM N ,


    2. Feature extraction for every time-series samples

      Feature extraction is used to provide a more manageable and representative subset of input time-series information [6]. However, input time-series information is passed to the feature extraction phase.

      Simple Moving Average (SMA): It is the common average of previous m data points in the time-series data (Hansun, 2013) [7].

      Here, each point of time-series data is weighted equally, so no weighting factor is fed to data points.

      X X … X

      f t t 1 t m1

      1 m



      Xt denotes data points at time t , m specifies the number of data points, and

      f1 denotes SMA.

    3. Weather forecasting using Deep LSTM network

      Deep LSTM [15] is used to perform weather forecasting by considering the clustering result .Accordingly, operation of the input gate is expressed as,

      IPm .b

      • s b

      • K


        Z r 1 Zs ig

        Where, IPm denotes input gate at a time r , specifies sigmoidal activation function, and Kig denotes bias to input gate [14]. However, internal state z is the node with the self-loop recurrent edge of linear activation function and unit weight that is given as,

        z IPmZr zr 1



        z r denotes internal state, and zr 1 specifies internal state at the time r 1. Forget gate FR is utilized to reinitiating

        internal state of the memory cell and is given as,

        FR .b

        • s b

        • K


      r FR

      r 1

      FRs fg

      Where, FR denotes the forget state at time r , specifies point wise the linear operator,

      bFR denotes weight matrix among

      forget gate and the input layer, bFSssignifies the weight matrix among forget gate and the hidden state, and for the forget gate.

      K fg denotes the bias

      Output gate Sp is expressed as,

      Sp .b s

      b K


      S p1 Ss og

      where, bS denotes weight matrix among output gate as well as input layers, bSs denotes weighing matrix, and Kog specifies bias .

      3.4 Process of feeding Deep LSTM using VFATA

      The training activity of deep learning classifier is performed by the proposed VFATA, which is derived by the integration of MOA [13] and FAT [10], respectively. MOA is the collection of magnetic particles and search agents, whose masses and magnetic fields are proportional to the fitness values. However, the intensity of forces is proportional to distance and the magnetic fields of search agents [14]. MOA is inspired by the theory of magnetic field and is used to solve the problems in search space.


    This section details the results and discussion of proposed VFATA-based Deep LSTM with respect to the performance measures.

      1. Experimental setup

        The implementation is carried out in the PYTHON using stat world dataset. This dataset contains five types of temperatures, namely planet, states, countries continents, and cities temperature. The temperature of Andhra Pradesh is selected for the implementation process. Moreover, the temperature of country named India and the continent named Asia is selected for the experimentation purpose. The temperature of state, countries and continents are collected from the month of February to December.

      2. Performance Metrics

    The performance of developed method is analyzed by considering the methods, such as Silhouette coefficient and Dunns Index. Silhouette coefficient: The Silhouette Coefficient for a set of samples is given as the mean of the Silhouette Coefficient for each sample. The score is higher when clusters are dense and well separated.

    Dunns Index: Dunns Index is equal to the minimum inter-cluster distance divided by he maximum cluster size.


An efficient weather forecasting method is developed using proposed VFATA-based Deep LSTM classifier. The proposed VFATA is developed by the integration of MOA and FAT algorithm, respectively. The proposed methodology include different phases, namely feature extraction, feature selection, time-series clustering, and weather forecasting. The master node gathers the input weather data and gives it to the slave node. In slave node the process of feature extraction and feature selection is performed.


[1] Zahra Karevan, Johan A.K. and Suykens, Transductive LSTM for time-series prediction: An application to weather forecasting, Neural Networks, vol.125, pp.1-9, 2020.

[2] Pradeep Hewage, Marcello Trovati, Ella Pereira, and Ardhendu Behera, Deep learning-based effective fine-grained weather forecasting model, Pattern Analysis and Applications, pp.1-24, 2020.

[3] Bin Wang, Jie Lu, Zheng Yan, Huaishao Luo, Tianrui Li, Yu Zheng, and Guangquan Zhang, , Deep uncertainty quantification: A machine learning approach for weather forecasting, In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pp. 2087-2095, July 2019.

[4] Siamak Mehrkanoon, S., Deep shared representation learning for weather elements forecasting, Knowledge-Based Systems, vol.179, pp.120-128, 2019.

[5] Isabelle Roesch and Tobias Gunther, Visualization of neural network predictions for weather forecasting, In Computer Graphics Forum, vol. 38, no.

1, pp. 209-220, February 2019.

[6] Zhoobin Rahimi, Helmi Zulhaidi Mohd Shafri, and Masayu Norman, A GNSS-based weather forecasting approach using Nonlinear Auto Regressive Approach with Exogenous Input (NARX), Journal of Atmospheric and Solar-Terrestrial Physics, vol.178, pp.74-84, 2018.

[7] Pradeep Hewage, Ardhendu Behera, Marcello Trovati, Ella Pereira, Morteza Ghahremani, , and Francesco Palmieri, Temporal convolutional neural (TCN) network for an effective weather forecasting using time-series data from the local weather station, Soft Computing, pp.1-30, 2020.

[8] Casper Kaae Sønderby, Lasse Espeholt, Jonathan Heek, Mostafa Dehghani, Avital Oliver, Tim Salimans, Shreya Agrawal, Jason Hickey, and Nal Kalchbrenner, MetNet: A Neural Weather Model for Precipitation Forecasting, arXiv preprint arXiv:2003.12140, 2020.

[9] Stephan Rasp, Peter D. Dueben, Sebastian Scher, Jonathan A. Weyn, Soukayna Mouatadid, and Nils Thuerey, WeatherBench: A benchmark dataset for data-driven weather forecasting, arXiv preprint arXiv:2002.00469, 2020.

[10] G.Vamsi Krishna, An integrated approach for weather forecasting based on data mining and forecasting analysis, International Journal of Computer Applications, vol.120, no.11, 2015.

[11] Vasavi Ravuri , Dr. S. Vasundra, CSE, JNTUACEA, Published a paper Moth-Flame Optimization-Bat Optimization: Map-Reduce Framework for Big Data Clustering Using the Moth-Flame Bat Optimization and Sparse Fuzzy C-Means in Big Data (SCIE INDEXED) Volume 8, Number 3, 2020, a Mary Ann Liebert, Inc. DOI: 10.1089/big.2019.0125.

[12] Dr. S. Vasundra, CSE, JNTUACEA, Published a paper Vector-Based Classification Prediction to Geographical Location in International Journal of Future Generation Communication and Networking (WEB OF SCIENCE) Scopus Volume 13, Number 4, 2020, pp, 4174-4179.

[13] Dr. S. Vasundra, CSE, JNTUACEA, Published a paper A Unified And Innovative Route Prediction Using Big data Trajectory Clustering in International Journal of Future Generation Communication and Networking (WEB OF SCIENCE) Scopus Volume 13, Number 4,2020,pp,4210- 4215.

[14] R. Rajeswari, G. Neelima, Balajee Maram, Anupama Angadi. "MVPO Predictor: Deep Learning-Based Tumor Classification and Survival Prediction of Brain Tumor Patients with MRI Using Multi-Verse Political Optimizer, International Journal of Pattern Recognition and Artificial Intelligence, 2022

[15] Majhi, B., Naidu, D. Mishra, A.P and Satapathy, S.C. 2020. "Improved prediction of Daily pan evaporation using Deep-LSTM model". Neural Computing and Applications 32(12) :7823-7838.

[16] Vasavi Ravuri, S.Vasundra, Development of Polback-based ensemble classifier based on Heterogeneous clustering published in webology, ISSN: 1735-188X, Volume 18, No. 4, 2021.