Home Greenhouse environmental monitoring and control system based on improved fuzzy PID and neural network algorithms
Article Open Access

Greenhouse environmental monitoring and control system based on improved fuzzy PID and neural network algorithms

  • Hongqiang Guan EMAIL logo
Published/Copyright: January 29, 2025
Become an author with De Gruyter Brill

Abstract

Compared with traditional agriculture, greenhouse planting can more accurately control the growth environment, thereby improving the yield and agricultural product quality. However, traditional greenhouse environments (GhEs) present a number of challenges, including inflexibility in monitoring and wiring, difficulty in management, and high labor costs. To improve the limitations of traditional GhEs and enhance the accuracy of GhE monitoring and control systems, a sensor-based GhE monitoring and control system is designed. In addition, a prediction model for GhE monitoring is constructed using a backpropagation neural network to better predict nonlinear factors such as humidity, temperature, and light intensity in the GhE. Simultaneously, an improved fuzzy proportional integral derivative (PID) controller is utilized to address issues such as fuzziness and uncertainty in GhEs. The results show that the temperature error of the greenhouse environment monitoring and control system based on improved fuzzy PID and neural network algorithms is 0.35–5.04%, the humidity error is −1.3 to 1.65%, and the lighting error is −3.5 to −0.79%. Comprehensive data show that the greenhouse environmental monitoring and control (GEMC) system based on improved fuzzy PID and neural network algorithms effectively improves the accuracy of environmental monitoring and control. The GEMC system, which is based on improved fuzzy PID and neural network algorithms, has facilitated the advancement of agricultural technology in China. It has also provided support and a reference point for GhE monitoring and agricultural production.

1 Introduction

The rapid development of modern agricultural technology has made greenhouse planting an important means to improve the yield and quality of agricultural products [1]. The control of greenhouse environment (GhE), especially the precise regulation of temperature, humidity, and light, has a crucial impact on the growth and yield of crops [2]. However, the complexity and uncertainty of GhEs pose challenges to environmental monitoring and control. There are nonlinear factors such as humidity, temperature, and light intensity in the GhE, and traditional GhE control systems cannot accurately predict and monitor these nonlinear factors. Therefore, achieving precise monitoring and control of the GhE is one of the current research focuses. The traditional proportional integral derivative (PID) control method is widely used in GhE control, but its control effect is often not ideal when facing the non-linearity and uncertainty of GhE. Therefore, finding a new type of control strategy that can better handle these problems has become an important research direction in the field of agricultural technology. Fuzzy PID controllers and backpropagation neural networks (BPNNs) are two commonly used techniques in the fields of control and optimization [3]. The fuzzy PID controller, with its strong adaptability, easy-to-use characteristics, experience-based operation mode, and good robustness to parameter changes and disturbances, provides the possibility to handle complex uncertainty problems [4]. A BPNN, on the other hand, provides new solutions for control systems with its powerful adaptive and self-learning capabilities, parallel processing capabilities, excellent fault tolerance, and efficient handling of nonlinear mappings [5]. Wang’s research team designed a greenhouse automatic monitoring system using a fuzzy PID controller combined with a wireless sensor network to achieve accurate monitoring of greenhouse crops. The results showed that the system could achieve micro-climate control in greenhouses [6]. To achieve ventilation control in greenhouses, scholars such as Jung proposed using a BPNN to predict and optimize the ventilation control logic of greenhouses. The results showed that compared to traditional control logic, this method effectively improved the accuracy of greenhouse ventilation control [7]. The above research shows that fuzzy PID controllers and BPNNs have been widely used in the field of greenhouse control. Nevertheless, these studies are limited in scope, focusing on the control and prediction of single or small factors, such as greenhouse ventilation or micro-control. They are unable to provide a comprehensive prediction of various nonlinear factors, including humidity, temperature, and light intensity in the GhE. Therefore, in this context, to improve the accuracy of GhE prediction and control, innovative research has been conducted by combining fuzzy PID control and neural network algorithms, and improvements have been made to the fuzzy PID controller. The objective is to provide suitable environmental factors for the growth of crops such as fruits and vegetables in greenhouses, thereby achieving contributions such as reducing system energy consumption and increasing crop yield.

The article mainly includes four sections. Section 2 is a review of the current research status on fuzzy PID controllers and BPNN both domestically and internationally. Section 3 is the design of a greenhouse environmental monitoring and control (GEMC) system based on improved fuzzy PID and BPNN algorithms. Section 3.1 designs a GEMC system based on an improved fuzzy PID controller, and Section 3.2 is about the design of a GhE prediction model based on the BPNN-PID control algorithm. Section 4 is the validation of the GEMC system based on improved fuzzy PID controller and BPNN algorithms.

2 Related works

Fuzzy PID controller is mainly applied to complex, uncertain, or nonlinear systems and are often applied in the field of environmental prediction, receiving attention from many researchers and made significant discoveries. Kumar Khadanga et al. proposed a new interval type-2 fuzzy PID controller (IT2fuzzy PID) based on a modified balance optimization (MBO) algorithm to improve the load frequency control performance of multi-region hybrid power systems. This design was an improvement based on the MBO algorithm, and its performance in load frequency control was significantly better than other controllers [8]. Doguer and other scholars proposed an fuzzy PID controller to improve the transient characteristics and robustness of automatic voltage regulators (AVRs). This design utilized the optimization method of a genetic algorithm (GA) to determine the parameters of the fuzzy PID controller and used the integral time multiplied by the absolute error criterion and the peak output response as the optimization objective. This method effectively improved the transient characteristics of AVR and enhanced its robustness [9]. Sahoo’s team proposed a new type of adaptive fuzzy PID controller to solve the problem of automatic generation control in large-scale interconnected power systems. This design utilized the wild goat algorithm, a natural heuristic algorithm, to design a controller by enumerating different gains and scaling factors. This method had excellent dynamic performance and robustness, verifying its effectiveness [10]. Goli and other researchers proposed the use of fuzzy uncertainty to establish a possibility planning mathematical model to address the uncertainty in organ transplantation. This model optimized the overall costs by considering organ demand and transportation time. The results validated that this method effectively improved the survival rate in the organ supply chain [11]. Goli and other scholars proposed a mixed integer linear mathematical model to study the scheduling problem of non-arranged flow shops. This model utilized metaheuristic algorithms for sensitivity analysis and optimization of parameters. The results showed that this method effectively reduced the scheduling time and energy consumption [12].

