Ganna H Hebishy, Ahmed K Hassan, Samaa F Osman, Mohamed S Saraya
{"title":"用于小规模农业应用的低成本物联网实时环境监测和一小时LSTM预测。","authors":"Ganna H Hebishy, Ahmed K Hassan, Samaa F Osman, Mohamed S Saraya","doi":"10.1038/s41598-026-69489-0","DOIUrl":null,"url":null,"abstract":"<p><p>Standard equipment is too expensive and complex, frequently limiting continuous environmental monitoring in small-scale farming. To overcome this, a low-cost seven-channel IoT monitoring and forecasting system was developed and deployed, utilizing an Arduino Uno R3 and ESP8266 NodeMCU Wi-Fi module. The system acquired temperature, humidity, precipitation, soil moisture, methane, carbon monoxide, and air quality, transmitting data to the ThingSpeak cloud platform at an average interval of approximately one minute. The DHT22 temperature and humidity sensor carries a manufacturer-rated accuracy of ± 0.5 °C and ± 2-5% RH; the remaining sensors report uncalibrated raw output, as no reference-instrument validation was performed. The device was deployed for 21 days at a residential garden site in the Nile Delta region of Egypt. A total of 30,981 of 31,460 exported observations, 98.48% of the exported record were retained after the application of the preprocessing pipeline, which consisted of time-aware interpolation and Augmented Dickey-Fuller (ADF)-guided stationarity conditioning. A 70/15/15 chronological train/validation/test split was used to prevent temporal leakage. The analysis revealed distinct environmental patterns, including a rising trend of 0.296 °C/day, an anti-phase coupling between temperature and humidity, and an increase in raw gas sensor output overnight. To make use of this data for predictive insights, seven different univariate LSTM models were trained to forecast one hour ahead. When evaluated against persistence and seasonal-naive baselines on the same test set, the LSTM held a modest edge over persistence for methane (Mean Absolute Percentage Error, MAPE: 0.81%) and air quality (MAPE: 0.31%), while a simple persistence forecast matched or outperformed the LSTM for the remaining five channels. This field deployment demonstrates the technical feasibility of pairing affordable hardware with deep learning forecasting for continuous environmental monitoring, providing a foundation for future irrigation-support applications in resource-constrained settings.</p>","PeriodicalId":21811,"journal":{"name":"Scientific Reports","volume":"16 1","pages":""},"PeriodicalIF":4.9000,"publicationDate":"2026-09-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13578431/pdf/","citationCount":"0","resultStr":"{\"title\":\"Low-cost IoT real-time environmental monitoring and one-hour LSTM forecasting for small-scale agricultural applications.\",\"authors\":\"Ganna H Hebishy, Ahmed K Hassan, Samaa F Osman, Mohamed S Saraya\",\"doi\":\"10.1038/s41598-026-69489-0\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p><p>Standard equipment is too expensive and complex, frequently limiting continuous environmental monitoring in small-scale farming. To overcome this, a low-cost seven-channel IoT monitoring and forecasting system was developed and deployed, utilizing an Arduino Uno R3 and ESP8266 NodeMCU Wi-Fi module. The system acquired temperature, humidity, precipitation, soil moisture, methane, carbon monoxide, and air quality, transmitting data to the ThingSpeak cloud platform at an average interval of approximately one minute. The DHT22 temperature and humidity sensor carries a manufacturer-rated accuracy of ± 0.5 °C and ± 2-5% RH; the remaining sensors report uncalibrated raw output, as no reference-instrument validation was performed. The device was deployed for 21 days at a residential garden site in the Nile Delta region of Egypt. A total of 30,981 of 31,460 exported observations, 98.48% of the exported record were retained after the application of the preprocessing pipeline, which consisted of time-aware interpolation and Augmented Dickey-Fuller (ADF)-guided stationarity conditioning. A 70/15/15 chronological train/validation/test split was used to prevent temporal leakage. The analysis revealed distinct environmental patterns, including a rising trend of 0.296 °C/day, an anti-phase coupling between temperature and humidity, and an increase in raw gas sensor output overnight. To make use of this data for predictive insights, seven different univariate LSTM models were trained to forecast one hour ahead. When evaluated against persistence and seasonal-naive baselines on the same test set, the LSTM held a modest edge over persistence for methane (Mean Absolute Percentage Error, MAPE: 0.81%) and air quality (MAPE: 0.31%), while a simple persistence forecast matched or outperformed the LSTM for the remaining five channels. This field deployment demonstrates the technical feasibility of pairing affordable hardware with deep learning forecasting for continuous environmental monitoring, providing a foundation for future irrigation-support applications in resource-constrained settings.</p>\",\"PeriodicalId\":21811,\"journal\":{\"name\":\"Scientific Reports\",\"volume\":\"16 1\",\"pages\":\"\"},\"PeriodicalIF\":4.9000,\"publicationDate\":\"2026-09-15\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13578431/pdf/\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Scientific Reports\",\"FirstCategoryId\":\"103\",\"ListUrlMain\":\"https://doi.org/10.1038/s41598-026-69489-0\",\"RegionNum\":2,\"RegionCategory\":\"综合性期刊\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"MULTIDISCIPLINARY SCIENCES\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Scientific Reports","FirstCategoryId":"103","ListUrlMain":"https://doi.org/10.1038/s41598-026-69489-0","RegionNum":2,"RegionCategory":"综合性期刊","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"MULTIDISCIPLINARY SCIENCES","Score":null,"Total":0}
引用次数: 0
摘要
标准设备过于昂贵和复杂,常常限制了小规模农业的持续环境监测。为了解决这个问题,开发并部署了一个低成本的七通道物联网监测和预测系统,利用Arduino Uno R3和ESP8266 NodeMCU Wi-Fi模块。该系统采集温度、湿度、降水、土壤湿度、甲烷、一氧化碳和空气质量,并以平均约一分钟的间隔将数据传输到ThingSpeak云平台。DHT22温湿度传感器的制造商额定精度为±0.5°C和±2-5% RH;其余传感器报告未校准的原始输出,因为没有进行参考仪器验证。该装置在埃及尼罗河三角洲地区的一个住宅花园地点部署了21天。采用由时间感知插值和ADF引导的增强Dickey-Fuller (Augmented Dickey-Fuller)平稳性调节组成的预处理管道后,输出31460条观测数据中有30981条记录被保留,其中98.48%的输出记录被保留。采用70/15/15时间顺序训练/验证/测试分割来防止时间泄漏。分析显示了不同的环境模式,包括0.296°C/天的上升趋势,温度和湿度之间的反相位耦合,以及一夜之间原始气体传感器输出的增加。为了利用这些数据进行预测,对七个不同的单变量LSTM模型进行了训练,以提前一小时进行预测。当对同一测试集的持久性和季节性初始基线进行评估时,LSTM在甲烷(平均绝对百分比误差,MAPE: 0.81%)和空气质量(MAPE: 0.31%)的持久性方面保持了一定的优势,而简单的持久性预测在其余五个通道上与LSTM相匹配或优于LSTM。这一现场部署证明了将经济实惠的硬件与深度学习预测相结合以实现持续环境监测的技术可行性,为未来资源受限环境下的灌溉支持应用奠定了基础。
Low-cost IoT real-time environmental monitoring and one-hour LSTM forecasting for small-scale agricultural applications.
Standard equipment is too expensive and complex, frequently limiting continuous environmental monitoring in small-scale farming. To overcome this, a low-cost seven-channel IoT monitoring and forecasting system was developed and deployed, utilizing an Arduino Uno R3 and ESP8266 NodeMCU Wi-Fi module. The system acquired temperature, humidity, precipitation, soil moisture, methane, carbon monoxide, and air quality, transmitting data to the ThingSpeak cloud platform at an average interval of approximately one minute. The DHT22 temperature and humidity sensor carries a manufacturer-rated accuracy of ± 0.5 °C and ± 2-5% RH; the remaining sensors report uncalibrated raw output, as no reference-instrument validation was performed. The device was deployed for 21 days at a residential garden site in the Nile Delta region of Egypt. A total of 30,981 of 31,460 exported observations, 98.48% of the exported record were retained after the application of the preprocessing pipeline, which consisted of time-aware interpolation and Augmented Dickey-Fuller (ADF)-guided stationarity conditioning. A 70/15/15 chronological train/validation/test split was used to prevent temporal leakage. The analysis revealed distinct environmental patterns, including a rising trend of 0.296 °C/day, an anti-phase coupling between temperature and humidity, and an increase in raw gas sensor output overnight. To make use of this data for predictive insights, seven different univariate LSTM models were trained to forecast one hour ahead. When evaluated against persistence and seasonal-naive baselines on the same test set, the LSTM held a modest edge over persistence for methane (Mean Absolute Percentage Error, MAPE: 0.81%) and air quality (MAPE: 0.31%), while a simple persistence forecast matched or outperformed the LSTM for the remaining five channels. This field deployment demonstrates the technical feasibility of pairing affordable hardware with deep learning forecasting for continuous environmental monitoring, providing a foundation for future irrigation-support applications in resource-constrained settings.
期刊介绍:
We publish original research from all areas of the natural sciences, psychology, medicine and engineering. You can learn more about what we publish by browsing our specific scientific subject areas below or explore Scientific Reports by browsing all articles and collections.
Scientific Reports has a 2-year impact factor: 4.380 (2021), and is the 6th most-cited journal in the world, with more than 540,000 citations in 2020 (Clarivate Analytics, 2021).
•Engineering
Engineering covers all aspects of engineering, technology, and applied science. It plays a crucial role in the development of technologies to address some of the world''s biggest challenges, helping to save lives and improve the way we live.
•Physical sciences
Physical sciences are those academic disciplines that aim to uncover the underlying laws of nature — often written in the language of mathematics. It is a collective term for areas of study including astronomy, chemistry, materials science and physics.
•Earth and environmental sciences
Earth and environmental sciences cover all aspects of Earth and planetary science and broadly encompass solid Earth processes, surface and atmospheric dynamics, Earth system history, climate and climate change, marine and freshwater systems, and ecology. It also considers the interactions between humans and these systems.
•Biological sciences
Biological sciences encompass all the divisions of natural sciences examining various aspects of vital processes. The concept includes anatomy, physiology, cell biology, biochemistry and biophysics, and covers all organisms from microorganisms, animals to plants.
•Health sciences
The health sciences study health, disease and healthcare. This field of study aims to develop knowledge, interventions and technology for use in healthcare to improve the treatment of patients.