Next Article in Journal
Seismic Fragility of Urban Rail Transport RC Solid Piers Considering Multiparameter Effects
Previous Article in Journal
Strain Prediction of Pile-Type Adjustable Wind-Turbine Foundation Caps Using XGBoost–SHAP Feature Selection and the TimeXer Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Construction of a Virtual Sensor-Driven Digital Twin System for Plant Growth Monitoring on Rooftop Farms

School of Architecture, Huaqiao University, Xiamen 361021, China
*
Author to whom correspondence should be addressed.
Buildings 2026, 16(12), 2326; https://doi.org/10.3390/buildings16122326
Submission received: 8 May 2026 / Revised: 31 May 2026 / Accepted: 9 June 2026 / Published: 10 June 2026
(This article belongs to the Section Architectural Design, Urban Science, and Real Estate)

Abstract

Rooftop farms are urban green infrastructure integrating food production, ecological regulation, and public services, and their management increasingly relies on data-driven approaches. However, open built environments, microclimatic heterogeneity, and limited sensor deployment challenge continuous monitoring and short-term prediction of rooftop plant growth. This study proposes and validates a virtual sensor-driven digital twin system using a rooftop tomato case in Xiamen, China. The system adopts a five-layer architecture comprising data acquisition, transmission, modeling, processing, and application service layers. By coupling a Long Short-Term Memory (LSTM) weather prediction model with the Decision Support System for Agrotechnology Transfer (DSSAT) crop growth model, a predictive virtual sensor module was developed to forecast leaf area index (LAI), aboveground biomass, phenology, and yield for seven days. Results show that the system links environmental data acquisition, LSTM–DSSAT prediction, database storage, and three-dimensional visualization, transforming rooftop plant growth into an updatable, predictable, and visualized digital twin object. The coupled model showed high predictive accuracy, with R2 values of 0.9814 for LAI and 0.9966 for aboveground biomass, while supporting phenology and yield prediction. The system supports irrigation optimization, landscape management, and activity planning in sensor-constrained rooftop farms.

1. Introduction

Since the beginning of the twenty-first century, global urbanization has continued to accelerate, and the urban built environment is facing unprecedented resource and ecological pressures. The United Nations World Urbanization Prospects: The 2018 Revision indicates that the proportion of the global population living in urban areas is projected to exceed 68% by 2050 [1]. Rapid urban expansion has occupied surrounding agricultural land at a rate far exceeding population growth [2]. Meanwhile, the food system generates substantial greenhouse gas emissions across production, processing, transportation, and consumption, and has become an important pressure that cannot be overlooked in urban low-carbon transitions [3]. The continuous shrinkage of urban green space further intensifies the urban heat island effect and threatens residents’ health and the stable provision of ecosystem services [4]. In response to these challenges, The United Nations Sustainable Development Goals (SDGs), particularly SDG 2 and SDG 11, focus on food security, sustainable agriculture, and inclusive, safe, resilient, and sustainable urban development, respectively, providing an important policy background for the development of urban agriculture and green infrastructure. The UN-Habitat World Cities Report 2022 also calls for greater policy investment in urban green production and environmentally friendly consumption [5]. These developments provide an important policy context for integrating urban agriculture and urban green infrastructure into the urban built environment as carriers that combine food production with ecosystem service functions. As a nature-based solution (NBS), this approach can help reduce urban carbon emissions and provide an effective pathway for securing food supply for urban residents [6].
Against this background, rooftop farms, as an innovative practice integrating urban agriculture with building-integrated green infrastructure, provide high-density cities with a solution for expanding green and productive spaces without requiring additional construction land. By cultivating crops on building rooftops, rooftop farms can improve rooftop thermal conditions, reduce building cooling loads through plant transpiration, shading, and substrate water retention, and, to a certain extent, shorten food transportation distances and reduce related carbon emissions [7,8]. In addition, compared with conventional green roofs, rooftop farms place greater emphasis on productivity, participation, and service functions. They not only provide fresh agricultural products but also create rooftop landscape spaces with productive, ornamental, and experiential value, thereby supporting horticultural education, community interaction, health-oriented recreation, and public activity organization [9,10]. Currently, rooftop farm practices have expanded from European and North American cities to high-density Asian cities such as those in China, Singapore, and Dhaka, Bangladesh, and have gradually been incorporated into urban green-space policies and agricultural environmental regulatory frameworks. For example, the LUSH 3.0 program of Singapore’s Urban Redevelopment Authority includes rooftop urban farms in the calculation of landscape replacement areas, while the European Union’s Common Agricultural Policy (CAP) is also promoting digital verification of agricultural activities, crop-status monitoring, and environmental compliance assessment [11,12]. This indicates that the development of rooftop farms involves not only the reuse of building space and the expansion of urban green space, but also the continuous monitoring of crop growth processes, the management of resource inputs, and the assessment of environmental performance. Therefore, rooftop farms have evolved from simple agricultural production spaces into multifunctional building-integrated green infrastructure that combines ecological regulation, food production, landscape display, and public-service functions.
Unlike conventional open-field agriculture or greenhouse cultivation, rooftop farms are typically located in open or semi-open building environments. Plant growth in these spaces is affected by regional climate, building height, roofing materials, shading, wind exposure, drainage conditions, and rooftop thermal conditions [13,14,15], resulting in high environmental openness and spatial heterogeneity. These spatial and environmental characteristics mean that rooftop farm management must address not only crop yield but also landscape maintenance, public activity planning, and social-service provision. To maintain their production, landscape, and public service functions, rooftop farms increasingly require refined, data-driven smart management. However, because rooftop farms are generally located on urban building roofs, the deployment and maintenance of the physical sensors required for smart management are often constrained by cost, spatial accessibility, power supply conditions, deployment density, and long-term maintenance difficulty. As a result, comprehensive and real-time perception of plant growth status and environmental information remains challenging [16]. This insufficient sensing capacity makes it difficult for managers to track plant growth status, phenological development, and potential risks in a timely manner, thereby increasing the operation and maintenance costs of rooftop farms and the uncertainty associated with the provision of public activities and social service functions.
In recent years, digital twin technologies have been increasingly applied to agriculture and plant management. In the field of plant landscape management, plants are the core elements of the landscape, and their growth is highly temporal and dynamic. Growth status, phenological development, and landscape effects continuously change with climatic fluctuations, substrate conditions, and management practices. Digital twins provide a framework for dynamically representing and updating the interactions between plant growth and complex environments. At present, digital twin studies on plant growth management in crop production mainly focus on several aspects. First, in facility environmental control, digital twins have been used in greenhouse horticulture to optimize climate, irrigation, and lighting strategies. For example, Hemming et al. used digital twin algorithms to remotely control greenhouses, significantly improving cherry tomato yield and resource use efficiency [17]. Howard et al. designed several digital twin systems that incorporated artificial lighting, irrigation, and temperature control into a joint optimization framework, thereby improving production efficiency and greenhouse energy savings [18,19]. Second, in crop growth simulation, digital twin technologies have been deeply integrated with crop growth models, such as the World Food Studies (WOFOST) model, the Decision Support System for Agrotechnology Transfer (DSSAT) model, and the Tomato Growth (TOMGRO) model. Through data assimilation, remote sensing or Internet of Things data can be used to dynamically correct model parameters and achieve accurate prediction of crop growth, development, yield, and quality [20,21,22]. Third, in precision field management, digital twins have been used to monitor soil moisture, guide intelligent irrigation, and predict pest and disease outbreaks [23,24]. Alves et al. developed a digital twin-based intelligent irrigation management system that simulated soil moisture dynamics using real-time data-driven models, thereby enabling water-saving irrigation [25]. Although digital twin research on plant growth management has made progress, most existing studies remain concentrated at the monitoring level, while predictive digital twins for whole-process management are still at an early stage [23]. Moreover, when digital twin technologies are applied to simulate complex living systems such as plants, they often lack fine-grained characterization of inter-plant differences and growth-process dynamics [26].
Given the demand of digital twins for continuous sensing and dynamic synchronization, virtual sensor technology provides key support for constructing plant growth digital twin systems under conditions of limited physical sensing. A virtual sensor is a software-defined sensor that estimates target variables by using mathematical models and algorithms based on measurements from other physical sensors [27]. In plant management, virtual sensors are mainly applied in two aspects. First, for environmental parameter estimation, particularly in response to the spatial heterogeneity of rooftop farm or greenhouse microclimates, Tomazzoli et al. [28] developed virtual sensors based on linear regression and context-aware recurrent neural networks. These sensors can accurately estimate temperature and humidity at arbitrary locations using data from a small number of sensors and can generate environmental heat maps for the entire space. Dai X et al. applied reinforcement learning to indoor environment control [29]. This method provides an effective approach for constructing refined environmental digital twins in rooftop farms with significant spatial heterogeneity. Second, for plant physiological parameter monitoring, leaf area index, aboveground biomass, phenology, and yield are core indicators for evaluating crop growth. Leaf area index (LAI) can be accurately retrieved by combining multispectral or hyperspectral images acquired from UAVs or near-ground remote sensing platforms with machine learning algorithms such as Gaussian process regression and random forests [30,31]. Aboveground biomass acquisition techniques mainly rely on LiDAR, RGB images, multispectral data, point cloud reconstruction, and machine learning inversion, emphasizing non-destructive, high-throughput, and multi-temporal monitoring [32,33,34]. The acquisition of phenology and yield information has gradually shifted from traditional manual phenological surveys to automated identification based on remote sensing, phenotyping, and machine learning [35,36,37,38]. The key physiological data obtained through these digital technologies provide support for constructing plant digital twins. Thus, existing virtual sensor research has expanded from environmental variable estimation to plant state variable retrieval, providing multi-source and non-destructive observational support for plant digital twins. However, these methods have not yet formed a systematic framework in rooftop farm scenarios that couples crop growth models with environmental prediction models.
Taken together, existing studies have laid a solid foundation for the application of digital twins and virtual sensors in plant growth management, but several limitations remain. First, most studies have focused on relatively standardized scenarios such as greenhouses or open fields. Greenhouse environments are highly controllable, while open-field environments are usually oriented toward regional-scale agricultural production. In contrast, rooftop farms combine open planting environments with architectural spatial attributes, and plant growth is jointly affected by uncontrolled environmental conditions and spatial heterogeneity, including building microclimate, rooftop thermal environment, and wind environment. This special scenario has received limited attention in existing research. Second, current digital twin applications mainly focus on environmental monitoring, state visualization, or simulation optimization of a single process, while predictive digital twin research oriented toward whole-process plant management remains insufficient. Third, existing agricultural digital twin studies mainly aim to improve crop yield, resource use efficiency, or environmental control optimization, paying limited attention to the social service functions of rooftop farms as public open spaces, such as landscape display, science education, harvest experiences, and community participation. Finally, under the practical constraints of limited physical sensor deployment in rooftop farms, there is still a lack of an integrated technical pathway for smart rooftop farm management that combines limited physical sensor data, weather prediction based on long short-term memory (LSTM), crop growth simulation based on the Decision Support System for Agrotechnology Transfer (DSSAT), virtual sensor mechanisms, and a three-dimensional (3D) visualization platform to achieve dynamic estimation, short-term prediction, and visual representation of plant growth status.
To address these gaps, this study uses a rooftop tomato farm in Xiamen, China, as a case study. An LSTM weather prediction model is coupled with the DSSAT crop growth model to form a virtual sensor module for rooftop farms, and a virtual sensor-driven plant growth digital twin platform is constructed. Compared with existing studies, the contributions of this study are as follows: (1) a digital twin framework for whole-process plant management in rooftop farms is proposed, which enables the integrated representation of key plant growth indicator monitoring, operation and maintenance decision-making, and three-dimensional visualization scenes, thereby providing a methodological reference for the smart operation and maintenance of rooftop farms and similar building green infrastructure systems; and (2) virtual sensor technology is introduced into rooftop farm scenarios, and a plant growth prediction method coupling LSTM-based weather prediction with DSSAT-based crop growth simulation is developed. This enables the system to combine short-term climate prediction with mechanism-driven plant state estimation under constrained physical sensor deployment, thereby realizing continuous estimation and dynamic simulation of plant growth status in rooftop farms under sensor-constrained conditions.