The BPNN can be used to learn the dynamic changes in environmental variables and plays an important role in GhE monitoring. Zhang’s research team proposed a soft tissue grasping deformation model to achieve real-time and accurate interaction during virtual surgeries. This model utilized a GA to optimize the BPNN for modeling and calculation and established a virtual experimental platform using a tactile hand controller and 3D Max software. This model could provide good visual interaction and real-time force feedback [13]. Scholars such as He proposed an evaluation model that combines a BPNN and fuzzy mathematics theory to improve the efficiency and fairness of traditional university talent teaching ability evaluation. This model designed a secondary indicator system and determined the weights of each evaluation indicator through data collection. This method not only improved the efficiency of evaluation but also made the evaluation results more fair and accurate [14]. Zhiwei et al. proposed a multi-source heterogeneous monitoring data fusion algorithm based on the BPNN to improve the accuracy of landslide displacement prediction. This algorithm took environmental factors that affect landslide deformation as input variables, took landslide displacement change data as expected output, and filtered the environmental factor variables. This method effectively improved the prediction accuracy of landslide displacement [15]. Goli et al. proposed using optimization algorithms such as fuzzy multi-objective programming to solve the dual objective problem of the model to find the optimal investment portfolio strategy for the supply chain. This method effectively integrated finance and physical logistics and was effective [16]. Goli’s team also designed a blockchain closed-loop supply chain network using the blockchain technology to address the issue of supply chain product portfolio. The network structure utilized mathematical models to design product portfolios based on robust models and used financial indicators as ideal values to compare changes in equity. The results showed that this method reduced the income loss by 1.5% [17].

In conclusion, although the efficacy of fuzzy PID controllers and BPNNs in greenhouse control has been extensively validated, the aforementioned research findings solely pertain to the regulation of a singular variable in greenhouse control and do not encompass comprehensive control and prediction of multiple variables in the GhE. The combination of a fuzzy PID controller and a BPNN in greenhouse control design is still rare. Therefore, this study aims to explore GEMC based on improved fuzzy PID controllers and BPNN algorithms to improve the accuracy of environmental monitoring and control and provide strong support for the sustainable development of modern agriculture.

3 GEMC design based on improved fuzzy PID and neural network algorithms

This section proposes a new strategy based on improved fuzzy PID and BPNN algorithms for GEMC design problems. This strategy integrates the adaptability of fuzzy PID controllers and the learning ability of BPNN to improve the fuzzy logic control rules and parameter adaptive adjustment methods, thereby improving the control accuracy and system stability of the GhE.

3.1 Design of a GEMC system based on improved fuzzy PID controllers

The fuzzy PID controller is a controller that combines PID control and fuzzy logic control [18]. PID control is a common control strategy that adjusts the proportional, integral, and differential parameters of the system to control its output [19]. However, PID controllers may have poor control performance for nonlinear systems or systems with constantly changing parameters. Fuzzy logic control is a control strategy based on fuzzy set theory, which processes complex, uncertain, or nonlinear problems using human language or logic by fuzzifying input variables. The fuzzy PID controller combines the advantages of both and dynamically adjusts the parameters of the PID controller through fuzzy logic, enabling the controller to better cope with nonlinear systems or systems with parameter changes [20]. The fuzzy PID algorithm has advantages such as strong adaptability, self-learning ability, robustness, and the ability to optimize control decisions and reduce system oscillations. At the same time, it also has limitations such as complex design, high computational cost, difficulty in adjusting parameters, and over-fitting. To address these limitations, research is being conducted using neural network algorithms for parameter tuning. The neural network algorithm is an algorithm that simulates the working mode of human brain neurons, which can recognize and predict complex patterns by learning a large amount of data. In the GEMC system, neural networks can be used to predict environmental conditions or act as controllers to adjust the environment to achieve optimal conditions. The mathematical expression for the proportional controller, i.e., the P controller, in the fuzzy PID controller is shown in equation (1).

(1) U P ( t ) = k P e ( t ) .

In equation (1), U P represents the P controller, k P represents the proportional gain, e ( t ) represents the error of the system, and t represents the time. The expression for the proportional integral controller, i.e., the PI controller, is given as equation (2).

(2) U PI ( t ) = k P × e ( t ) + k I × 1 T I 0 t e ( t ) d t .

In equation (2), U PI represents the PI controller, T I represents the time of integral control in the system, and k I represents the integral gain. The PID controller is given in equation (3).

(3) U PID ( t ) = k P e ( t ) + k I 1 T I 0 t e ( t ) d t + k D T D d e ( t ) d t .

In equation (3), U PID represents the PID controller, T D represents the time of differential control in the system, and k D represents the differential gain. The principle of the fuzzy PID controller is presented in Figure 1.

Figure 1 
                  Principle of the fuzzy PID controller. Source: This figure has been created by author.
Figure 1

Principle of the fuzzy PID controller. Source: This figure has been created by author.

