A water quality intelligent detection method and system for aquaculture

By decomposing the oxygen content and water temperature data of the water body and calculating the final degree of attention, it solves the errors caused by the influence of light and noise in the existing water quality detection methods, and improves the accuracy and reliability of water quality detection.

CN118333286BActive Publication Date: 2024-09-06SHENZHEN ZHENJIANG AGRICULTURAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410773506.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-06
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

Existing aquaculture water quality detection methods have errors caused by environmental light effects and noise effects in the analysis of detection data that are not within the lighting period, resulting in inaccurate detection.

Method used

By obtaining the oxygen content and water temperature data of the water body, the STL algorithm is used to decompose the seasonal item data, divide the optimal segmentation, calculate the initial attention degree of each data segment, and combine the inverse relationship between water temperature and oxygen content to obtain the final attention degree. to test water quality.

Benefits of technology

It improves the accuracy of water quality detection, can more accurately analyze anomalies in oxygen content data, reduces the impact of light and noise, and enhances the reliability of water quality monitoring in aquaculture systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118333286B
    Figure CN118333286B
Patent Text Reader

Abstract

The present invention relates to the technical field of water quality detection, and in particular to an intelligent water quality detection method and system for aquaculture. The present invention selects the optimal number of segments from a preset number, and divides the oxygen content data of a historical time period into the optimal number of final data segments; obtains the initial attention of the oxygen content data at each moment in the historical time period, and combines the oxygen content data, water temperature data and the initial attention within the preset time range of each moment to obtain the final attention of the oxygen content data at each moment; based on the difference between the oxygen content data at each moment and the final attention of the oxygen content data within the preset time range, the water quality in the aquaculture system is detected. The present invention obtains the final data segment that is closest to the minimum positive cycle of the change in oxygen content in water, and judges the water quality by comparing the difference in oxygen content data in different final data segments and combining water temperature data to improve the accuracy of water quality detection in the aquaculture system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of water quality detection, and in particular to an intelligent water quality detection method and system for aquaculture. Background Art

[0002] In the process of aquaculture, the quality of water directly affects the growth, reproduction and breeding benefits of aquatic organisms. In order to take corresponding measures when the water quality is abnormal, it is necessary to test the water quality of aquaculture. The oxygen content reflects the dissolved oxygen content of the water body and is one of the important indicators for measuring the quality of water. This application analyzes the abnormality of water quality by monitoring the oxygen content data in the water body in the aquaculture system.

[0003] In the existing scheme, the environmental light impact coefficient of the detection data that is not in the lighting time period is set to a fixed value, so as to reduce the accuracy of abnormal analysis of the detection data that is not in the lighting time period due to the light impact, and obtain the environmental noise impact coefficient of the day according to the corresponding time difference and data difference of the detection data in a day. However, the detection data at different times in a day are affected by noise to different degrees, so that there are errors in the abnormal analysis of the detection data based on the noise impact. Therefore, the abnormal degree analysis of the detection data based on the comprehensive light impact and noise impact is inaccurate, resulting in inaccurate water quality detection in aquaculture. Summary of the invention

[0004] In order to solve the technical problem of inaccurate water quality detection in aquaculture in the existing solution, the purpose of the present invention is to provide a water quality intelligent detection method and system for aquaculture, and the technical solution adopted is as follows:

[0005] In a first aspect, an embodiment of the present invention provides a method for intelligent detection of water quality for aquaculture, the method comprising:

[0006] Obtain oxygen content and water temperature data of water in aquaculture systems at each moment in a historical period;

[0007] Obtain seasonal item data of oxygen content data at each moment, and form an analysis sequence with the seasonal item data; divide the seasonal item data in the analysis sequence into pending data segments under each preset number; select an optimal number of segments from all preset numbers according to the difference between the seasonal item data in each pending data segment under each preset number and the seasonal item data in the remaining pending data segments; and use the pending data segments under the optimal number of segments as the final data segments;

[0008] Combining the similarity between the fluctuations of the oxygen content data in each final data segment and the remaining final data segments, and the difference between each oxygen content data in each final data segment and the corresponding oxygen content data of the oxygen content data in the remaining final data segments, an initial attention degree of each oxygen content data in each final data segment is obtained;

[0009] Obtaining the final attention level of the oxygen content data at each moment according to the oxygen content data and the water temperature data within a preset time range at each moment and the initial attention level of the oxygen content data at each moment;

[0010] The water quality of the aquaculture system is detected by combining the difference between the oxygen content data at each moment and the final level of concern of the oxygen content data within a preset time range.

