Sensors (Jul 2022)

Application of PSO-BPNN-PID Controller in Nutrient Solution EC Precise Control System: Applied Research

  • Yongtao Wang,
  • Jian Liu,
  • Rong Li,
  • Xinyu Suo,
  • Enhui Lu

DOI
https://doi.org/10.3390/s22155515
Journal volume & issue
Vol. 22, no. 15
p. 5515

Abstract

Read online

In this paper, we present a nutrient solution control system, designing a nutrient solution electrical conductivity (EC) sensing system composed of multiple long-range radio (LoRa) slave nodes, narrow-band Internet of Things (NB-IoT) master nodes, and a host computer, building a nutrient solution EC control model and using the particle swarm optimization (PSO) algorithm to optimize the initial weights of a back-propagation neural network (BPNN). In addition, the optimized best weights are put into the BPNN to adjust the proportional–integral–derivative (PID) control parameters Kp, Ki, and Kd so that the system performance index can be optimized. Under the same initial conditions, we input EC = 2 mS/cm and use the particle swarm optimization BP neural network PID (PSO-BPNN-PID) to control the EC target value of the nutrient solution. The optimized scale factors were Kp = 81, Ki = 0.095, and Kd = 0.044; the steady state time was about 43 s, the overshoot was about 0.14%, and the EC value was stable at 1.9997 mS/cm–2.0027 mS/cm. Compared with the BP neural network PID (BPNN-PID) and the traditional PID control approach, the results show that PSO-BPNN-PID had a faster response speed and higher accuracy. Furthermore, we input 1 mS/cm, 1.5 mS/cm, 2 mS/cm, and 2.5 mS/cm, respectively, and simulated and verified the PSO-BPNN-PID system model. The results showed that the fluctuation range of EC was 0.003 mS/cm~0.119 mS/cm, the steady-state time was 40 s~60 s, and the overshoot was 0.3%~0.14%, which can meet the requirements of the rapid and accurate integration of water and fertilizer in agricultural production.

Keywords