In Figure 1, the operations of the fuzzy PID controller mainly include fuzzification, fuzzy inference, and deblurring [21]. This process requires interpretation and decision-making of input values. However, in GhE, the measurement accuracy of sensors and the interference of environmental factors may affect the accuracy and stability of temperature and humidity control. Traditional fuzzy PID controllers may not be able to meet the precise control requirements of these environments. Therefore, this study improves the traditional fuzzy PID controller by applying the least squares support vector machine (LS-SVM) reverse identification models and proposes an improved fuzzy PID controller. The improved controller has an inverse composite control effect to enhance the effectiveness of GhE control. The structure of the improved fuzzy PID controller is displayed in Figure 2.

Figure 2 
                  Improving the structure of the fuzzy PID controller. Source: This figure has been created by author.
Figure 2

Improving the structure of the fuzzy PID controller. Source: This figure has been created by author.

O 1 and O 2 in Figure 2 represent the output temperature and humidity, respectively. I 1 and I 2 correspond to the inputs of the temperature and humidity fuzzy controller for the greenhouse, respectively. This improved fuzzy PID controller mainly consists of a PID controller, a fuzzy controller, and a scaling factor determiner [22]. This structure utilizes a variable universe fuzzy controller to adjust the temperature regulation u 1 of the heating water pipe and the speed regulation u 2 of the fan, in order to achieve temperature and humidity regulation. Then, the system will output the actual adjustment of water pipe temperature U 1 and the adjustment of fan speed U 2 . These actual output data will then be fed into a fuzzy controller for GhE regulation. The fuzzification calculation formula of the fuzzy controller is presented as equation (4).

(4) W = L [ w ( w L w H ) ] / 2 ( w L w H ) / 2 .

In equation (4), W represents the fuzzification result of environmental parameters such as temperature and humidity, L represents the value of the domain, and w L and w H represent the maximum and minimum values of environmental parameters during detection, respectively. The expression of the scaling factor is given in equation (5).

(5) δ = 1 λ exp ( K m 2 ) , λ ( 0 , 1 ) , K > 0 .

In equation (5), δ represents the scaling factor, λ represents the adjustment amount of the expansion and contraction amplitude, K represents the scaling factor, and m represents the measurement of deviation. The GEMC design based on an improved fuzzy PID controller is presented in Figure 3.

Figure 3 
                  Design of the GEMC system based on an improved fuzzy PID controller. Source: This figure has been created by author.
Figure 3

Design of the GEMC system based on an improved fuzzy PID controller. Source: This figure has been created by author.

In Figure 3, the design of GEMC based on an improved fuzzy PID controller mainly consists of the solar power supply module, communication module, data acquisition module, and terminal node module. The solar power supply module converts solar energy into electrical energy through solar panels and is usually used in conjunction with batteries to ensure that the system can still operate in the absence of sunlight. This module can provide clean and renewable power for all components, reduce system operating costs, and increase its adaptability to areas far from the power grid. The communication module enables the system to remotely transmit data and receive control commands, thereby enabling remote monitoring and management and reducing the need for manual intervention. The data acquisition module is composed of sensors used to measure environmental parameters such as temperature, humidity, light intensity, and CO2 concentration. The data collected by this module can be used for monitoring GhEs. The terminal node module is composed of actuators, and the execution controller can adjust the environmental conditions inside the greenhouse based on the commands received from the central processor. In this configuration, the environmental data collected by the sensors are sent to the central processor for processing, and then through the coordinator played by the micro-controller the data flowed to the communication module to perform communication tasks. All of these modules are powered by solar energy, reflecting the concept of environmental protection and sustainable development.

3.2 Design of a GhE prediction model for the PID control algorithm based on a BPNN

GhE is a complex coupled system composed of multiple factors such as temperature, humidity, and light [23]. Among them, temperature and humidity are key factors that are influenced by a combination of other environmental factors. Therefore, to optimize control, it is necessary to decouple temperature and humidity to ensure that each output is only affected by one input. BPNNs have strong self-learning and adaptive abilities, making them suitable for nonlinear problems in multi-variable coupled systems. LS-SVM can approximate the inverse model of the original system and concatenate the inverse model before the original system to form a pseudolinear composite system. Therefore, this study applies a BPNN and LS-SVM for reverse identification of GhE. Furthermore, this study applies LS-SVM to the BPNN to improve the identification accuracy and efficiency. Figure 4 shows the BPNN process.

Figure 4 
                  BPNN process. Source: This figure has been created by author.
Figure 4

BPNN process. Source: This figure has been created by author.

In the BPNN process shown in Figure 4, environmental information is first collected and classified for training. The trained environmental factors are normalized for ease of processing and feature extraction. The network initiates the propagation of the input signal in a forward direction, calculates the output based on the input, and then performs backpropagation based on the output error. This process involves the adjustment of weights to reduce errors, thereby achieving self-learning and optimization of the network [24]. After completing an iteration, if the preset number of iterations or convergence conditions are met, the network will save the current weights and the model structure. Otherwise, the network will continue to iterate and optimize until the termination condition is met. In this way, the BPNN can optimize weight parameters, improve the accuracy of environmental factor identification and classification, and provide an accurate decision-making basis for GhE control. The expression for the output layer error is given as equation (6).

(6) E = 1 2 j 1 m ( d j y j ) .

In equation (6), E represents the output error function, while d j and y j represent the actual output and expected output of neuron j , respectively. When the input quantity is a weight of 1, the output expression of the output layer is given as equation (7).

(7) y i = f j ( s j ) .

In equation (7), y i represents the actual output of neuron i and s j represents the input of neuron j in the output layer. The expression of the error signal at this time is given as equation (8).

(8) δ j = E s j .

In equation (8), δ j represents the error signal of neuron j . The expression for adjusting the weight parameters of the output layer is given as equation (9).