[0011] Furthermore, the method of selecting the optimal number of segments from all preset numbers according to the difference between the seasonal item data in each pending data segment under each preset number and the remaining pending data segments includes:

[0012] According to the difference between each pending data segment under each preset number and the seasonal item data at the same position in the remaining pending data segments, the segmented evaluation parameters under each preset number are obtained;

[0013] For all the segmented evaluation indicators under the preset number, the preset number corresponding to the largest segmented evaluation indicator is used as the optimal segmented number.

[0014] Furthermore, the calculation formula of the segmented evaluation parameters under each preset number is as follows:

[0015] ; In the formula, is the segmented evaluation parameter under the m-th preset number; M is the m-th preset number; The b-th seasonal item data in the a-th pending data segment under the m-th preset quantity; is the mean value of the bth seasonal item data in the remaining pending data segments except the ath pending data segment under the mth preset quantity; is the total number of seasonal item data in each pending data segment under the mth preset number; is a logarithmic function with the natural constant e as the base; exp is an exponential function with the natural constant e as the base; is the absolute value function.

[0016] Furthermore, the method for obtaining the initial attention level of each oxygen content data in each final data segment includes:

[0017] Obtaining the Pearson correlation coefficient between the oxygen content data in any two final data segments as the initial similarity of any two final data segments; calculating the average of the initial similarities between each final data segment and the remaining final data segments except the final data segment, to obtain the comprehensive similarity of each final data segment;

[0018] The initial attention degree of each oxygen content data in each final data segment is obtained by combining the difference between each oxygen content data in each final data segment and the corresponding oxygen content data of the oxygen content data in the remaining final data segments, the comprehensive similarity of each final data segment and the segmentation evaluation parameters under the optimal number of segments.

[0019] Furthermore, the calculation formula for the initial attention degree of each oxygen content data in each final data segment is as follows:

[0020] ; In the formula, is the initial attention level of the cth oxygen content data in the nth final data segment; is the optimal number of segments; is the segment evaluation parameter under the optimal number of segments; is the comprehensive similarity of the nth final data segment; is the cth oxygen content data in the nth final data segment; is the cth oxygen content data in the fth final data segment except the nth final data segment; e is a natural constant; is the absolute value function; Norm is the normalization function.

[0021] Furthermore, the method for obtaining the final attention level of the oxygen content data at each moment includes:

[0022] The oxygen content data and water temperature data at each moment in the historical time period are normalized respectively, and the oxygen content normalized data and water temperature normalized data at each moment are obtained in turn; the difference between the water temperature normalized data at each moment and the constant 1 is recorded as the water temperature analysis data at each moment, and the oxygen content normalized data at each moment is recorded as the oxygen content analysis data;

[0023] The average of the absolute values ​​of the difference between the water temperature analysis data and the oxygen content analysis data at the same moment within the preset time range at each moment is used as the symmetrical analysis value of the oxygen content data at each moment;

[0024] According to the initial attention degree of the oxygen content data at each moment and the symmetric analysis value, the final attention degree of the oxygen content data at each moment is obtained; the initial attention degree and the symmetric analysis value are both positively correlated with the final attention degree.

[0025] Furthermore, the method for detecting the water quality of the aquaculture system by combining the difference between the oxygen content data at each moment and the final level of concern of the oxygen content data within a preset time range includes:

[0026] Calculate the average of the final attention of the oxygen content data at all times in the historical time period as the comprehensive attention value; record the difference between the final attention of the oxygen content data at each moment and the comprehensive attention value as the attention discrete value of the oxygen content data at each moment;

[0027] Obtaining the average of the differences between the oxygen content data at each moment and the final attention levels of the oxygen content data at other moments within a preset time range except the moment, as the neighborhood discrete value of the oxygen content data at each moment;

[0028] According to the concerned discrete value and the neighborhood discrete value of the oxygen content data at each moment, the abnormality of the oxygen content data at each moment is obtained; the concerned discrete value and the neighborhood discrete value are both positively correlated with the abnormality;

[0029] For the oxygen content data at all times in the historical time period, the oxygen content data with an abnormality greater than a preset abnormality threshold is recorded as abnormal data; the ratio of the number of abnormal data to the total number of times in the historical time period is taken as the abnormality; when the abnormality is greater than the preset quantity threshold, the water quality of the aquaculture system is unqualified; when the abnormality is less than or equal to the preset quantity threshold, the water quality of the aquaculture system is qualified.

