A method for detecting water quality of livestock breeding water

By analyzing the short-term fluctuation difference value and short-term interference characteristic value in the absorption spectrum data of livestock farming water, combined with the water quality change coefficient and trustworthy weight, the interference problem of spectral technology in detecting the water quality of livestock farming water is solved, and the accuracy of detection is improved.

CN119827438BActive Publication Date: 2025-05-09SHENZHEN CHENGCHENG HIGH-TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510300113.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-14
Publication Date
2025-05-09
Estimated Expiration
2045-03-14

AI Technical Summary

Technical Problem

When detecting the water quality of livestock farming, existing spectral technologies are susceptible to factors such as external ambient light and water flow fluctuations, resulting in strong interference characteristics in absorption spectral data and the water quality characteristics cannot be accurately analyzed.

Method used

By obtaining the absorption spectral data of the livestock breeding water, analyzing the spectral differences between each measurement time and its nearest neighbor measurement time in each band, calculating the short-time fluctuation difference value and short-time interference characteristic value, combining the water quality change coefficient and trusted weight, the water quality pollution assessment value is obtained to judge the water quality.

Benefits of technology

It reduces the impact of external interference on water quality characteristic analysis, improves the accuracy of water quality detection for animal husbandry, and can analyze water quality characteristics more accurately to ensure healthy drinking water for animal husbandry in the breeding farm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119827438B_ABST
    Figure CN119827438B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of spectral water quality detection, and specifically to a method for detecting the quality of water for animal husbandry and breeding, including: obtaining absorption spectrum data of a water body for animal husbandry and breeding, obtaining short-term fluctuation difference values ​​of the absorption spectrum of animal husbandry and breeding water in each band at each measurement time; obtaining short-term interference characteristic values ​​of the absorption spectrum of animal husbandry and breeding water in each band at each measurement time based on the deviation between the short-term fluctuation difference values ​​of the animal husbandry and breeding water in each band and other bands, combining the difference of the spectrum data in the same band at each measurement time and the previous multiple measurement times, determining the water quality variation coefficient of the absorption spectrum of each band; obtaining the water quality pollution assessment value of animal husbandry and breeding water at each measurement time according to the water quality variation coefficient combined with the short-term interference characteristic value, so as to judge the water quality of animal husbandry and breeding water. The present application can improve the accuracy of water quality detection of animal husbandry and breeding water.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of spectral water quality detection, and in particular to a method for detecting the quality of water used in animal husbandry. Background Art

[0002] With the continuous development of green animal husbandry technology, it is required that the water used in animal husbandry should be fresh and clear, rich in minerals and trace elements, sterile and non-toxic, and high in oxygen. At this stage, the quality requirements for water used in animal husbandry are constantly increasing to ensure healthy water for animal husbandry. However, the water quality of water used in animal husbandry farms is not fixed, and the water quality should be tested online in real time. When the water quality of the water used in the farm exceeds the standard, it needs to be disinfected in time to ensure the water quality is safe before the livestock can drink it healthily, thereby improving the quality of animal husbandry products.

[0003] The traditional technology is to use chemical detection method to detect the water quality of livestock breeding water. This method is time-consuming, complicated to operate, poorly stable, and easily causes secondary pollution. With the continuous development of spectral technology, the absorption spectrum analysis method can quickly detect the water quality of livestock breeding water, and at the same time can reflect the continuous and short-term balance changes of water quality. It has the advantages of simple operation, fast real-time response speed, and no secondary pollution. However, due to the complexity of the livestock breeding water environment, the method of using absorption spectrum to analyze water quality is easily affected by external environmental light, water flow fluctuations and other factors, which easily leads to strong interference characteristics of absorption spectrum data in different bands, making it impossible to accurately and comprehensively analyze the water quality characteristics of livestock breeding water, which ultimately affects the accuracy of livestock breeding water quality detection and cannot guarantee the healthy drinking water of livestock in the farm. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a method for detecting the quality of water used in animal husbandry to solve the existing problems.

[0005] A method for detecting the quality of water used for animal husbandry in this application adopts the following technical solution:

[0006] An embodiment of the present application provides a method for detecting the quality of water used in animal husbandry and breeding, comprising the following steps:

[0007] Obtain absorption spectrum data of water bodies used for livestock breeding;

[0008] Analyze the spectral difference changes in each band between each measurement time and its neighboring measurement time, and obtain the short-term fluctuation difference value of the absorption spectrum of livestock breeding water in each band at each measurement time;

[0009] Based on the deviation between the short-term fluctuation difference values ​​of livestock breeding water in each band and other bands, the short-term interference characteristic values ​​of the absorption spectrum of the livestock breeding water in each band at each measurement moment are obtained;

[0010] The water quality variation coefficient of the absorption spectrum of the livestock breeding water in each band at each measuring moment is determined by using the difference between the short-term interference characteristic values ​​of the absorption spectrum of the livestock breeding water in the same band at each measuring moment and the previous multiple measuring moments, as well as the difference between the spectral data in the same band at each measuring moment and the previous multiple measuring moments;

[0011] According to the water quality variation coefficient combined with the short-term interference characteristic value, the water quality pollution assessment value of the livestock breeding water at each measuring moment is obtained to judge the water quality of the livestock breeding water.

[0012] Preferably, a plurality of measurement moments with the shortest time intervals between the measurement moments are used as neighboring measurement moments of each measurement moment.

[0013] Preferably, the calculation method of the short-term fluctuation difference value of the livestock breeding water in each band absorption spectrum at each measurement moment is:

[0014] , where is the short-term fluctuation difference value of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment, is the number of neighboring measurement moments of the tth measurement moment, is the normalization function, is the information entropy of all elements in the spectral difference change vector in the kth band between the tth measurement moment and its hth neighbor measurement moment, It is the mean of all elements in the spectral difference change vector between the tth measurement moment and its hth neighboring measurement moment in the kth band; wherein, the spectral difference change vector between each measurement moment and its neighboring measurement moment in each band is constructed through the spectral data difference between each measurement moment and its neighboring measurement moment in each band.

[0015] Preferably, the acquisition of the spectrum difference change vector further includes:

[0016] Obtain the absorption spectrum subvector in each band at each measurement moment; calculate the difference vector between the absorption spectrum subvector in the same band at each measurement moment and its respective neighboring measurement moments; and take the vector obtained by taking the absolute value of each element in the difference vector as the spectrum difference change vector between each measurement moment and its respective neighboring measurement moments in the same band.

[0017] Preferably, all absorbances in each waveband at each measuring moment are combined into an absorption spectrum subvector at each waveband at each measuring moment.

[0018] Preferably, the corresponding calculation method of the short-term interference characteristic value of the aquaculture water absorption spectrum in each band at each measurement moment is:

[0019] , where is the short-term interference characteristic value of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment, is the number of bands, They are the short-term fluctuation difference values ​​of the absorption spectra of the kth and gth bands of livestock breeding water at the tth measurement moment.

[0020] Preferably, the calculation method of the water quality variation coefficient of the absorption spectrum of each band of the livestock breeding water at each measurement moment is:

[0021] , where is the water quality variation coefficient of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment, is an exponential function with a natural constant as base, and are the short-term interference characteristic values ​​of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment and the mth measurement moment before it, is the mean value of the absorption spectrum subvector of the kth band at the tth measurement moment, is the mean of the absorption spectrum subvectors of the kth band at the mth measurement time before the tth measurement time.

[0022] Preferably, the corresponding calculation method of the water quality pollution assessment value of livestock breeding water at each measurement time is:

[0023] , where is the water quality pollution assessment value of livestock breeding water at the tth measurement moment, is the credible weight of the kth band at the tth measurement moment, wherein the credible weight of each band at each measurement moment is obtained through the short-term interference characteristic value, is the number of bands.

[0024] Preferably, the acquisition of the credible weight further includes: calculating the normalized value of the short-term interference characteristic value of the absorption spectrum of livestock breeding water in each band at the measurement moment, and the sum of the inverse of the normalized value and 1 is used as the credible weight of each band at each measurement moment.