(9) Δ ω = η E ω .

In equation (9), ω represents the weight, Δ ω represents the weight update, η is a preset constant, and represents the learning rate. To improve the convergence speed of the model, a momentum factor is introduced in the BPNN. The mathematical formula for the variation of momentum after the introduction of momentum factor is presented as equation (10).

(10) Q ( t + 1 ) = Q ( t ) + η [ ( 1 β ) D ( t ) + β D ( t 1 ) ] .

In equation (10), Q ( t + 1 ) represents the amount of change at time t + 1 , β represents the momentum factor, and D t represents the negative gradient at time t . Figure 5 shows the PID control algorithm flow based on the BPNN.

Figure 5 
                  PID control algorithm flow based on the BPNN. Source: This figure has been created by author.
Figure 5

PID control algorithm flow based on the BPNN. Source: This figure has been created by author.

As shown in Figure 5, the PID control algorithm based on the BPNN initializes the network structure and sets the output layer weights. Then, fuzzy inference is performed based on preset fuzzy rules by calculating errors and adaptively adjusting parameters and weights based on the errors. If the preset number of iterations has been completed, then the result is output and the algorithm ends. Otherwise, the algorithm returns to execute fuzzy reasoning, continuing to calculate and adjust until the desired number of iterations is reached. LS-SVM originates from traditional SVM and is a machine learning algorithm [25]. LS-SVM can obtain the optimal solution by minimizing the objective function [26]. In the reverse identification of GhE, this study uses LS-SVM to map input data to high-dimensional space to solve the problem of nonlinear datasets. The kernel function expression of LS-SVM is given in equation (11).

(11) K ( a , b ) = exp a b σ 2 .

In equation (11), K represents the kernel function of LS-SVM, a and b represent input vectors and output vectors, respectively, and σ represents the kernel function parameter. The discriminant function expression constructed by LS-SVM is given as equation (12).

(12) f ( x ) = ω ϕ ( x ) + b .

In equation (12), x represents the input sample and ϕ ( x ) represents the nonlinear mapping of sample x . The optimized minimum error expression is given as equation (13).

(13) min S ( ω , ξ ) = 1 2 ω + c i = 1 H ξ .

In equation (13), min S represents the minimum error, c represents the Lagrange multiplier, ξ represents the relaxation factor, and H represents the identity matrix. To convert nonlinear problems into a system of linear equations for solution, the transformed system of linear equations is given as equation (14).

(14) 0 H H + H 1 R R T H b a = 0 Y .

In equation (14), Y represents the output sample matrix and R R T represents the square matrix of S × S . The expression of the LS-SVM regression function is given as equation (15).

(15) f ( x ) = i n c K ( a i , a j ) + b .

In control systems, LS-SVM can be used to construct inverse models. Through the process of reverse identification, it is possible to gain a deeper understanding of the relationships between various environmental factors, thereby optimizing control strategies for GhEs and improving control effectiveness. In complex GhEs, there is a coupling relationship between various environmental factors. Reverse identification can help understand and reduce the impact of this coupling, so that each control variable is only affected by one input, thereby improving the efficiency and stability of control.

4 GEMC verification based on improved fuzzy PID and neural network algorithms

To verify the performance of GEMC, an experimental environment was first established. Then, the performance of the algorithm based on improved fuzzy PID and BPNN algorithms was validated. Finally, the actual effectiveness of GEMC was tested and evaluated.

4.1 Experimental environment settings

In the experimental environment of GEMC, the main focus is on hardware configuration. The experiment used SHT75 sensors to monitor the temperature and humidity, as well as BH1750 light sensors to measure the light intensity. Simultaneously, a hot water pipeline system and a fan were selected to control the temperature and humidity separately. In terms of communication, Zigbee wireless technology was used as the communication device in the experiment to ensure the reliability and real-time performance of data transmission. In addition, the system also used solar power as the energy equipment for power supply. The overall architecture of the experimental environment consists of three phases. The initial phase of the process employs a front-end data acquisition module for the collection of greenhouse data. The second phase leverages an inverse model constructed by LS-SVM for the decoupling control of the GhE. The third phase utilizes Zigbee as a communication device to transmit the aforementioned data to the control execution module for operation and adjustment in accordance with the instructions of the control system. In the greenhouse control system, fans and heating pipes were used for room temperature control. The rated power selected for the fan was 100 W, and the rated speed was 1,420 rpm. As for the heating process, research is being conducted on using heating pipes to transport hot water to increase the indoor temperature. This study used MATLAB as the simulation software and selected Adam as the optimizer, with a set learning rate of 0.2 and a momentum factor of 0.02. The maximum number of iterations was set to 200. This study divided historical greenhouse data into training and testing sets in a 3:7 ratio. The experiment used temperature, humidity, and light sensors for data collection, and solar power supply was used to power the equipment. To achieve precise temperature control, heating water pipes and fans were used as control equipment for the heating and cooling system. Table 1 shows the specific hardware experimental environment.

Table 1

Specific hardware experimental environment

Hardware devices Configuration
Temperature and humidity sensors SHT75
Light sensor BH1750
Control equipment Heating water pipes and fans
Communication devices Zigbee
Power supply equipment Solar power supply

4.2 Performance verification based on improved fuzzy PID and neural network algorithms