[0030] Furthermore, the number of oxygen content data in each final data segment is equal.

[0031] Furthermore, the method for obtaining the seasonal item data of the oxygen content data at each moment is an STL algorithm.

[0032] In the second aspect, another embodiment of the present invention provides an intelligent water quality detection system for aquaculture, the system comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of any one of the above methods are implemented.

[0033] The present invention has the following beneficial effects:

[0034] In the embodiment of the present invention, due to the photosynthesis and respiration of plants in the water body, the oxygen content data of the water body in aquaculture has certain periodic characteristics. When the water quality is qualified, the oxygen content data at the same position in different periods are relatively close. The present application analyzes the water quality based on the difference in oxygen content data at the same position in different periods. In order to improve the accuracy of subsequent analysis, the final data segment with the minimum positive cycle closest to the change of oxygen content in the water body in the aquaculture system is selected according to the difference in seasonal item data in each preset number of pending data segments; the similarity between the fluctuation of oxygen content data in each final data segment and the remaining final data segments is analyzed to analyze the abnormality of oxygen content data from an overall perspective. The oxygen content data in each final data segment is similar to the oxygen content data in the remaining final data segments. The difference between the corresponding oxygen content data in the data segment is used to analyze the abnormal situation of the oxygen content data from a local perspective, and the comprehensive analysis makes the initial attention of the oxygen content data more accurate; considering that the increase in water temperature will slow down the dissolution rate of oxygen molecules in water, there is an inverse relationship between water temperature and oxygen content, and the initial attention of each oxygen content data is analyzed to further determine the water quality by the final attention; because the abnormal oxygen content in the water body usually lasts for a certain period of time, the final attention reflects the abnormal situation of the oxygen content data at each moment, and the difference between the oxygen content data at each moment and the final attention of the oxygen content data within the preset time range can make the abnormality more accurately present the water quality, thereby improving the accuracy of water quality detection in aquaculture systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are 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 work.

[0036] Figure 1 A flowchart of the steps of an intelligent water quality detection method for aquaculture provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the water quality intelligent detection method and system for aquaculture proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0038] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0039] The specific scheme of the intelligent water quality detection method and system for aquaculture provided by the present invention is described in detail below with reference to the accompanying drawings.

[0040] See also Figure 1 , which shows a flow chart of steps of a method for intelligent water quality detection for aquaculture provided by an embodiment of the present invention, the method comprising:

[0041] Step S1: Obtain oxygen content data and water temperature data of water in an aquaculture system at each moment in a historical time period.

[0042] Specifically, the oxygen content reflects the dissolved oxygen content of the water body, which is one of the important indicators for measuring the quality of water. The present application determines the water quality by monitoring the oxygen content of the water body in the aquaculture system. During the historical time period, the oxygen content data in the water body of the aquaculture system to be tested is collected by a dissolved oxygen meter, and the water temperature data of the water body is collected by an underwater temperature sensor. The sampling frequency of the oxygen content data is the same as that of the water temperature data, and the sampling frequency of the two data is once every 30 minutes, so as to obtain the oxygen content data and water temperature data at each moment in the historical time period. The oxygen content data and water temperature data collected from the water body are uploaded to the computer system for subsequent analysis.

[0043] It should be noted that in the embodiment of the present invention, the duration of the historical time period is an empirical value of 15 days, and the duration of the historical time period and the sampling frequency can be set according to the specific situation. In other embodiments of the present invention, the oxygen content in water can be obtained by oxygen weight method, water weight ratio method, ion exchange method and electrolysis method, which are all common technologies and will not be introduced here.

[0044] Step S2: Obtain seasonal item data of oxygen content data at each moment, and form an analysis sequence with the seasonal item data; divide the seasonal item data in the analysis sequence into pending data segments under each preset number; according to the difference between each pending data segment under each preset number and the seasonal item data in the remaining pending data segments, select the optimal number of segments from all preset numbers; and use the pending data segments under the optimal number of segments as the final data segments.

[0045] Specifically, the oxygen content data of water bodies in aquaculture has certain periodic characteristics. The specific reason is that during the day, aquatic plants release oxygen through photosynthesis, which leads to an increase in the oxygen content in the water; at night, plants consume oxygen through respiration, which leads to a decrease in the oxygen content in the water, forming a periodic change of day and night. The oxygen content data at each moment in the historical time period is decomposed by STL (Seasonal and Trend decomposition using Loess) to obtain the seasonal item data of the oxygen content data at each moment, which reflects the periodic characteristics of the oxygen content data in the historical time period. Among them, the STL algorithm is a well-known technology and will not be repeated here.