[0025] Preferably, the method of determining the water quality of water for animal husbandry further includes:

[0026] The water pollution assessment values ​​corresponding to all measurement moments are normalized. When the normalized result of the water pollution assessment value is higher than the preset pollution threshold, the water quality for livestock breeding farms at the corresponding measurement moment is unqualified; otherwise, the water quality for livestock breeding farms is qualified.

[0027] This application has at least the following beneficial effects:

[0028] This application is based on the analysis of external interference characteristics in the absorption spectrum data of livestock breeding water, and constructs a short-term fluctuation difference value according to the spectral characteristics in the spectral difference change vector, so that the measurement result of the short-term fluctuation difference value can better highlight the fluctuation difference characteristics of the absorption spectrum of this band when it is affected by external interference, which is used for subsequent more accurate analysis of the water quality characteristics of livestock breeding water;

[0029] At the same time, based on the change of the short-term fluctuation difference value between different bands, a short-term interference characteristic value is constructed, which reflects the short-term influence characteristics of each band when it is disturbed by the outside world, and is used to set different sizes of credible weights for the absorption spectra of different bands in the future, so as to more accurately analyze the water quality characteristics of livestock breeding water; secondly, based on the fluctuation difference of the short-term interference characteristic value and the change of the absorption spectrum characteristics, the influence of external interference on the water quality characteristic analysis is reduced, and a water quality variation coefficient is constructed. The water quality variation coefficient reflects the change of the water pollution characteristics reflected by the absorption characteristics of the spectrum when the influence of external interference is small, and the credible weight is set by the short-term interference characteristic value. The larger the credible weight, the clearer the pollution characteristics of the livestock breeding water quality can be reflected. Therefore, this application adopts the credible weight to perform weighted summation of the water quality variation coefficient to measure the water quality pollution assessment value of livestock breeding water, further reduce the influence of external interference on the extraction of water quality characteristics, and improve the accuracy of the water quality characteristic analysis of livestock breeding water;

[0030] To summarize, the present application analyzes the water quality of water used in livestock breeding by analyzing the interference features in the absorption spectrum data of different bands and setting different credible weights for the absorption spectra of different bands, so as to more accurately analyze the water quality characteristics of water used in livestock breeding and improve the accuracy of water quality detection for water used in livestock breeding. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0032] Figure 1A flow chart of the steps of a method for detecting water quality for livestock breeding provided in this application. DETAILED DESCRIPTION

[0033] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the water quality detection method for livestock breeding water proposed in the present application, 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.

[0034] Unless otherwise defined, terms such as "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such articles or devices. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the article or device comprising the element. In addition, the term "and\or" used herein includes any and all combinations of one or more related listed items. All technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present application belongs.

[0035] The specific scheme of the method for detecting the quality of water for animal husbandry provided by the present application is described in detail below with reference to the accompanying drawings.

[0036] An embodiment of the present application provides a method for detecting the quality of water used for animal husbandry. For details, please refer to Figure 1 , including the following steps:

[0037] Step 1: Obtain the absorption spectrum data of water bodies used for livestock breeding.

[0038] The purpose of this embodiment is to analyze the water quality of livestock breeding water by analyzing the interference characteristics in the absorption spectrum data of different bands and setting different credible weights for the absorption spectra of different bands, so as to more accurately analyze the water quality characteristics of livestock breeding water and improve the accuracy of water quality detection of livestock breeding water.

[0039] Therefore, this embodiment irradiates a light source into a water body for livestock breeding, and uses an ultraviolet-visible spectrophotometer to measure the absorption spectrum data of the water body for livestock breeding in real time, wherein the wavelength range of the absorption spectrum data is 100nm to 300nm, and the measurement time interval is 10s. The measured absorption spectrum data is transmitted to a host computer, and the absorption spectrum data measured by the ultraviolet-visible spectrophotometer can be quickly obtained from the host computer.