To evaluate the performance of the improved BPNN algorithm, the study compared its loss function values with traditional BPNN algorithms and GA, and the results are shown in Figure 6. Figure 6(a) shows that in the training set, the improved algorithm’s loss function value was reduced to 0.21, which was 40% lower than the traditional algorithm’s minimum loss function value of 0.35. Compared to the minimum loss function value of 0.53 in the GA, it was reduced by 60.37%. As shown in Figure 6(b), in the test set, the improved BPNN algorithm converged after 60 iterations, while the traditional algorithm and GA required nearly 110 and 80 iterations, respectively, to achieve convergence. In addition, the minimum loss function values of the improved algorithm, traditional algorithm, and GA were 0.32, 1.01, and 0.75, respectively. This meant that the improved algorithm reduced errors by 68.31 and 57.33%, respectively. In summary, the improved BPNN algorithm exhibited significantly improved performance. It not only showed fast convergence speed in the training and testing stages but also had significantly lower loss function values than traditional BPNN algorithms and GA, proving its significant optimization effect.

Figure 6 
                  Comparison of loss function values for BPNN algorithms: (a) training set and (b) test set. Source: This figure has been created by author.
Figure 6

Comparison of loss function values for BPNN algorithms: (a) training set and (b) test set. Source: This figure has been created by author.

In Figure 7, to verify the performance of the improved fuzzy PID controller, this study compared and analyzed the simulation performance of the improved fuzzy PID controller and the preimproved controller in temperature and humidity control. In Figure 7(a), the solid line represents the expected temperature. The preimproved fuzzy PID controller only reached the stable expected temperature at around 1,600 s, while the improved fuzzy PID controller had already reached the stable expected temperature near 1,000 s, reducing the time by nearly 37.5%. In Figure 7(b), the time it took for the preimproved fuzzy PID controller to reach the expected humidity was about 1,700 s, while the improved controller had already reached the expected humidity at about 1,200 s, reducing the time by nearly 29.4%. Therefore, the improved fuzzy PID controller had a significant improvement in response time for temperature and humidity control compared to the previous controller.

Figure 7 
                  Comparison of (a) temperature and (b) humidity simulation of the fuzzy PID controller before and after improvement. Source: This figure has been created by author.
Figure 7

Comparison of (a) temperature and (b) humidity simulation of the fuzzy PID controller before and after improvement. Source: This figure has been created by author.

To verify the performance of the improved fuzzy PID and BPNN algorithms, this study compared the improved GEMC with the unimproved system. The comparison of tracking performance of the control system before and after improvement is shown in Figure 8. The controller output of the unimproved system reached a convergence state at 58.7 s. The improved system only converged at 15.6 s, which shortened the response time by 73.42% compared to the unimproved system. The above data indicated that the improved control system had significantly better response efficiency than the unimproved system.

Figure 8 
                  Comparison of the tracking performance of control systems before and after improvement. Source: This figure has been created by author.
Figure 8

Comparison of the tracking performance of control systems before and after improvement. Source: This figure has been created by author.

To further validate the performance of improved fuzzy PID and BPNN, this study conducted simulation tests in the test set. During this process, the temperature of the heating water pipe and the wind speed of the fan were simulated. The identification results of the inverse system based on improved fuzzy PID and divine BPNN are shown in Figure 9. In Figure 9(a), the algorithm calculated a high degree of overlap between the temperature and the actual temperature. In the 40th set of data, the maximum error was observed, at which point the actual temperature was 58.04°C. The temperature calculated by the algorithm was 56.47°C, and the relative error value reached the maximum of 2.70%. As shown in Figure 9(b), there was also a significant overlap between the wind speed calculated by the algorithm and the actual wind speed, and the maximum error was observed in the 80th set of data. The actual wind speed at this time was 10.54 m/s, while the algorithm calculated wind speed was 9.03 m/s, and the relative error value at this time reached 14.32%. In summary, the improved fuzzy PID and BPNN had high identification ability in control systems.

Figure 9 
                  Identification diagram of inverse systems – (a) heating water pipes and (b) wind speed for fans – based on improved fuzzy PID and neural network algorithms. Source: This figure has been created by author.
Figure 9

Identification diagram of inverse systems – (a) heating water pipes and (b) wind speed for fans – based on improved fuzzy PID and neural network algorithms. Source: This figure has been created by author.

4.3 Verification of the actual effectiveness of GEMC

To verify the actual effectiveness of GEMC, this study compared the environmental predicted value (EPV) of the system with the actual measured value (AMV). Figure 10 shows a comparison between EPV and AMV. In Figure 10, the EPV and AMV of environmental factors such as temperature, humidity, and light almost completely overlapped, indicating that the model had extremely high predictive accuracy. As shown in Figure 10(a), the average EPV of temperature was 24.97°C, while the average AMV was 25.18°C. The EPV was slightly lower than the AMV, with a difference of only 0.83%, indicating that the temperature prediction was very close to the actual measurement results. As shown in Figure 10(b), the average EPV of relative humidity was 39.81%, while the average relative humidity of AMV was 42.03%. EPV decreased by 2.22% compared to AMV. Figure10(c) shows that the average intensity of EPV under illumination was 8331.1572 lux, compared to the actual measured average intensity of 8437.0157 lux. Compared to AMV, EPV decreased by 1.25%, indicating that the prediction of light intensity was also quite close to the actual measurement results. In summary, EPV was slightly lower than AMV overall, but the difference between the two was very small, indicating that the model had high prediction accuracy.

Figure 10 
                  Comparison between EPVs and AMVs of (a) temperature, (b) humidity, and (c) illumination. Source: This figure has been created by author.
Figure 10

Comparison between EPVs and AMVs of (a) temperature, (b) humidity, and (c) illumination. Source: This figure has been created by author.

To further validate the effectiveness of GEMC, this study randomly selected five sets of environmental data for greenhouses and compared the environmental data monitored by the system with the measured data in detail. Table 2 presents a comparative analysis of environmental data. In Table 2, the error values of the system in temperature monitoring ranged from 0.1 to 1.3°C, with relative errors ranging from 0.35 to 5.04%. In terms of humidity monitoring, the error value ranged from −1.3 to 1.65%. As for lighting monitoring, the error value ranged from −102 to −8 lux, and the relative error was between −3.5 and −0.79%. Overall, this GEMC had a relatively high accuracy in measuring the temperature, humidity, and lighting, especially in terms of performance in measuring the temperature and humidity. However, further optimization may be needed in lighting measurement to reduce errors.

