A water circulation control method and system based on water quality monitoring

By using a water quality monitoring system in the fish tank to monitor and automatically adjust the water quality parameters in real time, the problem that the traditional fish tank water circulation system cannot respond to water quality changes in real time is solved, and automatic optimization of water quality and improvement of the stability of the fish environment is achieved.

CN118859796BActive Publication Date: 2024-12-20GUANGDONG YAOXIANG NEW MATERIALS CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410899110.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-12-20
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

The traditional ornamental fish tank water circulation system cannot respond to changes in water quality in real time, resulting in unstable fish growth environment and affecting fish health and ornamental value.

Method used

Adopt water cycle control methods and systems based on water quality monitoring, and monitor water quality parameters in real time through microcontrollers, detection modules and execution modules, intelligently adjust water circulation according to monitoring results, form a comprehensive index and control parameter table, automatically adjust water quality, and ensure that water quality is within the standard range. Inside.

Benefits of technology

Automatic optimization of water quality has been achieved, the stability of the fish's living environment and the intelligence of water circulation control have been improved, and the real-time monitoring and adjustment of the water quality of the fish tank has been ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118859796B_ABST
    Figure CN118859796B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of intelligent control technology, and in particular to a water circulation control method and system based on water quality monitoring, which are applied to a water quality monitoring system, wherein the water quality monitoring system comprises a microcontroller, a detection module and an execution module; the method comprises: obtaining water quality parameters of a water body within a recent monitoring time period, wherein the water quality parameters comprise a plurality of water quality data; obtaining an influence weight corresponding to each water quality data, and determining a comprehensive index of the water quality parameters based on each water quality data and the corresponding influence weight; if it is determined that the comprehensive index is greater than a preset index threshold, obtaining a control parameter table, wherein the control parameter table comprises a water flow sequence, and a reference duration corresponding to each unit water flow in the water flow sequence; and controlling the execution module to run based on the control parameter table until each water quality data in the water quality parameter is less than the corresponding minimum value of a standard range; the present invention can realize automatic optimization of water quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent control technology, and in particular to a water circulation control method and system based on water quality monitoring. Background Art

[0002] Traditional ornamental fish tank water circulation systems usually rely on timers or manual control and cannot respond to water quality changes in real time, resulting in an unstable growth environment for fish, affecting fish health and ornamental value.

[0003] Therefore, it is necessary to provide a water circulation control solution with a higher degree of intelligence to achieve automatic optimization of water quality. Summary of the invention

[0004] The purpose of the present invention is to provide a water circulation control method and system based on water quality monitoring, which can automatically monitor water quality parameters, intelligently adjust the water circulation according to the monitoring results, and realize automatic optimization of water quality.

[0005] In order to achieve the above object, the present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present invention provides a water circulation control method based on water quality monitoring, the method is applied to a water quality monitoring system, the water quality monitoring system comprises a microcontroller, a detection module and an execution module; the microcontroller is respectively connected to the detection module and the execution module by signal; the detection module is used to detect the water quality parameters of the water body in the fish tank, and the execution module is used to adjust the circulation flow of the water body in the fish tank;

[0007] The method comprises the following steps:

[0008] S100, obtaining water quality parameters of a water body in a recent monitoring period, wherein the water quality parameters include a plurality of water quality data;

[0009] S200, obtaining the impact weight corresponding to each water quality data, and determining the comprehensive index of the water quality parameter based on each water quality data and the corresponding impact weight; wherein the impact weight corresponding to each water quality data is predetermined, and the impact weight represents the proportion of the impact of the water quality data on the water quality when the execution module is idle;

[0010] S300, if it is determined that the comprehensive index is greater than a preset index threshold, a control parameter table is obtained, the control parameter table including a water flow sequence and a reference time corresponding to each unit water flow in the water flow sequence; wherein the unit water flow represents the water flow of a water body circulating within a unit time, the reference time corresponding to the unit water flow is the maximum value of the improvement time of each water quality data under the unit water flow, and the improvement time is the time required for the water quality data to deteriorate from the minimum value of the corresponding standard range to the maximum value;

[0011] S400, controlling the execution module to run based on the control parameter table until each water quality data in the water quality parameter is less than the corresponding minimum value of the standard range.