[0040] Normally, since the absorption spectroscopy method of analyzing water quality is easily affected by external ambient light, water flow fluctuations and other factors, it will cause interference changes in the absorption intensity characteristics of the spectrum of water used in animal husbandry at different wavelengths. If the external interference characteristics of the absorbance data in a certain band are greater, the absorbance data in this band will be less able to truly and accurately reflect the water quality characteristics of animal husbandry water, and the more likely it is to affect the accuracy of the final water quality detection of animal husbandry water.

[0041] In order to select the target band that is least affected by external interference or even not affected by external interference, in this embodiment, the wavelength range is evenly divided into K bands. In this embodiment, K is taken as 10, and all absorbances in each band at each measurement moment are composed into absorption spectrum sub-vectors in each band at each measurement moment.

[0042] So far, according to the above process of this embodiment, the absorption spectrum sub-vectors of the livestock breeding water in each band at each measurement time can be obtained.

[0043] Step 2: Analyze the spectral difference changes in each band between each measurement time and its adjacent measurement time, and obtain the short-term fluctuation difference value of the absorption spectrum of livestock breeding water in each band at each measurement time.

[0044] Since the water quality of livestock breeding water will undergo continuous and short-term equilibrium changes, if the absorption spectrum data of a certain band shows a large difference change in a short period of time, while the absorption spectrum data of other bands show a small difference change, it can highlight the characteristics of the absorption spectrum data in this band being subject to strong external interference. In order to analyze the large difference change in the absorption spectrum data of a certain band in a short period of time, the H measurement moments with the closest time intervals to each measurement moment are recorded as the H neighboring measurement moments of each measurement moment. In this embodiment, the value of H is 6.

[0045] In order to accurately measure the external interference characteristics in the absorption spectrum data of livestock breeding water, in this embodiment, the difference vector between the absorption spectrum subvector of the kth band at the tth measurement moment and the absorption spectrum subvector of the kth band at its hth neighbor measurement moment is calculated, and the vector obtained by taking the absolute value of each element in the difference vector is recorded as the spectrum difference change vector in the kth band at the tth measurement moment and its hth neighbor measurement moment.

[0046] It can be understood that the spectral difference change vector reflects the difference in the absorption spectrum of livestock breeding water in the kth band between the tth measurement moment and its hth neighboring measurement moment. If the consistency of the spectral difference change data in the spectral difference change vector is worse, it means that the spectral difference fluctuations at different wavelengths are more complex, and it is more likely to be affected by a greater degree of external interference, resulting in larger short-term difference changes in the absorption spectrum.

[0047] Therefore, according to the fluctuation degree and average level of the elements in the spectral difference change vector in each band between each measurement moment and its neighboring measurement moment, the short-term fluctuation difference value of the absorption spectrum of livestock breeding water in each band at each measurement moment is calculated. In this embodiment, the specific calculation formula is:

[0048] , where is the short-term fluctuation difference value of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment, is the number of neighboring measurement moments of the tth measurement moment, is the normalization function, is the information entropy of all elements in the spectral difference change vector of the tth measurement moment and its hth neighbor measurement moment in the kth band, It is the mean of all elements in the spectral difference change vector in the kth band between the tth measurement moment and its hth neighbor measurement moment, wherein the calculation of information entropy is a well-known technology and the specific process will not be repeated here.

[0049] Among them, the greater the information entropy of all elements in the spectral difference change vector, the greater the uncertainty of the spectral difference change fluctuation in the spectral difference change vector, and the more likely it is to be affected by a greater degree of external interference, resulting in a larger short-term difference change in the absorption spectrum. The greater the mean of all elements in the spectral difference change vector, the greater the fluctuation difference in the absorption spectrum of livestock breeding water in a short period of time, and the greater the short-term fluctuation difference value. In the measurement of short-term fluctuation difference value, the exponential normalization result of information entropy is used as the weight to perform weighted summation on the overall fluctuation difference characteristics of the spectral difference change vector, so that the measurement result of short-term fluctuation difference value can more highlight the fluctuation difference characteristics of the absorption spectrum of this band when it is affected by external interference, which is used for subsequent more accurate analysis of the water quality characteristics of livestock breeding water and improve the accuracy of water quality detection of livestock breeding water.