Table 2

Comparative analysis of environmental data

Serial number System monitoring data Measured data Error value Relative error (%)
Temperature (℃) 1 23.1 24.2 1.1 4.55
2 24.5 25.8 1.3 5.04
3 27.7 28.5 0.8 2.81
4 30.1 31.2 1.1 3.53
5 28.2 28.3 0.1 0.35
Humidity (%) 1 66.1 65.2 −0.9 −1.38
2 63.5 63.1 −0.4 −0.63
3 71.4 72.6 1.2 1.65
4 74.7 73.4 −1.3 −1.77
5 54.3 53.5 −0.8 −1.50
Illumination (lux) 1 352 344 −8 −2.33
2 562 543 −19 −3.50
3 6,133 6,085 −48 −0.79
4 7,437 7,335 −102 −1.39
5 8,688 8,596 −92 −1.07

To verify the superiority of the GEMC system based on improved fuzzy PID and neural network algorithms, this control system was compared and analyzed with the most advanced greenhouse control methods. Advanced greenhouse control methods included heuristic algorithm-based greenhouse control systems, variable universe fuzzy control-based greenhouse control systems, and deep reinforcement learning-based greenhouse control systems [27,28]. The error comparison of environmental monitoring data from different greenhouse control systems is shown in Figure 11. As shown in Figure 11, from the perspective of temperature monitoring, the maximum relative error obtained by the control system studied in this article was 5.04%. The maximum relative errors of the greenhouse control system based on heuristic algorithms, variable universe fuzzy control, and deep reinforcement learning were 8.12, 10.01, and 9.54%, respectively. The research method reduced them by 3.08, 4.97, and 4.50%, respectively. From the perspective of humidity monitoring, the maximum relative error of the research method was −1.77%, which is still the smallest error compared to the maximum error values of 2.73, 4.42, and −2.60% of the other three methods. From the lighting data, the maximum error of the research method was −3.50%, which still had advantages compared to the maximum error values of the other three methods of −4.01, −3.49, and −4.40%. In summary, the GEMC system based on improved fuzzy PID and neural network algorithms studied had superior performance compared to other advanced greenhouse control methods.

Figure 11 
                  Comparison of errors in environmental monitoring data of different greenhouse control systems: (a) temperature, (b) humidity, and (c) lighting data. Source: This figure has been created by author.
Figure 11

Comparison of errors in environmental monitoring data of different greenhouse control systems: (a) temperature, (b) humidity, and (c) lighting data. Source: This figure has been created by author.

5 Conclusions

GEMC technology plays a crucial role in promoting the development of modern smart agriculture. To achieve precise monitoring and regulation of GhE, this study adopted improved fuzzy PID and BPNN algorithms to design the system. Experimental data showed that the improved fuzzy PID controller reduced time by 37.5 and 29.4% compared to traditional methods when achieving the desired temperature and humidity, respectively. In addition, the output response time of the controller was significantly reduced by 73.42%. In terms of accuracy, the maximum relative error between the calculated temperature and the actual temperature was 2.70%, while the relative error of wind speed reached 14.32%. The difference between the EPV and AMV of temperature, humidity, and light in the greenhouse was less than 3%. In terms of temperature monitoring, the error value of the system was between 0.35 and 5.04%, the error range of humidity was between −1.3 and 1.65%, and the error of lighting was between −3.5 and −0.79%. The above data showed that the greenhouse control system studied exhibited excellent performance in predicting the temperature, humidity, and lighting within the greenhouse, with the difference between the predicted and measured values remaining within 3%. Although there was a maximum relative error of 14.32% in wind speed control, this error value was expected to decrease with algorithm optimization. Therefore, the greenhouse control system combining the BPNN and fuzzy PID controller not only improves the control accuracy but also enhances the robustness of the system. The results of this study have important practical significance for the development of intelligent agricultural technology and the application of the Internet of Things, which helps to improve the agricultural production efficiency and quality. The control system studied only focuses on the coupling control of temperature and humidity in the GhE, so the research results are not comprehensive enough. In future research, it would be beneficial to consider additional decoupling control studies between environmental factors. Additionally, attempts should be made to increase certain compensation and disturbance to achieve more precise control of the greenhouse. In the future, in addition to optimizing algorithms, more factors that affect the GhE can also be considered for monitoring, such as atmospheric pressure and soil moisture. By considering more factors comprehensively, the accuracy and practicality of GEMC will be improved further.

  1. Funding information: The research is supported by: 2023 Dandong Guiding Science and Technology Plan (Liaodong University Joint Plan) “Research on key technology of intelligent collection and control of fruit and vegetable greenhouses” No. 15; 2024 Basic Scientific Research Project of Colleges and universities of “Fruit and vegetable greenhouse crop growth data collection monitoring and control application technology research” Liaoning Education Department [2024] No. 136.

  2. Author contribution: The author confirms sole responsibility for the following: study conception and design, analysis and interpretation of results, and manuscript preparation.

  3. Conflict of interest: The authors declare no conflict of interest.

  4. Data availability statement: Data may be obtained from the authors upon reasonable request.

References

[1] Ghamari SM, Narm HG, Mollaee H. Fractional‐order fuzzy PID controller design on buck converter with antlion optimization algorithm. IET Control Theory Appl. 2022;16(3):340–52. 10.1049/cth2.12230.Search in Google Scholar

