A method for sampling and estimating virus concentration in water environment based on artificial intelligence
By analyzing the virus absorption peak probability and correction probability in the spectrum using an artificial intelligence-based method, the problem of noise and temporary pollution sources in virus detection in the water environment is solved, and accurate estimation of the virus concentration in the water environment is achieved.
Patent Information
- Application Number
- CN202410841132.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-27
AI Technical Summary
In the existing water environment virus detection, it is difficult to accurately distinguish the viruses contained in the water environment from the viruses brought by temporary pollution sources, and there is the influence of noise, resulting in inaccurate detection results.
Using an artificial intelligence-based method, by collecting water environment samples from multiple sampling points and multiple times, analyzing the spectra, determining the local maximum peak probability and correction probability of the virus absorption peak, removing the influence of noise and temporary pollution sources, and constructing the virus absorption degree- Concentration curves to estimate virus concentration in water environments.
It improves the accuracy of estimation of virus concentration in water environment, removes the influence of noise and temporary pollution sources, provides accurate virus absorption peaks and concentration curves, and provides a basis for subsequent estimation of virus concentration in water environment.
Smart Images

Figure CN118392806B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of detecting water viruses using a spectrogram method, and in particular to a method for sampling and estimating water environment viruses based on artificial intelligence. Background Art
[0002] Viruses in the water environment may pose a threat to human health, and may also affect the stability and biodiversity of the aquatic ecosystem and disrupt the ecological balance. Virus sampling and concentration estimation in the water environment play an important role in protecting public health, water quality monitoring and management, environmental protection and ecological balance, early warning and response measures, agricultural and animal husbandry safety, scientific research and policy formulation, etc.
[0003] In the prior art, the detection of viruses in water bodies usually adopts the spectrogram method, which determines the composition, structure and properties of a substance by measuring the absorption, emission, scattering or reflection characteristics after the interaction between the substance and electromagnetic radiation (such as visible light, ultraviolet light, infrared light, X-rays, etc.). However, because the type of virus will change during the long-term detection of water bodies, it is necessary to determine whether the virus is contained in the water body itself or brought by temporary pollution sources; and there will be a small amount of noise when collecting data. The existence of temporary pollution sources and noise may affect the results, resulting in inaccurate detection results.
[0004] Therefore, there is an urgent need for a method for sampling and estimating virus concentrations in water environments to improve the accuracy of virus concentration estimation in water environments by removing the influence of noise and temporary pollution sources. Summary of the invention
[0005] In order to solve the above technical problems, the purpose of the present invention is to provide a method for water environment virus sampling and concentration estimation based on artificial intelligence.
[0006] The embodiment of the present application provides a method for sampling and estimating water environment viruses based on artificial intelligence, and the technical solution adopted is as follows:
[0007] Collect water environment samples at multiple sampling points at multiple times, test the samples, and obtain spectrograms;
[0008] Analyze the spectrum to obtain the probability that the absorbance corresponding to the wavelength in the spectrum is the local maximum peak of the wavelength corresponding to the absorption peak of a certain virus;
[0009] Analyze the similarity between the spectra of multiple sampling points collected at the same sampling time, and combine the local maximum peak probability to obtain the local maximum peak correction probability that the absorbance corresponding to the wavelength in the spectra is the wavelength corresponding to the absorption peak of a certain virus, and determine the wavelength corresponding to all the absorption peaks of suspected water environment viruses at each sampling time;
[0010] Based on the spectrum, according to the local highest peak probability, the corrected virus absorbance and corrected virus concentration corresponding to the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time are obtained;
[0011] Analyze and compare the spectra at the same sampling point at all times to determine the wavelengths corresponding to the absorption peaks of all water environment viruses;
[0012] According to the wavelength corresponding to the absorption peak of all water environment viruses, and the absorbance and concentration corresponding to the wavelength, the absorbance-concentration curve corresponding to all water environment viruses is obtained;
[0013] Based on the absorbance-concentration curves corresponding to all water environment viruses, the concentration of viruses in newly collected water environment samples is estimated.
[0014] In some embodiments of the present invention, analyzing the spectrum to obtain the probability that the absorbance corresponding to the wavelength in the spectrum is the local maximum peak of the wavelength corresponding to the absorption peak of a certain virus includes:
[0015] By analyzing the variation regularity between the absorbances corresponding to multiple wavelengths on the left and right sides of the absorbance corresponding to a wavelength in the spectrum, and combining the size of the absorbance corresponding to the wavelength, it is obtained that the absorbance corresponding to the wavelength in the spectrum is the local maximum peak probability of the wavelength corresponding to the absorption peak of a certain virus.
[0016] In some embodiments of the present invention, analyzing the variation regularity between the absorbances corresponding to multiple wavelengths on the left and right sides of the absorbance corresponding to a wavelength in the spectrum graph includes:
[0017] Calculate the mean and variance of the tilt angles of the absorbance corresponding to a wavelength in the spectrum graph and the absorbance corresponding to multiple wavelengths on the left side to obtain the left side mean and the left side variance;
[0018] Calculate the mean and variance of the tilt angles of the absorbance corresponding to a wavelength in the spectrum and the absorbance corresponding to multiple wavelengths on the right side to obtain the right side mean and the right side variance;
[0019] By combining the left mean and the right mean, and, combining the left variance and the right variance, the change regularity between the absorbance corresponding to a wavelength in the spectrum and the absorbance corresponding to multiple wavelengths on both sides is obtained.
[0020] In some embodiments of the present invention, the similarity between the spectra of multiple sampling points collected at the same sampling time is analyzed, and the local maximum peak probability is combined to obtain the local maximum peak correction probability that the absorbance corresponding to the wavelength in the spectra is the wavelength corresponding to the absorption peak of a certain virus, and the wavelength corresponding to all the suspected water environment virus absorption peaks at each sampling time is determined, including:
[0021] Analyze the consistency of the absorbance corresponding to the same wavelength in the spectrum of multiple sampling points collected at the same sampling time and the average value of the absorbance corresponding to the same wavelength in the spectrum of multiple sampling points to obtain the similarity between the spectrums;
[0022] According to the similarity between the spectra and in combination with the local maximum peak probability, a local maximum peak correction probability is obtained that the absorbance corresponding to the wavelength in the spectra is the wavelength corresponding to the absorption peak of a certain virus;
[0023] According to the local maximum peak correction probability, the maximum peak probability threshold is set to determine the wavelengths corresponding to all suspected water environment virus absorption peaks at each sampling time.
[0024] In some embodiments of the present invention, the type of the suspected water environment virus is determined based on the wavelength corresponding to the absorption peak of the suspected water environment virus; based on the type of the suspected water environment virus, the concentration of the suspected water environment virus in the sample is detected using polymerase chain reaction to obtain the virus concentration corresponding to the wavelength in the spectrum.
[0025] In some embodiments of the present invention, based on the spectrum graph and according to the local maximum peak probability, the weighted average of the absorbances corresponding to the same wavelength in the spectrum graph collected at all sampling points at each sampling time is calculated to obtain the corrected virus absorbances corresponding to the wavelengths corresponding to all suspected water environment virus absorption peaks at each sampling time.
[0026] In some embodiments of the present invention, based on the spectrum graph and according to the local maximum peak probability, the weighted average of the virus concentrations corresponding to the same wavelength in the spectrum graph collected at all sampling points at each sampling time is calculated to obtain the corrected virus concentrations corresponding to the wavelengths corresponding to all suspected water environment virus absorption peaks at each sampling time.
[0027] In some embodiments of the present invention, the stability of the change in absorbance corresponding to the same wavelength in the spectrum at the same sampling point at all times is analyzed, and the continuity and frequency of the same wavelength in the spectrum at the same sampling point at all times are analyzed, the wavelengths corresponding to external viruses introduced by temporary pollution sources are removed, and the wavelengths corresponding to the absorption peaks of all water environment viruses are determined.
[0028] In some embodiments of the present invention, analyzing the change stability of the absorbance corresponding to the same wavelength in the spectrum at the same sampling point at all times, and analyzing the frequency and continuity of the same wavelength in the spectrum at the same sampling point at all times, removing the wavelengths corresponding to external viruses introduced by temporary pollution sources, and determining the wavelengths corresponding to the absorption peaks of all water environment viruses, including:
[0029] Analyze the difference of absorbance corresponding to the same wavelength in the spectrum at the same sampling point at all adjacent times to obtain the change stability of the absorbance corresponding to the wavelength;
[0030] Analyze the number of times a same wavelength appears in the spectrum at the same sampling point at all times to obtain the frequency of occurrence of the wavelength;
[0031] Analyze the interval distance between all the times when the same wavelength in the spectrum at the same sampling point at all times appears, and obtain the continuity of the appearance of the wavelength;
[0032] According to the change stability of the absorbance corresponding to the wavelength, the frequency of the wavelength and the continuity of the wavelength, the probability of the wavelength corresponding to the absorption peak of the virus in the water environment is obtained;
[0033] According to the probability of the wavelength corresponding to the absorption peak of the water environment virus, the water environment virus probability threshold is set, the wavelengths corresponding to the external viruses introduced by temporary pollution sources are removed, and the wavelengths corresponding to all the water environment virus absorption peaks are determined.
[0034] In some embodiments of the present invention, a buoy sampler is used to collect water environment samples at multiple sampling points and at multiple times, and a spectrograph is used to detect the samples to obtain a spectrogram.
[0035] Compared with the prior art, the method for water environment virus sampling and concentration estimation based on artificial intelligence provided by the present invention has the following beneficial effects:
[0036] The present invention collects water environment samples at multiple sampling points at multiple times, detects the samples, and obtains a spectrum; analyzes the spectrum to obtain the probability that the absorbance corresponding to the wavelength in the spectrum is the local maximum peak of the wavelength corresponding to a certain virus absorption peak; analyzes the similarity between the spectrums of multiple sampling points collected at the same sampling time, combines the local maximum peak probability to obtain the local maximum peak correction probability that the absorbance corresponding to the wavelength in the spectrum is the wavelength corresponding to a certain virus absorption peak, and determines the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time; based on the spectrum, according to the local maximum peak probability, obtains the corrected virus absorbance and corrected virus concentration corresponding to the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time; analyzes and compares the spectrums of the same sampling point at all times to determine the wavelength corresponding to all water environment virus absorption peaks; obtains the absorbance-concentration curve corresponding to all water environment viruses according to the wavelength corresponding to all water environment virus absorption peaks, and the absorbance and concentration corresponding to the wavelength; and estimates the concentration of viruses in newly collected water environment samples based on the absorbance-concentration curve corresponding to all water environment viruses. The present invention eliminates the influence of noise by comparative analysis of different sampling points at the same sampling time; eliminates the influence of temporary pollution sources by comparative analysis of different sampling times and the same collection point, accurately obtains the wavelengths corresponding to the absorption peaks of all viruses in the water environment and the absorbance-concentration curves corresponding to the wavelengths, and provides a basis for the subsequent accurate estimation of the concentration of viruses in the water environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] 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.
[0038] Figure 1 A basic flow chart of a method for sampling and estimating virus concentration in water environments based on artificial intelligence provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] 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 method for sampling and estimating water environment viruses and concentrations based on artificial intelligence 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.
[0040] Unless otherwise defined, 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 invention belongs. 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 including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such article or device. In the absence of further restrictions, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the article or device including the element.
[0041] The specific scheme of the method for water environment virus sampling and concentration estimation based on artificial intelligence provided by the present invention is described in detail below in conjunction with the accompanying drawings.
[0042] See also Figure 1 , which shows the basic process of a method for water environment virus sampling and concentration estimation based on artificial intelligence provided by an embodiment of the present invention.
[0043] like Figure 1 As shown, an embodiment of the present invention provides a method for water environment virus sampling and concentration estimation based on artificial intelligence, which specifically includes:
[0044] S100: Collect water environment samples at multiple sampling points at multiple times, test the samples, and obtain a spectrum graph.
[0045] A sampling point is set every meter in the water environment, and a total of 10 sampling points are set. At the same time every day, for example, at 9 o'clock in the morning, a buoy sampler is used to sample at the 10 sampling points at the same time, and then a spectrograph is used to detect the samples collected every day to obtain the spectra corresponding to the 10 samples every day.
[0046] S200: Analyze the spectrum to obtain the probability that the absorbance corresponding to the wavelength in the spectrum is the local maximum peak of the wavelength corresponding to the absorption peak of a certain virus.
[0047] First, analyze the characteristics of the virus. For different viruses, their complex structures and chemical compositions lead to different degrees of absorption of light of different wavelengths. When light of a specific wavelength interacts with the electronic structure or vibration mode of the virus molecule, it causes the light to be absorbed, resulting in an absorption peak in the spectrum. The height of this absorption peak usually reflects the intensity of the interaction between the virus and light at that wavelength. Therefore, for a virus, there will be a highest peak at a certain wavelength, that is, the response value (i.e., absorbance) is the largest at this wavelength. This wavelength is usually closely related to the molecular structure and chemical composition of the virus, that is, the absorption peaks of different viruses correspond to the wavelengths corresponding to the highest peaks in a one-to-one correspondence. Therefore, for a spectrum, finding all its highest peaks and the wavelengths corresponding to the highest peaks will determine all the viruses.
[0048] Based on the above analysis, if you want to determine the types and concentrations of all viruses, you first need to find the highest peak that may be the virus absorption peak. Therefore, the embodiment of the present application first analyzes the spectrum to obtain the probability that the absorbance corresponding to the wavelength in the spectrum is the local highest peak of the wavelength corresponding to the absorption peak of a certain virus. Further, by analyzing the regularity of changes between the absorbances corresponding to multiple wavelengths on both sides of the absorbance corresponding to a wavelength in the spectrum, combined with the size of the absorbance corresponding to the wavelength, the probability that the absorbance corresponding to the wavelength in the spectrum is the local highest peak of the wavelength corresponding to the absorption peak of a certain virus is obtained.
[0049] Furthermore, the variation regularity between the absorbances corresponding to multiple wavelengths on the left and right sides of the absorbance corresponding to a wavelength in the spectrum is analyzed, including: calculating the mean and variance of the tilt angles of the line connecting the absorbance corresponding to a wavelength in the spectrum and the absorbances corresponding to multiple wavelengths on the left side, to obtain the left mean and the left variance; calculating the mean and variance of the tilt angles of the line connecting the absorbance corresponding to a wavelength in the spectrum and the absorbances corresponding to multiple wavelengths on the right side, to obtain the right mean and the right variance; combining the left mean and the right mean, and, combining the left variance and the right variance, to obtain the variation regularity between the absorbances corresponding to multiple wavelengths on the left and right sides of the absorbance corresponding to a wavelength in the spectrum.
[0050] Specifically, construct Tiandi On the spectrum The absorbance corresponding to the wavelength is the quantitative formula of the probability of the local maximum peak corresponding to the wavelength of the absorption peak of a certain virus:
[0051]
[0052] in, Indicates Tiandi On the spectrum The absorbance corresponding to the wavelength is the probability of the local maximum peak corresponding to the wavelength of the absorption peak of a certain virus. Indicates Tiandi On the spectrum The absorbance corresponding to the wavelength, Indicates Tiandi On the spectrum The wavelength is the same as the first of the five wavelengths to its left. The inclination angle of the straight line connecting the corresponding absorbances is Indicates Tiandi On the spectrum The wavelength is the same as the first of the five wavelengths to its right. The inclination angle of the straight line connecting the corresponding absorbances is Indicated by natural constant The exponential function with base , Indicates Tiandi On the spectrum The variance of the tilt angle of the straight line connecting the wavelength and the 5 wavelengths on its left side, Indicates Tiandi On the spectrum The variance of the inclination angle of the line connecting the wavelength and the 5 wavelengths to its right, Indicates Tiandi On the spectrum The average of the inclination angles of the straight lines connecting the wavelength and the five wavelengths on its left side, Indicates Tiandi On the spectrum The average of the inclination angles of a wavelength and the 5 wavelengths to its right.
[0053] There are several characteristics of the highest peak of a virus response. First, because it is a peak, the absorbance is relatively large. The larger the value, the greater the probability of being the local highest peak, that is, the absorbance It is directly proportional to the probability of the local highest peak. Second, because the absorbance corresponding to the highest peak is the local maximum, the inclination angle of the straight line connecting the five absorbances on the left is are all greater than 0, and the inclination angle of the straight line connecting the 5 absorbances on the right is are both less than 0, and the absolute value of the subtraction is larger, so The larger the value, the greater the possibility of the peak being the local maximum, showing a positive proportional relationship. Third, because the absorbance is not abrupt, the inclination angle variance of the straight line connecting the absorbance corresponding to the highest peak and the absorbance on both sides is , The smaller it is, the greater the possibility of belonging to the local highest peak, showing an inverse proportional relationship. To construct this inverse proportion, we can construct the above formula.
[0054] S300: Analyze the similarity between the spectra of multiple sampling points collected at the same sampling time, and combine the local maximum peak probability to obtain the local maximum peak correction probability that the absorbance corresponding to the wavelength in the spectrum is the wavelength corresponding to the absorption peak of a certain virus, and determine the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time.
[0055] Since the 10 samples collected every day are in the same water environment and are sampled at the same time every day, the spectra obtained from the 10 samples collected every day should be highly similar. Therefore, it is necessary to determine whether the wavelength corresponding to the absorption peak exhibits the characteristics of the wavelength corresponding to the absorption peak in all 10 samples.
[0056] Based on the above analysis, the noise effect can be identified and removed by analyzing the similarity between the spectra of multiple sampling points collected at the same sampling time. Therefore, the embodiment of the present application analyzes the similarity between the spectra of multiple sampling points collected at the same sampling time, and combines the local highest peak probability to obtain the local highest peak correction probability that the absorbance corresponding to the wavelength in the spectra is a certain virus absorption peak corresponding to the wavelength, and then determines the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time. Further, the consistency of the absorbance corresponding to the same wavelength in the spectra of multiple sampling points collected at the same sampling time and the average value of the absorbance corresponding to the same wavelength in the spectra of multiple sampling points is analyzed to obtain the similarity between the spectra; according to the similarity between the spectra, combined with the local highest peak probability, the absorbance corresponding to the wavelength in the spectra is the local highest peak correction probability of the wavelength corresponding to the absorption peak of a certain virus; according to the local highest peak correction probability, the highest peak probability threshold is set to determine the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time.
[0057] Specifically, construct the following formula to express Days compared to 10 spectra The absorbance corresponding to the wavelength is the corrected probability of the local maximum peak corresponding to the wavelength of the absorption peak of a certain virus:
[0058]
[0059] in, Indicates Days compared to 10 spectra The absorbance corresponding to the wavelength is the local maximum peak correction probability corresponding to the wavelength of the absorption peak of a certain virus. represents the linear normalization function, Indicated by natural constant The exponential function with base , Indicates Tiandi On the spectrum The absorbance corresponding to the wavelength, Indicates All 10 spectra of the day The average value of the absorbance corresponding to the wavelength, Indicates Tiandi On the spectrum The absorbance corresponding to a wavelength is the probability of the local maximum peak at the wavelength corresponding to the absorption peak of a certain virus.
[0060] Generally speaking, if in the The spectrum obtained on the day The absorbance corresponding to the wavelength is the absorption peak, so All 10 spectra obtained on the day The absorbance corresponding to the wavelength is the local maximum peak correction probability of a certain virus absorption peak corresponding to the wavelength. Use To express, that is The corresponding The absorbance corresponding to the wavelength is more likely to be the absorption peak and has a higher probability of correction. express Tiandi On the spectrum The consistency between the absorbance corresponding to the wavelength and the average absorbance is The spectrum obtained on the day The absorbance corresponding to the wavelength is the absorption peak, so All 10 spectra obtained on the day should be similar, corresponding to It should be smaller, and here we want to make the most similar The probability of adding the absorbance corresponding to the wavelength is larger (the most similar one is closest to the average value, and the closer the probability is, the larger the probability is, the inverse proportional update is used. to build an inverse proportional relationship), the most dissimilar The probability of adding the absorbances corresponding to the wavelengths is smaller, and we get The spectrum obtained on the day The absorbance corresponding to a wavelength is the exact probability that the absorption peak of a certain virus corresponds to a wavelength.
[0061] Set the highest peak probability threshold to 0.8. If it is greater than or equal to 0.8, it is considered The absorbance corresponding to the wavelength is the wavelength corresponding to the absorption peak of a suspected water environment virus. All wavelengths corresponding to the correction probability greater than or equal to 0.8 are retained to obtain the wavelengths corresponding to the absorption peaks of all suspected water environment viruses in a day; if If it is less than 0.8, it is considered The absorbance corresponding to the wavelength is the wavelength corresponding to the noise absorption peak, and the corresponding wavelength is removed.
[0062] By using the highest peak probability threshold, we get The wavelengths corresponding to the absorption peaks of all suspected water environment viruses on that day can now be The 10 spectra of the day are transformed into a spectrum that only represents the absorption peak of suspected water environment viruses, and the spectrum of the absorption peak of suspected water environment viruses is obtained for each day.
[0063] Furthermore, because the wavelengths corresponding to the absorption peaks of different suspected water environment viruses and the highest peaks are in a one-to-one correspondence, the type of suspected water environment virus can be determined based on the wavelength corresponding to the absorption peak of the suspected water environment virus. And because the DNA and RNA of each suspected water environment virus are unique, the concentration of the suspected water environment virus in each sample can be detected by polymerase chain reaction (PCR) according to the type of suspected water environment virus, and the virus concentration corresponding to the corresponding wavelength in the spectrum graph collected at all sampling points at a sampling time for each suspected water environment virus can be obtained.
[0064] S400: Based on the spectrum, according to the local highest peak probability, the corrected virus absorbance and corrected virus concentration corresponding to the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time are obtained.
[0065] Through step S300, it is determined which wavelengths are the wavelengths corresponding to the suspected water environment virus absorption peaks, and it is necessary to further determine the corrected virus absorbance corresponding to the suspected water environment virus absorption peaks for constructing the spectrogram. Therefore, the embodiment of the present application is based on the spectrogram, and according to the local highest peak probability, the corrected virus absorbance corresponding to the wavelength corresponding to all suspected water environment virus absorption peaks in each sampling time is obtained. Further, based on the spectrogram, according to the local highest peak probability, the weighted average of the absorbance corresponding to the same wavelength in the spectrogram collected at all sampling points at each sampling time is calculated to obtain the corrected virus absorbance corresponding to the wavelength corresponding to all suspected water environment virus absorption peaks in each sampling time. It should be noted that the corrected virus absorbance here is a correction relative to the virus absorbance obtained by calculating the average of 10 absorbances corresponding to one wavelength in 10 spectrograms collected in one day.
[0066] Specifically, construct the following formula to express The corresponding absorption peak of suspected water environment virus Corrected virus absorbance corresponding to wavelength:
[0067]
[0068] in, Indicates The corresponding absorption peak of suspected water environment virus Corrected virus absorbance corresponding to wavelength, Indicates Tiandi On the spectrum The absorbance corresponding to the wavelength is the probability of the local maximum peak corresponding to the wavelength of the absorption peak of a certain virus. Indicates All 10 spectra of the day The absorbance corresponding to a wavelength is the sum of the local maximum peak probabilities of a certain virus absorption peak corresponding to the wavelength. express Tiandi On the spectrum The absorbance corresponding to the wavelength.
[0069] To obtain the corresponding absorption peak of suspected water environment virus The absorbance corresponding to the wavelength can generally be obtained by All 10 spectra in the sky wavelength corresponds to the average value of the absorbance. However, because 10 spectra per day The absorbance corresponding to the wavelength is the probability of the local maximum peak corresponding to the wavelength of the absorption peak of a certain virus Different, should let The higher the corresponding absorbance weight, the higher the local peak probability is. Therefore, the proportion of the local highest peak probability is used as the weight to calculate the weighted average of the absorbance corresponding to the same wavelength in the spectrum collected by all sampling points at each sampling time, so that The corresponding absorption peak of suspected water environment virus Corrected viral absorbance corresponding to wavelength.
[0070] So far, we have obtained The corresponding wavelength and absorbance of the suspected water environment virus absorption peak on the day can be obtained. Spectrum of the absorption peaks of suspected water environment viruses on the day.
[0071] In order to obtain the absorbance-concentration curve corresponding to the wavelength corresponding to each suspected water environment virus absorption peak, it is also necessary to obtain the corrected virus concentration corresponding to the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time. Therefore, based on the spectrum, according to the probability of the local highest peak, the embodiment of the present application obtains the corrected virus concentration corresponding to the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time. Furthermore, based on the spectrum, according to the probability of the local highest peak, the weighted average of the virus concentration corresponding to the same wavelength in the spectrum collected at all sampling points at each sampling time is calculated (the virus concentration corresponding to the wavelength is obtained by PCR detection of the sample) to obtain the corrected virus concentration corresponding to the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time.
[0072] Specifically, construct the following formula to express The corresponding absorption peak of suspected water environment virus Corrected virus concentration corresponding to wavelength:
[0073]
[0074] in, Indicates The corresponding absorption peak of suspected water environment virus The corrected virus concentration corresponding to the wavelength, Indicates Tiandi On the spectrum The absorbance corresponding to the wavelength is the probability of the local maximum peak corresponding to the wavelength of the absorption peak of a certain virus. Indicates All 10 spectra of the day The absorbance corresponding to a wavelength is the sum of the local maximum peak probabilities of a certain virus absorption peak corresponding to the wavelength. express Tiandi On the spectrum Wavelength corresponding to the virus concentration.
[0075] S500: Analyze and compare the spectra of the same sampling point at all times to determine the wavelengths corresponding to the absorption peaks of all water environment viruses.
[0076] For step S300, the spectrograms of multiple sampling points collected on a certain day are analyzed to determine the wavelengths corresponding to the absorption peaks of all suspected water environment viruses at each sampling time. The water environment is a cyclically stable process, and all viruses exist in a certain range and are stable, or gradually disappear, or are a process of gradually increasing. Therefore, the wavelengths corresponding to the viruses brought by temporary pollution sources can be excluded based on this characteristic of water environment viruses. In the embodiment of the present application, the wavelengths corresponding to the absorption peaks of all water environment viruses are determined by analyzing and comparing the spectrograms of the same sampling point at all times. Further, the change stability of the absorbance corresponding to the same wavelength in the spectrogram of the same sampling point at all times is analyzed, and the continuity and frequency of the same wavelength in the spectrogram of the same sampling point at all times are analyzed, the wavelengths corresponding to the external viruses introduced by temporary pollution sources are removed, and the wavelengths corresponding to the absorption peaks of all water environment viruses are determined. Furthermore, the difference in absorbance corresponding to the same wavelength in the spectrum of the same sampling point at all adjacent times is analyzed to obtain the stability of the change of the absorbance corresponding to the wavelength; the number of times the same wavelength appears in the spectrum of the same sampling point at all times is analyzed to obtain the frequency of the wavelength; the interval distance between all times when the same wavelength appears in the spectrum of the same sampling point at all times is analyzed to obtain the continuity of the wavelength; based on the stability of the change of the absorbance corresponding to the wavelength, the frequency of the wavelength and the continuity of the wavelength, the probability of the wavelength corresponding to the absorption peak of the water environment virus is obtained; based on the probability of the wavelength corresponding to the absorption peak of the water environment virus, a water environment virus probability threshold is set to remove the wavelengths corresponding to external viruses introduced by temporary pollution sources, and determine the wavelengths corresponding to all water environment virus absorption peaks.
[0077] Specifically, assuming Wavelength The following formula is constructed to compare the spectra of the suspected water environment virus absorption peaks of all days to determine The probability that the wavelength does not belong to the wavelength corresponding to the absorption peak caused by the temporary contamination source virus:
[0078]
[0079] in, express The probability that the wavelength does not belong to the wavelength corresponding to the absorption peak caused by the temporary contamination source virus, represents the linear normalization function, express Wavelength Tiandu is on the spectrum of suspected water environment virus absorption peaks. Indicated by natural constant The exponential function with base , Indicates that there is The wavelength is sky, Indicates that there is The wavelength is sky, express sky The absorbance of the wavelength on the spectrum of the suspected water environment virus absorption peak, express sky The absorbance of the wavelength on the spectrum of the suspected absorption peak of the virus in the water environment.
[0080] Indicates the frequency of wavelength occurrence; It indicates the interval distance between all the times when the same wavelength appears in the spectrum of the same sampling point at all times, that is, the continuity of the wavelength appearance; It represents the sum of the differences in absorbance corresponding to the same wavelength in the spectrum of the same sampling point at all adjacent times, that is, the stability of the change in absorbance corresponding to the wavelength. There are three characteristics for viruses in the water environment. First, because the ecological structure of the water environment is basically stable, the frequency of the same virus appearing is relatively large, that is, Secondly, because the water environment is ecologically stable, the number of days the virus exists is basically continuous. Otherwise, it may be a virus brought by a temporary pollution source (such as viruses brought back and forth by ships). The smaller the better; thirdly, whether the virus is stable, gradually disappearing, or gradually increasing, it is a gradual process, so the difference in absorption between adjacent days should not be very large, so The smaller the better, so the above formula can be constructed to quantify The probability that the wavelength does not belong to the wavelength corresponding to the absorption peak caused by the temporary contamination source virus.
[0081] Set the water environment virus probability threshold to 0.7. When it is greater than or equal to 0.7, it means The wavelength does not correspond to the absorption peak caused by the temporary contamination source virus, so it is retained. wavelength. When it is less than 0.7, it means The wavelength corresponds to the absorption peak caused by viruses from temporary pollution sources, removes the wavelength corresponding to the wavelength of external viruses introduced by temporary pollution sources, and determines the wavelength corresponding to the absorption peaks of all water environment viruses.
[0082] S600: Obtain absorbance-concentration curves corresponding to all water environment viruses according to the wavelengths corresponding to the absorption peaks of all water environment viruses, and the absorbance and concentration corresponding to the wavelengths.
[0083] The wavelengths corresponding to the absorption peaks of all water environment viruses are determined by step S500. In terms of wavelength, it is the wavelength corresponding to the water environment virus, which appears in the spectra of the suspected water environment virus absorption peak on certain days. By drawing the absorbance-concentration curve for the corrected virus absorbance and the corrected virus concentration determined in step S400 in these spectra, the corresponding water environment virus absorption peak is obtained. The absorbance-concentration curve corresponding to the wavelength (which can also tell what kind of virus it is).
[0084] S700: Estimate the concentration of viruses in newly collected water environment samples based on the absorbance-concentration curves corresponding to all water environment viruses.
[0085] Through the absorbance-concentration curve of each water environment virus determined as above, the absorbance of the water environment virus samples collected later at the wavelength corresponding to the water environment virus absorption peak obtained by the spectrometer can be brought into the absorbance-concentration curve constructed at the same wavelength to estimate the concentration of each water environment virus.
[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.
Claims
1. A method for sampling and estimating virus concentration in water environment based on artificial intelligence, characterized in that: The method comprises: Collect water environment samples at multiple sampling points at multiple times, test the samples, and obtain spectrograms; Analyze the spectrum to obtain the probability that the absorbance corresponding to the wavelength in the spectrum is the local maximum peak of the wavelength corresponding to the absorption peak of a certain virus; Analyze the similarity between the spectra of multiple sampling points collected at the same sampling time, and combine the local maximum peak probability to obtain the local maximum peak correction probability that the absorbance corresponding to the wavelength in the spectra is the wavelength corresponding to the absorption peak of a certain virus, and determine the wavelength corresponding to all the absorption peaks of suspected water environment viruses at each sampling time; Based on the spectrum, according to the local highest peak probability, the corrected virus absorbance and corrected virus concentration corresponding to the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time are obtained; Analyze and compare the spectra at the same sampling point at all times to determine the wavelengths corresponding to the absorption peaks of all water environment viruses; According to the wavelength corresponding to the absorption peak of all water environment viruses, and the absorbance and concentration corresponding to the wavelength, the absorbance-concentration curve corresponding to all water environment viruses is obtained; Based on the absorbance-concentration curves corresponding to all water environment viruses, the concentration of viruses in newly collected water environment samples is estimated; Analyze the similarity between the spectra of multiple sampling points collected at the same sampling time, combine the local maximum peak probability, obtain the absorbance corresponding to the wavelength in the spectra is the local maximum peak correction probability of the wavelength corresponding to the absorption peak of a certain virus, and determine the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time, including: Analyze the consistency of the absorbance corresponding to the same wavelength in the spectrum of multiple sampling points collected at the same sampling time and the average value of the absorbance corresponding to the same wavelength in the spectrum of multiple sampling points to obtain the similarity between the spectrums; According to the similarity between the spectra and in combination with the local maximum peak probability, a local maximum peak correction probability is obtained that the absorbance corresponding to the wavelength in the spectra is the wavelength corresponding to the absorption peak of a certain virus; According to the local maximum peak correction probability, a maximum peak probability threshold is set to determine the wavelength corresponding to all suspected water environment virus absorption peaks at each sampling time; Analyzing the spectrum to obtain the probability that the absorbance corresponding to the wavelength in the spectrum is the local maximum peak of the wavelength corresponding to the absorption peak of a certain virus includes: Analyze the variation regularity between the absorbances corresponding to multiple wavelengths on the left and right sides of the absorbance corresponding to a wavelength in the spectrum, and combine the magnitude of the absorbance corresponding to the wavelength to obtain the probability that the absorbance corresponding to the wavelength in the spectrum is the local maximum peak of the wavelength corresponding to the absorption peak of a certain virus; Analyzing the variation regularity between the absorbance corresponding to a wavelength and the absorbance corresponding to multiple wavelengths on both sides of the absorbance corresponding to a wavelength in the spectrum diagram includes: Calculate the mean and variance of the tilt angles of the absorbance corresponding to a wavelength in the spectrum graph and the absorbance corresponding to multiple wavelengths on the left side to obtain the left side mean and the left side variance; Calculate the mean and variance of the tilt angles of the absorbance corresponding to a wavelength in the spectrum and the absorbance corresponding to multiple wavelengths on the right side to obtain the right side mean and the right side variance; By combining the left mean and the right mean, and, combining the left variance and the right variance, the change regularity between the absorbance corresponding to a wavelength in the spectrum and the absorbance corresponding to multiple wavelengths on both sides is obtained.
2. The method for water environment virus sampling and concentration estimation based on artificial intelligence according to claim 1 is characterized in that: The type of the suspected water environment virus is determined according to the wavelength corresponding to the absorption peak of the suspected water environment virus; according to the type of the suspected water environment virus, the concentration of the suspected water environment virus in the sample is detected using polymerase chain reaction to obtain the virus concentration corresponding to the wavelength in the spectrum.
3. The method for water environment virus sampling and concentration estimation based on artificial intelligence according to claim 1 is characterized in that: Based on the spectrum, according to the local highest peak probability, the weighted average of the absorbances corresponding to the same wavelength in the spectrum collected at all sampling points at each sampling time is calculated to obtain the corrected virus absorbances corresponding to the wavelengths corresponding to all suspected water environment virus absorption peaks at each sampling time.
4. The method for water environment virus sampling and concentration estimation based on artificial intelligence according to claim 2 is characterized in that: Based on the spectrum, according to the local maximum peak probability, the weighted average of the virus concentrations corresponding to the same wavelength in the spectrum collected at all sampling points at each sampling time is calculated to obtain the corrected virus concentrations corresponding to the wavelengths corresponding to all suspected water environment virus absorption peaks at each sampling time.
5. The method for sampling and estimating water environment viruses based on artificial intelligence according to claim 1 is characterized in that: Analyze the stability of the absorbance changes corresponding to the same wavelength in the spectrum at the same sampling point at all times, and analyze the continuity and frequency of the same wavelength in the spectrum at the same sampling point at all times, remove the wavelengths corresponding to external viruses introduced by temporary pollution sources, and determine the wavelengths corresponding to the absorption peaks of all water environment viruses.
6. The method for sampling and estimating water environment viruses based on artificial intelligence according to claim 5 is characterized in that: Analyze the change stability of the absorbance corresponding to the same wavelength in the spectrum at the same sampling point at all times, and analyze the frequency and continuity of the same wavelength in the spectrum at the same sampling point at all times, remove the wavelengths corresponding to external viruses introduced by temporary pollution sources, and determine the wavelengths corresponding to the absorption peaks of all water environment viruses, including: Analyze the difference of absorbance corresponding to the same wavelength in the spectrum at the same sampling point at all adjacent times to obtain the change stability of the absorbance corresponding to the wavelength; Analyze the number of times a same wavelength appears in the spectrum at the same sampling point at all times to obtain the frequency of occurrence of the wavelength; Analyze the interval distance between all the times when the same wavelength in the spectrum at the same sampling point at all times appears, and obtain the continuity of the appearance of the wavelength; According to the change stability of the absorbance corresponding to the wavelength, the frequency of the wavelength and the continuity of the wavelength, the probability of the wavelength corresponding to the absorption peak of the virus in the water environment is obtained; According to the probability of the wavelength corresponding to the absorption peak of the water environment virus, the water environment virus probability threshold is set, the wavelengths corresponding to the external viruses introduced by temporary pollution sources are removed, and the wavelengths corresponding to all the water environment virus absorption peaks are determined.
7. The method for sampling and estimating virus concentration in water environment based on artificial intelligence according to claim 1, characterized in that: A buoy sampler is used to collect water environment samples at multiple sampling points and at multiple times, and a spectrograph is used to detect the samples to obtain a spectrogram.