[0050] Step 3: Based on the deviation between the short-term fluctuation difference values ​​of livestock breeding water in each band and other bands, obtain the short-term interference characteristic value of the absorption spectrum of the breeding water in each band at each measurement moment.

[0051] Since the water quality characteristics of livestock breeding water have certain continuous changes, and the increase in the concentration of organic pollutants in the water quality will affect the absorption spectrum data of all bands at the same time, for example, the increase in COD content in livestock breeding water will increase the absorption capacity of 100nm to 300nm ultraviolet light. However, if the absorption spectrum data of livestock breeding water in a certain band shows a large difference change at a certain measurement moment, while the absorption spectrum data in other bands show a small difference change, it means that the difference change in the absorption spectrum in this band is not caused by water quality changes, and it can highlight the characteristics of strong external interference of the absorption spectrum data in this band.

[0052] Therefore, in this embodiment, the deviation of the short-term fluctuation difference values ​​on the absorption spectra of different bands is analyzed, and the short-term interference characteristic values ​​of the absorption spectra of livestock breeding water in each band at each measurement time are calculated. The specific calculation formula is:

[0053] , where is the short-term interference characteristic value of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment, is the number of bands, It is the short-term fluctuation difference value of the absorption spectrum of livestock breeding water in the g-th band at the t-th measurement moment.

[0054] Among them, the greater the change in the short-term fluctuation difference value between the kth band and other bands of livestock breeding water at the tth measurement moment, the stronger the external interference is, resulting in a greater change in the short-term fluctuation difference value corresponding to this band. The larger it is, the more likely it is that the band will be affected by a greater degree of external interference in a short period of time, resulting in a larger short-term difference in the absorption spectrum. Under the combined effect of the two, it can better highlight the characteristics of the absorption spectrum data in this band being affected by stronger external interference in a short period of time, and the larger the short-term interference characteristic value is.

[0055] Step 4: Determine the water quality variation coefficient of the absorption spectrum of livestock breeding water in each band at each measurement moment by using the difference between the short-term interference characteristic values ​​of the absorption spectrum of livestock breeding water in the same band at each measurement moment and the difference between the spectral data in the same band at each measurement moment and the previous measurement moments.

[0056] Furthermore, in order to reduce the influence of the absorption spectrum data interfered by the outside world on the water quality analysis of livestock breeding water, analyze the water quality characteristics of livestock breeding water more accurately, and improve the accuracy of the detection of livestock breeding water quality, this embodiment will analyze the water quality at each measurement time in combination with the spectrum data of multiple measurement times before each measurement time. Specifically, in this embodiment, M consecutive measurement times before each measurement time are selected, and M is 50. Under normal circumstances, with the increase of the concentration of pollutants in the livestock breeding water body, the absorption intensity of the livestock breeding water body to the spectrum will increase. At the same time, if the degree of fluctuation of the short-term interference characteristics is less affected at this time, it can be more reflected that the absorption intensity of the livestock breeding water body to the spectrum is caused by the change of the livestock breeding water quality, rather than by external interference factors.

[0057] Based on the above analysis, according to the difference between the short-term interference characteristic values ​​of the absorption spectrum of the livestock breeding water in the same band at each measurement moment and the previous multiple measurement moments, and the mean difference of the absorption spectrum subvectors at each measurement moment and the previous multiple measurement moments, the water quality variation coefficient of the absorption spectrum of the livestock breeding water in each band at each measurement moment is calculated. In this embodiment, the specific calculation formula is:

[0058] , where is the water quality variation coefficient of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment, is an exponential function with a natural constant as base, and are the short-term interference characteristic values ​​of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment and the mth measurement moment before it, is the mean value of the absorption spectrum subvector of the kth band at the tth measurement moment, is the mean of the absorption spectrum subvectors of the kth band at the mth measurement time before the tth measurement time.

[0059] Among them, the smaller the difference between the short-term interference characteristic values, the smaller the influence of the fluctuation degree of the short-term interference characteristics on the spectral absorption characteristics. At this time, the change of the spectral absorption characteristics can better reflect the characteristics of water pollution. At the same time, the greater the difference between the spectral absorption characteristics between the measurement moment and the previous measurement moments, the more it can reflect the characteristics of the deepening of water pollution, which increases the absorption intensity of the ultraviolet band spectrum, and the water quality variation coefficient.