[0012] Optionally, the impact weight corresponding to each water quality data is determined by:

[0013] S201, obtaining a sampling sequence corresponding to each water quality data item in the water quality parameters in the past multiple monitoring time periods when the execution module is idle;

[0014] S202, standardizing the sampling sequences of each water quality data in multiple monitoring time periods to form an initial matrix, thereby obtaining the initial matrices of multiple monitoring time periods; wherein the mean of the sampling sequence after standardization is 0 and the standard deviation is 1;

[0015] S203, for each initial matrix, determining a covariance matrix of the initial matrix, and calculating a plurality of eigenvalues ​​of the covariance matrix;

[0016] S204, determining the variance ratio of each eigenvalue, starting from the largest eigenvalue, and sequentially accumulating the variance ratios of the eigenvalues ​​until a preset ratio threshold is reached;

[0017] S205, squaring and normalizing the eigenvalues ​​involved in the accumulation to obtain first weights of the multiple eigenvalues;

[0018] S206, for each item of water quality data, determining a plurality of characteristic values ​​corresponding to the water quality data, and multiplying the first weights of the plurality of characteristic values ​​by the corresponding variance ratio to obtain a second weight of the water quality data;

[0019] S207, averaging the second weight of each water quality data item in multiple monitoring time periods to obtain the third weight of each water quality data item; normalizing the third weight of each water quality data item to obtain the impact weight of each water quality data item.

[0020] Optionally, determining the comprehensive index of the water quality parameter based on each water quality data and the corresponding impact weight includes:

[0021] S210, obtaining a standard range corresponding to each water quality data, subtracting a minimum value of the standard range from the water quality data and dividing the result by the interval size of the standard range to obtain a deterioration degree of the water quality data;

[0022] S220, after multiplying the deterioration degree corresponding to each water quality data by the corresponding impact weight, the sum is accumulated to obtain a comprehensive index of the water quality parameters.

[0023] Optionally, the control parameter table is determined in the following manner:

[0024] S301, for each water quality data, obtain the standard range corresponding to the water quality data, and record the water cycle time for the water quality data to decrease from the maximum value to the minimum value of the standard range at each unit water flow rate;

[0025] S302, for each unit water flow, determining water quality data corresponding to the minimum value of the water circulation time under the unit water flow as a key parameter corresponding to the unit water flow;

[0026] S303, using each water quality data as a key parameter, and sorting the unit water flow corresponding to each key parameter in descending order of the influence weight of the key parameter to form a water flow sequence;

[0027] S304, selecting each unit water flow rate in sequence as the current water flow rate, and determining a reference time length corresponding to the water quality parameter under the current water flow rate;

[0028] S305, forming a control parameter table by combining the water flow sequence and the reference time length corresponding to each unit water flow in the water flow sequence.

[0029] Optionally, the determining of the reference time duration corresponding to the water quality parameter at the current water flow rate includes:

[0030] S341, respectively calculating the difference between the maximum value of the standard range corresponding to each water quality data and the water quality data, to obtain a first deviation value of each water quality data;

[0031] S342, for each water quality data, divide the interval size of the standard range corresponding to the water quality data by the water circulation time of the water quality data at the current water flow rate to obtain the improvement amount per unit time of the water quality data at the current water flow rate;

[0032] S343, dividing the first deviation value by the improvement amount per unit time to obtain a first duration of the water quality data at the current water flow rate;

[0033] S344, taking the maximum value in the first time duration of each water quality data as the reference time duration of the water quality parameter under the current water flow rate.

[0034] Optionally, the controlling the execution module to run based on the control parameter table until each water quality data in the water quality parameter is less than the corresponding minimum value of the standard range includes:

[0035] S410, sorting the unit water flow rates from small to large, and taking the unit water flow rate corresponding to the water quality data with the smallest first deviation value as the initial water flow rate;

[0036] S420, the control execution module continues to operate at the initial water flow rate until the first deviation value of each water quality data is greater than the set deviation threshold, and then executes S430;

[0037] S430, taking the water quality data with the largest impact weight as the key parameter, and taking the unit water flow corresponding to the key parameter as the current water flow;