[0046] Seasonal item data reflects the periodic characteristics of oxygen content data. Under normal circumstances, the fluctuations of oxygen content data in different periods should be relatively similar, that is, the oxygen content data at the same position in different periods are relatively close. The abnormal situation of oxygen content data is analyzed by the difference between oxygen content data at the same position in different periods. Therefore, it is necessary to divide the seasonal item data of oxygen content data at all times in the historical time period into different periods, that is, the final data segments.

[0047] The seasonal item data of the oxygen content data at each moment in the historical time period are arranged in time series to obtain an analysis sequence; the seasonal item data in the analysis sequence are divided into pending data segments with each preset number; the seasonal item data in the pending data segments are arranged in time series according to the corresponding moments of the seasonal item data.

[0048] It should be noted that if the total number of moments in the historical time period, that is, the total number of elements in the analysis sequence, is U, then the value range of the preset number in the embodiment of the invention is a constant of 2 to The implementer can set it according to the specific situation. The total number of seasonal item data in each pending data segment under the mth preset number is , where M is the mth preset number, is a floor rounding function. As an example, if the number of elements in the analysis sequence is equal to 9 and the first preset number is equal to 2, the elements with subscripts 1 to 4 in the analysis sequence constitute the first pending data segment, the elements with subscripts 5 to 8 constitute the second pending data segment, and the element with subscript 9 in the analysis sequence is not subjected to subsequent analysis; thus, the pending data segment under preset data 2 is obtained.

[0049] Seasonal item data reflect the periodic characteristics of oxygen content data. The difference between seasonal item data at the same position in different periods reflects the segmentation effect of the analysis sequence at each preset number, determines the segmentation evaluation parameters, and then selects the final segmentation number that best suits the changes in oxygen content in water bodies for aquaculture.

[0050] According to the difference between each pending data segment under each preset quantity and the seasonal item data at the same position in the remaining pending data segments, the segmented evaluation parameters under each preset quantity are obtained. The calculation formula of the segmented evaluation parameters under each preset quantity is as follows:

[0051]

[0052] In the formula, is the segmented evaluation parameter under the m-th preset quantity; M is the m-th preset quantity; The b-th seasonal item data in the a-th pending data segment under the m-th preset quantity; is the mean value of the bth seasonal item data in the remaining pending data segments except the ath pending data segment under the mth preset quantity; is the total number of seasonal item data in each pending data segment under the mth preset number; is a logarithmic function with the natural constant e as the base; exp is an exponential function with the natural constant e as the base; is the absolute value function.

[0053] It should be noted that if the pending data segment under the mth preset number is closer to the minimum positive cycle, the seasonal item data at the same position in the pending data segment under the mth preset number is closer when the water quality is qualified, and the subsequent analysis of the difference in oxygen content data in multiple cycles uses fewer periodic comparison samples. The smaller the value, the closer the seasonal item data at the same position in different pending data segments are, indicating that the pending data segments divided by the analysis sequence under the mth preset number are closer to the minimum positive cycle of oxygen content change in the water body, and the better the segmentation effect under the mth preset number is. When M is larger, the possibility that the undetermined data segment under the mth preset number is the minimum positive cycle is greater, the segmentation effect under the mth preset number is better, and the segmentation evaluation parameter is When M is too large, the length of a single pending data segment may be less than the length of the minimum positive cycle. In this embodiment, The function constrains M. When M is larger, The growth is gradual and slow, improving the accuracy of segment evaluation parameters.

[0054] For all the preset numbers of segment evaluation indicators, the preset number corresponding to the largest segment evaluation indicator is used as the optimal number of segments; the undetermined data segment under the optimal number of segments is used as the final data segment; the final data segment is closest to the minimum positive cycle of oxygen content change in the water body of the aquaculture system. Optimal number of segments The total amount of oxygen content data in each final data segment under , the last time in the historical period The oxygen content data at each moment will not be analyzed later.

[0055] At this point, the oxygen content data within the historical time period is divided into different final data segments.

[0056] Step S3: Based on the similarity between the oxygen content data fluctuations in each final data segment and the remaining final data segments, and the difference between each oxygen content data in each final data segment and the corresponding oxygen content data in the remaining final data segments, the initial attention level of each oxygen content data in each final data segment is obtained.