2. Construction of the Rooftop Farm Plant Digital Twin System

2.1. Framework Design of Digital Twin System for Rooftop Farm

A plant digital twin refers to the establishment of a digital mapping relationship between plant entities in the physical space and their corresponding virtual models. This mapping enables the continuous simulation and prediction of key variables during the growth process, thereby transforming plant growth states that would otherwise depend on fragmented observations or empirical judgment into updatable and computable digital processes.
Based on this concept, this study developed a digital twin system for rooftop farm plant growth, as shown in Figure 1. The operational workflow of the system consists of three main stages. First, plant and environmental data from the physical rooftop farm are collected as the original inputs for the establishment and operation of the digital twin system, allowing plant states to be objectively represented. Second, algorithmic models serve as the core of the digital twin system and are composed of a 3D spatial mapping model, a virtual sensor model, and a rule-based model. These models convert the collected data into algorithms that can be understood and executed by computer programs, and then perform calculation and inference to dynamically simulate and predict the plant growth environment and growth process. In this way, they provide the technical basis for the digital representation of the physical rooftop farm. Finally, the plant growth simulation results generated by the algorithmic models are transformed into descriptive information and predictive instructions. These outputs are then transmitted to controllers to regulate practical operations, such as irrigation, fertilization, and pruning, thereby forming a closed-loop process from sensing and simulation to intervention.

2.2. Overall Design of the Rooftop Farm Digital Twin System

The architectural design of digital twin systems has commonly been characterized by multilayer structures in research fields such as urban management, energy management, and community governance. Abdeen et al. [39] proposed a five-layer architecture for building- and city-level digital twin systems, consisting of a data acquisition layer, transmission layer, digital modeling layer, data/model integration layer, and service layer. Schweigkofler et al. [40] presented a four-layer system architecture for energy management, including a data acquisition layer, data integration layer, data visualization layer, and data analysis layer. Zhang Yuning et al. [41] proposed an architecture for smart community applications comprising four basic components: the facility layer, data layer, support layer, and application layer.
For rooftop farms, a digital twin system needs to establish a complete closed loop that links environmental perception, plant growth simulation, and management decision-making. This requires the multilayer architecture of the digital twin system to process heterogeneous data and large-scale data flows, while improving system scalability, flexibility, maintainability, and iterability. In response to the practical requirements of constructing a rooftop farm digital twin system, this study designed a five-layer system architecture, as shown in Figure 2. The architecture consists of a data acquisition layer, a data transmission layer, a model layer, a data processing layer, and an application service layer.

2.2.1. Data Acquisition Layer

During the growth process, rooftop farm plants are jointly affected by natural environmental conditions and artificial management conditions, showing characteristics in which ecological processes and physical forms are intertwined. Therefore, the real-space data constructed for the digital twin system should cover both ecological processes and physical forms, so as to characterize the environmental context and spatial carrier in which plant growth occurs.
Ecological data are mainly used to represent the environmental conditions on which plant growth depends and the corresponding plant growth status. They provide the basis for driving the simulation and prediction of plant growth processes. This type of data is centered on environmental factors and plant factors, including meteorological conditions, weather conditions, soil characteristics, plant species, plant quantity, field management, and spatial morphology. These data are used to characterize the environmental background of the rooftop farm and the plant response process.
Physical-form data focus on describing the morphological characteristics and landscape composition of the rooftop farm as a built space, reflecting the spatial carrier and environmental structure in which plant growth takes place. This type of data is organized around spatial form and landscape elements, including roof slope, functional zoning, planting layout, and landscape and facility configuration. These data support the mapping between physical and virtual spaces and the visual representation of plant growth status in the digital environment.
Compared with ground-level farms or greenhouse facilities, rooftop farms are usually smaller in scale, more complex in spatial layout, and more demanding in terms of high-precision data acquisition. Therefore, at the rooftop farm experimental site selected in this study, smartphone photography, real-time sensor data acquisition, manual field surveying, and web data crawling were mainly used to obtain and analyze data related to the physical environment, spatial characteristics, and plant management of the rooftop farm, thereby ensuring the comprehensiveness and accuracy of the research results.

2.2.2. Data Transmission Layer

The core function of the data transmission layer is to ensure that information obtained from data sources can be effectively transmitted to subsequent layers, thereby supporting model construction and further analysis. The experimental site of this study is located on a campus rooftop. Under this condition, discrete point observations from physical sensors alone are insufficient to continuously and comprehensively characterize the plant growth environment and related state variables. Moreover, the large-scale deployment of physical sensors is costly and relatively complex.
To address this issue, the data sources of the virtual sensor in this study were divided into two categories. The first category consisted of real-time meteorological data collected by physical sensors, namely the small weather station installed at the site. This device automatically uploaded daily meteorological data to a server via the network, and scripts were written to retrieve these data regularly from the corresponding website. The second category included soil data measured using laboratory instruments, cultivar genetic parameters, field management and management knowledge data (water management). These data were entered only once during system initialization.
After the two types of data were integrated, a scheduled script was used to drive the DSSAT model for daily computation. The model outputs were automatically written to text files. The script then read these files and stored the key fields in a MySQL database (v8.0.39). The digital twin platform was directly connected to the corresponding database fields through interfaces, enabling real-time display and dynamic updating of plant growth status.
To enable linkage between data and scenes, the 3D spatial mapping model were imported into the digital twin platform and loaded and visually rendered in real time by the platform rendering engine. In this workflow, data transmission was achieved through network communication, script-based downloading, local file reading and writing, 3D spatial mapping model file import, and database connections. Together, these components formed a complete transmission chain from the data sources and model layer to the application service layer.

2.2.3. Model Layer

The model layer is the core of the rooftop farm plant growth digital twin system. It is used to construct and run various models for simulating and predicting plant growth conditions. In this study, the model layer consisted of three components: the 3D spatial mapping model, the virtual sensor model, and the rule-based model.
Three-Dimensional Spatial Mapping Model
The core task of the 3D spatial mapping model is to digitally represent the physical form, planting areas, and plant distribution of the real rooftop farm. By establishing the correspondence between plant growth objects and their surrounding spatial environment, the model provides a spatial basis for the subsequent dynamic representation and visualization of plant growth status.
In this study, the 3D spatial mapping model was constructed using SketchUp (v2018) and SpeedTree (v9.5.2). SketchUp was used to rapidly generate the 3D scene model representing the actual site conditions, while SpeedTree was used to create more detailed plant simulation models. These tools improved the efficiency and accuracy of three-dimensional modeling and helped reproduce the plant growth process in the virtual environment, thereby enhancing the visualization and interactivity of the digital twin platform. On this basis, the constructed scene model and plant simulation models were imported into the digital twin visualization development platform. Through the built-in rendering engine of the platform, a one-to-one correspondence between the physical space and the digital space was established, providing support for subsequent plant growth data linkage, state updating, and scene interaction.
Rule-Based Model
A rule-based model refers to a decision-making model constructed based on historical data, expert knowledge, and predefined logical conditions. Its main purpose is to identify plant growth status through explicit judgment rules and further support the formulation of management decisions.
In this study, the rule-based model was mainly used to support decision-making for plant growth management. Based on the plant state variables output by the virtual sensor, including leaf area index, phenology, aboveground biomass, and yield, and combined with meteorological conditions and management knowledge data, the rule-based model is used to establish management judgment logic for different growth stages.
Virtual Sensor Model
Virtual sensor model construction included the mechanistic model, the data-driven model, and model calibration and validation. In this study, the virtual sensor refers to a predictive soft-sensing module jointly composed of the data-driven model and the mechanistic model under the condition of limited physical sensor deployment in rooftop farms. This module transformed limited environmental observation data, soil parameters, cultivar genetic parameters, and field management information into continuous estimation and short-term prediction of key plant growth states. It was used to characterize state variables that are difficult to obtain at low cost, continuously, and non-destructively, including leaf area index, aboveground biomass, phenology, and yield.
The virtual sensor model consisted of three parts: the mechanistic model, the data-driven model, and model calibration, training, and validation.
(1)
Mechanistic Model: A mechanistic model is constructed by logically representing the operating process of a system and relies on explicit physical, chemical, or biological mechanisms. In this study, the Decision Support System for Agrotechnology Transfer model, abbreviated as DSSAT, was adopted. DSSAT is one of the most widely used crop models and can simulate crop growth and development on a daily basis. It has been widely applied in agricultural yield forecasting, soil water and fertilizer management and evaluation, assessment of climate impacts on agriculture, and agricultural production risk assessment [42,43]. In the specific environmental context of rooftop farms, the systematic description of the soil–plant–atmosphere continuum provided by the DSSAT model enables these rooftop-specific conditions to be incorporated into the simulation framework. This allows plant growth status under current environmental conditions to be evaluated and provides a scientific basis for optimizing management measures such as irrigation and fertilization.
(2)
Data-Driven Model: A data-driven model predicts or estimates target variables by training on large amounts of historical data using machine learning or artificial intelligence algorithms. Such methods have been widely applied in fields requiring high-precision prediction and fault management [44,45]. In this study, to achieve predictive simulation, meteorological forecast data for future periods needed to be used as input variables for the plant growth model. Given the inherent time-series characteristics of meteorological variables, Long Short-Term Memory (LSTM) networks have been widely used in related prediction tasks in recent years. Several international studies have shown that LSTM can capture short- and medium-term climatic fluctuations, such as changes in temperature and precipitation [46,47]. Therefore, this study adopted LSTM to construct the meteorological prediction model. By learning from historical meteorological data, the model generated daily meteorological forecasts for the next seven days, which were then used as input variables for the DSSAT model to predict future changes in LAI, aboveground biomass, phenology, and yield.
(3)
Model Calibration, Training, and Validation: Model calibration, training, and validation were conducted to ensure that the virtual sensor model could provide reliable simulation and prediction outputs for the digital twin platform. To ensure the simulation and prediction accuracy of the virtual sensor model, the DSSAT model was calibrated, the LSTM model was trained, and both sub-models were subsequently validated.

2.2.4. Data Processing Layer

The data processing layer is the intermediate layer connecting the data acquisition layer, model layer, and application service layer. It is mainly used to uniformly organize, manage, and transform the multi-source heterogeneous data generated during the operation of the digital twin system. This layer converts meteorological data, soil data, plant growth data, three-dimensional spatial data, and management knowledge data into data resources that can be called for model computation and platform visualization, thereby supporting subsequent plant growth simulation, prediction analysis, and visual representation.
In this study, the data processing layer mainly included four components: database construction, data cleaning, data integration, and data–model integration. Database construction was used to uniformly store plant growth status, model output results, and management-related data, providing a stable basis for data calls within the system. Data cleaning was used to organize data from different sources, formats, and temporal scales, ensuring the consistency of fields, units, and temporal information. Data integration was used to uniformly organize ecological process data, spatial morphology data, management knowledge data, and model output data, forming a data structure for the rooftop farm digital twin system. Data–model integration was used to connect raw data, algorithmic models, and the application platform, enabling the meteorological prediction model, crop growth model, rule-based model, and three-dimensional mapping model to operate collaboratively.
Through the above processing, the data processing layer realized the transformation from raw data to model inputs, model outputs, and platform-callable data. It provided the data basis for the dynamic updating, short-term prediction, and management decision-making display of plant growth status in rooftop farms.

