The invention discloses a rural domestic
sewage treatment system and method for controlling an A2O reaction process based on energy detection. The
system is provided with a
grating well, a regulating tank, an anaerobic-anoxic zone, an aerobic zone and a
sedimentation tank, and is equipped with a monitoring module for monitoring the temperature and
water level of
sewage in each section so as to obtain volume information. The control method adopts a long short-
term memory (LSTM) neural
network model to perform reaction process prediction, and specifically comprises the following steps: firstly, performing normalization
processing on monitored temperature and
water level data, and constructing an input
feature vector; defining an LSTM model structure and dividing a
data set; model training is completed through
forward propagation calculation,
loss function calculation and back propagation updating parameters; and finally, predicting anaerobic, anoxic and aerobic zone reaction processes by using the trained model, and adjusting parameters such as an internal
reflux ratio according to a prediction result. The method can accurately grasp the reaction process, is suitable for the characteristic of large fluctuation of the quality and quantity of rural
sewage, improves the
sewage treatment effect, reduces the operation and maintenance cost, and achieves data-driven
intelligent decision making.