[0038] S440, obtaining a reference duration of the water quality parameter under the current water flow, traversing and combining the water quality data in the water quality parameter in pairs of two, respectively calculating the difference between the first durations of the two water quality data in each combination, obtaining multiple second durations, and taking the minimum value of the multiple second durations as the minimum segmentation duration;

[0039] S450, dividing the reference duration into n equally spaced interval durations according to the minimum segmentation duration, and calculating the improvement amount of each water quality data in an interval duration using the formula f(ti)=t*pi; wherein f(ti) represents the improvement amount of the i-th water quality data in the interval duration, t represents the size of the interval duration, and pi represents the improvement amount per unit time of the i-th water quality data;

[0040] S460, forming an improvement amount array by calculating the improvement amount of each water quality data in the corresponding interval time Calculate the difference between each water quality data and the minimum value of the standard range corresponding to the water quality data, obtain the second deviation value of each water quality data, and form the target array with the second deviation value corresponding to each water quality data , perform differential calculation on the corresponding elements in the target array and the improvement array to obtain the improvement difference array Where m is the total number of water quality data;

[0041] S470, determining the smaller m / 2 elements in the improved difference array, and respectively determining the unit water flow corresponding to the m / 2 elements as key parameters to form a water flow control sequence , and then control the execution module to cyclically run for an interval length in sequence according to the water flow control sequence;

[0042] S480, delete the elements less than 0 in the improved difference array and then update the improved difference array, and determine whether the total number m of elements in the updated improved difference array is greater than 1, if so, execute S470; otherwise, execute S490;

[0043] S490, if it is determined that the total number of elements m in the updated improvement difference array is equal to 0, then end; if it is determined that the total number of elements m in the updated improvement difference array is equal to 1, the water quality data corresponding to the element is used as the key parameter, and the control execution module runs according to the unit water flow corresponding to the key parameter until the value of the element is less than 0.

[0044] In a second aspect, an embodiment of the present invention provides a water circulation control system based on water quality monitoring, the system comprising:

[0045] at least one processor;

[0046] at least one memory for storing at least one program;

[0047] When the at least one program is executed by the at least one processor, the at least one processor implements the water circulation control method based on water quality monitoring as described in any one of the first aspects.

[0048] The beneficial effects of the present invention are as follows: the present invention discloses a water circulation control method and system based on water quality monitoring, which realizes automatic optimization of water quality and improves the stability of the living environment of fish by real-time monitoring of water quality parameters and targeted automatic adjustment of water circulation. By monitoring water quality parameters, the water circulation is intelligently adjusted according to the water quality parameters to realize automatic optimization of water quality, thereby improving the intelligence level of water circulation control and realizing automatic optimization of water quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0050] Figure 1 is a flow chart of a water circulation control method based on water quality monitoring in an embodiment of the present invention;

[0051] Figure 2 is a schematic structural diagram of a water quality monitoring system in an embodiment of the present invention;

[0052] Figure 3 It is a structural schematic diagram of a water circulation control system based on water quality monitoring in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the embodiments and drawings to clearly and completely describe the concept, specific structure and technical effects of the present invention, so as to fully understand the purpose, scheme and effect of the present invention. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0054] In response to the problems in the background technology, most of the related technologies use a fixed control method to regulate water circulation; however, due to the environment in which each fish tank is located, the size of the fish tank, the type and number of fish, the effect of the filtration system, the type and amount of feed, the lighting conditions, etc. are different. Therefore, the changes in water quality in the fish tank are different under different environments, and it is impossible to use a unified fixed method to control the water in the fish tank.

[0055] The present invention provides a water circulation control method and system based on water quality monitoring, which realizes automatic optimization of water quality and improves the stability of the living environment of fish by real-time monitoring of water quality parameters and targeted automatic adjustment of water circulation.

[0056] See also Figure 1 and Figure 2 , Figure 1 The present invention provides a flow chart of a water circulation control method based on water quality monitoring, wherein the method is applied to a water quality monitoring system, wherein the water quality monitoring system comprises a server, a microcontroller, a detection module and an execution module; the server is connected to the microcontroller for communication, and the microcontroller is connected to the detection module and the execution module for signal respectively; the detection module is used to detect the water quality parameters of the water in the fish tank, and the execution module is used to adjust the circulation of the water in the fish tank;