[0057] The final data segment is closest to the minimum positive cycle of oxygen content change in the water body in the aquaculture system. Under the condition of qualified water quality, the oxygen content data at the same position in different final data segments are relatively similar. The similarity of the fluctuation of oxygen content data in each final data segment and the remaining final data segments is used to analyze the abnormality of oxygen content data from an overall perspective; the difference between each oxygen content data in each final data segment and the corresponding oxygen content data in the remaining final data segments is used to analyze the abnormality of oxygen content data from a local perspective; the combination of the above two factors makes the initial attention of oxygen content data more accurate.

[0058] Preferably, the specific method for obtaining the initial attention is: obtaining the Pearson correlation coefficient between the oxygen content data in any two final data segments as the initial similarity of any two final data segments; calculating the average of the initial similarities between each final data segment and the remaining final data segments except the final data segment, and obtaining the comprehensive similarity of each final data segment; combining the difference between each oxygen content data in each final data segment and the corresponding oxygen content data in the remaining final data segments, the comprehensive similarity of each final data segment and the segmentation evaluation parameters under the optimal number of segments, and obtaining the initial attention of each oxygen content data in each final data segment. Among them, the calculation method of the Pearson coefficient is a well-known technology and will not be repeated here.

[0059] The calculation formula for the initial interest of each oxygen content data in each final data segment is as follows:

[0060]

[0061] In the formula, is the initial attention level of the cth oxygen content data in the nth final data segment; is the optimal number of segments; is the segment evaluation parameter under the optimal number of segments; is the comprehensive similarity of the nth final data segment; is the cth oxygen content data in the nth final data segment; is the cth oxygen content data in the fth final data segment except the nth final data segment; e is a natural constant; is the absolute value function; Norm is the normalization function.

[0062] It should be noted that when the comprehensive similarity The smaller the value, the lower the similarity between the oxygen content data changes in the nth final data segment and the remaining final data segments, the greater the possibility that the oxygen content data in the nth final data segment is abnormal data, the more attention should be paid to the oxygen content data in the nth final data segment, and the greater the initial attention to the oxygen content data in the nth final data segment. The larger the value, the greater the difference between the oxygen content data at the same position in the nth final data segment and the rest of the final data segments. The greater the possibility that the cth oxygen content data in the nth final data segment is abnormal data, the more attention should be paid to it. The bigger. As a confidence parameter, when The larger the value, the closer the final data segment is to the minimum positive period of oxygen content change in the water of the aquaculture system, and the more similar the oxygen content changes at the same location in different periods are, the higher the initial attention. The greater the degree of trustworthiness.

[0063] Step S4: obtaining the final attention level of the oxygen content data at each moment according to the oxygen content data and the water temperature data within the preset time range at each moment and the initial attention level of the oxygen content data at each moment.

[0064] Generally, in aquaculture, an increase in water temperature will slow down the dissolution rate of oxygen molecules in water, resulting in a decrease in the dissolved oxygen content in the water. There is an inverse relationship between water temperature and oxygen content. Therefore, this embodiment uses the inverse proportional correlation between oxygen content data and water temperature data, combined with the initial attention to oxygen content data, to further analyze abnormal water quality.

[0065] Preferably, the specific method for obtaining the final attention degree is: normalize the oxygen content data and water temperature data at each moment in the historical time period respectively, and obtain the normalized oxygen content data and water temperature data at each moment in turn; record the difference between the normalized water temperature data at each moment and the constant 1 as the water temperature analysis data at each moment, and record the normalized oxygen content data at each moment as the oxygen content analysis data; take the average of the absolute values ​​of the difference between the water temperature analysis data and the sum of the oxygen content analysis data at the same moment within the preset time range of each moment as the symmetric analysis value of the oxygen content data at each moment; obtain the final attention degree of the oxygen content data at each moment according to the initial attention degree and the symmetric analysis value of the oxygen content data at each moment; the initial attention degree and the symmetric analysis value are both positively correlated with the final attention degree.

[0066] Since there is an inverse relationship between water temperature and oxygen content, there is an inverse relationship between the oxygen content normalized data and the water temperature normalized data. In order to use this inverse relationship to analyze the abnormal situation of the oxygen content data, in this embodiment, the difference between the water temperature normalized data at each moment and the constant 1 is recorded as the water temperature analysis data at each moment, and the oxygen content normalized data at each moment is recorded as the oxygen content analysis data. The closer the sum of the water temperature analysis data and the oxygen content analysis data at each moment is to 0, the more obvious the inverse relationship between the water temperature and the oxygen content is, and the less likely the oxygen content data at this moment is abnormal data. In other embodiments of the present invention, the difference between the oxygen content normalized data at each moment and the constant 1 can be recorded as the oxygen content analysis data at each moment, and the water temperature normalized data at each moment can be recorded as the water temperature analysis data.