[0060] Step 5: According to the water quality variation coefficient combined with the short-term interference characteristic value, the water quality pollution assessment value of the livestock breeding water at each measurement time is obtained to determine the water quality of the livestock breeding water.

[0061] Furthermore, by setting credible weights of different sizes for absorption spectra of different bands, the accuracy of water quality detection for animal husbandry water is improved. In this embodiment, the short-term interference characteristic value of the absorption spectrum of K bands of animal husbandry water at the t-th measurement moment is subjected to exponential normalization processing, and the normalized value of the short-term interference characteristic value of the absorption spectrum of the k-th band of animal husbandry water at the t-th measurement moment is obtained, and the sum of the opposite number of the normalized value and 1 is recorded as the credible weight of the k-th band at the t-th measurement moment. It should be noted that the specific normalization process is an existing well-known technology and will not be repeated in this embodiment.

[0062] Among them, the larger the short-term interference characteristic value, the greater the impact of external interference on the band, the smaller the credible weight, and the less able to clearly reflect the pollution characteristics of livestock water quality; conversely, the smaller the short-term interference characteristic value, the smaller the impact of external interference on the band, the larger the credible weight, and the more able to clearly reflect the pollution characteristics of livestock water quality.

[0063] Therefore, in order to improve the accuracy of water quality detection for livestock breeding water, in this embodiment, the water quality pollution assessment value of livestock breeding water at each measurement time is calculated according to the credible weight and the water quality variation coefficient. The specific calculation formula is:

[0064] , where is the water quality pollution assessment value of livestock breeding water at the tth measurement moment, is the credible weight of the kth band at the tth measurement moment, is the number of bands.

[0065] Among them, the larger the credible weight, the clearer it can reflect the pollution characteristics of livestock water quality. The credible weight is used to weighted sum the water quality variation coefficient, which can further reduce the impact of external interference on the extraction of water quality characteristics and improve the accuracy of water quality characteristic analysis of livestock breeding water. The larger the water quality pollution assessment value, the more serious the water pollution situation.

[0066] Furthermore, the water quality of livestock breeding water will be tested and analyzed according to the water quality pollution assessment value. Specifically, the water quality pollution assessment value of livestock breeding water at each measurement time is normalized to ensure that the water quality pollution assessment value range is (0,1). The larger the value after normalization, the worse the health of the water body for livestock breeding water; conversely, the better the health of the water body for livestock breeding water. In this embodiment, the Z-Score normalization method is used to normalize the water quality pollution assessment value of livestock breeding water at all measurement times. The specific normalization process is an existing well-known technology and will not be repeated in this embodiment. The implementer can also select other existing normalization methods, which are not particularly limited in this embodiment.

[0067] In this embodiment, the water quality is determined according to the normalized result of the water pollution assessment value. Specifically, if the normalized result of the water pollution assessment value corresponding to the current measurement time is higher than the preset pollution threshold, the water quality of the livestock farm is unqualified and the water pollution is serious. It needs to be disinfected in time to ensure the water quality is safe before the livestock can drink it healthily, thereby improving the quality of livestock breeding products; otherwise, the water quality of the livestock farm is qualified. In this embodiment, the pollution threshold is 0.5.

[0068] It is understood that references to "one embodiment" or "some embodiments" etc. described in the specification of the present application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, if "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appear in different places in this specification, they do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0069] It should be noted that the sequence of the above-mentioned embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. In addition, the process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-tasking and parallel processing are also possible or may be advantageous. At the same time, the size of the sequence number of each step in the embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments in this specification.

