This protocol presents a cross-layer cyber-physical modeling and optimization strategy for intelligent greenhouse management, enabling reproducible assessment of reliability and ecological performance.
Method Article
This protocol presents a cross-layer cyber-physical modeling and optimization strategy for intelligent greenhouse management, enabling reproducible assessment of reliability and ecological performance.
Growing food demand and climate stresses drive smart agriculture implementation, but existing Cyber-Physical Systems (CPS) lack dependable cross-layer integration and real-time flexibility, limiting performance in dynamic environments. This protocol aims to provide a cross-layer cyber-physical modeling and optimization strategy for intelligent greenhouse agriculture. It demonstrates potential applicability for enhancing the reliability and adaptability of agricultural Cyber-Physical Systems. The approach integrates a physical layer with the Soil-Plant-Atmosphere Continuum model and Ensemble Kalman Filter (EnKF) calibration for accurate soil moisture prediction. It includes a network layer employing multi-protocol fusion with Stochastic Petri Net modeling to evaluate communication reliability. A control layer builds on a stochastic hybrid system to coordinate joint decision-making. Reliability is further assessed through a functional-temporal-ecological indicator framework, while optimization combines multi-objective reinforcement learning with safety constraints and Bayesian meta-learning to enable rapid adaptation during crop switching. An edge-intelligent deployment ensures robust control during communication interruptions. Results from greenhouse tomato cultivation in Shouguang, China, show reproducible and stable performance in yield prediction, water use efficiency, and control latency under challenging conditions. This methodology provides a practical and replicable workflow for implementing adaptive and reliable agricultural Cyber-Physical Systems.
The world population is growing rapidly, and resource availability is declining, which is transforming the way agriculture is developed. The conventional models of agriculture, where labor and material input are high, and the reliance on the natural circumstances is strong, cannot offer efficiency and sustainability. Smart agriculture has, in this case, become the transformative approach. It allows achieving a complete field perception, making accurate decisions, and controlling the field intelligently through the combination of the Internet of Things, big data analytics, artificial intelligence, and spatial information systems, which enhances the efficiency of the use of resources and contributes to sustainable agricultural production1,2.
The smart agriculture market is growing exponentially across the world, and the U.S. is growing in the technologies of precision agriculture, Israel in water-saving irrigation, and Japan in the sphere of smart greenhouse systems3. In China, the national agricultural and rural informatization development 14th five-year plan has led to the digital transformation of agriculture, which has resulted in advances in digital breeding, intelligent machinery, and scale-based smart agriculture projects4. Internet of Things (IoT) refers to a network of connected actuating and sensing devices that collect, exchange, and process data. However, even with these developments, there are still problems with the coverage of the IoT networks, sensor precision and dependability, information exchange among systems, and access to interdisciplinary understanding that limit extensive implementation5,6.
The Cyber-Physical Systems (CPS) of agriculture are at the center of this landscape in connecting the perception of the environment to intelligent control7. CPS combined both computational and physical processes that are connected with sensors, controllers, and communication networks. Nevertheless, existing modeling methods are usually based on the independence of the physical, network, and control layers, restricting the interaction of layers and decreasing the predictive ability during dynamic disturbances8. Existing reliability assessments also emphasize functional and temporal dimensions, while ecological reliability, such as water use efficiency and soil salinity constraints-remains underexplored9. Moreover, many optimization strategies rely on offline training, leading to delays in edge-based inference and difficulties in adapting to rapid environmental or crop changes10.
Sensor-based greenhouse monitoring is gaining popularity, but is still facing numerous hindrances preventing greater acceptance. System scalability and reliability are limited by high deployment costs and uneven sensor quality. The modeling methods used in sensor-based greenhouse monitoring are based on the premise of stable environmental conditions, consistent growth patterns of crops, and reliable transmission of information through communication networks. However, these assumptions are not valid under many conditions that occur inside greenhouses. These limitations indicate that there is a requirement to design and implement a framework capable of dealing with non-constant noisy readings from sensors, fluctuations in sensor power supply during the course of use, and periods of communication loss without compromising performance quality or implementation feasibility.
To address these limitations, this protocol introduces a reproducible cross-layer modeling and optimization workflow that integrates physical, network, and control processes into a unified framework. The physical layer employs a Soil-Plant-Atmosphere Continuum model with Ensemble Kalman Filter calibration for accurate soil moisture prediction11. The network layer uses multi-protocol fusion using a Stochastic Petri Net model to measure the reliability of communication. On the control level, a stochastic hybrid system allows joint cross-layer decision-making. Functional-temporal-ecological index system is used to measure reliability, multi-objective deep reinforcement learning is used to optimize that system, with safety constraints and Bayesian meta-learning, which is used to quickly adapt to crop switching. An edge-intelligent deployment also provides system robustness to system interruptions during communication. Combining these elements, the protocol offers a systematic and replicable way of improving the stability and flexibility of CPS applications in smart farming12.
This protocol is suitable for medium- to large-scale greenhouse environments (800-1500 m²) with diverse wireless sensor networks for soil, microclimate, and CO₂ monitoring. To provide real-time control, a minimum sample resolution of 5 min is recommended, with LoRa/NB-IoT communication necessary for multi-node deployment (>200 nodes). The workflow is demonstrated for greenhouse tomato production, but it can be applied to crops like cucumber, pepper, and leafy vegetables through parameter retuning and meta-learning transfer.
The protocol is based on a sequential working cycle where physical modeling determines the soil moisture, the network layer determines data transmission stability, and the control + optimization layers produce irrigation and fertilization policies which provide ecological and operational stability. Figure 1 depicts the proposed cyber-physical system cross-layer workflow.
Access restricted. Please log in or start a trial to view this content.
It is noted that no experiments on human beings or vertebrate animals are involved in this protocol. In case of any future studies that will involve human involvement or biological samples, this has to be approved by the concerned institutional review board, and the approval number must be recorded prior to implementation.
1. Site and hardware preparation
NOTE: This step builds a standardized sensor network, which gives precise and synchronized information about the environment to be used in subsequent physical modeling and control.
2. Physical layer modeling (Soil - Plant - Atmosphere Continuum (SPAC) and Ensemble Kalman Filter (EnKF))
NOTE: This phase approximates the soil, plant, and atmospheric interactions to produce correct estimates of soil moisture that are used to control irrigation.
is the rate of change of volumetric water content θ (m3) with respect to time t, h is the pressure head (cm), and K(θ) is hydraulic conductivity. The operator ∇ indicates the spatial gradient, and the expression (∇h+1) represents the total hydraulic gradient.![figure-protocol-3 Hydraulic conductivity equation, K(θ)=KsSe^l[1-(1-Se^(1/m))^m]^2 formula for soil physics analysis.](/files/ftp_upload/69826/69826eq10.jpg)
with n>1).
denotes the effective saturation increased to the pore-connectivity parameter l. Based on effective saturation Se, the van Genuchten hydraulic function term
describes non-linear soil water retention behaviorand shape parameter m.3. Network layer modeling (Heterogeneous Network and Stochastic Petri Net (SPN))
NOTE: This section assesses communication dependability to enable timely and continuous data delivery for control decisions.