[2] Kristiyono R, Wiyono W. Autotuning fuzzy PID controller for speed control of BLDC motor. J Robot Control (JRC). 2021;2(5):400–7. 10.18196/jrc.25114.Search in Google Scholar

[3] Han SY, Dong JF, Zhou J, Chen YH. Adaptive fuzzy PID control strategy for vehicle active suspension based on road evaluation. Electronics. 2022;11(6):921–5. 10.3390/electronics11060921.Search in Google Scholar

[4] Chao CT, Sutarna N, Chiou JS, Wang C. J. An optimal fuzzy PID controller design based on conventional PID control and nonlinear factors. Appl Sci. 2019;9(6):1224–30. 10.3390/app9061224.Search in Google Scholar

[5] Elkasem AHA, Khamies M, Magdy G, Taha IB, Kamel S. Frequency stability of AC/DC interconnected power systems with wind energy using arithmetic optimization algorithm-based fuzzy-PID controller. Sustainability. 2021;13(21):12095. 10.3390/su132112095.Search in Google Scholar

[6] Wang L, Wang B. Greenhouse microclimate environment adaptive control based on a wireless sensor network. Int J Agric Biol Eng. 2020;13(3):64–9. 10.25165/j.ijabe.20201303.5027.Search in Google Scholar

[7] Jung DH, Kim HJ, Kim JY, Lee TS, Park SH. Model predictive control via output feedback neural network for improved multi-window greenhouse ventilation control. Sensors. 2020;20(6):1756–9. 10.3390/s20061756.Search in Google Scholar PubMed PubMed Central

[8] Kumar Khadanga R, Kumar A, Panda S. Frequency control in hybrid distributed power systems via type‐2 fuzzy PID controller. IET Renewable Power Gener. 2021;15(8):1706–23. 10.1049/rpg2.12140.Search in Google Scholar

[9] Dogruer T, Can MS. Design and robustness analysis of fuzzy PID controller for automatic voltage regulator system using genetic algorithm. Trans Inst Meas Control. 2022;44(9):1862–73. 10.1177/01423312211066758.Search in Google Scholar

[10] Sahoo S, Jena NK, Dei G, Sahu BK. Self-adaptive fuzzy-PID controller for AGC study in deregulated Power System. Indonesian J Electr Eng Inform (IJEEI). 2019;7(4):650–63. 10.52549/ijeei.v7i4.1418.Search in Google Scholar

[11] Goli A, Ala A, Mirjalili S. A robust possibilistic programming framework for designing an organ transplant supply chain under uncertainty. Ann Oper Res. 2023;328(1):493–530. 10.1007/s10479-022-04829-7.Search in Google Scholar

[12] Goli A, Ala A, Hajiaghaei-Keshteli M. Efficient multi-objective meta-heuristic algorithms for energy-aware non-permutation flow-shop scheduling problem. Expert Syst Appl. 2023;213:119077. 10.1016/j.eswa.2022.119077.Search in Google Scholar

[13] Zhang XR, Sun X, Sun W, Xu T, Wang PP, Jha SK. Deformation expression of soft tissue based on BP neural network. Intell Autom Soft Comput. 2022;32(2):1041–53. 10.32604/iasc.2022.016543.Search in Google Scholar

[14] He H, Yan H, Liu W. Intelligent teaching ability of contemporary college talents based on BP neural network and fuzzy mathematical model. J Intell Fuzzy Syst. 2020;39(4):4913–23. 10.3233/JIFS-179977.Search in Google Scholar

[15] Zhiwei W, Li W, Guanwen H, Qingqing HAN, Fu X, Cong Y. Research on multi-source heterogeneous data fusion algorithm of landslide monitoring based on BP neural network. J Geomech. 2020;26(4):575–82. 10.12090/j.issn.1006-6616.2020.26.04.050.Search in Google Scholar

[16] Goli A, Tirkolaee EB. Designing a portfolio-based closed-loop supply chain network for dairy products with a financial approach: Accelerated Benders decomposition algorithm. Comput Oper Res. 2023;155:106244. 10.1016/j.cor.2023.106244.Search in Google Scholar

[17] Goli A. Integration of blockchain-enabled closed-loop supply chain and robust product portfolio design. Comput Ind Eng. 2023;179:109211. 10.1016/j.cie.2023.109211.Search in Google Scholar

[18] Jiang J, Hu G, Li X, Xu X, Zheng P, Stringer J. Analysis and prediction of printable bridge length in fused deposition modelling based on back propagation neural network. Virtual Phys Prototyping. 2019;14(3):253–66. 10.1080/17452759.2019.1576010.Search in Google Scholar

[19] Zhu H, Wang Y. Intelligent prediction of prestressed steel structure construction safety based on BP neural network. Appl Sci. 2022;12(3):1442–56. 10.3390/app12031442.Search in Google Scholar

[20] Du Y, Chen W, Cui K, Zhang J, Chen Z, Zhang Q. Damage assessment of earthen sites of the Ming Great Wall in Qinghai Province: a comparison between Support Vector Machine (SVM) and BP Neural Network. ACM J Comput Cult Heritage. 2020;13(2):1–18. 10.1145/3376120.Search in Google Scholar

[21] Li D, Huang F, Yan L, Cao Z, Chen J, Ye Z. Landslide susceptibility prediction using particle-swarm-optimized multilayer perceptron: Comparisons with multilayer-perceptron-only, bp neural network, and information value models. Appl Sci. 2019;9(18):3664–9. 10.3390/app9183664.Search in Google Scholar

[22] Yuan R, Lv Y, Kong Q, Song G. Percussion-based bolt looseness monitoring using intrinsic multiscale entropy analysis and BP neural network. Smart Mater Struct. 2019;28(12):125001. 10.1088/1361-665X/ab3b39.Search in Google Scholar