[0057] The method comprises the following steps:

[0058] S100, obtaining water quality parameters of a water body in a recent monitoring period, wherein the water quality parameters include a plurality of water quality data;

[0059] Specifically, the method in this embodiment is executed by a microcontroller, the detection module includes a dissolved oxygen sensor, a turbidity sensor and an ammonia nitrogen sensor, and the execution module includes a water pump, a water changer and a filter. The water pump flow rate can be adjusted and the water changer can be controlled through the execution module.

[0060] By using a variety of sensors to monitor multiple water quality data in the water body in real time, the water quality parameters include dissolved oxygen content, turbidity and ammonia nitrogen concentration; the microcontroller-based water quality monitoring system can continuously monitor water parameters in real time, detect water pollution early, and take timely action.

[0061] S200, obtaining the impact weight corresponding to each water quality data, and determining the comprehensive index of the water quality parameter based on each water quality data and the corresponding impact weight; wherein the impact weight corresponding to each water quality data is predetermined, and the impact weight represents the proportion of the impact of the water quality data on the water quality when the execution module is idle;

[0062] In this step, the water quality is analyzed based on the water quality parameters in the most recent monitoring period to form a comprehensive index reflecting the current water quality.

[0063] S300, if it is determined that the comprehensive index is greater than a preset index threshold, a control parameter table is obtained, the control parameter table including a water flow sequence and a reference time corresponding to each unit water flow in the water flow sequence; wherein the unit water flow represents the water flow of a water body circulating within a unit time, the reference time corresponding to the unit water flow is the maximum value of the improvement time of each water quality data under the unit water flow, and the improvement time is the time required for the water quality data to deteriorate from the minimum value of the corresponding standard range to the maximum value;

[0064] Specifically, the water flow sequence includes multiple different unit water flows, and each unit water flow has a corresponding benchmark duration; under the unit water flow, the time required for each water quality data to deteriorate from the minimum value of the corresponding standard range to the maximum value is counted as the improvement duration corresponding to the water quality data, and the maximum value is selected from all improvement durations as the benchmark duration corresponding to the unit water flow, reflecting the time taken to improve the slowest water quality data when the execution module circulates water according to the unit water flow.

[0065] S400, controlling the execution module to run based on the control parameter table until each water quality data in the water quality parameter is less than the corresponding minimum value of the standard range.

[0066] The present invention forms a specific comprehensive index according to the change of water quality in the fish tank, and then determines the control parameters corresponding to the comprehensive index to perform personalized water circulation regulation and control.

[0067] In some preferred embodiments, the impact weight corresponding to each water quality data is determined by:

[0068] S201, obtaining a sampling sequence corresponding to each water quality data item in the water quality parameters in the past multiple monitoring time periods when the execution module is idle;

[0069] In this embodiment, the influence weight corresponding to each water quality data is calibrated before leaving the factory. The calibration method is executed by the manufacturer's local server. The server obtains the water quality parameters of multiple past monitoring time periods uploaded by the microcontroller, and performs subsequent processing to form the influence weight corresponding to each water quality data, and then sends it to the microcontroller; specifically, within the monitoring time period, the water quality parameters are sampled at set time intervals to obtain a time-related sampling sequence; each water quality data corresponds to a sampling sequence.

[0070] S202, standardizing the sampling sequences of each water quality data in multiple monitoring time periods to form an initial matrix, thereby obtaining the initial matrices of multiple monitoring time periods; wherein the mean of the sampling sequence after standardization is 0 and the standard deviation is 1;

[0071] Specifically, one item of water quality data corresponds to a standardized sampling sequence, and multiple standardized sampling sequences are formed into an initial matrix of n×p, where n is the total number of sampling points in the sampling sequence, and p is the total number of categories of water quality data.

[0072] S203, for each initial matrix, determining a covariance matrix of the initial matrix, and calculating a plurality of eigenvalues ​​of the covariance matrix;

[0073] S204, determining the variance ratio of each eigenvalue, starting from the largest eigenvalue, and sequentially accumulating the variance ratios of the eigenvalues ​​until a preset ratio threshold is reached;

