Model-Driven Wireless Planning for Farm Monitoring: A Mixed-Integer Optimization Approach
Abstract
1. Introduction
1.1. Motivation and Problem Statement
1.2. Related Work and Positioning
1.3. Contributions
- A calibrated path-loss model for the studied farm, converted to a binary coverability matrix against sensitivity/margin and used as physics input to optimization.
- A capacity-aware MILP for gateway activation and user-to-gateway assignment, with an explainable greedy fallback for solver timeouts or large instances.
- A documented toolchain (MATLAB, LpSolve, Radio Mobile, Wireshark) and companion functions for running the optimization and producing diagnostic plots.
- A field deployment in the target facility with end-to-end packet capture, closing the loop from model to practice.
2. Materials and Methods
2.1. Propagation and Coverage Model
2.2. Optimization Model
2.3. Parameterization and Technologies
2.4. Theoretical Coverage Radii (Sizing Check)
2.5. Implementation and Reproducibility
2.6. Regulatory and Calibration Notes
2.7. Problem Formulation and Design Variables
2.7.1. Coverage Linking
2.7.2. Coverage Requirement
2.7.3. Objective
2.8. Metrics and Definitions
2.9. Coordinate Acquisition and Candidate Generation
- Transmitter (user) coordinates: .
- Candidate gateway sites: .
- Technology/propagation parameters: frequency f, path-loss exponent n, fixed loss , distributed loss , transmit power , receiver sensitivity , target coverage ratio , per-gateway capacity , gateway cost (optional).
- (Optional) link margin or a PDR target mapped to a margin.
- For all , compute distances .
- Path-loss: .
- Received power: .
- Coverability: (set if unused).
- : activate/install gateway at site j.
- : assign user i to gateway j.
- : user i is covered (assigned to an active gateway).
- Initialize and for all j and i.
- While :
- (a)
- For each candidate site j with residual capacity, compute the gainwith if costs are not differentiated.
- (b)
- Select . If , stop (coverage target infeasible with given sites/parameters).
- (c)
- Activate by setting and assign up to new users to it (set and for the selected users).
- Return the set of active gateways , the assignments , and the achieved coverage .
3. Results
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Pereira, W.F.; da Silva Fonseca, L.; Putti, F.F.; Góes, B.C.; de Paula Naves, L. Environmental monitoring in a poultry farm using an instrument developed with the internet of things concept. Comput. Electron. Agric. 2020, 170, 105257. [Google Scholar] [CrossRef]
- Azevedo, J.A.; Mendonça, F. A Critical Review of the Propagation Models Employed in LoRa Systems. Sensors 2024, 24, 3877. [Google Scholar] [CrossRef]
- Vangelista, L. Frequency plans, range and scalability for LoRaWAN. Comput. Commun. 2023, 216, 206–217. [Google Scholar] [CrossRef]
- Fong, S.L.; Bucheli, J.; Sampath, A.; Bedewy, A.M.; Di Mare, M.; Shental, O.; Islam, M.N. A Mixed-Integer Linear Programming Approach to Deploying Base Stations and Repeaters. IEEE Commun. Lett. 2023, 27, 3414–3418. [Google Scholar] [CrossRef]
- Savithi, C.; Kaewta, C. Multi-Objective Optimization of Gateway Location Selection in LoRaWANs. J. Sens. Actuator Netw. 2024, 13, 3. [Google Scholar] [CrossRef]
- Tang, Y.; Xiao, H.; Zhang, L.; He, J. Design of agricultural wireless sensor network node optimization method based on farmland monitoring. PLoS ONE 2024, 19, e0308845. [Google Scholar] [CrossRef]
- Guo, J.; Sun, Y.; Liu, T.; Li, Y.; Fei, T. An Optimization Coverage Strategy for Wireless Sensor Network Nodes Based on Path Loss and False Alarm Probability. Sensors 2025, 25, 396. [Google Scholar] [CrossRef] [PubMed]
- Ojo, M.O.; Viola, I.; Miretti, S.; Martignani, E.; Giordano, S.; Baratta, M. A Deep Learning Approach for Accurate Path Loss Prediction in LoRaWAN Livestock Monitoring. Sensors 2024, 24, 2991. [Google Scholar] [CrossRef] [PubMed]
- Gonzalez, A.; Patel, K.; Silva, M. Field-validated LoRa coverage for crop monitoring under dense vegetation. Comput. Electron. Agric. 2024, 218, 108619. [Google Scholar] [CrossRef]
- Abdullah, A.H.; Shukor, S.; Saad, F.; Ehkan, P.; Mustafa, H. Wireless electronic nose using GPRS/GSM system for chicken barn climate and hazardous volatile compounds monitoring and control. In Proceedings of the 2016 3rd International Conference on Electronic Design (ICED), Phuket, Thailand, 11–12 August 2016; pp. 212–215. [Google Scholar]
- Amir, N.S.; Abas, A.M.F.M.; Azmi, N.A.; Abidin, Z.Z.; Shafie, A.A. Chicken farm monitoring system. In Proceedings of the 2016 International Conference on Computer and Communication Engineering (ICCCE), Kuala Lumpur, Malaysia, 26–27 July 2016; pp. 132–137. [Google Scholar]
- Debauche, O.; Mahmoudi, S.; Mahmoudi, S.A.; Manneback, P.; Bindelle, J.; Lebeau, F. Edge computing and artificial intelligence for real-time poultry monitoring. Procedia Comput. Sci. 2020, 175, 534–541. [Google Scholar] [CrossRef]
- Kittisut, P.; Pornsuwancharoen, N. Design of information environment chicken farm for management which based upon GPRS technology. Procedia Eng. 2012, 32, 342–347. [Google Scholar] [CrossRef]
- Osorio H, R.; Tinoco, I.F.; Osorio S, J.A.; Souza, C.d.F.; Coelho, D.J.d.R.; Sousa, F.C.d. Air quality in a poultry house with natural ventilation during phase chicks. Rev. Bras. Eng. Agrícola Ambient. 2016, 20, 660–665. [Google Scholar]
- Maldonado, M.G.R. Wireless sensor network for smart home services using optimal communications. In Proceedings of the 2017 International Conference on Information Systems and Computer Science (INCISCOS), Quito, Ecuador, 23–25 November 2017; pp. 27–32. [Google Scholar]
- So-In, C.; Poolsanguan, S.; Rujirakul, K. A hybrid mobile environmental and population density management system for smart poultry farms. Comput. Electron. Agric. 2014, 109, 287–301. [Google Scholar] [CrossRef]
- Astill, J.; Dara, R.A.; Fraser, E.D.; Roberts, B.; Sharif, S. Smart poultry management: Smart sensors, big data, and the internet of things. Comput. Electron. Agric. 2020, 170, 105291. [Google Scholar] [CrossRef]
- Soussi, A.; Zero, E.; Sacile, R.; Trinchero, D.; Fossa, M. Smart Sensors and Smart Data for Precision Agriculture: A Review. Sensors 2024, 24, 2647. [Google Scholar] [CrossRef] [PubMed]
- Musa, P.; Sugeru, H.; Wibowo, E.P. Wireless Sensor Networks for Precision Agriculture: A Review of NPK Sensor Implementations. Sensors 2024, 24, 51. [Google Scholar] [CrossRef] [PubMed]
- Inga, E.; Cespedes, S.; Hincapie, R.; Cardenas, C.A. Scalable Route Map for Advanced Metering Infrastructure Based on Optimal Routing of Wireless Heterogeneous Networks. IEEE Wirel. Commun. 2017, 24, 26–33. [Google Scholar] [CrossRef]
- Ganán, C.; Inga, E.; Hincapié, R. Optimal deployment and routing geographic of UDAP for advanced metering infrastructure based on MST algorithm. Ingeniare. Rev. Chil. De Ingeniería 2017, 25, 106–115. [Google Scholar] [CrossRef]
- Peralta, A.; Inga, E.; Hincapié, R. Optimal Scalability of FiWi Networks Based on Multistage Stochastic Programming and Policies. J. Opt. Commun. Netw. 2017, 9, 1172–1183. [Google Scholar] [CrossRef]
- Ruiz, M.; Masache, P.; Dominguez, J. High Availability Network for Critical Communications on Smart Grids. In Proceedings of the IV School on Systems and Networks (SSN 2018), CEUR Workshop Proceedings, Valdivia, Chile, 29–31 October 2018; Volume 2178, pp. 13–17. [Google Scholar]






