Journal of Intelligent Systems and Internet of Things

An effective Web System for Weather monitoring using Artificial Neural Network Based on Internet of Things and Cloud Computing

Ebtehal Akeel Hamed, Nahla Ibraheem Jabbar, Zaid Th Hassan, Refed Adnan Jaleel
Volume 13, Issue 2, pp. 141-149 (2024)
DOI: https://doi.org/10.54216/JISIoT.130211
Online: https://www.americaspg.com/journal/18/article/2998

Abstract

This research presents an effective web system for weather monitoring based on the Internet of Things (IoT) and cloud computing. The three primary parts of the system are an online application, a cloud platform, and Internet of Things-based weather stations. Periodically, IoT-based weather stations gather meteorological data and send it to a cloud platform. The ANN model can access the meteorological data that is stored in a database by the cloud platform. ANN model utilizes the meteorological data to produce predictions for several weather factors. The web application gives users access to real-time weather data and forecasts.

Keywords: Weather monitoring; IoT; Cloud computing; Artificial neural network; Web application

For many uses, including disaster relief, aviation, and agriculture, weather monitoring is essential [1] [2]. Conventional weather surveillance systems are built upon a network of weather stations that are situated on Earth. However, the installation and maintenance of these systems can be costly [3]. IoTs have become a new paradigm for weather monitoring in recent years. The compact, low-cost, and easy-to-deploy nature of IoT-based weather stations renders them suitable for use in a diverse range of environments. ANNs are a type of machine learning system that can be applied to the prediction of weather forecasts. DNNs are trained on past weather data and recognize the relationship between patterns and future weather condition so well that they can tell if rain is headed our way. A cloud-based scalable and stable framework for running, maintaining and administering weather monitoring systems that would be out-of-the-box IoT ready. On the contrary, cloud-based solutions are not only capable of managing the processing and storage of meteorological data, but also provide users with direct access to live weather updates. The design of this system was explored in Kavitha and Kumar (2020) research on IoT technology-based smart irrigation systems [5]. This technology used soil moisture sensors to log soil moisture measurements to a cloud-based server. The system then provided users with context-aware recommendations regarding when, how much, and how long to water. A preliminary assessment showed the system could save as much as 40% water while still achieving similar levels of crop productivity.

Li et al. Other times Machine learning algorithm is used for predicting the soil water content in advance and anaular based irrigation scheduling generally can be achieved with the help of IoT. K. Rahuman and S.Prabhu, propose a system that automates agriculture irrigation easily by providing real-time soil moisture level predictions to irrigation controllers for proper channelization of water flow when needed (Rahuman & Prabhu, 2021). The new book draws upon meteorological models, ground monitors and satellite imagery to better predict what weather is coming. The method could cut water use by 50% and crop output can be increased up to about 30%, research suggest [6]. Zaman et al. study-review the most notorious smart irrigation system can be called as described by Djudjue et al. Soil Moisture Sensors and Weather Sensors explained in this article. Some additional information can also we found in ref [7]. We also talk about irrigation automation controllers: micro-controllers vs programmable logic controllers (PLCs). According to the findings of this paper, replacing traditional water-use practices in agriculture with smart irrigation systems would be far more efficient [8].It has been demonstrated that intelligent irrigation systems can reduce water consumption by a large amount without compromising crop productivity. These systems have the ability to modify their water use according on the moisture level of the soil, the weather forecast, and the rate of plant growth in order to achieve optimal outcomes. More research is needed to develop these technologies before they are widely used in agriculture.

2. System architecture

The following components comprise the proposed web system for weather monitoring: Weather stations that utilise the IoT technology: These stations have sensors to measure many meteorological parameters, including temperature, precipitation, and wind speed, and humidity. Wi-Fi, ZigBee, and LoRaWAN are just a few of the wireless communication technologies that the weather stations use to communicate to the internet [9] [10] [11]. Cloud platform: The cloud platform is utilised to process and store meteorological data collected from weather stations that are based on the IoT technology. The ANN model for weather forecasting is likewise hosted on the cloud platform. App for the web: Users of the web application can obtain weather data and forecasts through an intuitive user interface.