[0074] Specifically, the ratio threshold can be set to 85%, 90% or 95%. After reaching the preset ratio threshold, multiple larger eigenvalues ​​participating in the accumulation are retained. The size of an eigenvalue represents the variance of a water quality data. The larger the eigenvalue, the larger the variance corresponding to a certain water quality data; the variance ratio reflects the percentage of the eigenvalue in the total variance. The formula for the variance ratio is:

[0075]

[0076] in, is the variance proportion of the i-th eigenvalue, is the i-th eigenvalue, q is the total number of eigenvalues, and j is the variable.

[0077] S205, squaring and normalizing the eigenvalues ​​involved in the accumulation to obtain first weights of the multiple eigenvalues;

[0078] Specifically, each eigenvalue involved in the accumulation corresponds to a first weight, and a plurality of first weights correspond one to one to a plurality of eigenvalues ​​involved in the accumulation; and a plurality of eigenvalues ​​involved in the accumulation correspond to an initial matrix;

[0079] S206, for each item of water quality data, determining a plurality of characteristic values ​​corresponding to the water quality data, and multiplying the first weights of the plurality of characteristic values ​​by the corresponding variance ratio to obtain a second weight of the water quality data;

[0080] S207, averaging the second weight of each water quality data item in multiple monitoring time periods to obtain the third weight of each water quality data item; normalizing the third weight of each water quality data item to obtain the impact weight of each water quality data item.

[0081] In some preferred embodiments, in S200, determining the comprehensive index of the water quality parameter based on each water quality data and the corresponding impact weight includes:

[0082] S210, obtaining a standard range corresponding to each water quality data, subtracting a minimum value of the standard range from the water quality data and dividing the result by the interval size of the standard range to obtain a deterioration degree of the water quality data;

[0083] Specifically, based on the critical values ​​of various water quality data when the water quality is qualified, the standard range corresponding to each water quality data is set as the basis for judging the water quality deterioration. The calculated deterioration degree can be a negative number. When the deterioration degree is negative, the surface water quality is better; when the deterioration degree is [0,1], the surface water quality is qualified; the larger the deterioration degree, the worse the water quality; if the deterioration degree is greater than 1, it means that the water quality is unqualified.

[0084] S220, after multiplying the deterioration degree corresponding to each water quality data by the corresponding impact weight, the sum is accumulated to obtain a comprehensive index of the water quality parameters.

[0085] This embodiment identifies the distribution of water quality data in multiple monitoring time periods and the natural changes and fluctuations of various water quality data when the execution module of the fish tank is idle. The greater the fluctuation, the faster the water quality data exceeds the standard range, the more likely it is to cause water deterioration, and the greater the impact on the water quality condition. Combining the deterioration degree and the corresponding impact weight can comprehensively evaluate the impact of various water quality data on the overall water quality condition, and the resulting comprehensive index is more comprehensive and accurate.

[0086] In some preferred embodiments, the control parameter table is determined in the following manner:

[0087] S301, for each water quality data, obtain the standard range corresponding to the water quality data, and record the water cycle time for the water quality data to decrease from the maximum value to the minimum value of the standard range at each unit water flow rate;

[0088] S302, for each unit water flow, determining water quality data corresponding to the minimum value of the water circulation time under the unit water flow as a key parameter corresponding to the unit water flow;

[0089] Specifically, the control execution module works according to multiple unit water flow rates respectively, and takes the minimum value of the water circulation time as the benchmark time corresponding to the unit water flow rate; determines the key parameters and benchmark time corresponding to each unit water flow rate; for each water quality data, obtains the water circulation time for the water quality data to decrease from the maximum value to the minimum value of the standard range when the execution module works according to a unit water flow rate. The smaller the water circulation time, the more effective the corresponding unit water flow rate is in improving the water quality data. The water circulation time of the water quality data can be used as the benchmark time, but the remaining water quality data require a longer water circulation time to be reduced to the minimum value of the corresponding standard range.

[0090] S303, using each water quality data as a key parameter, and sorting the unit water flow corresponding to each key parameter in descending order of the influence weight of the key parameter to form a water flow sequence;

[0091] S304, selecting each unit water flow rate in sequence as the current water flow rate, and determining a reference time length corresponding to the water quality parameter under the current water flow rate;

