A water quality early warning system and method based on zebrafish behavior analysis
By generating a voltage matrix through an infrared transceiver array and a signal-driven acquisition board, and calculating the movement parameters of zebrafish, water quality early warning based on zebrafish behavior analysis was realized, solving the problems of blind spots and high costs, and improving monitoring efficiency.
Patent Information
- Application Number
- CN202211715064.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2042-12-28
AI Technical Summary
Existing water quality early warning methods based on zebrafish behavior analysis have blind spots, are costly and inefficient, and are difficult to implement in real time.
An infrared transceiver array and a signal-driven acquisition board are used to detect the position and movement parameters of zebrafish using infrared light, generate a voltage matrix, and calculate water quality warnings.
It solved the problem of blind spots in observation, reduced costs, improved monitoring efficiency, and enabled real-time water quality early warning.
Smart Images

Figure CN115902145B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of environmental engineering, in particular to a water quality early warning system and method based on zebrafish behavior analysis. BACKGROUND
[0002] How to effectively monitor and manage water quality has become a problem that governments around the world are closely watching. Therefore, designing a water quality online monitoring method that can prevent regional water pollution accidents, solve cross-regional water pollution, and supervise factory sewage discharge indicators is currently the top priority in coordinating national work and preventing water pollution.
[0003] The current water quality monitoring and evaluation methods of countries around the world are roughly divided into two categories. The first category is a physicochemical analysis method that uses various instruments to directly measure the content of a certain substance in a water sample. This method requires a certain amount of time and has high detection costs, making it difficult to achieve real-time continuous detection. The second category is a biological monitoring method that combines biological monitoring technology with environmental science. Through the combination of ecological methods and toxicological methods, the reaction and perception of aquatic organisms to the water environment are used to evaluate water pollution. This method has excellent real-time performance.
[0004] Zebrafish is a standard model organism recommended by the International Organization for Standardization (ISO) for biological monitoring. It has a wealth of toxicological data and is sensitive to a wide range of toxic substances. It has the advantages of low cultivation cost, easy monitoring of behavior patterns, and obvious stress response. As early as the early 1990s, zebrafish has been applied to the detection of mixed compounds. Zebrafish is used to conduct short-term or long-term exposure response experiments on various environmental pollutants, including carcinogens. It has been proven to be a convenient experimental material. However, in actual experiments, the behavior of zebrafish is not only affected by water pollution factors, but also affected by water temperature, pH, noise, light, and other factors, leading to abnormal behavior. Even if the corresponding factors are controlled within a certain range, it is still difficult to avoid irregular changes in the natural behavior of zebrafish caused by other uncontrollable factors.
[0005] The current main method of zebrafish biological monitoring for water quality early warning is based on computer vision technology, using a camera to record and obtain zebrafish behavior pictures, and analyzing the motion trajectory and other related motion data of zebrafish through image analysis. However, this method has high costs and requires a lot of resources for image processing in the later stage. In particular, there are a large number of repetitive and resource-wasting analysis methods, and there are also observation dead angles in the camera recording area. SUMMARY
[0006] The present application relates to the technical field of environmental engineering, in particular to a water quality early warning system and method based on zebrafish behavior analysis. BACKGROUND
[0002] How to effectively monitor and manage water quality has become a problem that governments around the world are closely watching. Therefore, designing a water quality online monitoring method that can prevent regional water pollution accidents, solve cross-regional water pollution, and supervise factory sewage discharge indicators is currently the top priority in coordinating national work and preventing water pollution.
[0003] The current water quality monitoring and evaluation methods of countries around the world are roughly divided into two categories. The first category is a physicochemical analysis method that uses various instruments to directly measure the content of a certain substance in a water sample. This method requires a certain amount of time and has high detection costs, making it difficult to achieve real-time continuous detection. The second category is a biological monitoring method that combines biological monitoring technology with environmental science. Through the combination of ecological methods and toxicological methods, the reaction and perception of aquatic organisms to the water environment are used to evaluate water pollution. This method has excellent real-time performance.
[0004] Zebrafish is a standard model organism recommended by the International Organization for Standardization (ISO) for biological monitoring. It has a wealth of toxicological data and is sensitive to a wide range of toxic substances. It has the advantages of low cultivation cost, easy monitoring of behavior patterns, and obvious stress response. As early as the early 1990s, zebrafish has been applied to the detection of mixed compounds. Zebrafish is used to conduct short-term or long-term exposure response experiments on various environmental pollutants, including carcinogens. It has been proven to be a convenient experimental material. However, in actual experiments, the behavior of zebrafish is not only affected by water pollution factors, but also affected by water temperature, pH, noise, light, and other factors, leading to abnormal behavior. Even if the corresponding factors are controlled within a certain range, it is still difficult to avoid irregular changes in the natural behavior of zebrafish caused by other uncontrollable factors.
[0005] The current main method of zebrafish biological monitoring for water quality early warning is based on computer vision technology, using a camera to record and obtain zebrafish behavior pictures, and analyzing the motion trajectory and other related motion data of zebrafish through image analysis. However, this method has high costs and requires a lot of resources for image processing in the later stage. In particular, there are a large number of repetitive and resource-wasting analysis methods, and there are also observation dead angles in the camera recording area. SUMMARY
[0006] The present application relates to the technical field of environmental engineering, in particular to a water quality early warning system and method based on zebrafish behavior analysis.
[0007] To achieve the above object, the present application provides the following scheme:
[0008] A water quality early warning system based on zebrafish behavior analysis, comprising:
[0009] A monitoring chamber for placing a target water body and a target zebrafish; a detection module is arranged at the center of the monitoring chamber; the target water body and the target zebrafish are located outside the detection module;
[0010] An infrared transmitting-receiving array; the infrared transmitting-receiving array comprises a plurality of infrared transmitting-receiving modules; the plurality of infrared transmitting-receiving modules are arranged in M rows and N columns and are distributed at equal intervals on the detection module; the infrared transmitting-receiving module comprises an infrared transmitting module and an infrared receiving module; the infrared transmitting module is used for emitting infrared light to the monitoring chamber; the infrared receiving module is used for generating induced current according to the infrared light reflected by the monitoring chamber or the target zebrafish; wherein M is greater than or equal to 5, and N is greater than or equal to 12;
[0011] A signal-driven acquisition board connected with the infrared transmitting-receiving array, used for driving each infrared transmitting module to emit infrared light, and also used for acquiring the induced current generated by each infrared receiving module and generating an M-row and N-column voltage matrix according to each induced current;
[0012] A processor connected with the signal-driven acquisition board, used for continuously acquiring the voltage matrix of the target zebrafish in the target water body, calculating the motion parameters of the target zebrafish according to the voltage matrix, and warning the water quality of the target water body according to the motion parameters; the motion parameters include motion speed, motion acceleration, fish body depth, residence time and cumulative motion distance; the cumulative motion distance is the sum of the motion distances of the target zebrafish within a set recording time.
[0013] Optionally, the signal-driven acquisition board comprises:
[0014] An oscillation circuit used for generating a square wave with a set frequency;
[0015] A power amplification circuit array connected with the oscillation circuit and each infrared transmitting module, respectively, used for driving each infrared transmitting module to emit infrared light after power amplifying the square wave;
[0016] An I / V conversion circuit array connected with each infrared receiving module, respectively, used for acquiring the induced current generated by each infrared receiving module and converting the induced current into a corresponding voltage signal;
[0017] A low-pass filter array is connected with the I / V conversion circuit array, and is used for filtering each voltage signal to obtain a voltage matrix.
[0018] Optionally, the monitoring chamber is a cylindrical monitoring chamber made of transparent material; and the detection module is a cylindrical detection module which is in the same height and coaxial with the monitoring chamber.
[0019] Optionally, the value of M is 5, and the value of N is 12; each infrared transceiver module is distributed equidistantly on five different depths of the detection module, and there are 12 infrared transceiver modules equiangularly distributed on each depth.
[0020] A water quality early warning method based on zebrafish behavior analysis, the water quality early warning method is applied to the water quality early warning system, and the method comprises the following steps of:
[0021] Continuously acquiring a voltage matrix of a target zebrafish in a target water body; the voltage matrix is generated by a signal-driven acquisition board according to an induced current generated by each infrared receiving module in an infrared transceiver array;
[0022] Calculating a motion parameter of the target zebrafish according to the voltage matrix; the motion parameter comprises a motion speed, a motion acceleration, a depth of a fish body, a residence time and a cumulative motion distance; the cumulative motion distance is a sum of motion distances of the target zebrafish within a set recording time;
[0023] Early warning of water quality of the target water body according to the motion parameter.
[0024] Optionally, the calculating of the motion parameter of the target zebrafish according to the voltage matrix specifically comprises the following steps of:
[0025] Calculating position information of the target zebrafish in the monitoring chamber according to the voltage matrix;
[0026] Calculating a motion trajectory of the target zebrafish according to the position information;
[0027] Calculating the motion parameter of the target zebrafish according to the motion trajectory.
[0028] Optionally, the calculating of the position information of the target zebrafish in the monitoring chamber according to the voltage matrix specifically comprises the following steps of:
[0029] Comparing each element in the voltage matrix to obtain a maximum voltage value, and determining a row number and a column number where the maximum voltage value is located;
[0030] Calculating a horizontal distance between the target zebrafish and a center of the monitoring chamber according to the maximum voltage value;
[0031] According to the row number, the column number and the horizontal distance, position information of the target zebra fish in the monitoring chamber is calculated.
[0032] Optionally, the position information of the target zebra fish in the monitoring chamber is calculated according to the row number, the column number and the horizontal distance, and the specific formula is:
[0033] X = rcos(j+1)*360° / N;
[0034] Y = rsin(j+1)*360° / N;
[0035] Z = (i+1)*h / M;
[0036] wherein i is the row number, j is the column number, r is the horizontal distance between the target zebra fish and the center of the monitoring chamber, M is the total number of rows of elements in the voltage matrix, N is the total number of columns of elements in the voltage matrix, h is the depth of the monitoring chamber, X is the horizontal coordinate of the target zebra fish in the monitoring chamber, Y is the vertical coordinate of the target zebra fish in the monitoring chamber, and Z is the vertical coordinate of the target zebra fish in the monitoring chamber.
[0037] Optionally, the water quality of the target water body is pre-warned according to the motion parameters, and the specific steps include:
[0038] It is determined whether the motion speed is less than a set speed or the motion acceleration is less than a set acceleration, to obtain a first determination result;
[0039] If the first determination result is no, a sudden pollution pre-warning of the water quality is issued;
[0040] If the first determination result is yes, it is determined whether the depth where the fish body is located is greater than a first set depth, to obtain a second determination result;
[0041] If the second determination result is no, it is determined whether the retention time is less than a first set time, to obtain a third determination result;
[0042] If the third determination result is no, a serious water quality problem pre-warning is issued;
[0043] If the third determination result is yes, it is determined whether the retention time is less than a second set time, to obtain a fourth determination result; the second set time is less than the first set time;
[0044] If the fourth determination result is no, an oxygen deficiency pre-warning of the water body is issued;
[0045] If the fourth determination result is yes or the second determination result is yes, it is determined whether the depth at which the fish body is located is less than a second set depth, to obtain a fifth determination result; the second set depth is greater than the first set depth;
[0046] If the fifth determination result is no, it is determined whether the residence time is less than a second set time, to obtain a sixth determination result;
[0047] If the sixth determination result is no, a water body temperature is too low early warning is given;
[0048] If the sixth determination result is yes or the fifth determination result is yes, it is determined whether a record time is greater than a set record time, to obtain a seventh determination result;
[0049] If the seventh determination result is no, the record time is updated, and the step of continuously acquiring the voltage matrix of the target zebrafish in the target water body is returned to;
[0050] If the seventh determination result is yes, it is determined whether the accumulated movement distance is greater than a first set distance, to obtain an eighth determination result;
[0051] If the eighth determination result is no, a fish body is ill early warning is given;
[0052] If the eighth determination result is yes, it is determined whether the accumulated movement distance is less than a second set distance, to obtain a ninth determination result; the second set distance is greater than the first set distance;
[0053] If the ninth determination result is no, a water quality appears latent pollution early warning is given;
[0054] If the ninth determination result is yes, the record time is cleared, and the step of continuously acquiring the voltage matrix of the target zebrafish in the target water body is returned to.
[0055] Optionally, the set speed is 60 mm / s; the set acceleration is 130 mm / s 2 ; the first set depth is 0.1 times the depth of the monitoring chamber; the second set depth is 0.9 times the depth of the monitoring chamber; the first set time is 30 min; the second set time is 10 min; the set record time is 24 h; the first set distance is 40,000 cm; and the second set distance is 80,000 cm.
[0056] According to the embodiments of the present application, the following technical effects are provided:
[0057] The application provides a water quality early warning system and method based on zebra fish behavior analysis, which adopts a monitoring room to solve the observation dead angle problem of the existing biological monitoring water quality early warning method based on computer vision technology, uses an infrared transmitting-receiving array composed of a plurality of infrared transmitting modules and infrared receiving modules to position the position of the target zebra fish in the monitoring room, and reflects the position of the target zebra fish in the form of a voltage matrix, calculates the motion parameters of the target zebra fish, and thus early warns the water quality of the target water body according to the motion parameters, and has the advantages of low cost, high efficiency, simple structure and convenient operation. BRIEF DESCRIPTION OF DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments. Obviously, the drawings in the following description only constitute some embodiments of the application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0059] Figure 1 A plan view of the monitoring room provided by the embodiment of the application;
[0060] Figure 2 A structural schematic view of the water quality early warning system provided by the embodiment of the application;
[0061] Figure 3 A module structural view of the signal-driven acquisition board provided by the embodiment of the application;
[0062] Figure 4 A specific flowchart of the water quality early warning method provided by the embodiment of the application;
[0063] Figure 5 A schematic view of the horizontal distance between the target zebra fish and the center of the monitoring room provided by the embodiment of the application;
[0064] Figure 6 A schematic view of the voltage matrix provided by the embodiment of the application;
[0065] Figure 7 A coordinate conversion schematic view of the position information of the target zebra fish in the monitoring room provided by the embodiment of the application.
[0066] Symbol explanation:
[0067] Infrared transmitting module - 101, infrared receiving module - 102, water hole - 103, signal-driven acquisition board - 104, oscillation circuit - 1041, power amplifier circuit array - 1042, I / V conversion circuit array - 1043, low-pass filter array - 1044, power management module - 105, processor - 106, upper computer - 107. Detailed Implementation
[0068] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0069] The purpose of this invention is to provide a water quality early warning system and method based on zebrafish behavior analysis, so as to solve the problem of blind spots in existing water quality early warning technologies, and reduce costs and improve efficiency.
[0070] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0071] like Figure 1 and Figure 2 As shown, the present invention provides a water quality early warning system based on zebrafish behavior analysis. The water quality early warning system includes: a monitoring room, an infrared transceiver array, a signal-driven acquisition board, and a processor.
[0072] The monitoring room is used to house the target water body and the target zebrafish; a detection module is located at the center of the monitoring room; the target water body and the target zebrafish are located outside the detection module.
[0073] The infrared transceiver array includes several infrared transceiver modules; the several infrared transceiver modules are arranged in M rows and N columns, and are equally spaced on the detection module; each infrared transceiver module includes an infrared emitting module 101 and an infrared receiving module 102; the infrared emitting module 101 is used to emit infrared light into the monitoring room; the infrared receiving module 102 is used to generate an induced current based on the infrared light reflected by the monitoring room or the target zebrafish; wherein, M is greater than or equal to 5, N is greater than or equal to 12, the interval angle between two adjacent infrared transceiver modules in the same row is 360° / N, the interval distance between two adjacent infrared transceiver modules in the same column is h / (M+1), and h is the depth of the monitoring room.
[0074] The signal driving acquisition board 104 is connected to the infrared transceiver array and is used to drive each of the infrared emitting modules 101 to emit infrared light. It is also used to acquire the induced current generated by each of the infrared receiving modules 102 and generate an M-row N-column voltage matrix based on each induced current.
[0075] The processor 106 is connected to the signal-driven acquisition board 104 and is used to continuously acquire the voltage matrix of the target zebrafish in the target water body, calculate the motion parameters of the target zebrafish based on the voltage matrix, and issue an early warning for the water quality of the target water body based on the motion parameters. The motion parameters include: motion speed, motion acceleration, depth of the fish, residence time, and cumulative motion distance. The cumulative motion distance is the sum of the motion distances of the target zebrafish within a set recording time.
[0076] Preferably, the monitoring chamber is a cylindrical monitoring chamber made of transparent material; the detection module is a cylindrical detection module of the same height and coaxiality as the monitoring chamber. Specifically, the outer wall of the monitoring chamber is also provided with a plurality of water passage holes 103; the water passage holes 103 open when the target water body needs to be replaced and close during the monitoring process.
[0077] Furthermore, such as Figure 3 As shown, the signal-driven acquisition board 104 includes: an oscillation circuit 1041 for generating a square wave of a set frequency; a power amplifier circuit array 1042 connected to the oscillation circuit 1041 and each of the infrared emitting modules 101, for amplifying the square wave and driving each of the infrared emitting modules 101 to emit infrared light; an I / V conversion circuit array 1043 connected to each of the infrared receiving modules 102, for acquiring the induced current generated by each of the infrared receiving modules 102 and converting the induced current into a corresponding voltage signal; and a low-pass filter array 1044 connected to the I / V conversion circuit array 1043, for filtering each of the voltage signals to obtain a voltage matrix. Preferably, the signal-driven acquisition board 104 is located on the detection module.
[0078] In one specific implementation, the oscillation circuit 1041 is a 555 timer oscillation circuit; the infrared emitting module 101 is an infrared emitting LED or infrared light-emitting diode; the infrared receiving module 102 is a photodetector; and the processor 106 is a microcontroller. The oscillation circuit 1041 generates a square wave of a certain frequency to control the power amplifier circuit array 1042, which supplies power to each infrared emitting LED or infrared light-emitting diode, causing them to emit infrared light. After each photodetector receives the reflected infrared light, the collected current signal is converted into a voltage signal by the I / V conversion circuit array 1043, and then filtered by the low-pass filter array 1044 before being input to the microcontroller for mathematical calculations.
[0079] In one specific implementation, the value of M is 5 and the value of N is 12; that is, each of the infrared transceiver modules is equally distributed at 5 different depths of the detection module, and 12 of the infrared transceiver modules are equally distributed at each depth, with an interval angle of 360° / 12 = 30°.
[0080] Further, the water quality early warning system further comprises a host computer 107.
[0081] Specifically, a total of 60 infrared emitting LEDs are arranged on 5 different depths of a cylindrical detection module in the monitoring chamber together with an equal number of photoelectric receiving tubes 102, 12 at each depth, and the modules are arranged at an equal angle of 30 degrees, dividing the monitoring chamber into 60 areas. r The sensing current I is converted into a voltage signal by an I / V conversion circuit array 1043, filtered by a low-pass filter array 1044, and then transmitted to a microcontroller, which calculates the position information of the target zebrafish and uploads it to the host computer 107 for analysis and 3D model building.
[0082] Further, the water quality early warning system further comprises a power management module 105. The power management module 105 is connected with the signal driving and collecting board 104 and the processor 106 respectively.
[0083] The application also provides a water quality early warning method based on zebrafish behavior analysis.
[0084] Step S1: continuously obtaining a voltage matrix of the target zebrafish in the target water body; the voltage matrix is generated by the signal driving and collecting board according to the sensing current generated by each infrared receiving module in the infrared transceiver array.
[0085] Step S2: calculating the motion parameters of the target zebrafish according to the voltage matrix; the motion parameters include motion speed, motion acceleration, fish body depth, residence time and cumulative motion distance; the cumulative motion distance is the sum of the motion distances of the target zebrafish within a set recording time.
[0086] Step S3: warning the water quality of the target water body according to the motion parameters.
[0087] Further, step S2 specifically comprises:
[0088] Step S2.1: calculating the position information of the target zebrafish in the monitoring chamber according to the voltage matrix, i.e., comparing each element in the voltage matrix to obtain the maximum voltage value and determining the row number and column number where the maximum voltage value is located; calculating the horizontal distance between the target zebrafish and the center of the monitoring chamber according to the maximum voltage value; and calculating the position information of the target zebrafish in the monitoring chamber according to the row number, the column number and the horizontal distance, specifically as follows:
[0089] X = rcos(j+1)*360° / N;
[0090] Y = rsin(j+1)*360° / N;
[0091] Z = (i+1)*h / M;
[0092] wherein i is the row number, j is the column number, r is the horizontal distance between the target zebrafish and the center of the monitoring chamber, M is the total number of rows of elements in the voltage matrix, N is the total number of columns of elements in the voltage matrix, h is the depth of the monitoring chamber, X is the horizontal coordinate of the target zebrafish in the monitoring chamber, Y is the vertical coordinate of the target zebrafish in the monitoring chamber, and Z is the vertical coordinate of the target zebrafish in the monitoring chamber.
[0093] Step S2.2: calculating the motion trajectory of the target zebrafish according to the position information.
[0094] Step S2.3: calculating the motion parameters of the target zebrafish according to the motion trajectory.
[0095] Further, step S3 specifically includes:
[0096] determining whether the motion speed is less than a set speed or the motion acceleration is less than a set acceleration to obtain a first determination result.
[0097] if the first determination result is no, issuing a sudden pollution warning of water quality.
[0098] if the first determination result is yes, determining whether the depth where the fish body is located is greater than a first set depth to obtain a second determination result.
[0099] if the second determination result is no, determining whether the retention time is less than a first set time to obtain a third determination result.
[0100] if the third determination result is no, issuing a serious warning of water quality problem.
[0101] if the third determination result is yes, determining whether the retention time is less than a second set time to obtain a fourth determination result; the second set time is less than the first set time.
[0102] If the fourth determination result is no, a water hypoxia early warning is issued.
[0103] If the fourth determination result is yes or the second determination result is yes, it is determined whether the depth at which the fish is located is less than a second set depth, to obtain a fifth determination result; the second set depth is greater than the first set depth.
[0104] If the fifth determination result is no, it is determined whether the residence time is less than a second set time, to obtain a sixth determination result.
[0105] If the sixth determination result is no, a water temperature too low early warning is issued.
[0106] If the sixth determination result is yes or the fifth determination result is yes, it is determined whether the recording time is greater than a set recording time, to obtain a seventh determination result.
[0107] If the seventh determination result is no, the recording time is updated, and the step of continuously acquiring the voltage matrix of the target zebrafish in the target water body is returned to.
[0108] If the seventh determination result is yes, it is determined whether the cumulative movement distance is greater than a first set distance, to obtain an eighth determination result.
[0109] If the eighth determination result is no, a fish disease early warning is issued.
[0110] If the eighth determination result is yes, it is determined whether the cumulative movement distance is less than a second set distance, to obtain a ninth determination result; the second set distance is greater than the first set distance.
[0111] If the ninth determination result is no, a water quality latent pollution early warning is issued.
[0112] If the ninth determination result is yes, the recording time is cleared, and the step of continuously acquiring the voltage matrix of the target zebrafish in the target water body is returned to.
[0113] Preferably, the set speed is 60 mm / s; the set acceleration is 130 mm / s 2 ; the first set depth is 0.1 times the depth of the monitoring chamber; the second set depth is 0.9 times the depth of the monitoring chamber; the first set time is 30 min; the second set time is 10 min; the set recording time is 24 h; the first set distance is 40,000 cm; and the second set distance is 80,000 cm.
[0114] This invention also provides a specific embodiment of a water quality early warning method based on zebrafish behavior analysis, such as... Figure 4 As shown, it includes the following steps:
[0115] (1) Introduce the target water body into the monitoring room and maintain water circulation; select zebrafish individuals with normal body color, no disease or injury, fast movement, and strong vitality, whose normal movement speed v normal The speed should be between 20 mm / s and 40 mm / s, with a diving depth of H. normal The time should be between 0.3h and 0.7h (h is the depth of the monitoring room). If the selected individuals do not meet the requirements, suitable individuals should be selected again. Wait for the zebrafish individuals to adapt to the environment and show no obvious stress response before proceeding to the next step.
[0116] (2) Power on the system and set the system sampling interval to 0.2s; the infrared emitting module operates, with 12 photodetectors at each depth corresponding to 12 sets of output voltages. Sampling at 5 depths completes the formation of 5×12 voltages; utilizing the ADC and DMA in the microcontroller, combined with the method of sequentially switching analog switch chips (switching 5 times), the ADC conversion speed is improved. The microcontroller processes the data converted by the ADC and calculates... Figure 5 The fish shown is at a horizontal distance r from the cylindrical detection module in the center of the monitoring room.
[0117] Optionally, the horizontal distance of the infrared transmitting module is calculated based on the corresponding induced current I generated by the infrared receiving module after acquiring the signal. r Multiply by K (I / V conversion gain) to obtain the voltage V before ADC conversion. out Press V out =KI r =ar 2 +br+c (the actual values of a, b, and c are measured experimentally beforehand), calculate r, or directly use the voltage output by the signal-driven acquisition board as V. out According to the experimentally measured V out The functional relationship between r and r is used to calculate r.
[0118] like Figure 6 As shown, in the voltage matrix Find the maximum value among the 60 elements to determine the row number i and column number j of the fish. Then, as... Figure 7 As shown, the coordinate system is transformed as follows: X = rcosθ, Y = rsinθ, r is the distance between the fish and the center of the monitoring room, θ = (j+1)*30°, Z = (i+1)*h / 5, and finally the position information of the fish (X, Y, Z) is obtained.
[0119] (3) According to the position information of the two adjacent sampling, the rough motion trajectory S of the zebra fish in the time period is obtained, the motion velocity v is obtained by dividing S by the sampling interval, the motion acceleration a is obtained by subtracting the two adjacent velocities and dividing by the sampling interval, the sampling interval with no change in position is recorded as a static state, and the residence time T is obtained st The depth H of the fish body is directly recorded by the position information; the motion parameters are divided into real-time monitoring indicators and time-domain monitoring indicators; the real-time monitoring indicators include the motion velocity v and the motion acceleration a; when the motion velocity v exceeds 60 mm / s or the motion acceleration exceeds 130 mm / s 2 , it is considered that the zebra fish has a stress reaction and the water quality may have a sudden pollution; the time-domain monitoring indicators include the daily motion distance S sum , the residence time T st , and the depth H of the fish body; when H < 0.1 h: if T st > 10 min, it is considered that the water body is oxygen-deficient, and if T st > 30 min, it is considered that the fish body is dying or has died, and the water quality is relatively serious; when H > 0.9 h: if T st > 10 min, it is considered that the water temperature is too low; the daily motion distance S sum is obtained by superimposing all the recorded motion trajectories every day; if S sum is 40000 cm to 80000 cm, it is considered that the water quality is normal; if S sum < 40000 cm, it is considered that the target zebra fish is ill; and if S sum > 80000 cm, it is considered that the water quality has a latent pollution.
[0120] (4) The microcontroller transmits the position information of the fish body and the water quality to the upper computer, and displays the position of the fish body in the monitoring chamber in real time by using a 3D model in the software, displays the real-time monitoring indicators and the time-domain monitoring indicators in the state information column, and makes an information warning for the possible water pollution or fish disease.
[0121] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and the same or similar parts between the various embodiments can be referred to each other.
[0122] The principles and implementation manners of the present application are described by using specific examples in the specification, and the above embodiment description is only used to help understand the method and core idea of the present application; meanwhile, for the general technical personnel in the field, the specific implementation manner and application range will be changed according to the idea of the present application. In conclusion, the content of the specification should not be understood as the limitation of the present application.
Claims
1. A water quality early warning system based on zebrafish behavior analysis, characterized in that, The water quality early warning system includes: A monitoring chamber is used to house the target water body and the target zebrafish; a detection module is located at the center of the monitoring chamber; the target water body and the target zebrafish are located outside the detection module; An infrared transceiver array; the infrared transceiver array includes several infrared transceiver modules; the several infrared transceiver modules are arranged in M rows and N columns, equally spaced on the detection module; each infrared transceiver module includes an infrared emitting module and an infrared receiving module; the infrared emitting module is used to emit infrared light into the monitoring room; the infrared receiving module is used to generate an induced current based on the infrared light reflected by the monitoring room or the target zebrafish; wherein, M is greater than or equal to 5, and N is greater than or equal to 12. A signal-driven acquisition board, connected to the infrared transceiver array, is used to drive each of the infrared emitting modules to emit infrared light, and also to acquire the induced current generated by each of the infrared receiving modules, and generate an M-row N-column voltage matrix based on each induced current; wherein, the signal-driven acquisition board includes: An oscillating circuit is used to generate a square wave at a set frequency. A power amplifier circuit array is connected to the oscillation circuit and each of the infrared emitting modules respectively, and is used to amplify the power of the square wave to drive each of the infrared emitting modules to emit infrared light. An I / V conversion circuit array is connected to each of the infrared receiving modules to collect the induced current generated by each infrared receiving module and convert the induced current into a corresponding voltage signal. A low-pass filter array, connected to the I / V conversion circuit array, is used to filter each of the voltage signals to obtain a voltage matrix; A processor, connected to the signal-driven acquisition board, is used to continuously acquire the voltage matrix of the target zebrafish in the target water body, calculate the motion parameters of the target zebrafish based on the voltage matrix, and issue a water quality warning for the target water body based on the motion parameters. The motion parameters include: motion speed, motion acceleration, fish depth, dwell time, and cumulative motion distance. The cumulative motion distance is the sum of the motion distances of the target zebrafish within a set recording time. Specifically, calculating the motion parameters of the target zebrafish based on the voltage matrix includes: The location information of the target zebrafish in the monitoring room is calculated based on the voltage matrix. Calculate the movement trajectory of the target zebrafish based on the location information; The motion parameters of the target zebrafish are calculated based on the motion trajectory.
2. The water quality early warning system based on zebrafish behavior analysis according to claim 1, characterized in that, The monitoring chamber is a cylindrical monitoring chamber made of transparent material; the detection module is a cylindrical detection module with the same height and coaxiality as the monitoring chamber.
3. The water quality early warning system based on zebrafish behavior analysis according to claim 1, characterized in that, The value of M is 5, and the value of N is 12; each of the infrared transceiver modules is equally distributed at 5 different depths of the detection module, and 12 of the infrared transceiver modules are distributed at equal angles at each depth.
4. A water quality early warning method based on zebrafish behavior analysis, characterized in that, The water quality early warning method is applied to the water quality early warning system as described in any one of claims 1-3, and the method includes: Continuously acquire the voltage matrix of the target zebrafish in the target water body; the voltage matrix is generated by a signal-driven acquisition board based on the induced current generated by each infrared receiving module in the infrared transceiver array; wherein, the signal-driven acquisition board includes: An oscillating circuit is used to generate a square wave at a set frequency. A power amplifier circuit array is connected to the oscillation circuit and each infrared emitting module respectively, and is used to amplify the power of the square wave to drive each infrared emitting module to emit infrared light. An I / V conversion circuit array is connected to each of the infrared receiving modules to collect the induced current generated by each infrared receiving module and convert the induced current into a corresponding voltage signal. A low-pass filter array, connected to the I / V conversion circuit array, is used to filter each of the voltage signals to obtain a voltage matrix; The motion parameters of the target zebrafish are calculated based on the voltage matrix; the motion parameters include: motion speed, motion acceleration, depth of the fish, dwell time, and cumulative motion distance; the cumulative motion distance is the sum of the motion distances of the target zebrafish within a set recording time; wherein, the calculation of the motion parameters of the target zebrafish based on the voltage matrix specifically includes: The location information of the target zebrafish in the monitoring room is calculated based on the voltage matrix. Calculate the movement trajectory of the target zebrafish based on the location information; Calculate the motion parameters of the target zebrafish based on the motion trajectory; The water quality of the target water body is warned based on the motion parameters.
5. The water quality early warning method based on zebrafish behavior analysis according to claim 4, characterized in that, The step of calculating the position information of the target zebrafish in the monitoring room based on the voltage matrix specifically includes: By comparing each element in the voltage matrix, the maximum voltage value is obtained, and the row and column numbers of the maximum voltage value are determined. Calculate the horizontal distance between the target zebrafish and the center of the monitoring room based on the maximum voltage value; The location information of the target zebrafish in the monitoring room is calculated based on the row number, the column number, and the horizontal distance.
6. The water quality early warning method based on zebrafish behavior analysis according to claim 5, characterized in that, The specific formula for calculating the location information of the target zebrafish in the monitoring room based on the row number, the column number, and the horizontal distance is as follows: X = rcos(j+1) * 360° / N; Y = rsin(j+1) * 360° / N; Z = (i+1)*h / M; Where i is the row number, j is the column number, r is the horizontal distance between the target zebrafish and the center of the monitoring room, M is the total number of rows in the voltage matrix, N is the total number of columns in the voltage matrix, h is the depth of the monitoring room, X is the horizontal coordinate of the target zebrafish in the monitoring room, Y is the vertical coordinate of the target zebrafish in the monitoring room, and Z is the vertical coordinate of the target zebrafish in the monitoring room.
7. The water quality early warning method based on zebrafish behavior analysis according to claim 4, characterized in that, The method of issuing an early warning for the water quality of the target water body based on the motion parameters specifically includes: Determine whether the motion speed is less than a set speed, or whether the motion acceleration is less than a set acceleration, to obtain a first determination result; If the first judgment result is negative, a warning of sudden water pollution will be issued. If the first judgment result is yes, then it is determined whether the depth of the fish body is greater than the first set depth, and a second judgment result is obtained; If the second judgment result is negative, then it is determined whether the dwell time is less than the first set time, and a third judgment result is obtained; If the third judgment result is negative, a serious water quality problem warning will be issued; If the third judgment result is yes, then it is determined whether the dwell time is less than the second set time, and a fourth judgment result is obtained; the second set time is less than the first set time. If the fourth judgment result is negative, an early warning of water hypoxia will be issued. If the fourth judgment result is yes or the second judgment result is yes, then it is determined whether the depth of the fish body is less than the second set depth, and a fifth judgment result is obtained; the second set depth is greater than the first set depth. If the fifth judgment result is negative, then it is determined whether the dwell time is less than the second set time, and a sixth judgment result is obtained; If the result of the sixth judgment is negative, a warning of excessively low water temperature will be issued. If the sixth judgment result is yes or the fifth judgment result is yes, then determine whether the recording time is greater than the set recording time, and obtain the seventh judgment result; If the seventh judgment result is negative, then update the recording time and return to the step of "continuously acquiring the voltage matrix of the target zebrafish in the target water body"; If the seventh judgment result is yes, then it is determined whether the cumulative movement distance is greater than the first set distance, and the eighth judgment result is obtained; If the result of the eighth judgment is negative, a warning of fish disease will be issued. If the eighth judgment result is yes, then it is determined whether the cumulative movement distance is less than the second preset distance, and a ninth judgment result is obtained; the second preset distance is greater than the first preset distance. If the result of the ninth judgment is negative, a warning of latent water pollution will be issued. If the ninth judgment result is yes, then the recording time is cleared to zero, and the process returns to the step of "continuously acquiring the voltage matrix of the target zebrafish in the target water body".
8. The water quality early warning method based on zebrafish behavior analysis according to claim 7, characterized in that, The set speed is 60 mm / s; the set acceleration is 130 mm / s. 2 The first set depth is 0.1 times the depth of the monitoring room; the second set depth is 0.9 times the depth of the monitoring room; the first set time is 30 minutes; the second set time is 10 minutes; the set recording time is 24 hours; the first set distance is 40,000 cm; the second set distance is 80,000 cm.
Citation Information
Patent Citations
Water quality safety online biological early warning and monitoring system based on video identification
CN102866237A
Zebra fish stress response-based water quality early warning detection method and system
CN112881640A