[0067] It should be noted that the range of oxygen content normalization data and water temperature normalization data are . In the embodiment of the present invention, a normalization function is used to normalize the oxygen content data and the water temperature data respectively. In the embodiment of the present invention, other methods for normalizing the oxygen content data and the water temperature data may also be selected, such as function conversion, maximum and minimum normalization, Sigmoid function and other normalization methods, which are not limited here. In this embodiment, the duration of the preset time range takes an empirical value of 4 hours, and each moment is located at the center of its preset time range. Since the data sampling frequency is once every 30 minutes, each moment is respectively the same as the previous 4 moments and the subsequent 4 moments. They are all analysis objects in the process of calculating the final attention. It should be noted that there is no preset time range for the first 4 moments and the last 4 moments in the historical time period, and the oxygen content data at these moments are not subsequently analyzed.

[0068] In the embodiment of the present invention, a specific example of a calculation formula for the final attention level of the oxygen content data at each moment in the historical time period is as follows:

[0069]

[0070] In the formula, is the final attention level of the oxygen content data at the e-th moment in the historical time period; is the initial attention level of the oxygen content data at the eth moment in the historical time period; H is the total number of moments included in the preset time range of the oxygen content data at each moment; The oxygen content analysis data at the hth moment within the preset time range of the oxygen content data at the eth moment in the historical time period; The water temperature analysis data at the hth moment within the preset time range of the oxygen content data at the eth moment in the historical time period; is the symmetrical analysis value of the oxygen content data at the e-th moment in the historical time period; is the absolute value function; Norm is the normalization function.

[0071] In another embodiment of the present invention, the result of normalizing the sum of the initial attention degree and the symmetrical analysis value of the oxygen content data at each moment can be used as the final attention degree, so that the initial attention degree and the symmetrical analysis value are both positively correlated with the final attention degree. In other embodiments of the present invention, other basic mathematical operations can be selected to form a positive correlation, which is not limited here.

[0072] It should be noted that if the water quality of the aquaculture system is qualified, there is an inverse relationship between water temperature and oxygen content; The smaller it is, the more obvious the inverse relationship between the water temperature data and the oxygen content data at the e-th moment and its adjacent moments is, and the less likely the oxygen content data at that moment is abnormal data. When the value is larger, the possibility that the oxygen content data at the e-th moment is abnormal within the preset time range is greater, and the more attention should be paid to the oxygen content data at the e-th moment. The larger the initial attention The larger it is, the more likely that the oxygen content data at the e-th moment is abnormal data, and the greater the credibility of the final attention.

[0073] Step S5: combining the difference between the oxygen content data at each moment and the final attention level of the oxygen content data within a preset time range, the water quality of the aquaculture system is detected.

[0074] Because abnormal oxygen content in water bodies usually lasts for a certain period of time, the final attention level reflects the abnormality of the oxygen content data at each moment. Through the difference between the oxygen content data at each moment and the final attention level of the oxygen content data within the preset time range, the abnormality level can more accurately present the water quality situation and improve the accuracy of water quality detection in aquaculture systems.

[0075] Preferably, the specific method for obtaining the abnormality is: calculate the average of the final attention degrees of the oxygen content data at all moments in the historical time period as the comprehensive attention value; record the difference between the final attention degree of the oxygen content data at each moment and the comprehensive attention value as the attention discrete value of the oxygen content data at each moment; obtain the average of the differences between the final attention degrees of the oxygen content data at each moment and the oxygen content data at other moments within a preset time range except for this moment, as the neighborhood discrete value of the oxygen content data at each moment; obtain the abnormality of the oxygen content data at each moment based on the attention discrete value and the neighborhood discrete value of the oxygen content data at each moment; the attention discrete value and the neighborhood discrete value are both positively correlated with the abnormality.

[0076] In this embodiment of the invention, a specific example of the calculation formula for the abnormality of the oxygen content data at each moment in the historical time period is as follows:

[0077]

[0078] In the formula, is the abnormality of the oxygen content data at the e-th moment in the historical time period; is the final attention level of the oxygen content data at the e-th moment in the historical time period; is the comprehensive attention value; H is the total number of moments included in the preset time range of the oxygen content data at each moment; The final attention level of the oxygen content data at the hth moment within the preset time range of the oxygen content data at the eth moment in the historical time period; is the discrete value of interest of the oxygen content data at the e-th moment in the historical time period; is the neighborhood discrete value of the oxygen content data at the e-th moment in the historical time period; is the absolute value function; Norm is the normalization function.