2.2.5. Application Service Layer

The application service layer is the user-oriented functional output layer of the rooftop farm plant growth digital twin system. It integrates and visualizes data and mainly supports data visualization, plant growth simulation and prediction display, and management decision-making and social service functions. In this study, the front-end application service was implemented using the Shanhaijing Visualization development platform (v4.4.1), which integrates and displays the physical morphology data, surrounding environmental data, and plant growth simulation and prediction data of the rooftop farm. The visualization content includes not only spatial environmental information, such as buildings, roads, trees, and planting areas, but also key plant growth indicators, including anthesis date, maturity date, yield, aboveground biomass, and leaf area index. This enables the dynamic and intuitive representation of the plant growth process in the rooftop farm.
On this basis, the application service layer further transforms model outputs into service information for management and user-oriented scenarios. On the one hand, it provides managers with support for identifying plant growth status, determining phenological stages, and making operation and maintenance decisions related to irrigation, fertigation, and pruning. This helps reduce uncertainty in the management process and improve the efficiency of refined operation and maintenance. On the other hand, prediction results such as anthesis and maturity dates can provide temporal references for social service activities, including harvesting experiences, science education, ornamental activities, and community participation. In this way, the service capacity and social benefits of the rooftop farm as a public open space can be enhanced. Through these functions, the application service layer extends the role of the digital twin system from data display to management support and further to social service response, making it a key component for realizing the practical value of the system.

3. Experimental Design and Methods

3.1. Experiment Design

In this study, the rooftop on the fourth floor of the Li Chaoyao Building at the Xiamen Campus of Huaqiao University was selected as the experimental site, which is located in Xiamen, Fujian Province, China (Figure 3). Xiamen is located on the southeastern coast of Fujian Province and has a typical subtropical maritime monsoon climate, characterized by hot summers, warm winters, and mild and humid conditions. The annual average temperature is approximately 22 °C, and precipitation is abundant, making the region suitable for the growth and development of various types of vegetation. However, typhoons frequently occur from July to September each year, and natural conditions such as high humidity, high salinity, and high wind speed pose challenges to rooftop cultivation.
In terms of the distribution of urban rooftop space resources, the green roof area of low-rise buildings, namely buildings with one to six floors, accounts for 70.6% of the total green roof area in Xiamen [48]. This indicates that low-rise buildings are the main carriers of rooftop greening in this region. Based on this condition, the height of the experimental site is representative of low-rise buildings, and the experimental results can provide a reference for the optimized management and wider application of rooftop farms on similar low-rise buildings in southeastern coastal areas.
Tomato was selected as the experimental crop, and the cultivar was Fenguan No. 1 (Figure 4). Tomato was chosen as the research object because it has both productive and ornamental value and can therefore reflect the multifunctional characteristics of rooftop farms. In addition, its phenological stages are clear, and key indicators such as leaf area index, aboveground biomass, and yield are relatively easy to monitor, making it suitable for data collection in plant growth simulation and prediction. Moreover, tomato is sensitive to changes in temperature, light, and water conditions, and can clearly reflect the influence of the rooftop microclimate on plant growth. It is therefore appropriate for validating the applicability of the virtual sensor-driven digital twin method proposed in this study in rooftop farm scenarios.
In this experiment, 24 tomato seedlings were transplanted on 27 September 2024. Pot cultivation was adopted. Each planting pot was approximately 39 cm in height and 40 cm in diameter, with one plant grown in each pot. The planting density was 5 plants/m2, and the transplanting depth was 5 cm. A small weather station was installed at the site to monitor air temperature, humidity, and photosynthetically active radiation in real time. The soil type was sandy loam, with an effective soil depth of 30 cm. Field management practices, including pruning, lateral shoot removal, and pest and disease control, were carried out according to conventional cultivation management standards.

3.2. Data Collection Methods

Data collection was conducted in the tomato experimental area on the rooftop of the fourth floor of the Li Chaoyao Building at the Xiamen Campus of Huaqiao University from 27 September 2024 to 29 January 2025. The collected data included four categories: physical environment data, growth environment data, plant growth data, and management knowledge data. These data were mainly obtained through field surveying and mapping, on-site photography, continuous monitoring by the weather station, soil sample measurement, regular field observations, and literature review.
(1)
Physical environment data collection: The overall geometric structure of the rooftop, air-conditioning equipment, ventilation pipelines, drainage system, planting troughs, and planting substrate were obtained through field surveying and mapping. All surveying data were stored in the form of CAD architectural drawings, providing basic materials for the subsequent construction of the three-dimensional rooftop farm scene.
(2)
Growth environment data collection: Growth environment data included meteorological data and soil data. Meteorological data were continuously collected by a small weather station installed in the rooftop tomato planting area. The collection period covered the entire process from tomato transplanting to the end of observation, namely from 27 September 2024 to 29 January 2025, and the data were exported from the device cloud platform. The variables recorded by the sensors included air temperature, air humidity, rainfall, and photosynthetically active radiation. The collected data were automatically stored by the platform.
The soil used in this study was sandy loam. Soil bulk density, field capacity, wilting point, clay content, silt content, initial soil water content, pH, and organic matter content were measured at different soil depths using standard laboratory procedures. These parameters were used to construct the DSSAT soil input file, and the measured soil properties are presented in Table 1. The measurement of meteorological and soil data provided input and validation data for the operation of the virtual sensor.
(3)
Plant growth data collection: Plant growth data included leaf area index (LAI), phenology, aboveground biomass, yield, and plant growth traits.
LAI measurements began on the 10th day after transplanting and were conducted once per week. During the early transplanting stage, the plants were still in the seedling recovery period, and leaf growth and canopy development had not yet stabilized. Therefore, 10 days after transplanting was selected as the starting point for monitoring to reduce the influence of transplanting disturbance on the observations. Weekly monitoring covered the major stages of tomato growth, including vegetative growth, flowering and fruiting, and later-stage decline, and met the data requirements for the stage-based calibration and validation of the crop growth model. The observation dates covered the main tomato growth stages, allowing the dynamic changes in LAI to be characterized more completely.
At each observation date, LAI was measured using an LAI-2200C Plant Canopy Analyzer (LI-COR Biosciences, Lincoln, NE, USA). For each measurement, one above-canopy reading and multiple below-canopy readings were taken around the tomato canopy according to the instrument operating procedure. The measurements were conducted under diffuse light conditions as far as possible to reduce the influence of direct solar radiation. The mean LAI value was then calculated and recorded for subsequent model validation (Table 2). The data collection of LAI, phenology, aboveground biomass, and yield provided data references for the validation of the virtual sensor, while the collection of plant growth traits provided data references for the 3D Spatial Mapping Model.
Phenological stages were determined through field observation and manual recording. The recorded phenological indicators included the transplanting date, anthesis date, defined as the date when the first flower had opened on 50% of the plants, and maturity date, defined as the date when the first truss of fruit had matured on 50% of the plants. All phenological data were recorded manually (Table 3). In addition, to avoid the peak typhoon season from July to September, the tomato seedlings were transplanted on 27 September 2024.
Aboveground biomass was measured by oven-drying and weighing. Measurements were conducted five times. At each sampling time, three vigorous plants with normal growth status were randomly selected for destructive sampling. After sampling, the plant materials were placed in an oven and dried to a constant weight. The samples were then weighed using a laboratory electronic balance, and the data were recorded (Table 4).
Tomato yield was determined by recording the average number of fruits per plant and the average single-fruit weight, and the total fruit yield per hectare was then estimated based on planting density.
Plant growth traits were recorded every seven days using a ruler and a smartphone camera. The recorded traits included plant height, stem diameter, number of branches, maximum leaf length and width, number of leaves, fruit size, number of fruits, leaf color, stem and fruit color, plant morphology, number of flower trusses, and number of flowers.
(4)
Management knowledge data collection: To construct a rule-based model for plant growth management decision-making, this study collected empirical data on tomato cultivation management through a literature review. The data were mainly obtained from relevant journal articles, dissertations, and cultivation technical materials indexed in China National Knowledge Infrastructure (CNKI). The search focused on studies related to potted tomato cultivation management, and systematically summarized management strategies for irrigation, fertilization, and canopy index regulation throughout the whole growth period.
These data were mainly used to extract management thresholds, regulation principles, and implementation conditions with practical reference value for tomato cultivation. On this basis, a rule-based model was constructed to provide support for management decisions related to irrigation, fertigation, and pruning in the rooftop farm plant growth digital twin system.

3.3. Three-Dimensional Spatial Mapping Model Construction Methods

The construction of the 3D spatial mapping model was based on the physical environment data and plant growth trait data of the rooftop farm collected in Section 3.2. SketchUp was used to construct the site model of the rooftop farm, mainly including spatial elements such as the rooftop platform, planting areas, pathways, drainage facilities, air-conditioning equipment, and surrounding structures. The plant models were constructed using SpeedTree. According to the morphological characteristics of tomato plants at different growth stages, plant models were established for the seedling stage, flowering stage, and maturity stage.
After modeling was completed, scale correction, coordinate unification, and object naming were conducted for the site model and plant models, and the models were then combined according to the actual planting positions. Finally, the models were converted into binary glTF (.glb) format, which can be read by the digital twin visualization platform, providing a basis for subsequent data binding of LAI, aboveground biomass, phenology, yield, and other variables.

3.4. Rule-Based Model Construction Methods

The rule-based model was constructed based on the management knowledge data collected in Section 3.2. It was used to transform tomato cultivation experience into management judgment logic that can be called by the system. In this study, the collected management knowledge was first classified and organized into three types of rule content: irrigation management, fertilization management, and canopy regulation. Then, the applicable growth stages, judgement conditions, and management recommendations in each type of rule were extracted. Finally, these rules were organized into a “condition–judgement–recommendation” rule structure.
According to the plant state variables output by the virtual sensor, including LAI, phenology, aboveground biomass, and yield, the rule-based model generated management recommendations for irrigation, fertilization, pruning, and harvesting activity arrangements.

3.5. Virtual Sensor Model Construction Methods

3.5.1. LSTM Weather Prediction Model Construction and Training Methods