[23] Phu ND, Hung NN, Ahmadian A, Senu N. A new fuzzy PID control system based on fuzzy PID controller and fuzzy control process. Int J Fuzzy Syst. 2020;22(7):2163–87. 10.1007/s40815-020-00904-y.Search in Google Scholar

[24] Singhal K, Kumar V, Rana KPS. Robust trajectory tracking control of non-holonomic wheeled mobile robots using an adaptive fractional order parallel fuzzy PID controller. J Franklin Inst. 2022;359(9):4160–215. 10.1016/j.jfranklin.2022.03.043.Search in Google Scholar

[25] Mitra P, Dey C, Mudi RK. Fuzzy rule-based set point weighting for fuzzy PID controller. SN Appl Sci. 2021;3(6):651–7. 10.1007/s42452-021-04626-0.Search in Google Scholar

[26] Luo N, Yu H, You Z, Li Y, Zhou T, Jiao Y, Qiao S. Fuzzy logic and neural network-based risk assessment model for import and export enterprises: A review. J Data Sci Intell Syst. 2023;1(1):2–11. 10.47852/bonviewJDSIS32021078.Search in Google Scholar

[27] Gong L, Yu M, Kollias S. Optimizing crop yield and reducing energy consumption in greenhouse control using PSO-MPC algorithm. Algorithms. 2023;16(5):243–51. 10.47852/bonviewJDSIS32021078.Search in Google Scholar

[28] He P, Zhou X, Liu M, Xu K, Meng X, Yang B. Generalized regression neural network based meta-heuristic algorithms for parameter identification of proton exchange membrane fuel cell. Energies. 2023;16(14):5290–7. 10.3390/en16145290.Search in Google Scholar

Received: 2024-01-25
Accepted: 2024-06-19
Published Online: 2025-01-29

© 2025 the author(s), published by De Gruyter

This work is licensed under the Creative Commons Attribution 4.0 International License.

Articles in the same Issue

  1. Research Articles
  2. Synergistic effect of artificial intelligence and new real-time disassembly sensors: Overcoming limitations and expanding application scope
  3. Greenhouse environmental monitoring and control system based on improved fuzzy PID and neural network algorithms
  4. Explainable deep learning approach for recognizing “Egyptian Cobra” bite in real-time
  5. Optimization of cyber security through the implementation of AI technologies
  6. Deep multi-view feature fusion with data augmentation for improved diabetic retinopathy classification
  7. A new metaheuristic algorithm for solving multi-objective single-machine scheduling problems
  8. Estimating glycemic index in a specific dataset: The case of Moroccan cuisine
  9. Hybrid modeling of structure extension and instance weighting for naive Bayes
  10. Application of adaptive artificial bee colony algorithm in environmental and economic dispatching management
  11. Stock price prediction based on dual important indicators using ARIMAX: A case study in Vietnam
  12. Emotion recognition and interaction of smart education environment screen based on deep learning networks
  13. Supply chain performance evaluation model for integrated circuit industry based on fuzzy analytic hierarchy process and fuzzy neural network
  14. Application and optimization of machine learning algorithms for optical character recognition in complex scenarios
  15. Comorbidity diagnosis using machine learning: Fuzzy decision-making approach
  16. A fast and fully automated system for segmenting retinal blood vessels in fundus images
  17. Application of computer wireless network database technology in information management
  18. A new model for maintenance prediction using altruistic dragonfly algorithm and support vector machine
  19. A stacking ensemble classification model for determining the state of nitrogen-filled car tires
  20. Research on image random matrix modeling and stylized rendering algorithm for painting color learning
  21. Predictive models for overall health of hydroelectric equipment based on multi-measurement point output
  22. Architectural design visual information mining system based on image processing technology
  23. Measurement and deformation monitoring system for underground engineering robots based on Internet of Things architecture
  24. Face recognition method based on convolutional neural network and distributed computing
  25. OPGW fault localization method based on transformer and federated learning
  26. Class-consistent technology-based outlier detection for incomplete real-valued data based on rough set theory and granular computing
  27. Detection of single and dual pulmonary diseases using an optimized vision transformer
  28. CNN-EWC: A continuous deep learning approach for lung cancer classification
  29. Cloud computing virtualization technology based on bandwidth resource-aware migration algorithm
  30. Hyperparameters optimization of evolving spiking neural network using artificial bee colony for unsupervised anomaly detection
  31. Classification of histopathological images for oral cancer in early stages using a deep learning approach
  32. A refined methodological approach: Long-term stock market forecasting with XGBoost
  33. Enhancing highway security and wildlife safety: Mitigating wildlife–vehicle collisions with deep learning and drone technology
  34. An adaptive genetic algorithm with double populations for solving traveling salesman problems
  35. EEG channels selection for stroke patients rehabilitation using equilibrium optimizer
  36. Influence of intelligent manufacturing on innovation efficiency based on machine learning: A mechanism analysis of government subsidies and intellectual capital
  37. An intelligent enterprise system with processing and verification of business documents using big data and AI
  38. 10.1515/jisys-2025-0058
  39. Review Articles
  40. A comprehensive review of deep learning and machine learning techniques for early-stage skin cancer detection: Challenges and research gaps
  41. An experimental study of U-net variants on liver segmentation from CT scans
  42. Strategies for protection against adversarial attacks in AI models: An in-depth review
  43. Resource allocation strategies and task scheduling algorithms for cloud computing: A systematic literature review
  44. Latency optimization approaches for healthcare Internet of Things and fog computing: A comprehensive review
Downloaded on 11.9.2025 from https://www.degruyterbrill.com/document/doi/10.1515/jisys-2024-0079/html
Scroll to top button