[0079] In another embodiment of the present invention, the result of normalizing the sum of the focus discrete value and the neighborhood discrete value of the oxygen content data at each moment can be used as the abnormality degree, so that the initial focus degree and the symmetric analysis value focus discrete value and the neighborhood discrete value are all positively correlated with the abnormality degree. In other embodiments of the present invention, other basic mathematical operations can be selected to form a positive correlation, which is not limited here.

[0080] It should be noted that when focusing on discrete values When the value is larger, the difference between the abnormal degree of the oxygen content data at the e-th moment and the abnormal degree of the overall oxygen content data is greater, and the possibility that the oxygen content data at the e-th moment is abnormal data is greater. The larger the neighborhood discrete value is, the larger the neighborhood discrete value is. When the value is larger, the oxygen content data at the e-th moment is abnormal data within the preset time range. Because the abnormal oxygen content in the water body usually lasts for a certain period of time, the greater the probability that the oxygen content data at the e-th moment is abnormal data, the greater the abnormality. The bigger.

[0081] For the oxygen content data at all times in the historical time period, the oxygen content data with an abnormality greater than the preset abnormality threshold is recorded as abnormal data; the ratio of the number of abnormal data to the total number of times in the historical time period is taken as the abnormality; when the abnormality is greater than the preset quantity threshold, the water quality of the aquaculture system is unqualified; when the abnormality is less than or equal to the preset quantity threshold, the water quality of the aquaculture system is qualified.

[0082] It should be noted that in the embodiment of the present invention, the preset abnormal threshold is an empirical value of 0.75, and the preset quantity threshold is an empirical value of , implementers can set it according to specific circumstances.

[0083] So far, the present invention is completed.

[0084] In summary, in an embodiment of the present invention, an optimal number of segments is selected from a preset number, and the oxygen content data of a historical time period is divided into the optimal number of final data segments; the initial attention of the oxygen content data at each moment in the historical time period is obtained, and the oxygen content data, water temperature data and the initial attention within the preset time range of each moment are combined to obtain the final attention of the oxygen content data at each moment; based on the difference between the oxygen content data at each moment and the final attention of the oxygen content data within the preset time range, the water quality in the aquaculture system is detected. The present invention obtains the final data segment that is closest to the minimum positive cycle of the change in oxygen content in water, and judges the water quality by comparing the difference in oxygen content data in different final data segments with water temperature data, thereby improving the accuracy of water quality detection in the aquaculture system.

[0085] Based on the same inventive concept as the above method embodiment, the embodiment of the present invention further provides a water quality intelligent detection system for aquaculture, the system comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above water quality intelligent detection method embodiment for aquaculture are implemented, such as Figure 1 The intelligent water quality detection method for aquaculture has been described in detail in the above embodiments and will not be repeated here.