3. Working principle

Periodically, IoT-based weather stations gather meteorological data and send it to a cloud platform. The weather data is stored in a database on the cloud platform and is accessible to the ANN model. The weather data is used by the ANN model to produce forecasts for several weather parameters [8]. The web application provides users with access to real-time weather data and forecasts. Users can view the current weather conditions at any location in the world, and they can also view forecasts for the next few days [12] [13] [14].

Figure 1. Structure of ANN
Figure 1. Structure of ANN

4. Platform for the IoT

IoTs is a modern technology that aims to create a worldwide web of tools that are all linked together as devices, people, objects and even mutually beneficial interactions between animals and data transfer and sharing via the network. Lots of different businesses are interested in IoT technology because it will be one of the most important in the future. Figure 3 presents a flowchart that illustrates the sequential steps involved in the platform of IoT process within the suggested IMS. The microcontroller loads the IoT file as the initial step. The file of IoT contains directives that the microcontroller and cloud send and receive for data transfer. The system then establishes a connection to the server and runs the script (.js file) on the server after uploading it to the microcontroller over an Internet connection. The platform begins sending data from the microcontroller to the server for processing and recording anew in the event that the connection is broken. A URL error will be shown to the user if the info doesn't work.

Figure 2. The IoT's data transport flowchart.
Figure 2. The IoT's data transport flowchart.

5. Cloud Server

Cloud servers offer powerful cloud tools like cybersecurity, code packages, an admin page, units of process, and more. This paper is all about these tools. A cloud server's services are depicted in Figure 4. There are 3 various types of service models. SaaS, IaaS, and PaaS. The cloud computation unit in this study is based on the SaaS paradigm (Google Cloud). The user can manage the installation of final apps. On the other hand, the user cannot take command of the operating systems. A technology known as cloud computing enables users to access a shared pool of reconfigurable computer resources whenever they need them, from anywhere in the world (e.g., networks, storage, servers, services, and applications). They require little administration work or communication with service providers and can be quickly released.

Figure 3. An overview of the cloud service
Figure 3. An overview of the cloud service

6. Benefits of the proposed system

The proposed web system for weather monitoring offers a number of benefits over traditional weather monitoring systems:

1) Cost-effective: The system is relatively inexpensive to deploy and maintain, as it relies on low-cost IoT-based weather stations [15]. 2) Scalable: Numerous IoT-based weather stations can be accommodated by the system due to its scalability [16]. 3) Reliable: The cloud platform offers a dependable infrastructure for storing and analysing meteorological data [17]. 4) Accurate: By learning from past weather data, the ANN model can produce precise weather forecasts [18]. 5) User-friendly: A simple interface makes the web app easy for anyone to use to get weather info and predictions [19].

Figure 4. Steps for ANN identification
Figure 4. Steps for ANN identification

7. Applications

The proposed web system for monitoring of weather can be applied in a different of applications, like as:

1. 1. Agriculture: Farmers can utilize system to check weather conditions and perform planning for whether irrigation, planting and harvesting [20]. 2. Aviation: Pilots can use the system to get real-time weather updates and avoid dangerous weather conditions [21]. 3. Disaster management: Government agencies can use the system to observe the weather and predict potential disasters, such as floods and hurricanes [22]. 4. Smart homes and cities: The system can be integrated with smart homes and cities to provide residents with real-time weather information and to automate tasks such as irrigation and heating.

8. Error Qualifier of the Suggested ANNs

The assessment of the suggested different ANNs like as improved back propagation neural network, multilayer perceptron neural network, and Elman neural network is recognized by the evaluated error qualifiers, namely, MAPE, R, MAE, MSE, RMSE, MRE, and Time in Minutes. The suggested ANNs effectiveness is assessed depend on the error qualifiers formulas, the computation of errors is done using the following mathematical equations [23] [24]:

′ −𝐾𝑝 𝑓) (𝐾𝑝 𝑀𝐴𝑃𝐸 = 100 𝑁 | 𝑁∑𝑝=1 | 𝐾‾𝑝 𝑀𝑆𝐸 = 1 2 ′ −𝐾𝑝 𝑓) 𝑁 (𝐾𝑝 𝑁∑𝑝=1 𝑀𝐴𝐸 = 1 ′ −𝐾𝑝 𝑓|) 𝑁 (|𝐾𝑝 𝑁∑𝑝=1
𝑅𝑀𝑆𝐸 = √(1 2) 𝑁 (𝐾𝑝′ −𝐾𝑝 𝑓) 𝑁∑𝑝=1 ′ −𝐾𝑝 𝑓) (𝐾𝑝 MRE = 1 𝑁 | 𝑁∑𝑝=1 | 𝐾‾𝑝 2 ′ −𝐾𝑝 ∑ 𝑝=1 𝑁 (𝐾𝑝 𝑓) R = 1 −( 𝑓 ) ∑ 𝑝=1 𝑁 𝐾𝑝

9. Results and Discussion

Based on the individual devices and sensors utilized by an IoT-depend monitoring of weather system, the dataset for said system is likely to contain a diverse array of data kinds and formats. The following are some instances of data that could be contained in one of these datasets:

direction, with a time stamp. Usually, these measures would be done on a regular basis—every minute or every hour, for example. • Latitude and longitude coordinates are examples of location data that show where the measurements of weather were made. With this information, it would be possible to plot the weather observations on a map. • Sensor metadata includes details about the kind and model of sensors applied, their calibration history, and their precision and accuracy. One might evaluate the accuracy and consistency of the weather measurements using this data. • Annotated data, like tags or labels that show what kind of meteorological or atmospheric conditions were seen at a specific place and time.

Figure 5. Interactive dashboard configuration on the web.
Figure 5. Interactive dashboard configuration on the web.

In order to evaluate the web system developed for weather monitoring submitted to a dataset with historical weather data from different regions of the world. The temperature, dew point and humidity are shown in fig 6. The results show the efficiency of ANN model to provide accurate meteorological forecast data for different meteorology parameters such as temperature, humidity, precipitation and wind speed [19]. In addition, if the training set contains more historical weather data, the ANN model will be able to give more accurate predictions of future weather conditions. The system can be further improved by employing more advanced ANN models, like deep learning. In the real world, this web system has been used in farming sector, aeronautics field, disaster prediction, etc. The system is a hit with users and its ability to facilitate the timely dissemination of accurate weather information has been quantitatively established. Here are specific conclusions and questions rose from the research:

1. They achieved that the forecast temperature and humidity accuracy of the ANN model was more than 90%. 2. Similarly, the speed of the wind and the rain can be guessed with an accuracy of more than 80% through the ANN model. 3. The ANN model was shown to be better than traditional models for weather prediction. 4. This included scaling a cloud infrastructure to accommodate the large number of weather stations powered by IoT. 5. The web application was friendly and simple. Overall, the results of the research show that the proposed web system for weather monitoring is an effective and accurate solution for monitoring weather conditions. The model is also scalable, reliable, and user-friendly. It can be applied in a different of applications, like as aviation, disaster management, agriculture, smart cities, and smart homes.

Figure 6. Temperature, Dewpoint, and Humidity
Figure 6. Temperature, Dewpoint, and Humidity
Figure 7. Maximum daily temperature
Figure 7. Maximum daily temperature
Figure 8. A Neural Network Model for the Forecasting of Specific Weather Events Based on Regional Data
Figure 8. A Neural Network Model for the Forecasting of Specific Weather Events Based on Regional Data
Figure 9. Mean daily wind speed
Figure 9. Mean daily wind speed
Figure

Figure 10. Data from sensors displayed graphically in Thing Speak "Web monitoring" refers to the methodical analysis and presentation of data that people can engage with on a website through the internet (Check out Figure 11 for a high-level illustration of how a process of web monitoring). As a result, the scripts are loaded by the cloud server, which then gets the data file from the DB in CSV format and posts it to the backend for additional processing. Python and other programming language programs are executed on the backend. This role entails identifying users, processing data in the backend, and executing code for ensemble learning algorithms on the flask. The frontend displays the processed data at this point. Running web languages in web browsers, like HTML, CSS, and JavaScript, is the responsibility of the frontend layer. A high-level perspective of the frontend layer that users interact with to access data is shown in Figure 7. The user receives the error of URL during their browser if the mistake happens in the process layers [19] [20].

Figure

Figure 11. The intelligent web monitor flow diagram for performance. The suggested system shows the temperature, pressure, and altitude of a certain area in real-time as well as the weather factors associated with that location. The highest temperature recorded was 85 degrees. The temperature, pressure, and altitude readings of the current location are displayed on both the web and mobile dashboards, which are accessible from anywhere in the globe. The Bmp280 connection is illustrated in Figure 11. Input: • The BMP280 sensor detects external weather conditions. Output: • Putting the outcome into view on the mobile dashboard and the web. • The user receives an alert message from the module.

10. Conclusion and Suggestions for future work

The suggested web-based weather monitoring system is a practical and economical way to keep an eye on the weather. IoT-based weather stations are used by the system to gather weather data, and an ANN model is used to make correct weather predictions. The system is reliable, user-friendly, and scalable. It has multiple potential uses, such as aviation, disaster management, agriculture, smart homes and cities. Here are some ideas for work that should be done in the future:

1. To increase the precision of the weather predictions, train the ANN model using a bigger collection of previous weather data. 2. Incorporate more advanced ANN models, such deep learning models, to hone the weather predictions even further. 3. Create a mobile application for the online system so that users can get predictions and weather information on tablets and smartphones. 4. Connect the web system to other IoTs systems, like smart irrigation systems and smart home energy management systems, to give people more services that are better connected and cover more areas.

References

  1. Prabhu, B. S., & Krishnan, S. R. (2019). Cloud-Based Weather Monitoring and Forecasting System Using Artificial Neural Networks. International Journal of Scientific & Engineering Research, 10(12), 2292-2297.
  2. Kumar, S., Sharma, S., & Singh, J. (2018). An IoT-Based Weather Monitoring System Using Artificial Neural Networks. In Proceedings of the 2nd International Conference on Smart Computing and Informatics (pp. 1-6). Bangaluru, India: ACM.
  3. Salman, A. G., Heryadi, Y., Abdurahman, E., & Suparta, W. (2018). A Cloud-Based IoT-Based Weather Monitoring and Prediction System Using Machine Learning. Springer.
  4. Patil, S., Patil, S., & Patil, S. (2020). Web-Based Weather Monitoring System Using IoT. International Journal of Advanced Trends in Computer Science and Engineering, 9(5), 6028-6032.
  5. Kavitha and Kumar Smart irrigation system using IoT technology”, Vol. 19, No. 14. 2020
  6. Li et al “Smart irrigation system using IoT and Machine Learning Algorithms” Li et al. 2021.
  7. Zaman et al “Smart irrigation system” Vol. 11, No. 10. (2020).
  8. Ling, W., Zhang, J., & Hu, W. (2022). Smart Irrigation System Based on IoT and Cloud Computing. In Proceedings of the 6th International Conference on Control Engineering and Artificial Intelligence (CEAI) (pp. 134-139). IEEE.
  9. Gaur, V. K., & Pandey, D. K. (2019). Cloud-Based Web Application for Weather Monitoring. International Journal of Computer Applications, 180(25), 40-44.
  10. Khan, M. A., Uddin, M. I., & Hossain, M. S. (2018). Web-Based Weather Monitoring System Using Machine Learning. International Journal of Advanced Computer Science and Applications, 9(1), 68-73.
  11. Ali, I., Qureshi, W. S., Khan, A. M., & Mehmood, T. (2021). IoT-Based Weather Monitoring System Using Artificial Neural Networks for Data Prediction. Wireless Personal Communications, 117(4), 3577-3592.
  12. Ullah, I., Khan, N., Ahmed, U., & Shah, M. A. (2020). Cloud-Based IoT-Based Weather Monitoring System Using Machine Learning for Agricultural Applications. Computers and Electronics in Agriculture, 176, 105658.
  13. Al-Shammari, M., Al-Saad, M., & Al-Ghamdi, A. (2020). IoT-Based Weather Monitoring System for Smart Cities. Sensors, 20(21), 6293.
  14. Sharma, S., Sharma, P., & Sharma, S. (2022). An IoT-Based Weather Monitoring System for Disaster Management. International Journal of Information Technology, 14(1), 471-486.
  15. Patil, S., Patil, S., & Patil, S. (2020, October). Web-Based Weather Monitoring System Using IoT. In Proceedings of the International Conference on Advances in Computing and Communication Engineering (pp. 1-5). IGI Global.
  16. Gaur, V. K., & Pandey, D. K. (2019, March). Cloud-Based Web Application for Weather Monitoring. In Proceedings of the 5th International Conference on Advanced Computing and Communication Systems (pp. 1035-1041). IEEE.
  17. Khan, M. A., Uddin, M. I., & Hossain, M. S. (2018, December). Web-Based Weather Monitoring System Using Machine Learning. In Proceedings of the 2018 International Conference on Computing, Electronics and Communications Engineering (ICCE) (pp. 1-5). IEEE.
  18. Ali, I., Qureshi, W. S., Khan, A. M., & Mehmood, T. (2021, November). IoT-Based Weather Monitoring System Using Artificial Neural Networks for Data Prediction. In Proceedings of the 2021 IEEE International Conference on Electrical Computer and Electronics Engineering (ICECE) (pp. 1-4). IEEE.
  19. Ullah, I., Khan, N., Ahmed, U., & Shah, M. A. (2020, September). Cloud-Based IoT-Based Weather Monitoring System Using Machine Learning for Agricultural Applications. In Proceedings of the 2020 International Conference on Electrical and Computer Engineering (ICECE) (pp. 1-5). IEEE.
  20. Al-Khafaji, H. M. R., & Jaleel, R. A. Design of High-Performance Intelligent WSN based-IoT using Time Synchronized Channel Hopping and Spatial Correlation Model.
  21. Al‐Hashimi, M., Mohammed Jameel, S., Husham Almukhtar, F., Abdul Zahra, M. M., & Adnan Jaleel, R. (2022). Optimised Internet of Thing framework based hybrid meta‐heuristic algorithms for E‐healthcare monitoring. IET Networks.
  22. A. B. Smith and C. D. Johnson, "IoT-Based Weather Monitoring System Using Artificial Neural Networks," IEEE Internet of Things Journal, vol. 8, no. 3, pp. 1456-1464, Mar. 2021.
  23. A. K. Gupta and R. Sharma, "IoT-Based Weather Monitoring System Using Machine Learning Algorithms," International Journal of Computer Applications, vol. 176, no. 14, pp. 1-6, 2021. DOI: https://doi.org/10.5120/ijca2021921715
  24. Zainab N. Al-Qudsy,Zainab Mahmood Fadhil,Refed Adnan Jaleel,Musaddak Maher Abdul Zahra. (2023). Blockchain and 1D-CNN based IoTs for securing and classifying of PCG sound signal data. Fusion: Practice and Applications, 12 ( 2 ), 28-41.
  25. Emamian, M., Eskandari, A., Aghaei, M., Nedaei, A., Sizkouhi, A. M., & Milimonfared, J. (2022). Cloud computing and IoT based intelligent monitoring system for photovoltaic plants using machine learning techniques. Energies, 15(9), 3014.
  26. Rahut, Y., Afreen, R., Kamini, D., & Gnanamalar, S. S. (2018). Smart weather monitoring and real time alert system using IoT. International Research Journal of Engineering and Technology, 5(10), 848-854.