Rain Detection in Solar Insecticidal Lamp IoTs Systems Based on Multivariate Wireless Signal Feature Learning
Abstract
1. Introduction
1.1. Background
- High humidity, condensation, or debris (e.g., dust, leaves, bird droppings) can cause false activations or functional failure.
- Residual moisture after rainfall leads to prolonged misjudgment, causing missed pest-control opportunities during the critical post-rain pest activity peak.
- Long-term corrosion or oxidation of exposed screws increases resistance, reduces reliability, and requires frequent maintenance.
- Communication metrics such as RSRP, RSRQ, and RSSI are inherently available in commercial LTE modules, enabling zero-cost sensing without additional hardware deployment.
- Wireless signal features reflect propagation impairments caused by rainfall and environmental dynamics, allowing for indirect but effective rainfall perception.
- This approach preserves the original low-power and self-sufficient design of SIL-IoT nodes, which is essential for long-term sustainable operation.
- Wireless-signal-based sensing avoids maintenance issues such as sensor aging, contamination, and mechanical failure that commonly affect conventional rain sensors.
1.2. Related Works
1.3. Contributions
- Scenario-aware agricultural IoT dataset construction: A large-scale LTE-based rainfall detection dataset is constructed from real-world farmland SIL-IoTs deployments, addressing the lack of agricultural IoT data in existing urban-centric studies.
- Multivariate wireless signal feature learning under heterogeneous conditions: A multivariate wireless signal feature learning framework is developed by jointly modeling RSRP, RSRQ, and RSSI, enabling more robust rainfall discrimination under heterogeneous propagation conditions compared with single-parameter approaches.
- Signal-strength stratification with adaptive signal-leveling: Signal-strength stratification is explicitly introduced, together with a dual-rate EWMA-based adaptive signal-leveling mechanism, to mitigate signal heterogeneity and long-term environmental drift.
- Cross-regional generalization in agricultural environments: The proposed approach is evaluated on independent datasets from multiple regions, demonstrating robust generalization across diverse agricultural environments.
2. Experimental Platform and Dataset Construction
2.1. Construction of the Data Acquisition Node
2.2. Construction of the Primary Dataset
2.2.1. Site Selection Based on Signal-Strength Stratification
2.2.2. Composition and Construction of the Primary Dataset
- Wireless signal parameters collected from the five graded sampling nodes.
- Ground-truth rainfall measurements obtained from an external meteorological service.
2.3. Construction of the External Test Dataset
2.4. Summary of Dataset Construction
3. Data Preprocessing and Analysis
3.1. Data Preprocessing Based on the Distribution Characteristics of Wireless Signal Parameters
- Missing value completion
- 2.
- Abnormal value removal
- Data-driven filtering: Based on empirical signal characteristics, extreme values or outliers that violated the short-term fluctuation patterns of RSRP, RSRQ, or RSSI were further removed. This ensures consistency with realistic wireless signal behavior at SIL-IoTs nodes.
3.2. Data Analysis
3.2.1. Comparative Analysis of Signal Parameters for the Same Node Under Different Rainfall Conditions
3.2.2. Comparative Analysis of Signal Parameters Across Nodes Under Rain Conditions
4. Methods
4.1. Method Overview
- Observation period and data collection: After SIL-IoTs node deployment, an observation period is initiated. Since the signal level will later be adaptively updated, the observation period only needs to ensure stable no-rain conditions and can be of any duration greater than zero. During this period, each node continuously collects wireless signal parameters through its 4G communication module.
- Determination of the node’s signal level: Using the data collected during the observation period, the initial typical signal level and initial signal strength level of the node are determined under no-rain conditions. This provides a reliable baseline for evaluating subsequent fluctuations during real-time rain detection.
- Real-time rain detection: During system operation, wireless signal parameters are continuously collected in real time. When no significant signal fluctuation is detected, the rain-detection model remains in a dormant state to reduce energy consumption. Once a notable fluctuation is detected, the model is activated to determine whether the fluctuation exhibits rain-attenuation characteristics. If rain is detected, the node outputs a “rain” state and sends a control command to stop the operation of both the lure light and the high-voltage grid. When the model later outputs a “no-rain” state, the system resumes normal operation.
- Adaptive signal-level update: During long-term operation, the typical signal level of a node may drift due to slow changes in the physical environment. To maintain detection accuracy, the method continuously monitors wireless signal parameters, even during model dormancy. If the real-time signal characteristics deviate from the current signal level for a sustained period (typically around 2 h, determined by sampling frequency and environmental dynamics), the node’s typical signal level and signal level are adaptively updated. This ensures that the rain-detection method remains stable and reliable despite long-term environmental changes.
4.2. Adaptive Signal-Level Classification Based on Dual-Rate EWMA
- Initialization: After node deployment, an observation period is conducted. The mode of RSRP during this period is taken as the initial typical signal level, . Based on and the classification criteria in Table 3, the initial signal strength level, , is assigned. The initial values of the EWMA components are set as and .
- Operation: At time , each newly received RSRP measurement is used to update the fast EWMA , slow EWMA , and difference
- Change detection: To avoid reacting to short-term noise, a persistence constraint is introduced. When the rain-detection model indicates “no rain” and the condition is sustained for a duration , the signal level is considered to have undergone long-term drift. Parameters were empirically selected to balance responsiveness and stability. Specifically, the time resolution is set to , and the persistence duration is set to . The threshold is defined based on the difference sequence, , observed during the initial observation period after node deployment. During this period, when the signal conditions are assumed to be stable and free from long-term drift, is set to the mean plus three standard deviations of . This node-specific threshold ensures that only statistically significant deviations from the initial signal baseline trigger signal-level updating.
- Adaptive updating: The mode of over a recent time window (having the same length as the initial observation period) is taken as the updated typical signal level, . According to and the classification criteria in Table 3, the signal strength level is updated to .
4.3. Rain Detection Model Trained via Multivariate Wireless Signal Feature Learning
4.3.1. Model Input
4.3.2. Model Selection and Training
- Energy efficiency: Each solar insecticidal lamp node is powered by a solar battery; therefore, the model must maintain low computational complexity and power consumption.
- Generalization capability: Communication environments and meteorological conditions vary across deployment regions. The model must adapt to heterogeneous node characteristics and signal-strength distributions.
- Scalability: With a large number of nodes and high-frequency wireless signal sampling, the model must support efficient training and inference on large-scale data.
5. Results and Discussion
5.1. Results
5.1.1. Detection Performance on the Test Set of the Primary Dataset
- ROC-AUC Performance
- 2.
- Accuracy
- 3.
- Precision, Recall, and F1-score (Class 1: Rain)
5.1.2. Detection Performance on the External Test Dataset
5.1.3. Summary
5.2. Discussion
5.2.1. Discussion on the Proposed Method
- Effectiveness of Multivariate Wireless Signal Features
- 2.
- Role of Signal-Strength Stratification and Adaptive Updating
- 3.
- Cross-Regional Generalization in Agricultural Environments
5.2.2. Limitations and Future Improvements
- Extending the method toward rainfall intensity and accumulation estimation;
- Constructing more geographically and climatically diverse training datasets;
- Developing temporal multi-scale modeling to handle short-term and long-term rainfall patterns;
- Enhancing robustness under extreme meteorological conditions through feature enrichment and model refinement.
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| SIL-IoTs | Solar Insecticidal Lamp Internet of Things |
| SIL | Solar Insecticidal Lamp |
| LTE | Long Term Evolution |
| RSRP | Reference Signal Received Power |
| RSRQ | Reference Signal Received Quality |
| RSSI | Received Signal Strength Indicator |
| EWMA | Exponentially Weighted Moving Average |
| Dual-rate EWMA | Dual-Rate Exponentially Weighted Moving Average |
| CML | Commercial Microwave Link |
| ROC-AUC | Receiver Operating Characteristic—Area Under the Curve |
| PBCC | Point–Biserial Correlation Coefficient |
| WMO | World Meteorological Organization |
References
- Liu, J.; Bian, Y.; Zhang, Y.; Meng, Z.; Huang, C.; Zeng, J. Analysis of the occurrence trends and causes of major pests and diseases of major crops in China in 2025. China Plant Prot. Guide 2025, 45, 26–29. [Google Scholar]
- Li, K.; Shu, L.; Huang, K.; Sun, Y.; Yang, F.; Zhang, Y.; Huo, Z.; Wang, Y.; Wang, X.; Zhang, Y.; et al. Research status and prospects of Internet of Things–based solar insecticidal lamps. Smart Agric. 2019, 1, 13–28. [Google Scholar]
- Lam, H.B.; Phan, T.T.; Vuong, L.H.; Huynh, H.X.; Pottier, B. Designing a brown planthopper surveillance network based on a wireless sensor network approach. arXiv 2013, arXiv:1312.3692. [Google Scholar] [CrossRef]
- Wang, S.; Hu, X.; Wang, X. Analysis and prospects of application technologies for insecticidal lamps in the control of agricultural and forestry pests. Shandong For. Sci. Technol. 2016, 46, 85–88. [Google Scholar]
- Wang, N.; Zhang, N.; Wang, M. Wireless sensors in agriculture and food industry—Recent development and future perspective. In Proceedings of the International Commission of Agricultural Engineering (CIGR) International Conference, Beijing, China, 11–14 October 2004. [Google Scholar]
- Li, Z. Design of an intelligent LED insecticidal lamp control system. Electromech. Eng. Technol. 2015, 44, 96–99. [Google Scholar]
- Citroni, R.; Mangini, F.; Frezza, F. Efficient Integration of Ultra-low Power Techniques and Energy Harvesting in Self-Sufficient Devices: A Comprehensive Overview of Current Progress and Future Directions. Sensors 2024, 24, 4471. [Google Scholar] [CrossRef]
- Livieratos, S.N.; Cottis, P.G. Rain attenuation along terrestrial millimeter wave links: A new prediction method based on supervised machine learning. IEEE Access 2019, 7, 138745–138756. [Google Scholar] [CrossRef]
- Lian, B.; Wei, Z.; Sun, X.; Li, Z.; Zhao, J. A Review on Rainfall Measurement Based on Commercial Microwave Links in Wireless Cellular Networks. Sensors 2022, 22, 4395. [Google Scholar] [CrossRef] [PubMed]
- Overeem, A.; Leijnse, H.; Uijlenhoet, R. Measuring urban rainfall using microwave links from commercial cellular communication networks. Water Resour. Res. 2011, 47, W12505. [Google Scholar] [CrossRef]
- Christofilakis, V.; Tatsis, G.; Votis, C.T.; Chronopoulos, S.K.; Kostarakis, P.; Lolis, C.J.; Bartzokas, A. Rainfall Measurements Due to Radio Frequency Signal Attenuation at 2 GHz. J. Signal Inf. Process. 2018, 9, 192–201. [Google Scholar] [CrossRef]
- Beritelli, F.; Capizzi, G.; Lo, S.G.; Napoli, C.; Scaglione, F. Rainfall estimation based on the intensity of the received signal in an LTE/4G mobile terminal using a probabilistic neural network. IEEE Access 2018, 6, 30865–30873. [Google Scholar] [CrossRef]
- Zhang, Q.; Yan, J.; Chu, Z.; Zhao, F. A preliminary study on measuring precipitation distribution using mobile communication base station signals. Sci. Technol. Bull. 2019, 35, 30–36. [Google Scholar] [CrossRef]
- Graf, M.; Chwala, C.; Polz, J.; Kunstmann, H. Rainfall estimation from a German-wide commercial microwave link network: Optimized processing and validation for 1 year of data. Hydrol. Earth Syst. Sci. 2020, 24, 2931–2950. [Google Scholar] [CrossRef]
- Min, J.; Wu, Z.; Zheng, L.; Cheng, Q. Deep-learning-based identification and analysis of precipitation environments for radio propagation links. J. Radio Sci. 2023, 38, 453–462, 484. [Google Scholar]
- Xu, Y.; Wu, K.; Zhang, J.A.; Wang, Z.; Jayawickrama, B.A.; Guo, Y.J. Smartphone-Based Experimental Analysis of Rainfall Effects on LTE Signal Indicators. Sensors 2025, 25, 375. [Google Scholar] [CrossRef]
- Jiang, X.; Shang, F.; Du, H.; Yang, P.; Guo, X.; Liang, L.; Zhang, Y.; Li, X.-Y. RainfalLTE: A zero-effect rainfall sensing system utilizing existing LTE infrastructure. arXiv 2025, arXiv:2505.13818. [Google Scholar] [CrossRef]
- QWeather. QWeather Weather Data Service and API Documentation. Available online: https://dev.qweather.com/ (accessed on 15 March 2025).
- Rochman, M.I.; Sathya, V.; Fernandez, D.; Nunez, N.; Ibrahim, A.S.; Payne, W.; Ghosh, M. A comprehensive analysis of the coverage and performance of 4G and 5G deployments. Comput. Netw. 2023, 237, 110060. [Google Scholar] [CrossRef]
- 3GPP TS 36.214; Evolved Universal Terrestrial Radio Access (E-UTRA); Physical Layer; Measurements (Technical Specification). 3GPP: Valbonne, France, 2023.
- 3GPP TS 36.101; Evolved Universal Terrestrial Radio Access (E-UTRA); User Equipment (UE) Radio Transmission and Reception (Technical Specification). 3GPP: Valbonne, France, 2023.
- 3GPP TS 36.133; Evolved Universal Terrestrial Radio Access (E-UTRA); Requirements for Support of Radio Resource Management (Technical Specification). 3GPP: Valbonne, France, 2023.
- Liang, L.; Daniels, J. What Influences Low-cost Sensor Data Calibration?—A Systematic Assessment of Algorithms, Duration, and Predictor Selection. Aerosol Air Qual. Res. 2022, 22, 220076. [Google Scholar] [CrossRef]
- Roberts, S.W. Control chart tests based on geometric moving averages. Technometrics 1959, 1, 239–250. [Google Scholar] [CrossRef]
- Basseville, M.; Nikiforov, I.V. Detection of Abrupt Changes: Theory and Application; Prentice Hall: Englewood Cliffs, NJ, USA, 1993. [Google Scholar]
- Montgomery, D.C. Introduction to Statistical Quality Control, 7th ed.; Wiley: Hoboken, NJ, USA, 2013. [Google Scholar]
- Aslam, M.; Gui, W.; Khan, N.; Jun, C.-H. Double moving average–EWMA control chart for exponentially distributed quality. Commun. Stat.—Simul. Comput. 2017, 46, 7351–7364. [Google Scholar] [CrossRef]
- Gama, J.; Žliobaitė, I.; Bifet, A.; Pechenizkiy, M.; Bouchachia, A. A survey on concept drift adaptation. ACM Comput. Surv. 2014, 46, 44. [Google Scholar] [CrossRef]
- Luca, L.G.; Vuerich, E. The WMO field intercomparison of rain intensity gauges. Atmos. Res. 2009, 94, 534–543. [Google Scholar] [CrossRef]
