[0086] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0087] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0088] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A water quality intelligent detection method for aquaculture, characterized in that: The method includes: Obtain oxygen content and water temperature data of water in aquaculture systems at each moment in a historical period; Obtain seasonal item data of oxygen content data at each moment, and form an analysis sequence with the seasonal item data; divide the seasonal item data in the analysis sequence into pending data segments under each preset number; select an optimal number of segments from all preset numbers according to the difference between the seasonal item data in each pending data segment under each preset number and the seasonal item data in the remaining pending data segments; and use the pending data segments under the optimal number of segments as the final data segments; Combining the similarity between the fluctuations of the oxygen content data in each final data segment and the remaining final data segments, and the difference between each oxygen content data in each final data segment and the oxygen content data at corresponding positions of the oxygen content data in the remaining final data segments, an initial attention degree of each oxygen content data in each final data segment is obtained; Obtaining the final attention level of the oxygen content data at each moment according to the oxygen content data and the water temperature data within a preset time range at each moment and the initial attention level of the oxygen content data at each moment; Combining the difference between the oxygen content data at each moment and the final level of concern of the oxygen content data within a preset time range, the water quality of the aquaculture system is tested; The method of selecting the optimal number of segments from all preset numbers according to the difference between the seasonal item data in each pending data segment under each preset number and the remaining pending data segments includes: According to the difference between each pending data segment under each preset number and the seasonal item data at the same position in the remaining pending data segments, the segmented evaluation parameters under each preset number are obtained; For all the segmented evaluation indicators under the preset number, the preset number corresponding to the largest segmented evaluation indicator is used as the optimal segmented number; The method for obtaining the initial attention level of each oxygen content data in each final data segment comprises: Obtaining the Pearson correlation coefficient between the oxygen content data in any two final data segments as the initial similarity of any two final data segments; calculating the average of the initial similarities between each final data segment and the remaining final data segments except the final data segment, to obtain the comprehensive similarity of each final data segment; Combining the difference between each oxygen content data in each final data segment and the oxygen content data at the corresponding position of the oxygen content data in the remaining final data segments, the comprehensive similarity of each final data segment and the segmentation evaluation parameter under the optimal segmentation number, the initial attention degree of each oxygen content data in each final data segment is obtained; The calculation formula for the initial attention level of each oxygen content data in each final data segment is as follows: ; In the formula, is the initial attention level of the cth oxygen content data in the nth final data segment; is the optimal number of segments; is the segment evaluation parameter under the optimal number of segments; is the comprehensive similarity of the nth final data segment; is the cth oxygen content data in the nth final data segment; is the cth oxygen content data in the fth final data segment except the nth final data segment; e is a natural constant; is the absolute value function; Norm is the normalization function; The method for obtaining the final attention level of oxygen content data at each moment includes: The oxygen content data and water temperature data at each moment in the historical time period are normalized respectively, and the oxygen content normalized data and water temperature normalized data at each moment are obtained in turn; the difference between the water temperature normalized data at each moment and the constant 1 is recorded as the water temperature analysis data at each moment, and the oxygen content normalized data at each moment is recorded as the oxygen content analysis data; The average of the absolute values ​​of the difference between the water temperature analysis data and the oxygen content analysis data at the same moment within the preset time range at each moment is used as the symmetrical analysis value of the oxygen content data at each moment; According to the initial attention degree of the oxygen content data at each moment and the symmetric analysis value, the final attention degree of the oxygen content data at each moment is obtained; the initial attention degree and the symmetric analysis value are both positively correlated with the final attention degree.

2. The intelligent water quality detection method for aquaculture according to claim 1, characterized in that: The calculation formula for the segmented evaluation parameters under each preset number is as follows: ; In the formula, is the segmented evaluation parameter under the m-th preset number; M is the m-th preset number; The b-th seasonal item data in the a-th pending data segment under the m-th preset quantity; is the mean value of the bth seasonal item data in the remaining pending data segments except the ath pending data segment under the mth preset quantity; is the total number of seasonal item data in each pending data segment under the mth preset number; is a logarithmic function with the natural constant e as the base; exp is an exponential function with the natural constant e as the base; is the absolute value function.

3. The intelligent water quality detection method for aquaculture according to claim 1, characterized in that: The method for detecting the water quality of the aquaculture system by combining the difference between the oxygen content data at each moment and the final level of concern of the oxygen content data within a preset time range comprises: Calculate the average of the final attention of the oxygen content data at all times in the historical time period as the comprehensive attention value; record the difference between the final attention of the oxygen content data at each moment and the comprehensive attention value as the attention discrete value of the oxygen content data at each moment; Obtaining the average of the differences between the oxygen content data at each moment and the final attention levels of the oxygen content data at other moments within a preset time range except the moment, as the neighborhood discrete value of the oxygen content data at each moment; According to the concerned discrete value and the neighborhood discrete value of the oxygen content data at each moment, the abnormality of the oxygen content data at each moment is obtained; the concerned discrete value and the neighborhood discrete value are both positively correlated with the abnormality; For the oxygen content data at all times in the historical time period, the oxygen content data with an abnormality greater than a preset abnormality threshold is recorded as abnormal data; the ratio of the number of abnormal data to the total number of times in the historical time period is taken as the abnormality; when the abnormality is greater than the preset quantity threshold, the water quality of the aquaculture system is unqualified; when the abnormality is less than or equal to the preset quantity threshold, the water quality of the aquaculture system is qualified.

4. The intelligent water quality detection method for aquaculture according to claim 1, characterized in that: The number of oxygen content data in each of the final data segments is equal.

5. The intelligent water quality detection method for aquaculture according to claim 1, characterized in that: The method for obtaining the seasonal item data of the oxygen content data at each moment is the STL algorithm.

6. An intelligent water quality detection system for aquaculture, characterized in that: The system comprises: a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the intelligent water quality detection method for aquaculture described in any one of claims 1 to 5 are implemented.