[0092] S305, forming a control parameter table by combining the water flow sequence and the reference time length corresponding to each unit water flow in the water flow sequence.

[0093] In some embodiments, the determining of the reference duration corresponding to the water quality parameter at the current water flow rate includes:

[0094] S341, respectively calculating the difference between the maximum value of the standard range corresponding to each water quality data and the water quality data, to obtain a first deviation value of each water quality data;

[0095] S342, for each water quality data, divide the interval size of the standard range corresponding to the water quality data by the water circulation time of the water quality data at the current water flow rate to obtain the improvement amount per unit time of the water quality data at the current water flow rate;

[0096] S343, dividing the first deviation value by the improvement amount per unit time to obtain a first duration of the water quality data at the current water flow rate;

[0097] S344, taking the maximum value in the first time duration of each water quality data as the reference time duration of the water quality parameter under the current water flow rate.

[0098] In some preferred embodiments, the controlling the execution module based on the control parameter table to run until each water quality data in the water quality parameter is less than the corresponding minimum value of the standard range includes:

[0099] S410, sorting the unit water flow rates from small to large, and taking the unit water flow rate corresponding to the water quality data with the smallest first deviation value as the initial water flow rate;

[0100] S420, the control execution module continues to operate at the initial water flow rate until the first deviation value of each water quality data is greater than the set deviation threshold, and then executes S430;

[0101] In this step, firstly, the water quality data with the largest impact weight is used as the basis to control the water circulation and avoid water quality deterioration; then, the overall water quality is improved to the maximum extent based on the water quality data with the largest improvement weight. The deviation threshold is pre-set according to the actual situation, for example, it is set to half the interval size of the standard range corresponding to the water quality data.

[0102] S430, taking the water quality data with the largest impact weight as the key parameter, and taking the unit water flow corresponding to the key parameter as the current water flow;

[0103] S440, obtaining a reference duration of the water quality parameter under the current water flow, traversing and combining the water quality data in the water quality parameter in pairs of two, respectively calculating the difference between the first durations of the two water quality data in each combination, obtaining multiple second durations, and taking the minimum value of the multiple second durations as the minimum segmentation duration;

[0104] This step is to obtain the minimum difference in the time required for each water quality data to improve to the minimum value of the corresponding standard range, so as to serve as the basis for subsequent iterative control and gradually improve each water quality data.

[0105] S450, dividing the reference duration into n equally spaced interval durations according to the minimum segmentation duration, and calculating the improvement amount of each water quality data in an interval duration using the formula f(ti)=t*pi; wherein f(ti) represents the improvement amount of the i-th water quality data in the interval duration, t represents the size of the interval duration, and pi represents the improvement amount per unit time of the i-th water quality data;

[0106] This step is to obtain the improvement difference of each water quality data in a time interval, and obtain the operating time corresponding to each unit water flow based on the improvement difference to evenly improve each water quality data.

[0107] S460, forming an improvement amount array by calculating the improvement amount of each water quality data in the corresponding interval time , respectively calculate the difference between each water quality data and the minimum value of the standard range corresponding to the water quality data, obtain the second deviation value of each water quality data, and form the target array with the second deviation value corresponding to each water quality data , perform differential calculation on the corresponding elements in the target array and the improvement array to obtain the improvement difference array ; Where m is the total number of water quality data;

[0108] S470, determining the smaller m / 2 elements in the improved difference array, and respectively determining the unit water flow corresponding to the m / 2 elements as key parameters to form a water flow control sequence , and then control the execution module to cyclically run for an interval length in sequence according to the water flow control sequence;

[0109] S480, delete the elements less than 0 in the improved difference array and then update the improved difference array, and determine whether the total number m of elements in the updated improved difference array is greater than 1, if so, execute S470; otherwise, execute S490;

[0110] Specifically, by iteratively reducing the elements in the improvement difference array in batches, each water quality data is gradually improved. If m is greater than 1, S470 and S480 are continued to be executed in a loop. If m is reduced to 0, it means that all water quality data have been improved; if m is reduced to 1, it means that only the last water quality data needs to be improved, and it can be operated according to the unit water flow corresponding to the water quality data.