LSTM Weather Prediction Model Construction Methods
In this study, weather prediction was incorporated as an important component of the virtual sensor. A data-driven model based on Long Short-Term Memory (LSTM) was developed to predict meteorological variables for the following seven days, thereby providing continuous environmental inputs for the subsequent DSSAT crop growth model. The input data were derived from historical observation sequences recorded by the rooftop on-site weather station, covering the period from January 2020 to February 2025. The raw data consisted of minute-level continuous records, with 1440 records per day, including minimum temperature, maximum temperature, rainfall, and solar radiation.
To satisfy the requirements of the LSTM model for time-series data, the original minute-level data were aggregated to the daily scale. Specifically, the daily maximum temperature was taken as the maximum value of each day, the daily minimum temperature as the minimum value of each day, the daily rainfall as the cumulative daily value, and the daily solar radiation as the cumulative daily value. To eliminate the influence of differences in feature scales on model training, Min–Max normalization was applied to scale all feature values to the range of [0, 1].
For sample construction, the daily meteorological data were transformed into time-series samples using a sliding-window strategy. The meteorological features of seven consecutive days were used as the input sequence to predict the corresponding meteorological variables for the following day. The model output variables included daily maximum temperature, daily minimum temperature, daily rainfall, and daily solar radiation.
LSTM Weather Prediction Model Training Methods
The preprocessed samples were divided chronologically into a training set and a test set, with 80% of the samples used for training and 20% used for testing. The training set was further divided into an actual training subset and a validation subset. The validation subset was used to monitor the training process and assist in adjusting model parameters. No random shuffling was performed during data partitioning in order to preserve the continuity of the meteorological time series.
The model architecture consisted of three LSTM hidden layers and one fully connected output layer, with a hidden dimension of 64. The Adam optimizer was used with an initial learning rate of 0.001, and L2 regularization was applied using a weight decay coefficient of 1 × 10−5. A weighted mean squared error was adopted as the loss function to balance the loss contributions of different meteorological variables during joint training. During training, a cosine annealing learning rate scheduling strategy was used, with T_max set to 2000, and the maximum number of training epochs was set to 10,000.
After training was completed, the LSTM model generated daily meteorological data for the following seven days using a rolling prediction strategy. Specifically, the meteorological sequence of the most recent seven days was used to predict the meteorological variables for the first future day. The predicted results were then added to the input sequence to continue predicting the subsequent dates until the sequences of daily maximum temperature, daily minimum temperature, rainfall, and solar radiation for the following seven days were obtained. These prediction results were subsequently used as future meteorological inputs for the DSSAT model.

3.5.2. DSSAT Plant Growth Simulation Model Construction Methods

The construction of the DSSAT model requires the input of weather data, soil data, field management data, and cultivar genetic parameters. Based on these inputs, the model was established and calibrated. According to the data acquisition methods described in Section 2, the required datasets were prepared and imported into the model.
(1)
Construction of weather data: The weather data obtained from the microclimate observation station at the Li Chaoyao Building, Xiamen Campus of Huaqiao University, from 2024 to 2025 were organized and imported using the WeatherMan weather module according to the format required by the DSSAT model. The input data included the latitude, longitude, and elevation of the observation station, as well as daily maximum temperature, daily minimum temperature, rainfall, and photosynthetically active radiation.
(2)
Construction of soil data: The experimentally measured soil parameters were entered into the SBuild module. The soil type used in the experiment was sandy loam, and its soil properties are presented in Table 1.
(3)
Construction of field management data: The field management data during the 2024 experimental growth period were entered into the XBuild module. These data included the selection of the tomato cultivar, the constructed weather and soil files, the setting of the simulation period, and the configuration of management parameters such as planting density and transplanting date.
(4)
Construction of cultivar genetic parameters data: The determination of crop cultivar genetic parameters is a key step in model calibration, as these parameters define the genetic characteristics, developmental traits, and growth parameters of the cultivar. Since the tomato cultivar used in this study, Fenguan No. 1, was the same as that used in Zhao Zilong’s study, and the experimental design was similar, the calibrated cultivar genetic parameters from that study were directly adopted as model inputs in the present study [49]. This parameter set covers the simulation and validation of key indicators, including yield, leaf area index, aboveground biomass, flowering date, and maturity date (Table 5).

3.5.3. LSTM–DSSAT Coupled Plant Growth Prediction Methods

In this study, plant growth prediction was conducted by coupling the LSTM data-driven model with the DSSAT mechanistic model. In this coupled framework, the LSTM model was used to generate short-term future weather drivers, while the DSSAT model converted these weather drivers into plant growth state variables. Specifically, the coupling process between LSTM and DSSAT consisted of four steps. First, the historical meteorological data collected by the rooftop weather station were aggregated and preprocessed at the daily scale, and the meteorological sequence of seven consecutive days was used as the input of the LSTM model. Second, the trained LSTM model generated daily meteorological variables for the following seven days, including Maximum Temperature, Minimum Temperature, Daily Accumulated Rainfall, and Daily Solar Radiation. Third, the predicted meteorological variables were written into the weather file in the format required by DSSAT and were used as DSSAT inputs together with constant data, including soil parameters, planting schemes, field management practices, and crop cultivar genetic parameters. Finally, DSSAT output plant state variables, including leaf area index, aboveground biomass, phenology, and fresh weight, which were then written into the MySQL database by scripts for access by the digital twin platform.
On this basis, to automate the prediction workflow, the model input data were divided into two categories: constant data and variable data. The constant data included soil parameters, planting schemes, field management practices, crop cultivar genetic parameters, and the initial configuration of the weather file, which were completed once during system initialization. The variable data consisted of meteorological variables, which needed to be dynamically updated each day and inserted into the weather file in a rolling manner. A Python (v3.12) script launched at a fixed time each day first called the trained LSTM model and generated a seven-day daily weather forecast sequence based on the latest measured meteorological data. The forecast was updated daily using the latest observed meteorological data (Code S1). The script then automatically wrote the forecast results into the DSSAT weather file in .WTH format, replacing the old data for the corresponding dates (Code S2). Through scheduling by Windows Task Scheduler, the DSSAT model was automatically run once per day and performed daily simulations based on the updated weather file and the preset constant data. After the simulation was completed, the script read the Summary.OUT output file generated by DSSAT, extracted the key growth indicators, converted them into the required format, and stored them in the MySQL database (Code S3). Finally, the digital twin visualization platform called the relevant data through the database interface to realize the dynamic display and update of plant growth status.

3.5.4. Model Validation and Evaluation Metrics

Model validation was conducted using measured data independent of the calibration or training period. The coefficient of determination (R2), root mean square error (RMSE), absolute relative error (ARE), and normalized root mean square error (nRMSE) were used to evaluate model performance and accuracy. R2 was used to evaluate the goodness of fit of the model; the closer the R2 value is to 1, the better the predictive performance of the model [50]. RMSE mainly measures the difference between predicted values and observed values, with smaller RMSE values indicating higher accuracy [51]. ARE and nRMSE are positively related to model simulation error; that is, smaller values indicate lower simulation error. For ARE, a machine learning or regression model is generally considered highly accurate when A R E < 10%, and relatively accurate when 10% A R E < 20%. The value of nRMSE ranges from 0 to 1 and is used to describe simulation performance by reflecting the average relative deviation between simulated and observed values. When nRMSE < 10%, the model simulation accuracy is considered high; when 10% n R M S E < 20%, the simulation accuracy is considered relatively high; when 20% n R M S E < 30%, the model shows moderate deviation; and when n R M S E 30%,the simulation results are considered to have large errors compared with the observed results [52].
In this study, these indicators were used to test the performance of the DSSAT and LSTM models separately. For the DSSAT model, R2, RMSE, ARE, and nRMSE were used to evaluate the simulation performance for key growth indicators, including leaf area index, aboveground biomass, and phenology, in order to determine whether the calibrated model could accurately represent the growth process of rooftop farm tomatoes. For the LSTM model, these indicators were used to compare predicted meteorological variables with observed meteorological data, with a particular focus on the prediction performance for temperature, precipitation, and photosynthetically active radiation. This evaluation was conducted to determine whether the LSTM model could provide reliable future meteorological inputs for the DSSAT model. Based on the combined results of these evaluation indicators, the two sub-models were assessed to determine whether they met the accuracy requirements for subsequent virtual sensor coupling simulation and digital twin platform application.
The four evaluation metrics were calculated using the following equations:
R 2 = 1 i = 1 n y i y 2 2 i = 1 n y i y ¯ 2
R M S E = i = 1 n y i y i 2 n
A R E = S i M i M i × 100 %
n R M S E = 1 n i = 1 n S i M i 2 M ¯ × 100 %
where y i denotes the observed value, y i denotes the fitted value, y ¯ denotes the mean of the observed values, and n denotes the number of data points. S i   M i and M ¯ denote the i -th simulated value, the i -th measured value, and the mean of the measured values, respectively.

3.6. Data Processing Methods

The data processing layer was used to uniformly organize, manage, and transform the multi-source heterogeneous data involved in the operation of the digital twin system. It mainly included four components: database construction, data cleaning, data integration, and data–model integration. The data processing workflow is shown in Figure 5.
For database construction, a MySQL relational database was used to store and manage plant growth simulation and prediction data. The preprocessed data were imported into the database according to predefined field-mapping rules. The main fields included date, record type, leaf area index, aboveground biomass, anthesis date, maturity date, yield, number of irrigation events, and total irrigation amount, providing a basis for model result storage and platform calls.
For data cleaning, the raw data required unified preprocessing because of differences in data sources and formats, including on-site images, field surveying files, sensor-recorded data, and management knowledge data compiled from literature and online materials. The preprocessing procedures included format organization, field standardization, temporal alignment, outlier and missing-value checking, and the unification of variable names and units, so as to ensure the consistency of data calls and model computation.
For data integration, different types of data were organized according to their functions. Meteorological data, soil data, crop management data, and plant variety parameters were used as basic inputs for the operation of the virtual sensor model. Plant growth observation data were used for model validation. Management knowledge data were used to construct the rule-based model, while site data and plant growth trait data were used to construct the 3D spatial mapping model. These data were therefore organized into data resources that could be called by the digital twin system.
For data–model integration, meteorological observation data were first input into the LSTM model to generate meteorological prediction sequences for the following seven days. The predicted meteorological data, together with soil data, crop management data, and plant variety parameters, were then input into the DSSAT model to simulate and predict plant growth status. The DSSAT output files, including Summary.OUT, PlantGro.OUT, and MgmtOps.OUT, were parsed by Python scripts, and results such as leaf area index, aboveground biomass, phenology, yield, and irrigation information were written into the MySQL database. Meanwhile, management knowledge data were organized into the rule-based model, while site data and plant growth trait data were used to construct the 3D spatial mapping model. Finally, the database, 3D model files, and rule-based model were jointly connected to the Shanhaijing-based digital twin visualization platform, enabling linked display among data, models, and the visualization interface.
For platform selection, Shanhaijing Visualization was selected as the front-end display platform. The platform supports multiple data formats and connection methods, such as GLB files, Excel spreadsheet (XLS) files, and application programming interfaces (APIs), and provides functions for data binding and interactive design, meeting the requirements for dynamic updating and visual display of plant growth data in rooftop farms.

3.7. Application Service Layer Construction Methods

This section describes the construction methods of the application layer of the rooftop farm plant growth digital twin platform. Based on the preceding data collection, model construction, and data processing results, Shanhaijing Visualization was used as the front-end platform to integrate meteorological data, plant growth data, site environment data, and management knowledge data. Through database calls, 3D scene binding, and rule information display, the model outputs were transformed into functional modules of the platform. The platform integration workflow is shown in Figure 6. The following subsections describe the integration of weather data, plant growth data, site environment data, and management knowledge data, respectively.

3.7.1. Weather Data Integration

Weather data integration aims to provide continuously updated environmental background information for the digital twin platform and to offer climatic support for interpreting plant growth monitoring and prediction results. As shown in Figure 6, the weather data used in this study consist of two parts. The first part is the real-time observation data collected by the small on-site weather station, which mainly reflect the current microclimatic conditions of the rooftop farm. The second part is the seven-day daily weather prediction sequence generated by the LSTM model, which supports subsequent plant growth prediction.
In the integration workflow, the real-time weather observation data are first preprocessed and standardized to form platform-callable weather data. Meanwhile, the historical weather observation data are input into the LSTM model for training and prediction, generating meteorological variables for the following seven days, including Maximum Temperature, Minimum Temperature, Daily Accumulated Rainfall, and Daily Solar Radiation. On the one hand, the prediction results are written into the weather file required by the DSSAT model as driving inputs for plant growth prediction. On the other hand, both the real-time weather data and the predicted weather data are parsed by scripts and written into the MySQL database, forming weather data resources that can be directly accessed by the platform.
The Shanhaijing visualization platform reads the real-time and predicted weather data through the database interface and displays them separately in the platform interface. In this way, the platform can simultaneously present the current environmental status of the rooftop farm and the short-term future weather trends, providing environmental references for plant growth status assessment, phenology prediction, and subsequent management decision-making.