| Technology | f (GHz) | (dBm) | (dBm) | |
|---|---|---|---|---|
| Wi-Fi 2.4 GHz | 2.4 | 5 | 64 | |
| Wi-Fi 5 GHz | 5.0 | 18 | 64 | |
| Zigbee 802.15.4 | 2.4 | 10 | 50 | |
| Bluetooth BLE | 2.4 | 4 | 8 | |
| EnOcean | 0.868 | 6 | 255 | |
| Insteon | 0.915 | 3 | 255 | |
| Z-Wave | 0.9084 | 5 | 232 |
| Technology | Open Campus | Dense Industrial | Office Interior | Urban Exterior |
|---|---|---|---|---|
| Bluetooth BLE | 85.5 | 11.3 | 23.9 | 37.1 |
| EnOcean | 219.9 | 22.1 | 52.5 | 86.9 |
| Insteon | 261.8 | 25.1 | 61.0 | 102.0 |
| Wi-Fi 2.4 GHz | 33.3 | 6.0 | 11.1 | 16.1 |
| Wi-Fi 5 GHz | 56.3 | 8.5 | 17.0 | 25.6 |
| Zigbee 802.15.4 | 134.5 | 15.5 | 34.7 | 55.6 |
| Z-Wave | 213.9 | 21.6 | 51.3 | 84.7 |
| Parameters | Radius of Coverage: 15 m | Radius of Coverage: 25 m | Radius of Coverage: 45 m |
|---|---|---|---|
| Number of Transmitters | 72 | 72 | 72 |
| Number of Gateways | 23 | 23 | 23 |
| Optimal Number of Ports | 16 | 12 | 4 |
| Optimization Percentage | 30% | 48% | 82% |
| Parameters | Radius of Coverage: 15 m | Radius of Coverage: 25 m | Radius of Coverage: 45 m |
|---|---|---|---|
| Number of Transmitters | 41 | 41 | 41 |
| Number of Gateways | 20 | 20 | 20 |
| Optimal Number of Ports | 16 | 12 | 6 |
| Optimization Percentage | 20% | 40% | 70% |
| Devices | Latitude | Longitude |
|---|---|---|
| Environmental Transmitter 1 | N | O |
| Environmental Transmitter 2 | N | O |
| Environmental Transmitter 3 | N | O |
| Environmental Transmitter 4 | N | O |
| Physical Transmitter 1 | N | O |
| Physical Transmitter 2 | N | O |
| Physical Transmitter 3 | N | O |
| Physical Transmitter 4 | N | O |
| Physical Transmitter 5 | N | O |
| Physical Transmitter 6 | N | O |
| Office 1 | N | O |
| Office 2 | N | O |
| Parameters | Values |
|---|---|
| Transmission Power (dBm) | 0 |
| Minimum frequency (MHz) | 902 |
| Maximum frequency (MHz) | 928 |
| Line loss (dB) | 0.5 |
| Receiver Sensitivity (dBm) | −100 |
| Antenna Type | Omnidirectional |
| Antenna Gain (Dbi) | 2 |
| Loss By dB/m cables | 0 |
| Property | AT4–AT2 | AT3–AT1 | AT2–AT1 | AT1–OFFICE1 | OFFICE1–OFFICE2 |
|---|---|---|---|---|---|
| Free-space loss (dB) | 67.3 | 66.9 | 68.2 | 69.0 | 77.7 |
| Path loss (dB) | 73.9 | 73.9 | 75.3 | 76.0 | 85.5 |
| Urban loss (dB) | 1.5 | 1.5 | 1.5 | 1.5 | 1.5 |
| Rural loss (dB) | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| Receive level (dBm) | −70.9 | −70.9 | −72.3 | −73.0 | −82.5 |
| Relative reception (dB) | 29.1 | 29.1 | 27.7 | 27.0 | 17.5 |
| Fresnel zone radius (m) | 4.4 | 4.9 | 1.9 | 3.8 | 2.9 |
| Distance (m) | 60 | 60 | 70 | 70 | 200 |
| Antenna height (m) | 15 | 15 | 15 | 15 | 15 |
| Transmission possible | Yes | Yes | Yes | Yes | Yes |
| Property | PT6–PT4 | PT4–PT2 | PT5–PT3 | PT1–PT3 | PT3–PT2 | PT2–OF1 | OF1–OF2 |
|---|---|---|---|---|---|---|---|
| Free-space loss (dB) | 67.7 | 65.9 | 65.9 | 65.6 | 64.5 | 68.8 | 77.7 |
| Path loss (dB) | 76.0 | 74.2 | 73.6 | 73.4 | 71.9 | 76.2 | 85.5 |
| Receive level (dBm) | −73.0 | −71.2 | −70.6 | −70.4 | −68.9 | −73.2 | −82.5 |
| Relative reception (dB) | 27.0 | 28.8 | 29.4 | 29.6 | 31.1 | 26.8 | 17.5 |
| Fresnel zone radius (m) | 7.9 | 6.0 | 3.8 | 3.5 | 2.5 | 4.2 | 2.9 |
| Distance (m) | 60 | 50 | 50 | 50 | 40 | 70 | 200 |
| Antenna height (m) | 15 | 15 | 15 | 15 | 15 | 15 | 15 |
| Transmission possible | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
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. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Cortez, G.; Ruiz, M.; García, E.; Aguila, A. Model-Driven Wireless Planning for Farm Monitoring: A Mixed-Integer Optimization Approach. Eng 2025, 6, 369. https://doi.org/10.3390/eng6120369
Cortez G, Ruiz M, García E, Aguila A. Model-Driven Wireless Planning for Farm Monitoring: A Mixed-Integer Optimization Approach. Eng. 2025; 6(12):369. https://doi.org/10.3390/eng6120369
Chicago/Turabian StyleCortez, Gerardo, Milton Ruiz, Edwin García, and Alexander Aguila. 2025. "Model-Driven Wireless Planning for Farm Monitoring: A Mixed-Integer Optimization Approach" Eng 6, no. 12: 369. https://doi.org/10.3390/eng6120369
APA StyleCortez, G., Ruiz, M., García, E., & Aguila, A. (2025). Model-Driven Wireless Planning for Farm Monitoring: A Mixed-Integer Optimization Approach. Eng, 6(12), 369. https://doi.org/10.3390/eng6120369