[0111] S490, if it is determined that the total number of elements m in the updated improvement difference array is equal to 0, then end; if it is determined that the total number of elements m in the updated improvement difference array is equal to 1, the water quality data corresponding to the element is used as the key parameter, and the control execution module runs according to the unit water flow corresponding to the key parameter until the value of the element is less than 0.

[0112] In addition, refer to Figure 3 One embodiment of the present invention further provides a water circulation control system based on water quality monitoring, the system comprising:

[0113] at least one processor;

[0114] at least one memory for storing at least one program;

[0115] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.

[0116] It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0117] In addition, an embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by a processor or controller, for example, by a processor in the above-mentioned electronic device embodiment, so that the above-mentioned processor can execute the water circulation control method based on water quality monitoring in the above-mentioned embodiment.

[0118] Similarly, the contents of the above method embodiments are all applicable to the present storage medium embodiments. The functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0119] It will be appreciated by those skilled in the art that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CDROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0120] The above is a specific description of the preferred implementation of the present disclosure, but the present disclosure is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present disclosure. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present disclosure.

Claims

1. A water circulation control method based on water quality monitoring, characterized in that: The method is applied to a water quality monitoring system, which includes a microcontroller, a detection module and an execution module; the microcontroller is respectively connected to the detection module and the execution module by signal; the detection module is used to detect the water quality parameters of the water in the fish tank, and the execution module is used to adjust the circulation of the water in the fish tank; The method comprises the following steps: S100, obtaining water quality parameters of a water body in a recent monitoring period, wherein the water quality parameters include a plurality of water quality data; S200, obtaining the impact weight corresponding to each water quality data, and determining the comprehensive index of the water quality parameter based on each water quality data and the corresponding impact weight; wherein the impact weight corresponding to each water quality data is predetermined, and the impact weight represents the proportion of the impact of the water quality data on the water quality when the execution module is idle; S300, if it is determined that the comprehensive index is greater than a preset index threshold, a control parameter table is obtained, the control parameter table including a water flow sequence and a reference time corresponding to each unit water flow in the water flow sequence; wherein the unit water flow represents the water flow of a water body circulating within a unit time, the reference time corresponding to the unit water flow is the maximum value of the improvement time of each water quality data under the unit water flow, and the improvement time is the time required for the water quality data to deteriorate from the minimum value of the corresponding standard range to the maximum value; S400, controlling the execution module to run based on the control parameter table until each water quality data in the water quality parameter is less than the corresponding minimum value of the standard range; The control parameter table is determined in the following manner: S301, for each water quality data, obtain the standard range corresponding to the water quality data, and record the water cycle time for the water quality data to decrease from the maximum value to the minimum value of the standard range at each unit water flow rate; S302, for each unit water flow, determining water quality data corresponding to the minimum value of the water circulation time under the unit water flow as a key parameter corresponding to the unit water flow; S303, using each water quality data as a key parameter, and sorting the unit water flow corresponding to each key parameter in descending order of the influence weight of the key parameter to form a water flow sequence; S304, selecting each unit water flow rate in sequence as the current water flow rate, and determining a reference time length corresponding to the water quality parameter under the current water flow rate; S305, forming a control parameter table by combining the water flow sequence and the reference duration corresponding to each unit water flow in the water flow sequence; The determining of the reference time duration corresponding to the water quality parameter under the current water flow rate includes: S341, respectively calculating the difference between the maximum value of the standard range corresponding to each water quality data and the water quality data, to obtain a first deviation value of each water quality data; S342, for each water quality data, divide the interval size of the standard range corresponding to the water quality data by the water circulation time of the water quality data at the current water flow rate to obtain the improvement amount per unit time of the water quality data at the current water flow rate; S343, dividing the first deviation value by the improvement amount per unit time to obtain a first duration of the water quality data at the current water flow rate; S344, taking the maximum value of the first time duration of each water quality data as the reference time duration of the water quality parameter under the current water flow rate; The controlling the execution module based on the control parameter table to run until each water quality data in the water quality parameter is less than the corresponding minimum value of the standard range includes: S410, sorting the unit water flow rates from small to large, and taking the unit water flow rate corresponding to the water quality data with the smallest first deviation value as the initial water flow rate; S420, the control execution module continues to operate at the initial water flow rate until the first deviation value of each water quality data is greater than the set deviation threshold, and then executes S430; S430, taking the water quality data with the largest impact weight as the key parameter, and taking the unit water flow corresponding to the key parameter as the current water flow; S440, obtaining a reference duration of the water quality parameter under the current water flow, traversing and combining the water quality data in the water quality parameter in pairs of two, respectively calculating the difference between the first durations of the two water quality data in each combination, obtaining multiple second durations, and taking the minimum value of the multiple second durations as the minimum segmentation duration; S450, dividing the reference duration into n equally spaced interval durations according to the minimum segmentation duration, and calculating the improvement amount of each water quality data in an interval duration using the formula f(ti)=t*pi; wherein f(ti) represents the improvement amount of the i-th water quality data in the interval duration, t represents the size of the interval duration, and pi represents the improvement amount per unit time of the i-th water quality data; S460, forming an improvement amount array by calculating the improvement amount of each water quality data in the corresponding interval time , respectively calculate the difference between each water quality data and the minimum value of the standard range corresponding to the water quality data, obtain the second deviation value of each water quality data, and form the target array with the second deviation value corresponding to each water quality data , perform differential calculation on the corresponding elements in the target array and the improvement array to obtain the improvement difference array ; Where m is the total number of water quality data; S470, determining the smaller m / 2 elements in the improved difference array, and respectively determining the unit water flow corresponding to the m / 2 elements as key parameters to form a water flow control sequence , and then control the execution module to cyclically run for an interval length in sequence according to the water flow control sequence; S480, delete the elements less than 0 in the improved difference array and then update the improved difference array, and determine whether the total number m of elements in the updated improved difference array is greater than 1, if so, execute S470; otherwise, execute S490; S490, if it is determined that the total number of elements m in the updated improvement difference array is equal to 0, then end; if it is determined that the total number of elements m in the updated improvement difference array is equal to 1, the water quality data corresponding to the element is used as the key parameter, and the control execution module runs according to the unit water flow corresponding to the key parameter until the value of the element is less than 0.

