CN-122023841-A - Microbial steady-state regulation and control method and system
Abstract
The invention discloses a microbial steady-state regulation and control method and a system, which relate to the technical field of microbial monitoring and comprise the steps of collecting microbial population images, preprocessing the microbial population images to generate a binary image, carrying out morphological expansion and corrosion operation on the binary image to obtain a closed contour map, constructing a distance matrix by using mass center coordinates of microbial particles to obtain a time sequence track of each particle, calculating the change rate of displacement and instantaneous speed variance between adjacent time points, converting the change rate into a behavior track disturbance index, calculating the instantaneous deviation of the behavior track disturbance index, and generating a regulation and control signal. According to the invention, the distance matrix is constructed and Euclidean distance calculation is combined to carry out particle matching, so that possible matching errors of simple distance calculation in the traditional method are avoided, and the stability and precision of particle matching are improved by combining image preprocessing and optimization of a particle matching algorithm.
Inventors
- LUO HONGBO
- GU SHUGUANG
- Qin Yanhai
- XU LIHUA
- ZHANG QIHUA
- MAO DONGLEI
- CUI HE
Assignees
- 南通华新环保科技股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251223
Claims (10)
- 1. A method for regulating and controlling the microbial steady state is characterized by comprising the following steps, Acquiring a microbial population image, preprocessing the microbial population image to generate a binary image, carrying out morphological expansion and corrosion operation on the binary image to obtain a closed contour map, and constructing a distance matrix by using the centroid coordinates of microbial particles to obtain a time sequence track of each particle; Calculating the change rate of the displacement and the instantaneous speed variance between adjacent time points, converting the change rate into a behavior track disturbance index, calculating the instantaneous deviation of the behavior track disturbance index, and generating a regulating and controlling signal; And constructing a visual interface to display the regulation and control signals, and storing and collecting and analyzing the generated microbial population images.
- 2. The method for regulating and controlling microbial steady state according to claim 1, wherein the step of performing morphological expansion and corrosion operation on the binarized image to obtain a closed contour map, and constructing a distance matrix by using centroid coordinates of microbial particles to obtain a time-series track of each particle comprises the steps of: performing morphological expansion and corrosion operation on the binarized image to obtain a closed contour map; calibrating each microorganism particle by using a communication area calibration algorithm to obtain a centroid coordinate; Calculating Euclidean distance between any particles in two frames, constructing a distance matrix, selecting a column index with the minimum distance from a first row of the distance matrix, and generating a matching set; And adding the coordinates of the matched particles in the matched set into the corresponding track sequence according to the time sequence to obtain the time sequence track of each particle.
- 3. The method for regulating and controlling microbial steady state according to claim 2, wherein the calculating the change rate of the displacement and the instantaneous velocity variance between adjacent time points is converted into a behavior trace disturbance index, and the method comprises the following steps: Calculating displacement between adjacent time points through Euclidean distance formula based on the time sequence track, and converting the displacement into instantaneous speed of each time step according to a speed definition formula; Calculating the change rate of the instantaneous speed variance through a finite difference formula; and calculating the disturbance index of the behavior track according to the change rate of the displacement and the velocity variance.
- 4. The method for regulating and controlling microbial homeostasis according to claim 3, wherein calculating the transient deviation of the behavior trace disturbance index to generate a regulating and controlling signal comprises: calculating the instantaneous deviation of the behavior track disturbance index; the regulation signal is calculated using a proportional-integral control algorithm.
- 5. The method for regulating the steady state of microorganisms according to claim 4, wherein the constructing a visual interface displays a regulating signal, comprising: and constructing a visual interface by using a front end frame act, and displaying the regulation and control signals in real time.
- 6. The method for controlling microbial homeostasis according to claim 5, wherein said storing, collecting and analyzing the generated microbial population image comprises: And storing the collected microbial community images and the regulation signals generated by analysis into a central database, setting security access measures, carrying out cloud backup on the stored data by the central database, carrying out integrity detection on the stored data and the backup data at regular intervals, and generating an integrity detection record after the detection is finished and synchronously storing the integrity detection record into the central database.
- 7. The method for regulating and controlling microbial homeostasis according to claim 1, wherein the steps of collecting and preprocessing the microbial population image to generate a binary image comprise: acquiring a microorganism group image by using an industrial camera, and preprocessing; and carrying out histogram equalization on the microbial population image, removing background noise of the image subjected to the histogram equalization by using median filtering, and carrying out binarization processing on the image subjected to the denoising by using an Otsu method to obtain a binarized image.
- 8. A microbial steady state control system based on the microbial steady state control method according to any one of claims 1 to 7, characterized by comprising, The acquisition processing module is used for acquiring the microorganism group image and preprocessing the microorganism group image to generate a binarized image; the coordinate track module is used for carrying out morphological expansion and corrosion operation on the binary image to obtain a closed contour map, and constructing a distance matrix by using the barycenter coordinates of the microorganism particles to obtain a time sequence track of each particle; the conversion regulation and control module is used for calculating the change rate of the displacement and the instantaneous speed variance between adjacent time points, converting the change rate into a behavior track disturbance index, calculating the instantaneous deviation of the behavior track disturbance index and generating a regulation and control signal; And the display storage module is used for constructing a visual interface to display the regulation and control signals and storing and collecting and analyzing the generated microbial population images.
- 9. A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the computer program is characterized in that the processor realizes the steps of the method for regulating and controlling the microbial steady state according to any one of claims 1 to 7 when executing the computer program.
- 10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method for controlling the steady state of microorganisms according to any one of claims 1 to 7.
Description
Microbial steady-state regulation and control method and system Technical Field The invention relates to the technical field of microorganism monitoring, in particular to a method and a system for regulating and controlling microbial steady state. Background The microbial steady-state control technology is always an important research direction in the fields of biology, microbiology and environmental engineering, and along with the continuous development of biotechnology, the application of microorganisms in the fields of environmental remediation, industrial production and medicine is gradually increased, so that how to efficiently control the growth and metabolic behaviors of the microorganisms becomes one of the key technologies. The existing microorganism steady-state regulation and control method still has the defects, the traditional particle matching algorithm is mostly dependent on simple distance calculation, is easily influenced by image resolution and particle morphology change, and has low particle matching precision, so that the accuracy of subsequent track calculation is influenced. Disclosure of Invention The present invention has been made in view of the above-mentioned problems occurring in the prior art. Therefore, the invention provides a microbial steady-state regulation and control method and a microbial steady-state regulation and control system, which solve the problems that the traditional particle matching algorithm is mostly dependent on simple distance calculation, is easily influenced by image resolution and particle morphology change, causes low particle matching precision, and further influences the accuracy of subsequent track calculation. In order to solve the technical problems, the invention provides the following technical scheme: in a first aspect, the present invention provides a method for regulating microbial homeostasis, comprising, Acquiring a microbial population image, preprocessing the microbial population image to generate a binary image, carrying out morphological expansion and corrosion operation on the binary image to obtain a closed contour map, and constructing a distance matrix by using the centroid coordinates of microbial particles to obtain a time sequence track of each particle; Calculating the change rate of the displacement and the instantaneous speed variance between adjacent time points, converting the change rate into a behavior track disturbance index, calculating the instantaneous deviation of the behavior track disturbance index, and generating a regulating and controlling signal; And constructing a visual interface to display the regulation and control signals, and storing and collecting and analyzing the generated microbial population images. The method for regulating and controlling the microbial steady state is a preferable scheme, wherein the method comprises the steps of carrying out morphological expansion and corrosion operation on a binarized image to obtain a closed contour map, constructing a distance matrix by using barycenter coordinates of microbial particles to obtain a time sequence track of each particle, and comprises the following steps: performing morphological expansion and corrosion operation on the binarized image to obtain a closed contour map; calibrating each microorganism particle by using a communication area calibration algorithm to obtain a centroid coordinate; Calculating Euclidean distance between any particles in two frames, constructing a distance matrix, selecting a column index with the minimum distance from a first row of the distance matrix, and generating a matching set; And adding the coordinates of the matched particles in the matched set into the corresponding track sequence according to the time sequence to obtain the time sequence track of each particle. The method for regulating and controlling the microbial steady state is a preferable scheme, wherein the calculating of the change rate of the displacement and the instantaneous speed variance between adjacent time points is converted into a behavior track disturbance index, and the method comprises the following steps: Calculating displacement between adjacent time points through Euclidean distance formula based on the time sequence track, and converting the displacement into instantaneous speed of each time step according to a speed definition formula; Calculating the change rate of the instantaneous speed variance through a finite difference formula; and calculating the disturbance index of the behavior track according to the change rate of the displacement and the velocity variance. As a preferable scheme of the microbial steady-state regulation method, the method for calculating the transient deviation of the behavior track disturbance index, generating a regulation signal comprises the following steps: calculating the instantaneous deviation of the behavior track disturbance index; the regulation signal is calculated using a proportional-integral