3.7.2. Plant Growth Data Integration

Plant growth data integration aims to convert the key state variables output by the crop growth model into data resources that can be stored, accessed, and visualized, thereby enabling the dynamic monitoring and predictive representation of the plant growth process in rooftop farms. As shown in Figure 6, the generation of plant growth data depends on the operation of the virtual sensor model. The key indicators output by the model include leaf area index, aboveground biomass, anthesis date, maturity date, fresh weight, and irrigation-related information for both the simulated current day and the predicted following seven days.
During the data integration process, the DSSAT model output results are automatically parsed by Python scripts. After the key fields are extracted, they are written into the MySQL database to form a structured plant growth data table. The database fields are consistent with the platform display requirements, allowing the front end to access the data according to date, indicator type, and record type. In this way, the simulated and predicted values that were originally scattered across model output files are uniformly transformed into data resources that can be recognized by the digital twin platform.
The Shanhaijing visualization platform reads the plant growth data through the database interface and displays indicators such as simulated and predicted leaf area index, aboveground biomass, fresh weight, and phenology in the form of charts, text, and status information. Meanwhile, based on preset data-binding logic, the platform can link selected plant growth indicators with the states of the 3D models. For example, the plant model state can be switched according to changes in anthesis date, maturity date, or leaf area index, thereby enabling linked visualization between plant growth data and the 3D scene.

3.7.3. Site Environment Data Integration

Site environment data integration aims to incorporate the spatial carrier, facility layout, and plant distribution of the rooftop farm into the platform in the form of a digital scene, thereby providing a visual representation basis for plant growth data and management information.
As shown in Figure 6, this study first obtained site environment data, including roof structure, planting area layout, ventilation equipment, drainage facilities, irrigation facilities, and plant distribution, based on field surveying, on-site photography, and spatial data organization. Subsequently, 3D modeling software was used to construct the site model and plant models, and the model files were imported into the digital twin visualization platform. Using this 3D scene as the visual base map, the platform binds plant growth data, weather data, and management information to the corresponding spatial objects, thereby transforming the static site model into a dynamic digital twin scene.

3.7.4. Rule-Based Model Data Integration

Rule-Based model data integration aims to transform literature-based knowledge and empirical rules related to tomato cultivation management into decision-support information that can be directly displayed on the platform front end, thereby providing management support for the daily operation and maintenance of rooftop farms.
As shown in Figure 6, this study structured the knowledge related to irrigation water management, fertilization management, and canopy regulation, and organized it according to plant growth stages and management types. On the platform side, the relevant content is displayed in the form of textual descriptions, management recommendations, and threshold reminders, and is linked with the plant growth monitoring and prediction results. For example, when the platform displays future trends in LAI, phenology, or irrigation requirements, it can simultaneously provide corresponding recommendations for pruning, water and fertilizer management, or activity organization. In this way, the platform realizes the transformation from model prediction results to management decision-making information.

4. Results

4.1. Construction Results of the 3D Spatial Mapping Model

Based on the construction methods described in Section 3.3, this study developed the site spatial model of the rooftop farm and the plant models of tomato plants at different growth stages. Figure 7 shows the morphological representation results of tomato plant models at the seedling stage (Figure 7a), flowering stage (Figure 7b), and maturity stage (Figure 7c). Figure 8 shows the 3D spatial mapping results of the rooftop farm after combining the site model with the plant models. This model provides a basis for the spatial binding and dynamic display of plant growth status data in the digital twin platform, and supports the visual representation of indicators such as leaf area index, aboveground biomass, phenology, and yield in the 3D scene.

4.2. Simulation and Prediction Results of the Virtual Sensor Model

4.2.1. Results and Evaluation of the LSTM Weather Prediction Model

The coefficient of determination (R2) and root mean square error (RMSE) were used as evaluation metrics to assess model performance. The model was validated using an independent test set, and the results are shown in Figure 9. The LSTM model showed strong fitting capability for temperature-related variables. The predicted maximum temperature (Figure 9a) and minimum temperature (Figure 9b) both achieved R2 values close to 1, with low RMSE values, indicating that the model could accurately capture the daily variation trends of temperature. For daily accumulated rainfall (Figure 9c), the prediction achieved an R2 of 0.7143 and an RMSE of 0.0081, suggesting that the model could effectively identify the overall rainfall trend under non-extreme weather conditions, although certain deviations occurred during individual heavy rainfall events. For daily solar radiation (Figure 9d), the prediction achieved an R2 of 0.8971 and an RMSE of 0.0450, indicating good overall prediction performance.
The comprehensive evaluation indicates that the LSTM model can provide reliable data support for the dynamic prediction of key environmental variables in rooftop farms.

4.2.2. Simulation Results and Validation of the DSSAT Plant Growth Model

To evaluate the simulation accuracy of the calibrated DSSAT model, the simulated values were compared with the measured data from the tomato experiment transplanted on 27 September 2024. The evaluation indicators included anthesis day, maturity day, fresh weight, aboveground biomass, and leaf area index.
Table 6 presents the simulation accuracy analysis results of the DSSAT model for anthesis day, maturity day, and fresh weight. Overall, the model showed high simulation accuracy. The measured value of anthesis day was 31, and the simulation value was identical, resulting in an ARE of 0. The measured value of maturity day was 119, while the simulation value was 121, corresponding to an ARE of 1.68%. For fresh weight, the measured value was 74,448, and the simulation value was 71,152, with an ARE of 4.42%. These results indicate that the calibrated DSSAT model was able to simulate tomato phenology and yield-related traits with good accuracy.
The simulation results for leaf area index and aboveground biomass are shown in Figure 10. For aboveground biomass (Figure 10a), the simulation achieved an R2 of 0.9915, an nRMSE of 0.0516, and an ARE of 4.49%. For leaf area index (Figure 10b), the simulation achieved an R2 of 0.9824, an nRMSE of 0.0608, and an ARE of 7.09%. All evaluation metrics indicate a high degree of agreement between the simulated and measured values.
Taken together, these results demonstrate that the calibrated DSSAT model can accurately capture the dynamic changes in tomato growth and shows acceptable reliability under the present experimental conditions in simulating key indicators, including leaf area index, aboveground biomass, fresh weight, anthesis day, and maturity day. The simulation errors may mainly arise from deviations between the DSSAT model parameter settings and the actual planting environment, as well as from the influence of the spatial heterogeneity of the rooftop farm microclimate on the representativeness of single-point weather station observations. Nevertheless, all error metrics remained within an acceptable range. Therefore, the model accuracy satisfies the requirements of this study and supports its application in simulating tomato growth dynamics in rooftop farming in Xiamen.

4.2.3. Coupled Prediction Results and Validation of the DSSAT Plant Growth Model with the LSTM Weather Forecasting Model

In this study, the LSTM model and DSSAT model were coupled to compare the predicted results with the measured data for tomato growth indicators, including anthesis day, maturity day, fresh weight, aboveground biomass, and leaf area index.
Based on the meteorological data predicted by the LSTM model, the DSSAT model achieved relatively high overall prediction accuracy for phenology and yield-related indicators (Table 7). The ARE for anthesis day was 3.23%. For maturity day, the ARE was 4.20%, with the predicted value differing from the measured value by only 5 days. Although a deviation of several days was observed, this level of error still provides farm managers with sufficient time to make operational adjustments, such as preparing for harvesting, market supply, and transportation.
For tomato fresh weight, the prediction achieved an ARE of 7.90%. As shown in Figure 11, the prediction results for aboveground biomass achieved an R2 of 0.9966, an nRMSE of 0.0370, and an ARE of 4.73%. The prediction results for leaf area index achieved an R2 of 0.9814, an nRMSE of 0.0630, and an ARE of 7.20%.
Taken together, compared with the DSSAT-based simulation results, the prediction errors of the coupled model may arise from two main sources. On the one hand, they are related to the prediction errors of the LSTM model for future meteorological variables, such as temperature, rainfall, and solar radiation. On the other hand, they are also associated with the parameterized representation of crop growth processes in the DSSAT model. In addition, the complex microclimatic conditions of rooftop farms, local environmental differences, and manual observation errors during measured data collection may also affect the prediction results. Nevertheless, the data indicate that the coupled model maintained high accuracy after the introduction of predicted meteorological data, demonstrating good robustness and application feasibility.

4.3. Construction of the Rule-Based Model for Rooftop Farm Plant Growth

Based on the construction methods described in Section 3.4, this study developed a rule-based model for rooftop farm tomato management, mainly including three types of content: irrigation water management, fertilization management, and canopy regulation.
First, irrigation water management determines the irrigation timing according to soil moisture conditions and crop growth stages. Based on relevant studies, 85% θ f was used as the lower irrigation threshold, where θ f represents field capacity [53]. Second, in terms of fertilization management, the seedling stage mainly focuses on promoting root development and vegetative growth, and the basic supply of nitrogen, phosphorus, and potassium should be ensured. During the flowering stage, the supply of phosphorus and potassium should be strengthened to promote flower bud differentiation and improve fruit-setting rate. During the fruiting stage, potassium and calcium supplementation should be emphasized [54], while nitrogen application should be appropriately controlled to promote fruit enlargement, quality improvement, and sugar accumulation. At the harvesting stage, foliar fertilization can be applied appropriately according to plant growth conditions to maintain subsequent fruit quality and plant physiological activity. Third, canopy regulation provides a reference for pruning and canopy optimization measures based on changes in LAI. In spring, the reference range of LAI can be set at 2.5–3.0 m2/m2, which helps intercept approximately 90% of incoming light and meets plant growth requirements under relatively mild climatic conditions. In summer, because of higher light intensity and air temperature, an LAI of 3.2–4.0 m2/m2 is required to maintain a similar light interception rate [55].

4.4. Construction Results of the Rooftop Farm Plant Growth Database

This study used a MySQL database system to store and manage the daily plant growth simulation and prediction data output by the DSSAT model (Table 8). The database mainly includes the following fields: id, record_type (record type), date, lai (leaf area index), biomass (aboveground biomass), adat (anthesis date), mdat (maturity date), hwah (fresh weight), irrc_count (number of irrigation events), and irrc (total irrigation amount). Abnormal values in the output files, such as −99, were uniformly replaced with NULL to avoid affecting database queries and subsequent analysis.

4.5. Implementation Results of the Rooftop Farm Plant Growth Digital Twin Platform