4. Control layer modeling (MPC within SHS)
NOTE: This process maximizes the alternative of irrigation and fertilizing, as well as accommodating issues of communication.
5. Reliability quantification
NOTE: To evaluate the robustness of the systems in response to disturbances, this part evaluates both functional, temporal, and ecological dependability.
6. Optimization strategy
NOTE: This part maximizes control decisions to achieve optimal productivity, cost, and ecological stability, and still, rapid adaptability when changing crops.
Access restricted. Please log in or start a trial to view this content.
Soil moisture and SNR have the greatest positive SHapley Additive exPlanations (SHAP) influence on irrigation decisions, according to the SHAP summary plot (Figure 3). High latency drives the policy toward conservative fallback options, demonstrating conformity with the reliability-aware control architecture. Table 4 depicts operational instructions and configuration details for computational modules
Experimental setup
Access restricted. Please log in or start a trial to view this content.
The experimental evidence shows that the proposed CPS framework and optimization strategies excel across the three dimensions of reliability, safety, and computational efficiency. Cross-layer coupling modeling successfully overcomes the historical separation between physical and network representations. By embedding SPAC and SPN within a unified SHS framework, the system reduced yield prediction error by 32.7% and shortened delays by 45% under extreme high temperatures. Safety constraints ensured that ecological performa...
Access restricted. Please log in or start a trial to view this content.
The authors have nothing to disclose.
This work was supported by the Project of Huzhou College Scientific Research (Grant No. 2024HXKM15) and the Talent Research Startup Project of Huzhou College (Grant No. RK65010). The authors thank Shouguang National Modern Agricultural Industrial Park for providing experimental facilities and technical support. We also extend our gratitude to colleagues from Huzhou College and Zhejiang Agriculture & Forestry University for their valuable insights.
Access restricted. Please log in or start a trial to view this content.
| Name | Company | Catalog Number | Comments |
|---|---|---|---|
| Multispectral Camera | MicaSense | RedEdge-MX | Captures canopy reflectance for LAI estimation |
| NVIDIA Jetson Nano | NVIDIA | 945-13450-0000-100 | Edge device for local AI inference |
| Soil Moisture Sensor | Decagon Devices | EC-5 | Measures volumetric water content in soil |
| Weather Station | Campbell Scientific | CR300 | Records temperature, humidity, and rainfall |
Access restricted. Please log in or start a trial to view this content.
Request permission to reuse the text or figures of this JoVE article
Request Permission