2. A water circulation control method based on water quality monitoring according to claim 1, characterized in that: The impact weight corresponding to each water quality data is determined in the following way: S201, obtaining a sampling sequence corresponding to each water quality data item in the water quality parameters in the past multiple monitoring time periods when the execution module is idle; S202, standardizing the sampling sequences of each water quality data in multiple monitoring time periods to form an initial matrix, thereby obtaining the initial matrices of multiple monitoring time periods; wherein the mean of the sampling sequence after standardization is 0 and the standard deviation is 1; S203, for each initial matrix, determining a covariance matrix of the initial matrix, and calculating a plurality of eigenvalues ​​of the covariance matrix; S204, determining the variance ratio of each eigenvalue, starting from the largest eigenvalue, and sequentially accumulating the variance ratios of the eigenvalues ​​until a preset ratio threshold is reached; S205, squaring and normalizing the eigenvalues ​​involved in the accumulation to obtain first weights of the multiple eigenvalues; S206, for each item of water quality data, determining a plurality of characteristic values ​​corresponding to the water quality data, and multiplying the first weights of the plurality of characteristic values ​​by the corresponding variance ratio to obtain a second weight of the water quality data; S207, averaging the second weight of each water quality data item in multiple monitoring time periods to obtain the third weight of each water quality data item; normalizing the third weight of each water quality data item to obtain the impact weight of each water quality data item.

3. A water circulation control method based on water quality monitoring according to claim 2, characterized in that: The comprehensive index of the water quality parameters is determined based on each water quality data and the corresponding impact weight, including: S210, obtaining a standard range corresponding to each water quality data, subtracting a minimum value of the standard range from the water quality data and dividing the result by the interval size of the standard range to obtain a deterioration degree of the water quality data; S220, after multiplying the deterioration degree corresponding to each water quality data by the corresponding impact weight, the sum is accumulated to obtain a comprehensive index of the water quality parameters.

4. A water circulation control system based on water quality monitoring, characterized in that: The system comprises: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the water circulation control method based on water quality monitoring as described in any one of claims 1 to 3.

Citation Information

Cited By

  • Intelligent fish tank control system, control method and intelligent fish tank

    CN120993788A