The visualization of the digital twin platform is not merely a simple presentation of the rooftop farm scene and data results; rather, it also supports information integration, state identification, prediction communication, and management assistance. Therefore, the interface of this study adopts a layout consisting of a central 3D scene, information panels on both sides, and separate functional pages. The central area is used to display the 3D scene of the rooftop farm, enabling users to intuitively identify the site environment, planting layout, and spatial distribution of plants. The panels on the left and right sides are used to present key information corresponding to the current functional theme, thereby forming a clear information hierarchy.
According to the platform workflow and functional requirements, the interface is divided into four pages: Rooftop Farm Overview, Real-Time Monitoring of Rooftop Farm Plant Growth, Prediction of Rooftop Farm Plant Growth, and Rooftop Farm Plant Management Information. These four pages serve the usage logic of basic understanding–real-time perception–future prediction–management support.
The Rooftop Farm Overview interface (Figure 12) mainly displays basic information, including project location, planting area, planting method, planting density, transplanting depth, and soil data. It also reflects the overall layout of the rooftop farm through the 3D scene. This interface helps users establish an overall understanding of the experimental site and planting conditions, providing background information for interpreting subsequent plant monitoring and prediction results.
The Real-Time Monitoring of Rooftop Farm Plant Growth interface (Figure 13) mainly displays current growth indicators, including leaf area index, aboveground biomass, and fresh weight, as well as management information such as irrigation data and operation records. By displaying plant growth status together with recent management records, this interface helps reveal the relationship between current plant growth conditions and operation and maintenance activities, thereby providing a basis for managers to assess the current status.
The Prediction of Rooftop Farm Plant Growth interface (Figure 14) mainly presents prediction results, including leaf area index prediction, phenology prediction, biomass prediction, and fresh weight prediction. Combined with the management data output by the rule-based model, it provides reference information such as the reasonable range of leaf area index to support the interpretation of prediction results. This interface is used to transform future information generated by the model into understandable and assessable trend results, thereby supporting early management and activity planning for the rooftop farm.
The Rooftop Farm Plant Management Information interface (Figure 15) mainly displays planting instructions, fertilization recommendations, pruning points, and management personnel information corresponding to different growth stages. This enables managers to directly access the relevant management basis when viewing platform information.

5. Discussion

This study constructed and validated a virtual sensor-driven plant growth digital twin system using rooftop tomato cultivation in Xiamen as a case study. The results indicate that the framework coupling LSTM-based weather prediction with the DSSAT crop growth model can dynamically simulate key plant growth states and provide short-term predictions for the following seven days under constrained physical sensor deployment. This provides a feasible pathway for continuous plant growth monitoring in rooftop farms.
Compared with existing studies, this study provides several implications.
First, in terms of coupled model prediction, this study integrated the LSTM weather prediction model with the DSSAT crop growth model. The former was used to extend limited meteorological observations into future weather sequences, while the latter used the predicted meteorological inputs to drive the simulation of plant physiological processes. This coupling enabled the system to combine short-term climate prediction with mechanism-driven plant state estimation, rather than relying on static single-point inference. In terms of prediction accuracy, the model showed relatively high accuracy for phenology. The ARE values for anthesis and maturity prediction were only 3.23% and 4.20%, respectively, indicating that the parameterized representation of tomato developmental processes in the DSSAT model remained applicable in the rooftop environment. The ARE for yield prediction was 7.90%, which was still within an acceptable range, although the error was higher than that for phenological prediction. This may be related to deviations in the model simulation of dry matter allocation and fruit development under the specific local microclimatic conditions of rooftop farms. The errors of the coupled prediction framework may mainly come from two sources. One is the prediction bias of the LSTM model for future temperature, rainfall, and solar radiation, especially during heavy rainfall events or periods of abrupt radiation change. The other is the uncertainty in the parameterized representation of the DSSAT model, including differences between cultivar genetic parameters and actual planting conditions, as well as the limited spatial representativeness of single-point weather station observations for rooftop microclimates. In addition, errors in manually observed data may also affect model calibration and validation results. Future studies could further reduce model prediction uncertainty by increasing the frequency of ground-truth validation, introducing multi-source sensing data such as UAV remote sensing and canopy temperature monitoring, and applying data assimilation techniques.
Second, in terms of digital twin platform functions, this study focused on urban rooftop farms and integrated key plant growth indicators with a 3D visualization platform and operation and maintenance decision recommendations. As a result, the system not only supports monitoring and prediction, but also transforms prediction results into management reference information for irrigation, fertilization, pruning, harvesting experiences, and science education activities. This can support landscape management, social service scheduling, and refined operation and maintenance of rooftop farms. Unlike many existing studies that focus mainly on crop yield or resource-use efficiency as a single optimization objective, the platform constructed in this study can assist in optimizing irrigation timing and irrigation amount according to plant water demand and future weather prediction. This helps ensure normal plant growth while reducing water waste and the operation and maintenance risks associated with rooftop drainage and waterproofing. Meanwhile, based on predicted anthesis and maturity dates, managers can plan harvesting experiences, nature education, and community gardening activities in advance, thereby enhancing the social service function of rooftop farms as urban public spaces. The platform also helps compensate for insufficient continuous sensing capacity under constrained physical sensor deployment and provides a reference for the smart operation and maintenance of other urban green infrastructure systems, such as vertical greening systems, rooftop gardens, and community gardens.
Finally, this study still has several limitations. First, in terms of sample size, the experimental validation was based on single-season data from a single rooftop farm in Xiamen, and the amount of data was relatively limited. The generalizability of the model requires further verification using larger-scale and multi-season datasets. Second, in terms of crop type, this study used tomato as the research object, and the DSSAT model parameters were calibrated for a specific tomato cultivar. If the method is transferred to leafy vegetables, root and tuber crops, or other fruit and vegetable crops, cultivar parameters need to be recalibrated. Third, in terms of regional applicability, Xiamen has a subtropical monsoon climate, which differs significantly from the climatic conditions of northern cities or high-latitude regions. Therefore, the trained LSTM weather prediction model and localized DSSAT parameters cannot be directly applied to other regions with substantially different climates, and retraining and recalibration based on local climate data are required. Fourth, real rooftop farms often involve more complex spatial shading, wind environments, thermal conditions, drainage conditions, and constraints on sensor installation and maintenance. Single-point weather stations or a small number of sensors are insufficient to fully characterize the internal microclimatic differences in rooftop farms. Therefore, practical application of the system may be affected by data representativeness, sensor stability, and long-term operation and maintenance costs. Fifth, the long-term operation of the system in real rooftop scenarios is still limited by infrastructure stability. The prediction workflow depends on the continuous acquisition of meteorological data from the rooftop weather station, which provides important inputs for both LSTM weather prediction and DSSAT crop growth simulation. When power outages, network interruptions, or equipment failures occur, meteorological data updates may be suspended, thereby affecting the continuity of plant growth prediction. In such cases, missing meteorological data should be manually supplemented, or nearby weather stations and public weather forecast data should be used as alternative inputs. In the future, mechanisms for missing-data detection, backup data source switching, and redundant power supply could be further established to improve the stability of the system in real rooftop farm applications.
Future research could be further deepened in terms of model interpretability, system stability, and intelligent decision-making. On the one hand, explainable analysis methods such as SHAP could be introduced to identify the relative contributions of variables such as temperature, rainfall, and solar radiation to LAI prediction, thereby improving the transparency of the virtual sensor model. On the other hand, multi-point sensors, remote sensing images, and long-term operation and maintenance data could be incorporated to improve the system’s ability to represent the spatial heterogeneity of rooftop microclimates. In addition, the system could be extended to relatively controllable environments such as indoor plant factories. Combined with reinforcement learning methods, adaptive regulation of environmental factors such as temperature, humidity, light, and irrigation could be explored, promoting the system from a monitoring and prediction platform toward an intelligent decision-making and closed-loop control system.

6. Conclusions

This study addresses practical challenges in rooftop farms, including strong microclimatic disturbances, significant environmental heterogeneity, and constraints on physical sensor deployment. A virtual sensor-based plant growth digital twin system for rooftop farms is proposed. Taking rooftop tomato cultivation in Xiamen, Fujian Province, as an empirical case, this study establishes a five-layer digital twin architecture that integrates physical-space data acquisition, virtual sensor modeling, database management, and 3D visualization. By coupling an LSTM weather prediction model with the DSSAT crop growth model, a closed-loop process of “sensing–simulation–prediction–decision-making” is formed for key state variables, including leaf area index, aboveground biomass, phenology, and yield. The empirical results show that the calibrated DSSAT model achieved an R2 of 0.9824 for LAI simulation and 0.9915 for aboveground biomass simulation. After introducing weather prediction, the coupled prediction framework still maintained R2 values of 0.9814 and 0.9966, respectively, while the prediction errors for phenology and yield remained within acceptable ranges.
The main contribution of this study is that it provides a practical smart management method for open rooftop farms, which are a type of green infrastructure integrating ecological regulation, food production, and public-space functions. By integrating data-driven prediction with mechanistic crop growth simulation through the virtual sensor mechanism, this study establishes a systematic technical pathway for the continuous representation, dynamic prediction, and visualized management of plant growth status under sensor-constrained conditions. From the perspective of building facility management, the proposed framework can provide data support for irrigation optimization and operation-related risk assessment, including potential drainage, waterproofing, and rooftop maintenance issues.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/buildings16122326/s1, Code S1: Python script for automated meteorological data retrieval and LSTM-based 7-day weather prediction; Code S2: Python script for DSSAT weather file update and automatic model execution; Code S3: Python script for DSSAT output parsing and MySQL database storage.

Author Contributions