[0070] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for detecting the quality of water used in animal husbandry, characterized in that: The following steps are involved: Obtain absorption spectrum data of water bodies used for livestock breeding; Analyze the spectral difference changes in each band between each measurement time and its neighboring measurement time, and obtain the short-term fluctuation difference value of the absorption spectrum of livestock breeding water in each band at each measurement time; Based on the deviation between the short-term fluctuation difference values ​​of livestock breeding water in each band and other bands, the short-term interference characteristic values ​​of the absorption spectrum of the livestock breeding water in each band at each measurement moment are obtained; The water quality variation coefficient of the absorption spectrum of the livestock breeding water in each band at each measuring moment is determined by using the difference between the short-term interference characteristic values ​​of the absorption spectrum of the livestock breeding water in the same band at each measuring moment and the previous multiple measuring moments, as well as the difference between the spectral data in the same band at each measuring moment and the previous multiple measuring moments; According to the water quality variation coefficient combined with the short-term interference characteristic value, the water quality pollution assessment value of the livestock breeding water at each measurement time is obtained to judge the water quality of the livestock breeding water; The expression of the short-term fluctuation difference value is: , where is the short-term fluctuation difference value of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment, is the number of neighboring measurement moments of the tth measurement moment, is the normalization function, is the information entropy of all elements in the spectral difference change vector in the kth band between the tth measurement moment and its hth neighbor measurement moment, is the mean of all elements in the spectral difference change vector between the tth measurement moment and its hth neighbor measurement moment in the kth band; wherein, the spectral difference change vector between each measurement moment and its neighbor measurement moment in each band is constructed through the spectral data difference between each measurement moment and its neighbor measurement moment in each band; The expression of the short-term interference characteristic value is: , where is the short-term interference characteristic value of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment, is the number of bands, are the short-term fluctuation difference values ​​of the absorption spectra of the kth and gth bands of livestock breeding water at the tth measurement moment; The expression of the water quality variation coefficient is: , where is the water quality variation coefficient of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment, is an exponential function with a natural constant as base, and are the short-term interference characteristic values ​​of the absorption spectrum of livestock breeding water in the kth band at the tth measurement moment and the mth measurement moment before it, is the mean value of the absorption spectrum subvector of the kth band at the tth measurement moment, is the mean value of the absorption spectrum subvector of the kth band at the mth measurement time before the tth measurement time; The expression of the water pollution assessment value is: , where is the water quality pollution assessment value of livestock breeding water at the tth measurement moment, is the credible weight of the kth band at the tth measurement moment, wherein the credible weight of each band at each measurement moment is obtained through the short-term interference characteristic value, is the number of bands.

2. A method for detecting the quality of water used in animal husbandry and breeding as claimed in claim 1, characterized in that: The multiple measurement times with the shortest time intervals between the measurement times are regarded as the neighboring measurement times of each measurement time.

3. A method for detecting the quality of water used in animal husbandry as claimed in claim 1, characterized in that: The acquisition of the spectrum difference change vector further includes: Obtain the absorption spectrum subvector in each band at each measurement moment; calculate the difference vector between the absorption spectrum subvector in the same band at each measurement moment and its respective neighboring measurement moments; and take the vector obtained by taking the absolute value of each element in the difference vector as the spectrum difference change vector between each measurement moment and its respective neighboring measurement moments in the same band.

4. A method for detecting the quality of water used in animal husbandry as claimed in claim 3, characterized in that: All absorbances in each band at each measuring moment are combined into an absorption spectrum sub-vector in each band at each measuring moment.

5. A method for detecting the quality of water used in animal husbandry as claimed in claim 1, characterized in that: The acquisition of the credible weight further includes: calculating the normalized value of the short-term interference characteristic value of the absorption spectrum of the livestock breeding water in each band at the measurement time, and the sum of the opposite number of the normalized value and 1 is used as the credible weight of each band at each measurement time.

6. A method for detecting the quality of water used in animal husbandry and breeding as claimed in claim 1, characterized in that: The water quality of livestock breeding water further includes: The water pollution assessment values ​​corresponding to all measurement moments are normalized. When the normalized result of the water pollution assessment value is higher than the preset pollution threshold, the water quality for livestock breeding farms at the corresponding measurement moment is unqualified; otherwise, the water quality for livestock breeding farms is qualified.

Citation Information

Patent Citations

  • Photometric analysis of water suspensions

    EP0915338A2

  • Photometric analysis of natural waters

    WO2001088505A1