| Authors | Year | Data Source | Parameters Used | Signal-Strength Stratification |
|---|---|---|---|---|
| Overeem et al. [10] | 2011 | urban/suburban CML | single (link attenuation) | No |
| Christofilakis et al. [11] | 2018 | urban cellular environment | single (RSSI) | No |
| Beritelli et al. [12] | 2018 | urban/experimental | single (RSSI) | No |
| Zhang et al. [13] | 2019 | urban cellular network | single (RSSI/RSRP) | No |
| Graf et al. [14] | 2020 | large-scale urban CML | single (signal attenuation) | No |
| Min et al. [15] | 2023 | urban/suburban | single-dominant metric | No |
| Xu et al. [16] | 2025 | urban smartphone-based | multiple (RSRP, RSSI, RSRQ) | No |
| Jiang et al. [17] | 2025 | urban cellular network | single (RSSI) | No |
| Component | Model |
|---|---|
| Control Module | Arduino Uno R3 (Arduino S.r.l., Ivrea, Italy) |
| Storage Module | AFU F-1 V1.9 (AFU Electronic Technology Co., Ltd., Shenzhen, China) |
| Communication Module | Quectel EC800M (Quectel Wireless Solutions Co., Ltd., Shanghai, China) |
| Power Module | Xiaomi Power Bank PB2022ZM (Xiaomi Communications Co., Ltd., Beijing, China) |
| Antenna | Quectel Y0RAB0CA0AA (Quectel Wireless Solutions Co., Ltd., Shanghai, China) |
| Signal Strength Levels | Range | Color |
|---|---|---|
| Excellent | >−85 dBm | Green |
| Good | −85 to −95 dBm | Yellow |
| Moderate | −95 to −105 dBm | Orange |
| Poor | −105 to −115 dBm | Red |
| Very poor | <−115 dBm | Gray |
| Rainfall Range (mm/5 min) | Category | Sample Count |
|---|---|---|
| Precip 0.25 | Light Rain | 188,683 |
| 0.25 precip 0.49 | Moderate Rain | 1694 |
| 0.50 precip 0.99 | Heavy Rain | 1179 |
| 1.00 precip 2.49 | Rainstorm | 430 |
| Precip 2.50 | Severe Rainstorm | 1158 |
| Dataset Type | Region | Total Samples (Rainy Samples) | Deployment Scenario |
|---|---|---|---|
| Primary Dataset | Nanjing | ~14,000,000 (193,144) | Agricultural SIL-IoTs deployment with signal-strength-stratified data collection |
| External Test Dataset | Changsha | ~200,000 (12,990) | Operational agricultural SIL-IoTs deployment without pre-deployment stratification |
| Dongguan | ~380,000 (28,390) |
| Node | Signal Parameters | Condition | Standard Deviation |
|---|---|---|---|
| 1 | RSRQ | Rain | 1.07 |
| No rain | 1.33 | ||
| RSSI | Rain | 0.48 | |
| No rain | 0.47 | ||
| RSRP | Rain | 0.48 | |
| No rain | 0.40 | ||
| 2 | RSRQ | Rain | 1.72 |
| No rain | 2.10 | ||
| RSSI | Rain | 7.02 | |
| No rain | 1.72 | ||
| RSRP | Rain | 10.81 | |
| No rain | 0.75 | ||
| 3 | RSRQ | Rain | 2.14 |
| No rain | 2.10 | ||
| RSSI | Rain | 3.64 | |
| No rain | 1.26 | ||
| RSRP | Rain | 3.44 | |
| No rain | 0.48 | ||
| 4 | RSRQ | Rain | 1.93 |
| No rain | 2.07 | ||
| RSSI | Rain | 4.75 | |
| No rain | 1.69 | ||
| RSRP | Rain | 4.64 | |
| No rain | 0.65 | ||
| 5 | RSRQ | Rain | 1.93 |
| No rain | 1.02 | ||
| RSSI | Rain | 1.44 | |
| No rain | 0.80 | ||
| RSRP | Rain | 0.98 | |
| No rain | 0.51 |
| Feature | Symbol | Description |
|---|---|---|
| Signal Level | Node’s typical signal-strength tier under the current environment | |
| Reference Signal Received Power | RSRP | Received strength of the reference signal |
| Received Signal Strength Indicator | RSSI | Total received signal strength |
| Fast EWMA | Short-term signal fluctuation indicator | |
| Slow EWMA | Long-term signal stability indicator | |
| Fluctuation Significance Indicator | Measure of deviation between fast and slow trends |
| Model | Region | ROC-AUC | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|---|---|
| XGBoost | Nanjing | 0.9918 | 0.9880 | 0.9880 | 0.9880 | 0.9880 |
| Changsha | 0.9854 | 0.9755 | 0.9801 | 0.9755 | 0.9768 | |
| Dongguan | 0.9929 | 0.9897 | 0.9959 | 0.9897 | 0.9919 | |
| LightGBM | Nanjing | 0.9920 | 0.9876 | 0.9876 | 0.9876 | 0.9876 |
| Changsha | 0.9864 | 0.9760 | 0.9807 | 0.9760 | 0.9773 | |
| Dongguan | 0.9917 | 0.9884 | 0.9942 | 0.9884 | 0.9906 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Liu, L.; Shu, L.; Xu, Y.; Li, K.; Han, R.; Su, Q.; Fang, J. Rain Detection in Solar Insecticidal Lamp IoTs Systems Based on Multivariate Wireless Signal Feature Learning. Electronics 2026, 15, 465. https://doi.org/10.3390/electronics15020465
Liu L, Shu L, Xu Y, Li K, Han R, Su Q, Fang J. Rain Detection in Solar Insecticidal Lamp IoTs Systems Based on Multivariate Wireless Signal Feature Learning. Electronics. 2026; 15(2):465. https://doi.org/10.3390/electronics15020465
Chicago/Turabian StyleLiu, Lingxun, Lei Shu, Yiling Xu, Kailiang Li, Ru Han, Qin Su, and Jiarui Fang. 2026. "Rain Detection in Solar Insecticidal Lamp IoTs Systems Based on Multivariate Wireless Signal Feature Learning" Electronics 15, no. 2: 465. https://doi.org/10.3390/electronics15020465
APA StyleLiu, L., Shu, L., Xu, Y., Li, K., Han, R., Su, Q., & Fang, J. (2026). Rain Detection in Solar Insecticidal Lamp IoTs Systems Based on Multivariate Wireless Signal Feature Learning. Electronics, 15(2), 465. https://doi.org/10.3390/electronics15020465