Conceptualization, H.Z. and S.Z.; methodology, S.Z. and L.L.; software, S.Z.; validation, S.Z.; formal analysis, S.Z.; investigation, S.Z.; data curation, S.Z.; writing—original draft preparation, S.Z.; writing—review and editing, H.Z. and L.L.; visualization, S.Z.; supervision, H.Z. and L.L.; project administration, H.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. United Nations, Department of Economic and Social Affairs. Population Division World Urbanization Prospects: The 2018 Revision; United Nations: New York, NY, USA, 2019. [Google Scholar]
  2. Seto, K.C.; Güneralp, B.; Hutyra, L.R. Global Forecasts of Urban Expansion to 2030 and Direct Impacts on Biodiversity and Carbon Pools. Proc. Natl. Acad. Sci. USA 2012, 109, 16083–16088. [Google Scholar] [CrossRef]
  3. Clark, M.A.; Domingo, N.G.; Colgan, K.; Thakrar, S.K.; Tilman, D.; Lynch, J.; Azevedo, I.L.; Hill, J.D. Global Food System Emissions Could Preclude Achieving the 1.5 and 2 C Climate Change Targets. Science 2020, 370, 705–708. [Google Scholar] [CrossRef] [PubMed]
  4. Elmqvist, T.; Andersson, E.; Frantzeskaki, N.; McPhearson, T.; Olsson, P.; Gaffney, O.; Takeuchi, K.; Folke, C. Sustainability and Resilience for Transformation in the Urban Century. Nat. Sustain. 2019, 2, 267–273. [Google Scholar] [CrossRef]
  5. United Nations Human Settlements Programme World Cities Report 2022: Envisaging the Future of Cities; United Nations Human Settlements Programme: Nairobi, Kenya, 2022.
  6. Azunre, G.A.; Amponsah, O.; Peprah, C.; Takyi, S.A.; Braimah, I. A Review of the Role of Urban Agriculture in the Sustainable City Discourse. Cities 2019, 93, 104–119. [Google Scholar] [CrossRef]
  7. Chen, Y. The application of digital twin in landscape architecture. Intell. Build. Smart City 2021, 5, 6–7. (In Chinese) [Google Scholar] [CrossRef]
  8. Zheng, H. Digital Twin for Renewable Energy Landscape Planning and Design. Int. J. Low.-Carbon Technol. 2026, 21, 1–13. [Google Scholar] [CrossRef]
  9. Drottberger, A.; Zhang, Y.; Yong, J.W.H.; Dubois, M.-C. Urban Farming with Rooftop Greenhouses: A Systematic Literature Review. Renew. Sustain. Energy Rev. 2023, 188, 113884. [Google Scholar] [CrossRef]
  10. Xiao, Y.-Q.; Zou, Y.-T.; Xiao, Y.-Z. Layered Garden: Creating a Recess Paradise for High-Density Urban Campus—Design of Xinzhou Primary School in Futian District, Shenzhen. J. Archit. 2021, 3, 27–34. (In Chinese) [Google Scholar]
  11. Appolloni, E.; Orsini, F.; Specht, K.; Thomaier, S.; Sanyé-Mengual, E.; Pennisi, G.; Gianquinto, G. The Global Rise of Urban Rooftop Agriculture: A Review of Worldwide Cases. J. Clean. Prod. 2021, 296, 126556. [Google Scholar] [CrossRef]
  12. Ashikuzzaman, M.; Swapan, M.S.H.; Zaman, A.U.; Song, Y. From Social Innovation to Institutional Governance: Unveiling Urban Rooftop Farming in Dhaka City Using YouTube Video Analysis. Landsc. Urban Plan. 2025, 259, 105366. [Google Scholar] [CrossRef]
  13. Ntoulas, N.; Nektarios, P.; Nydrioti, E. Performance of Zoysia Matrella ‘Zeon’ in Shallow Green Roof Substrates under Moisture Deficit Conditions. Hortscience 2013, 48, 929–937. [Google Scholar] [CrossRef]
  14. Daneshyar, E. Residential Rooftop Urban Agriculture: Architectural Design Recommendations. Sustainability 2024, 5, 1881. [Google Scholar] [CrossRef]
  15. Mowrer, J.; Merrill, J.; Conlee, D.; Marble, J.; Dvorak, B. Rooftop Urban Agriculture for the Small Stakeholder. J. Living Archit. 2019. [Google Scholar] [CrossRef]
  16. Brentarolli, E.; Migliorini, S.; Quaglia, D.; Tomazzoli, C. Mapping Micro-Climate in a Greenhouse through a Context-Aware Recurrent Neural Network. In Proceedings of the 2023 IEEE Conference on AgriFood Electronics (CAFE); IEEE: New York, NY, USA, 2023; pp. 113–117. [Google Scholar]
  17. Hemming, S.; de Zwart, F.; Elings, A.; Petropoulou, A.; Righini, I. Cherry Tomato Production in Intelligent Greenhouses—Sensors and AI for Control of Climate, Irrigation, Crop Yield, and Quality. Sensors 2020, 20, 6430. [Google Scholar] [CrossRef]
  18. Howard, D.A.; Ma, Z.; Aaslyng, J.M.; Jørgensen, B.N. Data Architecture for Digital Twin of Commercial Greenhouse Production. In Proceedings of the 2020 RIVF International Conference on Computing and Communication Technologies (RIVF); IEEE: New York, NY, USA, 2020; pp. 1–7. [Google Scholar]
  19. Howard, D.A.; Ma, Z.; Jørgensen, B.N. Digital Twin Framework for Energy Efficient Greenhouse Industry 4.0. In Proceedings of the International Symposium on Ambient Intelligence; Springer: Berlin/Heidelberg, Germany, 2020; pp. 293–297. [Google Scholar]
  20. Gao, X.; Liu, J.; Wen, Y.; Lin, H.; Liang, Y.; Liu, M.; Zhou, Z.; Zhang, J.; Wang, Z. Estimating Future Climate Change Impacts on Wheat Yield and Water Demand in Xinjiang, Northwest China Using the DSSAT-CERES-Wheat Model. Comput. Electron. Agric. 2025, 237, 110604. [Google Scholar] [CrossRef]
  21. Luo, L.; Sun, S.; Xue, J.; Gao, Z.; Zhao, J.; Yin, Y.; Gao, F.; Luan, X. Crop Yield Estimation Based on Assimilation of Crop Models and Remote Sensing Data: A Systematic Evaluation. Agric. Syst. 2023, 210, 103711. [Google Scholar] [CrossRef]
  22. Xu, X.; Gao, F.; Xiong, D.; Fan, Z.; Xiong, S.; Dong, P.; Qiao, H.; Ma, X. Digital Twin-Based Winter Wheat Growth Simulation and Optimization. Field Crops Res. 2025, 329, 109953. [Google Scholar] [CrossRef]
  23. Ariesen-Verschuur, N.; Verdouw, C.; Tekinerdogan, B. Digital Twins in Greenhouse Horticulture: A Review. Comput. Electron. Agric. 2022, 199, 107183. [Google Scholar] [CrossRef]
  24. Otieno, F.T.; Lazarus, B.; Banerjee, A.; Riaz, K.; Nalakurthi, S.-R.N.; Gharbia, S. Co-Creating a Data-Driven Smart Farming Sensor Networks for Digital Twin Integration in Irish Tillage Farming. Internet Things 2025, 34, 101754. [Google Scholar] [CrossRef]
  25. Alves, R.G.; Maia, R.F.; Lima, F. Development of a Digital Twin for Smart Farming: Irrigation Management System for Water Saving. J. Clean. Prod. 2023, 388, 135920. [Google Scholar] [CrossRef]
  26. Escribà-Gelonch, M.; Liang, S.; van Schalkwyk, P.; Fisk, I.; Long, N.V.D.; Hessel, V. Digital Twins in Agriculture: Orchestration and Applications. J. Agric. Food Chem. 2024, 72, 10737–10752. [Google Scholar] [CrossRef]
  27. Kano, M.; Fujiwara, K. Virtual Sensing Technology in Process Industries: Trends and Challenges Revealed by Recent Industrial Applications. J. Chem. Eng. Jpn. 2013, 46, 1–17. [Google Scholar] [CrossRef]
  28. Tomazzoli, C.; Brentarolli, E.; Quaglia, D.; Migliorini, S. Estimating Greenhouse Climate Through Context-Aware Recurrent Neural Networks Over an Embedded System. IEEE Trans. AgriFood Electron. 2024, 2, 554–562. [Google Scholar] [CrossRef]
  29. Dai, X.; Chen, R.; Guan, S.; Li, W.-T.; Yuen, C. BuildingGym: An Open-Source Toolbox for AI-Based Building Energy Management Using Reinforcement Learning. In Proceedings of the Building Simulation; Springer: Berlin/Heidelberg, Germany, 2025; Volume 18, pp. 1909–1927. [Google Scholar]
  30. Liu, S.; Martre, P.; Buis, S.; Abichou, M.; Andrieu, B.; Baret, F. Estimation of Plant and Canopy Architectural Traits Using the Digital Plant Phenotyping Platform. Plant Physiol. 2019, 181, 881–890. [Google Scholar] [CrossRef]
  31. Melesse, T. Digital Twin-Based Applications in Crop Monitoring. Heliyon 2025, 11, e42137. [Google Scholar] [CrossRef]
  32. Zhu, Y.; Zhao, C.; Yang, H.; Yang, G.; Han, L.; Li, Z.; Feng, H.; Xu, B.; Wu, J.; Lei, L. Estimation of Maize Above-Ground Biomass Based on Stem-Leaf Separation Strategy Integrated with LiDAR and Optical Remote Sensing Data. PeerJ 2019, 7, e7593. [Google Scholar] [CrossRef]
  33. Revenga, J.C.; Trepekli, K.; Oehmcke, S.; Jensen, R.; Li, L.; Igel, C.; Gieseke, F.C.; Friborg, T. Above-Ground Biomass Prediction for Croplands at a Sub-Meter Resolution Using UAV–LiDAR and Machine Learning Methods. Remote Sens. 2022, 14, 3912. [Google Scholar] [CrossRef]
  34. Jimenez-Berni, J.A.; Deery, D.M.; Rozas-Larraondo, P.; Condon, A.T.; Rebetzke, G.J.; James, R.A.; Bovill, W.D.; Furbank, R.T.; Sirault, X.R. High Throughput Determination of Plant Height, Ground Cover, and above-Ground Biomass in Wheat with LiDAR. Front. Plant Sci. 2018, 9, 237. [Google Scholar] [CrossRef] [PubMed]
  35. Potgieter, A.B.; Zhao, Y.; Zarco-Tejada, P.J.; Chenu, K.; Zhang, Y.; Porker, K.; Biddulph, B.; Dang, Y.P.; Neale, T.; Roosta, F.; et al. Evolution and Application of Digital Technologies to Predict Crop Type and Crop Phenology in Agriculture. Silico Plants 2021, 3, diab017. [Google Scholar] [CrossRef]
  36. Dreccer, M.F.; Molero, G.; Rivera-Amado, C.; John-Bejai, C.; Wilson, Z. Yielding to the Image: How Phenotyping Reproductive Growth Can Assist Crop Improvement and Production. Plant Sci. 2019, 282, 73–82. [Google Scholar] [CrossRef]
  37. Herrero-Huerta, M.; Rodriguez-Gonzalvez, P.; Rainey, K.M. Yield Prediction by Machine Learning from UAS-Based Multi-Sensor Data Fusion in Soybean. Plant Methods 2020, 16, 78. [Google Scholar] [CrossRef]
  38. Dilmurat, K.; Sagan, V.; Moose, S. AI-Driven Maize Yield Forecasting Using Unmanned Aerial Vehicle-Based Hyperspectral and Lidar Data Fusion. ISPRS Ann. Photogramm. Remote Sens. Spat. Inf. Sci. 2022, 3, 193–199. [Google Scholar] [CrossRef]
  39. Abdeen, F.N.; Sepasgozar, S.M. City Digital Twin Concepts: A Vision for Community Participation. Environ. Sci. Proc. 2022, 12, 19. [Google Scholar]
  40. Schweigkofler, A.; Braholli, O.; Akro, S.; Siegele, D.; Penna, P.; Marcher, C.; Tagliabue, L.; Matt, D. Digital Twin as Energy Management Tool through IoT and BIM Data Integration. In Proceedings of the CLIMA 2022 Conference, Rotterdam, The Netherlands, 22–25 May 2022. [Google Scholar]
  41. Zhang, Y. Research on Smart Community Information Management Based on Digital Twin. Master’s Thesis, Jilin Jianzhu University, Changchun, China, 2023. (In Chinese) [Google Scholar]
  42. Hoogenboom, G.; Porter, C.H.; Boote, K.J.; Shelia, V.; Wilkens, P.W.; Singh, U.; White, J.W.; Asseng, S.; Lizaso, J.I.; Moreno, L.P.; et al. The DSSAT Crop Modeling Ecosystem. In Advances in Crop Modelling for a Sustainable Agriculture; Burleigh Dodds Science Publishing: Sawston, UK, 2019; pp. 173–216. [Google Scholar]
  43. Jones, J.W.; Hoogenboom, G.; Porter, C.H.; Boote, K.J.; Batchelor, W.D.; Hunt, L.A.; Wilkens, P.W.; Singh, U.; Gijsman, A.J.; Ritchie, J.T. The DSSAT Cropping System Model. Eur. J. Agron. 2003, 18, 235–265. [Google Scholar] [CrossRef]
  44. Sangiorgi, L.; Sberveglieri, V.; Carnevale, C.; De Nardi, S.; Nunez-Carmona, E.; Raccagni, S. Data-Driven Virtual Sensing for Electrochemical Sensors. Sensors 2024, 24, 1396. [Google Scholar] [CrossRef]
  45. Liu, Z.; Cai, M.; Hong, S.; Shi, J.; Xie, S.; Liu, C.; Du, H.; Morin, J.D.; Li, G.; Wang, L.; et al. Data-Driven Inverse Design of Flexible Pressure Sensors. Proc. Natl. Acad. Sci. USA 2024, 121, e2320222121. [Google Scholar] [CrossRef] [PubMed]
  46. Braakmann-Folgmann, A.; Roscher, R.; Wenzel, S.; Uebbing, B.; Kusche, J. Sea Level Anomaly Prediction Using Recurrent Neural Networks. arXiv 2017, arXiv:1710.07099. [Google Scholar] [CrossRef]
  47. Qing, X.; Niu, Y. Hourly Day-Ahead Solar Irradiance Prediction Using Weather Forecasts by LSTM. Energy 2018, 148, 461–468. [Google Scholar] [CrossRef]
  48. Dong, J. Research on Green Roof Planning in High-Density Urban Areas. Ph.D. Thesis, Tianjin University, Tianjin, China, 2021. (In Chinese) [Google Scholar]
  49. Zhao, Z.L.; Li, B.; Feng, X.; Yao, M.Z.; Xie, Y.; Xing, J.W.; Li, C.X. Parameter Estimation and Verification of DSSAT-CROPGRO-Tomato Model under Different Irrigation Levels in Greenhouse. Ying Yong Sheng Tai Xue Bao J. Appl. Ecol. 2018, 29, 2017–2027. (In Chinese) [Google Scholar]
  50. Kampker, A.; Stich, V.; Jussen, P.; Moser, B.; Kuntz, J. Business Models for Industrial Smart Services–the Example of a Digital Twin for a Product-Service-System for Potato Harvesting. Procedia Cirp 2019, 83, 534–540. [Google Scholar] [CrossRef]
  51. Ghandar, A.; Ahmed, A.; Zulfiqar, S.; Hua, Z.; Hanai, M.; Theodoropoulos, G. A Decision Support System for Urban Agriculture Using Digital Twin: A Case Study with Aquaponics. IEEE Access 2021, 9, 35691–35708. [Google Scholar] [CrossRef]
  52. Elgadi, J.A. Calibration and Validation of the DSSAT Model with Experimental Data for Three Varieties of Wheat on Different Planting Dates. J. Misurata Univ. Agric. Sci. 2019, 1, 114–127. [Google Scholar] [CrossRef]
  53. Wang, X.-S.; Chang, X.; Meng, Z.-J.; Zhang, Y.-Y.; Zhang, X.-P.; Yang, S.-J.; Lü, M.-C. Effects of Different Irrigation Baselines with Different Base Fertilizer Levels on Photosynthetic Characteristics, Yields and Qualities of Tomato in Greenhouse. J. Irrig. Drain. 2016, 35, 45–50. (In Chinese) [Google Scholar] [CrossRef]
  54. Lyu, X.; Hassan, H.M.; Zan, Y.; Tan, J. Interactive Effects of Irrigation and Fertilization on the Growth and Physiological Characteristics of Greenhouse Tomatoes, Solanum lycopersicum L. Sci. Rep. 2025, 15, 6007. [Google Scholar] [CrossRef]
  55. Heuvelink, E.; Bakker, M.; Elings, A.; Kaarsemaker, R.; Marcelis, L. Effect of Leaf Area on Tomato Yield. Acta Hortic. 2005, 691, 43–50. [Google Scholar] [CrossRef]
Figure 1. Framework of the digital twin system for rooftop farm plant growth.
Figure 1. Framework of the digital twin system for rooftop farm plant growth.
Buildings 16 02326 g001
Figure 2. Five-layer architecture of the rooftop farm digital twin system.
Figure 2. Five-layer architecture of the rooftop farm digital twin system.
Buildings 16 02326 g002
Figure 3. Location map of the Li Chaoyao Building at Huaqiao University. (a) Fujian Province, China; (b) Xiamen City, Fujian Province; (c) Li Chaoyao Building, Huaqiao University.
Figure 3. Location map of the Li Chaoyao Building at Huaqiao University. (a) Fujian Province, China; (b) Xiamen City, Fujian Province; (c) Li Chaoyao Building, Huaqiao University.
Buildings 16 02326 g003
Figure 4. Planting of tomato seedlings in the rooftop farm.
Figure 4. Planting of tomato seedlings in the rooftop farm.
Buildings 16 02326 g004
Figure 5. Data processing workflow.
Figure 5. Data processing workflow.
Buildings 16 02326 g005
Figure 6. Platform integration workflow.
Figure 6. Platform integration workflow.
Buildings 16 02326 g006
Figure 7. Tomato models at different growth stages created using SpeedTree: (a) seedling stage, (b) flowering stage, (c) maturity stage.
Figure 7. Tomato models at different growth stages created using SpeedTree: (a) seedling stage, (b) flowering stage, (c) maturity stage.
Buildings 16 02326 g007
Figure 8. Construction of the 3D spatial mapping model.
Figure 8. Construction of the 3D spatial mapping model.
Buildings 16 02326 g008
Figure 9. Observed and predicted values of (a) Maximum Temperature, (b) Minimum Temperature, (c) Daily Accumulated Rainfall, and (d) Daily Solar Radiation.
Figure 9. Observed and predicted values of (a) Maximum Temperature, (b) Minimum Temperature, (c) Daily Accumulated Rainfall, and (d) Daily Solar Radiation.
Buildings 16 02326 g009aBuildings 16 02326 g009b
Figure 10. Simulated and observed values of (a) aboveground biomass and (b) leaf area index in the tomato experiment.
Figure 10. Simulated and observed values of (a) aboveground biomass and (b) leaf area index in the tomato experiment.
Buildings 16 02326 g010
Figure 11. Predicted and observed values of (a) aboveground biomass and (b) leaf area index in the tomato experiment.
Figure 11. Predicted and observed values of (a) aboveground biomass and (b) leaf area index in the tomato experiment.
Buildings 16 02326 g011aBuildings 16 02326 g011b
Figure 12. Rooftop Farm Overview.
Figure 12. Rooftop Farm Overview.
Buildings 16 02326 g012
Figure 13. Real-Time Monitoring of Rooftop Farm Plant Growth.
Figure 13. Real-Time Monitoring of Rooftop Farm Plant Growth.
Buildings 16 02326 g013
Figure 14. Prediction of Rooftop Farm Plant Growth.
Figure 14. Prediction of Rooftop Farm Plant Growth.
Buildings 16 02326 g014
Figure 15. Rooftop Farm Plant Management Information.
Figure 15. Rooftop Farm Plant Management Information.
Buildings 16 02326 g015
Table 1. Measured soil properties.
Table 1. Measured soil properties.
Depth (cm)Bulk Density (g cm−3)Field Capacity (cm3 cm−3)Wilting Point (cm3 cm−3)Clay (%)Silt (%)Initial Water Content
(cm3 cm−3)
pHOrganic Carbon (%)
201.420.270.1014.7852.920.157.5410.05
301.420.260.0912.5260.430.217.468.64
Table 2. Observed leaf area index data.
Table 2. Observed leaf area index data.
DateLeaf Area Index
7 October 20240.42
12 October 20240.67
19 October 20241.62
27 October 20243.69
3 November 20245.25
10 November 20246.48
17 November 20247.25
24 November 20246.77
4 December 20246.48
13 December 20246.22
20 December 20246.12
30 December 20246.03
6 January 20255.72
13 January 20255.52
21 January 20255.32
29 January 20255.13
Table 3. Observed phenological stages of experimental tomato plants.
Table 3. Observed phenological stages of experimental tomato plants.
Experimental Tomato CultivarTransplanting DateAnthesis DateMaturity Date
Fenguan No. 127 September 202428 October 202423 January 2025
Table 4. Observed aboveground biomass.
Table 4. Observed aboveground biomass.
DateAboveground Biomass (kg ha−1)
4 October 2024293
6 November 20242860
10 December 20246743
26 December 20247802
26 January 20259912
Table 5. Tomato cultivar genetic parameters used in the CROPGRO-Tomato model.
Table 5. Tomato cultivar genetic parameters used in the CROPGRO-Tomato model.
ParameterDefinitionRangeValue
EM-FLTime between plant emergence and flower appearance (photothermal days)7~3524.66
FL-SHTime between first flower and first fruit set (photothermal days)7~97.44
FL-SDTime between first flower and first seed (photothermal days)15~2016.58
LFMAXMaximum leaf photosynthesis rate at 30 °C, 350 vpm CO2, and high light (mg·CO2 m−2·s−1)1~1.41.12
SLAVRSpecific leaf area of the cultivar under standard growth conditions (cm2·g−1)320~380345
XFRTMaximum fraction of daily growth partitioned to fruit0.65~0.850.7
SFDURSeed-filling duration for a fruit cohort under standard growth conditions (photothermal days)23~2725.3
PODURTime required for the cultivar to reach final fruit load under optimal conditions (photothermal days)40~6544.51
THRSHMaximum ratio of seed weight to seed plus shell weight at maturity7~107
Table 6. Measured values and model simulation accuracy analysis results for tomato phenology and fresh weight.
Table 6. Measured values and model simulation accuracy analysis results for tomato phenology and fresh weight.
Anthesis Day (d)Maturity Day (d)Fresh Weight (kg ha−1)
Measured value Simulation valueARE
(%)
Measured valueSimulation valueARE
(%)
Measured valueSimulation valueARE
(%)
313101191211.6874,44871,1524.42
Table 7. Measured values and model prediction accuracy analysis results for tomato phenology and fresh weight.
Table 7. Measured values and model prediction accuracy analysis results for tomato phenology and fresh weight.
Anthesis Day (d)Maturity Day (d)Fresh Weight (kg ha−1)
Measured value Predicted valueARE
(%)
Measured valuePredicted valueARE
(%)
Measured valuePredicted valueARE
(%)
31323.231191244.2074,44880,3297.90
Table 8. Description of database fields.
Table 8. Description of database fields.
Field NameData TypeUnit/FormatDescription
idINT-Primary key, auto-incremented for each record
record_typeVARCHAR(10)‘today’ or ‘prediction’Type of record: simulated historical data (‘today’) or predicted future data (‘prediction’)
dateDATEYYYY-MM-DDDate of the simulated or predicted plant growth data
laiFLOAT-Leaf Area Index
biomassFLOATkg ha−1Above-ground dry biomass per unit area
adatDATEYYYY-MM-DDSimulated or predicted date of anthesis (50% of plants flowering)
mdatDATEYYYY-MM-DDSimulated or predicted date of maturity (50% of first fruits ripe)
hwahFLOATkg ha−1Simulated or predicted fresh weight
irrcFLOATmmTotal amount of irrigation water applied for the day
irrc_countINTtimesNumber of irrigation events for the day
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.

Share and Cite

MDPI and ACS Style

Zheng, S.; Zhang, H.; Li, L. Construction of a Virtual Sensor-Driven Digital Twin System for Plant Growth Monitoring on Rooftop Farms. Buildings 2026, 16, 2326. https://doi.org/10.3390/buildings16122326

AMA Style

Zheng S, Zhang H, Li L. Construction of a Virtual Sensor-Driven Digital Twin System for Plant Growth Monitoring on Rooftop Farms. Buildings. 2026; 16(12):2326. https://doi.org/10.3390/buildings16122326

Chicago/Turabian Style

Zheng, Shaojin, Heng Zhang, and Li Li. 2026. "Construction of a Virtual Sensor-Driven Digital Twin System for Plant Growth Monitoring on Rooftop Farms" Buildings 16, no. 12: 2326. https://doi.org/10.3390/buildings16122326

APA Style

Zheng, S., Zhang, H., & Li, L. (2026). Construction of a Virtual Sensor-Driven Digital Twin System for Plant Growth Monitoring on Rooftop Farms. Buildings, 16(12), 2326. https://doi.org/10.3390/buildings16122326

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop