Water quality multi-parameter detection method and device based on artificial intelligence model and product

Through the water quality multi-parameter detection method based on artificial intelligence models, using full-spectrum images and multi-parameter detection models, the problems of low efficiency and accuracy in traditional water quality monitoring methods are solved, and efficient and accurate water quality detection is achieved, which is suitable for large-scale application.

CN118777225APending Publication Date: 2024-10-15BO RUI SI SHU ZHI KE JI (SHEN ZHEN) YOU XIAN GONG SI
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410779457.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Traditional water quality monitoring methods rely on chemical analysis technology, which has the problems of long cycle, high cost and complex operation, and cannot achieve fast, accurate and real-time multi-parameter detection, especially due to the limited wavelength range of spectrometry, which results in detection efficiency and accuracy. Sex is low.

Method used

A multi-parameter water quality detection method based on artificial intelligence models is used to obtain multiple spectral band information in full-spectrum images, build a multi-parameter detection model, and use a single-parameter inversion model for feature extraction and detection to achieve the detection of multiple water quality parameters. Simultaneous detection avoids wavelength range limitations.

Benefits of technology

It improves the efficiency and accuracy of water quality testing, reduces costs, achieves comprehensive coverage and multi-dimensional assessment of water quality, is suitable for large-scale water quality monitoring, and has real-time, intelligent optimization and environmental protection characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118777225A_ABST
    Figure CN118777225A_ABST
Patent Text Reader

Abstract

The invention discloses a water quality multi-parameter detection method, device and product based on an artificial intelligence model, and the method comprises the steps: training a single-parameter inversion model corresponding to each water quality parameter through the feature data of sample spectrum band information corresponding to each water quality parameter in sample full-spectrum images of different sample water samples; a multi-parameter detection model is constructed on the basis; thus, in actual use, only the spectral band information corresponding to each water quality parameter in the full-spectral image of the target water sample needs to be acquired, and then the feature data corresponding to each spectral band information is extracted; and finally, inputting the characteristic data corresponding to each piece of spectral band information into a multi-parameter detection model to obtain a concentration detection result of each water quality parameter. Therefore, compared with the traditional technology, the method has the advantages that multiple times of detection are not needed, and the problem of wavelength range limitation is solved by the full-spectrum image, so that the detection efficiency is improved, the detection cost is reduced, and the detection accuracy is also improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of water quality detection, and specifically relates to a water quality multi-parameter detection method, device and product based on an artificial intelligence model. Background Art

[0002] In recent years, with the acceleration of industrialization and the continuous increase in human activities, water pollution problems have become increasingly prominent, which has put forward higher requirements for water quality monitoring and protection. Among them, traditional water quality monitoring mainly relies on chemical analysis technology, which requires sampling and laboratory testing, and has problems such as long cycle, high cost, and complex operation. It also requires the use of chemical reagents, which can easily cause secondary pollution. Therefore, there is an urgent need for a fast, accurate, real-time and reagent-free water quality detection method to complete real-time monitoring of water quality.

[0003] As a non-destructive, rapid and real-time detection method, spectroscopy technology has been widely used in the field of water quality monitoring. The principle of spectroscopy for water quality detection is to analyze various parameters in water quality by measuring the absorption, emission or scattering characteristics of light by substances in water. In actual use, UV-visible spectroscopy is a commonly used spectral detection method, which has high sensitivity and accuracy in water quality monitoring and has been widely used.

[0004] However, traditional spectroscopy still has some limitations in water quality detection, and it has the following shortcomings: one spectral sensor can only detect one parameter in water quality, and to achieve the detection of multiple parameters in water quality, multiple spectral sensors are required to detect separately, which not only reduces the detection efficiency but also increases the cost; at the same time, the parameter accuracy of traditional spectroscopy is also easily limited by the wavelength range; therefore, based on the aforementioned shortcomings, how to provide a multi-parameter water quality detection method with high efficiency and high detection accuracy has become a problem to be solved urgently. Summary of the invention

[0005] The purpose of the present invention is to provide a water quality multi-parameter detection method, device and product based on an artificial intelligence model to solve the problems of low efficiency and low accuracy in the prior art.

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

[0007] In the first aspect, a water quality multi-parameter detection method based on an artificial intelligence model is provided, comprising:

[0008] Obtaining m spectral band information in the full spectrum image of the target water sample, wherein m is the number of types of water quality parameters in the target water sample, and each spectral band information corresponds to one water quality parameter;

[0009] Acquire a multi-parameter detection model, wherein the multi-parameter detection model includes m single-parameter inversion models, each single-parameter inversion model is used to detect a water quality parameter, any single-parameter inversion model is trained by taking characteristic data of sample spectral band information corresponding to a target water quality parameter in a sample full-spectrum image of a plurality of sample water samples as input and the detection value of the target water quality parameter of each sample water sample as output, and the target water quality parameter is the water quality parameter used to detect by any single-parameter inversion model;

[0010] Performing feature extraction processing on each spectral band information in the full-spectrum image, so as to obtain feature data corresponding to each spectral band information after the feature extraction processing;

[0011] The characteristic data corresponding to each spectral band information is input into the multi-parameter detection model for water quality parameter detection processing, so as to obtain the detection values ​​of various water quality parameters in the target water sample after the water quality parameter detection processing, so as to use the detection values ​​of various water quality parameters to obtain the water quality detection result of the target water sample.

[0012] Based on the above disclosed content, the present invention pre-constructs a multi-parameter detection model, wherein the multi-parameter detection model includes single-parameter inversion models corresponding to various water quality parameters to be detected, and any single-parameter inversion model is trained using the characteristic data of sample spectral band information corresponding to the water quality parameter detected by any single-parameter inversion model in the sample full-spectrum images of several sample water samples, and the model output is the detection value of the corresponding water quality parameter; in this way, the present invention is equivalent to constructing a model set including detection models corresponding to various water quality parameters in the water sample; based on this, in actual application, it is only necessary to obtain the spectral band information corresponding to each water quality parameter in the full-spectrum image of the target water sample; then, extract the characteristic data corresponding to each spectral band information; finally, input the characteristic data corresponding to each spectral band information into the aforementioned multi-parameter detection model, and different single-parameter inversion models in the multi-parameter detection model can be used to realize the concentration detection of different water quality parameters in the target water sample, thereby obtaining the water quality detection result of the target water sample.

[0013] Through the above design, the present invention uses a multi-parameter detection model and combines it with the full-spectrum image of the water sample to detect water quality parameters; in this way, the simultaneous detection of multiple water quality parameters in the water sample can be realized using one full-spectrum image, which not only achieves comprehensive coverage and multi-dimensional evaluation of the comprehensive water quality conditions, but also improves the detection efficiency and reduces the detection cost; at the same time, the present invention combines the high sensitivity and wide applicability of spectral technology with the powerful learning and prediction capabilities of artificial intelligence models to carry out water quality monitoring, which can improve the accuracy of detection of multiple water quality parameters compared with traditional technologies; in addition, the present invention uses full-spectrum images as detection input data, which covers all wavelength ranges, thereby avoiding the problem of traditional technologies being easily limited by wavelength ranges, thereby further improving the accuracy of detection; based on this, the present invention improves an efficient, accurate and real-time water quality detection method, which is very suitable for large-scale application and promotion in the field of water quality detection.

[0014] In one possible design, a multi-parameter detection model is obtained, including:

[0015] Obtaining sample full spectrum images of several sample water samples;

[0016] For any sample full spectrum image, extract m sample spectrum band information in the any sample full spectrum image, wherein each sample spectrum band information corresponds to a water quality parameter;

[0017] Performing feature extraction processing on each sample spectral band information to obtain feature data corresponding to each sample spectral band information, and after polling all sample full-spectrum images, obtaining feature data corresponding to each sample spectral band information in all sample full-spectrum images;

[0018] Based on m water quality parameters, feature data corresponding to each sample spectral band information in all sample full-spectrum images are divided and processed, so as to obtain a feature set corresponding to each water quality parameter after the division and processing, wherein the feature set of any water quality parameter contains feature data corresponding to each target sample spectral band information, and each target sample spectral band information is the sample spectral band information corresponding to any water quality parameter in each sample full-spectrum image;

[0019] Use each feature set to form a training set;

[0020] Constructing a corresponding water quality detection model for each water quality parameter, and using the training set to train each water quality detection model, so as to obtain a single parameter inversion model corresponding to each water quality parameter after the training is completed;

[0021] The single-parameter inversion models are merged to obtain the multi-parameter detection model after the merging process.

[0022] In a possible design, feature extraction processing is performed on each sample spectral band information to obtain feature data corresponding to each sample spectral band information, including:

[0023] For any sample spectral band information, extract a plurality of initial feature data in the any sample spectral band information;

[0024] Performing feature screening processing on the plurality of initial feature data to obtain a plurality of candidate feature data after the feature screening processing;

[0025] A feature construction process is performed on a plurality of candidate feature data, so as to obtain feature data corresponding to any sample spectral band information after the feature construction process.

[0026] In a possible design, before extracting the m sample spectral band information in any sample full-spectrum image, the method further includes:

[0027] Performing filtering processing on any one of the sample full-spectrum images to obtain a filtered sample full-spectrum image, so as to perform spectral band extraction processing on the filtered sample full-spectrum image to obtain m sample spectral band information in any one of the sample full-spectrum images;

[0028] Accordingly, before performing feature screening processing on the plurality of initial feature data, the method further includes:

[0029] A feature expansion process is performed on a plurality of initial feature data to obtain an extended feature data set, so as to perform a feature screening process on the extended feature data set, so as to obtain a plurality of candidate feature data after the feature screening process.

[0030] In one possible design, a corresponding water quality detection model is constructed for each water quality parameter, including:

[0031] For any water quality parameter, construct a model search space of a water quality detection model corresponding to the any water quality parameter, wherein the model search space includes a model architecture and model parameters of the water quality detection model corresponding to the any water quality parameter;

[0032] Using a preset search strategy, a model search process is performed in the model search space, so as to obtain a candidate model architecture and candidate model parameters of a water quality detection model corresponding to any water quality parameter after the model search process;

[0033] The candidate model architecture and the candidate model parameters are evaluated, and according to the evaluation results, the candidate model architecture and the candidate model parameters are optimized through feedback, so as to obtain the optimal model architecture and the optimal model parameters after the feedback optimization process;

[0034] The optimal model architecture and optimal model parameters are used to construct a water quality detection model corresponding to any of the water quality parameters.

[0035] In a possible design, the training set is used to train various water quality detection models, so that after the training, a single parameter inversion model corresponding to each water quality parameter is obtained, including:

[0036] For a water quality detection model corresponding to any water quality parameter, a feature set corresponding to the any water quality parameter is selected from the training set;

[0037] Divide the selected feature set into a training subset and a test subset;

[0038] Taking each piece of training data in the training subset as input and the detection value of any water quality parameter of the sample water sample corresponding to each piece of training data as output, a water quality detection model corresponding to any water quality parameter is trained to obtain a trained water quality detection model after the training is completed;

[0039] Input each test data in the test subset into the trained water quality detection model to obtain a model output result corresponding to each test data in the test subset;

[0040] Calculate the model test index based on the label data corresponding to each test data and the model output results;

[0041] Determine whether the model test indicators meet the preset requirements;

[0042] If not, the trained water quality detection model is optimized and trained to obtain a single parameter inversion model corresponding to any water quality parameter after the optimization training.

[0043] In a possible design, there are multiple feature data corresponding to any sample spectral band information, and the multi-parameter detection model is expressed as:

[0044]

[0045] In formula (1), represents the output matrix of the multi-parameter detection model, y m It represents the detection value of the mth water quality parameter of any sample water. represents the input matrix of the multi-parameter detection model, x n Indicates the nth feature data corresponding to each sample spectral band information of any sample water sample, Model mimo represents the multi-parameter detection model;

[0046] in,

[0047] In formula (2), Model miso-i Represents the i-th single parameter inversion model, Model miso-i.n represents the nth input unit in the i-th single-parameter inversion model, i = 1, 2, ..., m.

[0048] In the second aspect, a water quality multi-parameter detection device based on an artificial intelligence model is provided, comprising:

[0049] An acquisition unit, used for acquiring m spectral band information in the full spectrum image of the target water sample, wherein m is the number of types of water quality parameters in the target water sample, and each spectral band information corresponds to one water quality parameter;

[0050] A model building unit, used for obtaining a multi-parameter detection model, wherein the multi-parameter detection model includes m single-parameter inversion models, each of which is used to detect a water quality parameter, and any single-parameter inversion model is trained by taking characteristic data of sample spectral band information corresponding to a target water quality parameter in a sample full-spectrum image of a plurality of sample water samples as input and the detection value of the target water quality parameter of each sample water sample as output, and the target water quality parameter is the water quality parameter used to detect by any single-parameter inversion model;

[0051] A feature extraction unit, used to perform feature extraction processing on each spectral band information in the full-spectrum image, so as to obtain feature data corresponding to each spectral band information after the feature extraction processing;

[0052] The water quality detection unit is used to input the characteristic data corresponding to each spectral band information into the multi-parameter detection model to perform water quality parameter detection processing, so as to obtain the detection values ​​of various water quality parameters in the target water sample after the water quality parameter detection processing, so as to use the detection values ​​of various water quality parameters to obtain the water quality detection result of the target water sample.

[0053] In the third aspect, another water quality multi-parameter detection device based on an artificial intelligence model is provided. Taking the device as an electronic device as an example, the device includes a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the water quality multi-parameter detection method based on the artificial intelligence model as described in the first aspect or any one of the possible designs in the first aspect.

[0054] In a fourth aspect, a storage medium is provided, on which instructions are stored. When the instructions are executed on a computer, the multi-parameter water quality detection method based on the artificial intelligence model as described in the first aspect or any possible design of the first aspect is executed.

[0055] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, causes the computer to execute the multi-parameter water quality detection method based on an artificial intelligence model as described in the first aspect or any possible design of the first aspect.

[0056] Beneficial effects:

[0057] (1) The present invention detects water quality parameters through a multi-parameter detection model combined with a full-spectrum image of a water sample. Thus, a plurality of water quality parameters in a water sample can be detected simultaneously using a full-spectrum image, which not only achieves comprehensive coverage and multi-dimensional evaluation of the comprehensive water quality conditions, but also improves detection efficiency and reduces detection costs. At the same time, the present invention combines the high sensitivity and wide applicability of spectral technology with the powerful learning and prediction capabilities of artificial intelligence models to monitor water quality, which can improve the accuracy of detection of a plurality of water quality parameters compared with traditional technologies. In addition, the present invention uses a full-spectrum image as detection input data, which covers all wavelength ranges, thereby avoiding the problem of being easily limited by wavelength range in traditional technologies, thereby further improving detection accuracy. Based on this, the present invention provides an efficient, accurate and real-time water quality detection method, which is very suitable for large-scale application and promotion in the field of water quality detection.

[0058] (2) Strong real-time performance: The present invention combines the rapid response characteristics of spectral technology and the real-time learning ability of artificial intelligence models to achieve real-time monitoring and timely warning of water quality parameters, which helps to quickly discover and deal with abnormal water quality events.

[0059] (3) Low cost: Compared with traditional chemical analysis methods, the water quality detection method based on UV-visible spectroscopy combined with artificial intelligence models does not require a lot of manpower and material resources, has a low cost, and is suitable for large-scale water quality monitoring and long-term continuous monitoring.

[0060] (4) Strong intelligent optimization capability: The artificial intelligence model has adaptive learning and optimization capabilities, and can continuously adjust model parameters based on real-time monitoring data. In this way, the accuracy and stability of water quality monitoring can be continuously improved during use, thereby reducing the false alarm rate and missed alarm rate.

[0061] (5) Strong universality: Since UV-visible spectroscopy technology and artificial intelligence models have strong versatility and applicability, the present invention can be widely used in different water environments and water quality monitoring needs, and has high universality and scalability.

[0062] (6) No need for chemical reagents; the present invention does not require chemical reagents, does not cause secondary pollution, and can be truly environmentally friendly. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1A schematic diagram of the steps of a water quality multi-parameter detection method based on an artificial intelligence model provided in an embodiment of the present invention;

[0064] Figure 2 A schematic diagram of the model structure of any single parameter inversion model provided in an embodiment of the present invention;

[0065] Figure 3 A schematic diagram of the structure of a multi-parameter detection model provided by an embodiment of the present invention;

[0066] Figure 4 A schematic diagram of the structure of a water quality multi-parameter detection device based on an artificial intelligence model provided in an embodiment of the present invention;

[0067] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0069] It should be understood that although the terms first, second, etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are only used to distinguish one unit from another unit. For example, a first unit can be referred to as a second unit, and similarly, a second unit can be referred to as a first unit without departing from the scope of the exemplary embodiments of the present invention.

[0070] It should be understood that the term "and / or" that may appear in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, B exists alone, and A and B exist at the same time. The term " / and" that may appear in this article describes another type of association object relationship, indicating that two relationships may exist. For example, A / and B can represent two situations: A exists alone, and A and B exist alone. In addition, the character " / " that may appear in this article generally indicates that the previous and next associated objects are in an "or" relationship.

[0071] Example:

[0072] See also Figure 1As shown, the water quality multi-parameter detection method based on the artificial intelligence model provided in this embodiment uses the characteristic data of the sample spectral band information corresponding to each water quality parameter in the sample full spectrum image of different sample water samples to pre-train the single parameter inversion model corresponding to each water quality parameter, and uses each single parameter inversion model to construct a multi-parameter detection model; thus, in actual use, it is only necessary to obtain the spectral band information corresponding to each water quality parameter in the full spectrum image of the target water sample, and then extract the characteristic data corresponding to each spectral band information; finally, the characteristic data corresponding to each spectral band information is input into the multi-parameter detection model, and the different single parameter inversion models in the multi-parameter detection model can be used to obtain the detection results of each water quality parameter; thus, compared with the traditional technology, the method does not need to perform multiple tests, and the full spectrum image solves the problem of wavelength range limitation, based on which, not only the detection efficiency is improved, the detection cost is reduced, but also the detection accuracy is improved; therefore, the method is very suitable for large-scale application and promotion in the field of water quality detection; wherein, for example, the method can be but not limited to running on the water quality monitoring end side, and optionally, the water quality monitoring end can be but not limited to a personal computer (persona lcomputer, PC) or embedded device, it can be understood that the aforementioned execution subject does not constitute a limitation on the embodiments of the present application, and accordingly, the operation steps of the method can be but are not limited to the following steps S1 to S4.

[0073] S1. Obtain m spectral band information in the full spectrum image of the target water sample, wherein m is the number of types of water quality parameters in the target water sample, and each spectral band information corresponds to a water quality parameter; in this embodiment, the full spectrum image of the target water sample may be, but is not limited to, an ultraviolet-visible absorption spectrum image, and each water quality parameter may include, but is not limited to, COD (chemical oxygen demand), TOC (total organic carbon), BOD (biological oxygen demand), DOC (dissolved organic carbon content), permanganate index, nitrate nitrogen, nitrite nitrogen, total nitrogen, UV254, turbidity, total suspended solids and chromaticity, etc.; at the same time, in specific applications, the spectral bands corresponding to different water quality parameters can be pre-identified in the full spectrum image, and the water quality monitoring terminal can divide the bands according to the identification, so that after the division is completed, the spectral band information corresponding to each water quality parameter is obtained; of course, the spectral bands corresponding to different water quality parameters can also be pre-extracted and uploaded to the water quality monitoring terminal, so as to obtain m spectral band information.

[0074] After obtaining the different spectral band information in the full-spectral image of the target water sample, the various water quality parameters in the target water sample can be detected based on this; wherein, the present embodiment pre-trains single-parameter inversion models corresponding to various water quality parameters, and uses each single-parameter inversion model to construct a multi-parameter detection model; in this way, the concentration detection of different water quality parameters in the target water sample can be realized based on the multi-parameter detection model and the spectral band information in step S1.

[0075] Optionally, the process of acquiring the multi-parameter detection model may be but is not limited to the process shown in the following step S2.

[0076] S2. Obtain a multi-parameter detection model, wherein the multi-parameter detection model includes m single-parameter inversion models, each single-parameter inversion model is used to detect a water quality parameter, and any single-parameter inversion model is trained by taking characteristic data of sample spectral band information corresponding to a target water quality parameter in a sample full-spectrum image of several sample water samples as input and the detection value of the target water quality parameter of each sample water sample as output, and the target water quality parameter is the water quality parameter used to detect by any single-parameter inversion model; in this embodiment, if there are 10 water quality parameters, then each water quality parameter corresponds to a single-parameter inversion model, and thus, 10 single-parameter inversion models are used to construct a multi-parameter detection model.

[0077] Optionally, the following discloses one construction process of the aforementioned multi-parameter detection model, which may be but is not limited to the following steps S21 to S27.

[0078] S21. Obtain sample full-spectrum images of several sample water samples; in the present embodiment, the sample full-spectrum images of each sample water sample can be obtained using an existing spectral detection instrument, which will not be described in detail here; and after obtaining the sample full-spectrum images of each sample water sample, the sample spectral bands can be extracted, and the process can be but not limited to as shown in the following step S22.

[0079] S22. For any sample full-spectrum image, extract m sample spectral band information in the said any sample full-spectrum image, wherein each sample spectral band information corresponds to a water quality parameter; in the present embodiment, the essence is to first identify the bands of different water quality parameters in each sample full-spectrum image, and then, divide the bands based on the identification to obtain the corresponding sample spectral band information; at the same time, for example, before performing the band extraction, the present embodiment can also perform filtering processing on the said any sample full-spectrum image to obtain the filtered sample full-spectrum image; in this way, the spectral band extraction processing can be performed on the filtered sample full-spectrum image to obtain the m sample spectral band information in the said any sample full-spectrum image.

[0080] Optionally, for example but not limited to, a SG (Savitzky-Gol ay) filtering algorithm may be used to filter the full spectrum image of any sample, thereby eliminating the influence of system noise and reducing the interference of noise on water quality detection.

[0081] After obtaining the information of m sample spectral bands in any sample full-spectrum image, feature extraction processing may be performed, and the process may be, but is not limited to, as shown in the following step S23.

[0082] S23. Perform feature extraction processing on each sample spectral band information to obtain feature data corresponding to each sample spectral band information, and after polling all sample full-spectrum images, obtain feature data corresponding to each sample spectral band information in all sample full-spectrum images; in specific implementation, since the feature extraction process of each sample spectral band information is the same, the feature extraction process is described below using any sample spectral band information as an example, and the process can be but is not limited to the following steps S23a to S23c.

[0083] S23a. For any sample spectral band information, extract multiple initial feature data in the spectral band information of the sample; in the present embodiment, each initial feature data is the wavelength, the peak value of the absorption peak, the area of ​​the absorption peak and other data in the spectral band information of the sample; of course, the aforementioned initial feature data can be directly obtained from the image corresponding to the spectral band information of the sample; in this way, multiple initial feature data in the spectral band information of the sample can be obtained; then, feature screening and feature construction processing can be performed, and the process can be but not limited to the following steps S23b and S23c.

[0084] S23b. Perform feature screening processing on multiple initial feature data to obtain several candidate feature data after the feature screening processing; in the specific implementation process, step S23b is the process of screening redundant features, so as to achieve the purpose of improving feature quality, among which, for example, it can be but not limited to using filtering method, packaging method or embedding method to complete the aforementioned feature screening process; of course, the aforementioned methods are all commonly used techniques for feature screening, and their principles will not be repeated.

[0085] After feature screening, redundant features can be screened out from multiple initial feature data, and the remaining initial feature data can be used as candidate feature data; at the same time, in order to further increase the data volume of feature data, for example, before performing feature screening, this embodiment also performs feature expansion processing on multiple initial feature data to obtain an extended feature data set; then, the extended feature data set is subjected to feature screening processing in the same manner as described above, and a number of candidate feature data can be obtained after the feature screening processing; among them, for example, a linear interpolation algorithm can be used but is not limited to be used to perform feature expansion processing, and linear interpolation is a commonly used algorithm for data expansion, and its principle will not be repeated.

[0086] After completing feature screening and obtaining a number of candidate feature data, feature construction processing may be performed, and the process may be, but is not limited to, as shown in the following step S23c.

[0087] S23c. Perform feature construction processing on a number of candidate feature data to obtain feature data corresponding to any one of the sample spectral band information after the feature construction processing; in this embodiment, for example, but not limited to, logarithmic features, feature weighted sets and other methods can be used to perform feature construction on a number of candidate feature data, so that each candidate feature data can be converted into feature data that is more conducive to model processing (such as logarithmic or vector form), or new features can be created based on each candidate feature data; in this way, after the feature construction processing, the feature data corresponding to any one of the sample spectral band information can be obtained (in this embodiment, there are multiple feature data corresponding to any one of the sample spectral band information); of course, the aforementioned logarithmic features, feature weighted sets and other methods are commonly used techniques for feature construction, and their principles will not be repeated.

[0088] In this embodiment, while obtaining the sample full spectrum image of each sample water sample, the true value of the water quality parameter of each sample water sample is also obtained, so as to serve as the label value of the characteristic data of the sample spectral band information corresponding to each water quality parameter; wherein, the characteristic data of different sample spectral band information of each sample water sample and the corresponding label data can be shown in the following Table 1.

[0089] Table 1 is a correlation table between the characteristic data of different sample spectral band information of each sample water sample and the corresponding label data.

[0090] Table 1

[0091]

[0092] In the above Table 1, ω m Indicates the mth sample spectral band information in the sample full spectrum image, x 1,The characteristic information of the mth sample spectral band information corresponds to the label data on the right side of the table, and the label data on the right side of the table corresponds to the characteristic data corresponding to each sample spectral band information, that is, x 1,1 Corresponding to y 1,cod , of course, the same is true for the label data corresponding to the other feature data, which will not be repeated here.

[0093] Therefore, through the aforementioned steps S23a to S23c, the feature extraction of each sample spectral band information in each sample full-spectrum image can be completed, and the feature data corresponding to each sample spectral band information in all sample full-spectrum images can be obtained; then, the feature data can be divided to obtain the feature set corresponding to each water quality parameter, and the process can be but not limited to as shown in the following step S24.

[0094] S24. Based on m kinds of water quality parameters, the feature data corresponding to each sample spectral band information in all sample full-spectrum images are divided and processed, so as to obtain a feature set corresponding to each water quality parameter after the division and processing, wherein the feature set of any water quality parameter includes the feature data corresponding to each target sample spectral band information, and each target sample spectral band information is the sample spectral band information corresponding to any water quality parameter in each sample full-spectrum image; in this embodiment, an example is used to illustrate this step, assuming that in each sample full-spectrum image, the sample spectral band information corresponding to chromaticity is ω2, then the feature data corresponding to the ω2 sample spectral band information in all sample full-spectrum images is used to form a feature set of chromaticity; of course, the construction process of the feature sets corresponding to the remaining water quality parameters is the same as the above example, and will not be repeated here.

[0095] After obtaining the feature sets corresponding to the various water quality parameters, the feature sets can be used to form a training set so that model training can be performed based on the training set later. The process can be, but is not limited to, as shown in the following step S25.

[0096] S25. Utilize each feature set to form a training set; in this embodiment, after obtaining the training set, a corresponding water quality detection model can be constructed for each water quality parameter, so that the training set can be used to train each water quality detection model in the future, thereby obtaining a single parameter inversion model corresponding to each water quality parameter; wherein, the construction and training process of the water quality detection model can be but is not limited to as shown in the following step S26.

[0097] S26. Construct a corresponding water quality detection model for each water quality parameter, and use the training set to train each water quality detection model, so as to obtain a single parameter inversion model corresponding to each water quality parameter after the training; in specific application, this embodiment adopts a model structure optimization method to construct a water quality detection model corresponding to each water quality parameter; wherein, taking any water quality parameter as an example for specific explanation, the construction process of the corresponding water quality detection model can be but is not limited to the following steps S26a to S26d.

[0098] S26a. For any water quality parameter, construct a model search space of a water quality detection model corresponding to any water quality parameter, wherein the model search space includes a model architecture and model parameters of the water quality detection model corresponding to any water quality parameter; in specific implementation, the example model architecture may include but is not limited to the architecture information of the model, such as convolutional layers, pooling layers, fully connected layers, ResNet modules, Inception modules, DenseNet modules, etc.; and the model parameters include the number of convolutional layers, pooling layers and fully connected layers, the number of neurons, the size of the convolution kernel, the step size, the type of activation function, the normalization layer, the regularization (dropout size) and other hyperparameters; of course, the search space is pre-set and can be read when used.

[0099] After constructing the model search space of the water quality detection model corresponding to any of the water quality parameters, a model search can be performed in the model search space to obtain a candidate model architecture and candidate model parameters, wherein the model search process can be but is not limited to as shown in the following step S26b.

[0100] S26b. Perform model search processing in the model search space using a preset search strategy, so as to obtain candidate model architectures and candidate model parameters of the water quality detection model corresponding to any water quality parameter after the model search processing; in specific applications, the search strategy determines how to select and evaluate candidate architectures and parameters in the model search space, wherein the preset search strategy used as an example may include but is not limited to the following two: (1) reinforcement learning, which is a popular search strategy in NAS (neural network structure search). Common methods include agent models (which use reinforcement learning agents (such as Q-learn) ing or PPO) to generate a neural network architecture) and a reward function (which optimizes the search process by maximizing the performance (loss) of the architecture on the validation set); (2) Bayesian optimization, Bayesian optimization is to approximate the objective function by building a proxy model (such as a Gaussian process) and use the acquisition function to select the next set of hyperparameters or architectures for evaluation. The main steps include initial sampling (randomly selecting a set of candidate architectures for initial evaluation), proxy model (using the evaluation results to build a proxy model), acquisition function (selecting the next set of candidate architectures for evaluation based on the proxy model and acquisition function) and iterative optimization (repeating the proxy model update and acquisition function selection process until the predetermined stopping condition is reached).

[0101] In this way, based on the aforementioned search strategy, the candidate model architecture and candidate model parameters of the water quality detection model corresponding to any water quality parameter can be determined in the model search space; then, the aforementioned candidate model architecture and candidate model parameters can be evaluated, so as to use the evaluation results to feedback and optimize the model architecture and parameters, thereby obtaining the optimal model architecture and optimal model parameters; wherein, the evaluation process of the candidate model architecture and candidate model parameters can be but is not limited to as shown in the following step S26c.

[0102] S26c. Evaluate the candidate model architecture and the candidate model parameters, and based on the evaluation results, feedback optimize the candidate model architecture and the candidate model parameters, so as to obtain the optimal model architecture and the optimal model parameters after the feedback optimization process; in this embodiment, the process is used to evaluate the performance of the candidate model architecture and the candidate model parameters on the validation set, and the methods used include: full training (i.e., complete training and evaluation of each candidate architecture) and early stopping strategy (this strategy is used to stop training early to save computing resources); in this way, the evaluation of the candidate model architecture and the candidate model parameters can be realized according to the above two methods, and then, the model architecture and parameters can be optimized according to the evaluation results, so as to obtain the optimal model architecture and the optimal model parameters after optimization.

[0103] After the optimization of the candidate model architecture and the candidate model parameters is completed, the model construction can be performed, and the process can be but not limited to the following step S26d.

[0104] S26d. Using the optimal model architecture and optimal model parameters, construct a water quality detection model corresponding to any water quality parameter; in this embodiment, the water quality detection model corresponding to any water quality parameter may include, but is not limited to, an input layer, a hidden layer, and an output layer, wherein the input layer has n input units, each of which corresponds to a characteristic data of any water quality parameter; and the output layer outputs the detection value of any water quality parameter, and its model structure diagram can be seen in Figure 2 shown.

[0105] Therefore, through the detailed description of the aforementioned steps S26a to S26d, the present embodiment is equivalent to utilizing the neural network structure search (NAS) algorithm to realize the adaptive model optimization of the water quality detection model corresponding to each water quality parameter, so as to obtain the optimal model architecture and parameters of the water quality detection model corresponding to each water quality parameter; then, the model can be trained; wherein, the present embodiment still takes the water quality detection model corresponding to any water quality parameter as an example to illustrate the model training process, and the process can be but is not limited to as shown in the following steps S26e to S26k.

[0106] S26e. For the water quality detection model corresponding to any water quality parameter, a feature set corresponding to any water quality parameter is screened out from the training set; in the present embodiment, this step is illustrated by an example, assuming that any water quality parameter is chromaticity, then the feature set corresponding to chromaticity is screened out; of course, the screening process of the feature sets corresponding to the remaining water quality parameters is the same as the above example, and will not be repeated here.

[0107] After obtaining the feature set corresponding to any water quality parameter, it can be divided into a training subset and a test subset so that model training and testing can be performed based on the two in the future; wherein, the feature set division process is shown in the following step S26f.

[0108] S26f. Divide the screened feature set into a training subset and a test subset; in this embodiment, the training subset and the test subset can be divided according to a ratio of 8:2; and after obtaining the training subset and the test subset, the model can be trained, and the process can be but is not limited to as shown in the following step S26g.

[0109] S26g. Take each piece of training data in the training subset as input and the detection value of any water quality parameter of the sample water sample corresponding to each piece of training data as output, to train the water quality detection model corresponding to any water quality parameter, so as to obtain the trained water quality detection model after the training is completed; in this embodiment, one piece of training data represents the characteristic data of the sample spectral band information corresponding to any water quality parameter in the sample full spectrum image of a sample water sample, so that the model training can be completed with multiple pieces of training data; of course, this embodiment mainly determines whether to stop training based on the loss function, that is, when the loss function value no longer changes, the training can be stopped, so as to obtain the trained water quality detection model; wherein, the loss function can be but not limited to the error between the predicted value of the training data and the label data.

[0110] In this way, after completing the model training based on the aforementioned steps, the test subset can be used to perform model testing, and the process can be but is not limited to as shown in the following step S26h.

[0111] S26h. Input each test data in the test subset into the trained water quality detection model to obtain the model output result corresponding to each test data in the test subset; in the present embodiment, the model output result corresponding to each test data is the detection value (i.e., the model prediction value) of any water quality in the sample water sample corresponding to each test data; then, the model output result and the corresponding label data can be used to calculate the model test index, so as to judge whether the model meets the requirements based on this in the future, and the process can be but not limited to the following steps S26i and S26j as shown.

[0112] S26i. Calculate the model test indicators according to the label data corresponding to each test data and the model output results; in this embodiment, the example model test indicators may include but are not limited to root mean square error, mean absolute error, mean relative error and / or determination coefficient R2, etc.; in this way, it can be judged whether the model meets the requirements based on the aforementioned model test indicators, and the process may be but is not limited to the following steps S26j and S26k.

[0113] S26j. Determine whether the model test index meets the preset requirements; in this embodiment, the preset requirements are the calibration values ​​of each model test index, which can be specifically set according to actual use; in this way, when the model test index meets the preset requirements, the trained water quality detection model can be directly used as the single parameter inversion model corresponding to any water quality parameter; otherwise, model optimization training is required, and the process can be but is not limited to the following step S26k.

[0114] S26k. If not, the trained water quality detection model is optimized and trained to obtain a single parameter inversion model corresponding to any water quality parameter after the optimization training; in this embodiment, the optimization training is performed by adjusting the model parameters of the trained water quality detection model, and then performing model training again; then, the model is tested until the model test indicators meet the preset requirements; at this time, the model optimization can be completed, so that the optimized model can be used as the single parameter inversion model corresponding to any water quality parameter.

[0115] Therefore, through the aforementioned steps S26e~S26k, the training of the water quality detection model corresponding to each water quality parameter can be completed, thereby obtaining the corresponding single parameter inversion model; then, the single parameter inversion model corresponding to each water quality parameter can be used to construct a multi-parameter detection model, and its construction process can be but is not limited to as shown in the following step S27.

[0116] S27. The single-parameter inversion models are merged to obtain the multi-parameter detection model after the merging process. In this embodiment, the single-parameter inversion models are used to form a model set, and the model set is a multi-parameter detection model. In this way, the input data dimension of the multi-parameter detection model is n-dimensional, and the output dimension is m-dimensional (m represents the number of inverted water quality parameters). The schematic diagram of its structure can be seen in Figure 3 As shown; therefore, through the above-mentioned design, the multi-parameter detection model can be used to perform water quality parameter detection of the target water sample.

[0117] Optionally, the example multi-parameter detection model can be but is not limited to the following formula (1).

[0118]

[0119] In formula (1), represents the output matrix of the multi-parameter detection model, y m It represents the detection value of the mth water quality parameter of any sample water. represents the input matrix of the multi-parameter detection model, x n Indicates the nth feature data corresponding to each sample spectral band information of any sample water sample (the number of feature data corresponding to each sample spectral band information is n), Model mimo represents the multi-parameter detection model.

[0120]

[0121] In formula (2), Model miso-i Represents the i-th single parameter inversion model, Model miso-i.nrepresents the nth input unit in the i-th single-parameter inversion model, i = 1, 2, ..., m.

[0122] Therefore, through the aforementioned steps S21 to S27 and their sub-steps, the construction of the multi-parameter detection model can be completed, and then, based on this, the water quality parameters of the target water sample can be detected, and the process can be but not limited to as shown in the following steps S3 and S4.

[0123] S3. Perform feature extraction processing on the spectral band information in the full-spectrum image to obtain feature data corresponding to the spectral band information after the feature extraction processing; in this embodiment, the feature extraction process of each spectral band information in the full-spectrum image is the same as the feature extraction process in each sample full-spectrum image, and can be referred to the aforementioned step S23 and its sub-steps, which will not be repeated here.

[0124] After obtaining the characteristic data corresponding to each spectral band information, the characteristic data corresponding to each spectral band information is input into the multi-parameter detection model, and the detection value of each water quality parameter in the target water sample can be obtained. The detection process can be but not limited to as shown in the following step S4.

[0125] S4. Input the characteristic data corresponding to each spectral band information into the multi-parameter detection model for water quality parameter detection processing, so as to obtain the detection values ​​of various water quality parameters in the target water sample after the water quality parameter detection processing, so as to obtain the water quality detection result of the target water sample by using the detection values ​​of various water quality parameters; in this embodiment, it is equivalent to calling different single-parameter inversion models in the multi-parameter detection model for prediction for the characteristic data corresponding to different spectral band information, so as to obtain the detection results corresponding to each water quality parameter; if the water quality parameter corresponding to a spectral band information is chromaticity, then the single-parameter inversion model corresponding to chromaticity in the multi-parameter detection model is called to detect the chromaticity. Of course, the model calls of the remaining water quality parameters are also the same, which will not be elaborated here.

[0126] In addition, in this embodiment, the multi-parameter detection model can be deployed on an embedded device to realize the deployment of an embedded artificial intelligence model; for example, the deployment method of X-CUBE-AI (Cube Artificial Intelligence) can be used to deploy the model; X-CUBE-AI is an artificial intelligence middleware that aims to provide efficient and flexible neural network reasoning capabilities for embedded systems; the design goal of this middleware is to realize deep learning reasoning on resource-limited embedded devices, thereby providing powerful artificial intelligence support for Internet of Things (IoT) devices, embedded systems and edge computing scenarios; based on this, the deployed device can realize on-site measurement, the measurement cycle can be adjusted, and can meet the real-time measurement (seconds) requirements.

[0127] Thus, through the water quality multi-parameter detection method based on the artificial intelligence model described in detail in the aforementioned steps S1 to S4, the present invention pre-trains single-parameter inversion models corresponding to each water quality parameter by utilizing the characteristic data of sample spectral band information corresponding to each water quality parameter in the sample full-spectrum images of different sample water samples, and utilizes each single-parameter inversion model to construct a multi-parameter detection model; thus, in actual use, it is only necessary to obtain the spectral band information corresponding to each water quality parameter in the full-spectrum image of the target water sample, and then extract the characteristic data corresponding to each spectral band information; finally, the characteristic data corresponding to each spectral band information is input into the multi-parameter detection model, and the different single-parameter inversion models in the multi-parameter detection model can be utilized to obtain the concentration detection results of each water quality parameter; therefore, compared with the traditional technology, the present invention does not need to perform multiple detections, and the full-spectrum image solves the problem of wavelength range limitation, based on which, not only the detection efficiency is improved, the detection cost is reduced, but also the detection accuracy is improved; therefore, the present method is very suitable for large-scale application and promotion in the field of water quality detection.

[0128] like Figure 4 As shown, the second aspect of this embodiment provides a hardware device for implementing the water quality multi-parameter detection method based on the artificial intelligence model described in the first aspect of the embodiment, including:

[0129] The acquisition unit is used to acquire m spectral band information in the full spectrum image of the target water sample, wherein m is the number of types of water quality parameters in the target water sample, and each spectral band information corresponds to a water quality parameter.

[0130] A model building unit is used to obtain a multi-parameter detection model, wherein the multi-parameter detection model includes m single-parameter inversion models, each of which is used to detect a water quality parameter, and any single-parameter inversion model is trained by taking characteristic data of sample spectral band information corresponding to a target water quality parameter in a sample full-spectrum image of a number of sample water samples as input and the detection value of the target water quality parameter of each sample water sample as output, and the target water quality parameter is the water quality parameter used to detect by any single-parameter inversion model.

[0131] The feature extraction unit is used to perform feature extraction processing on each spectral band information in the full-spectrum image, so as to obtain feature data corresponding to each spectral band information after the feature extraction processing.

[0132] The water quality detection unit is used to input the characteristic data corresponding to each spectral band information into the multi-parameter detection model to perform water quality parameter detection processing, so as to obtain the detection values ​​of various water quality parameters in the target water sample after the water quality parameter detection processing, so as to use the detection values ​​of various water quality parameters to obtain the water quality detection result of the target water sample.

[0133] The working process, working details and technical effects of the device provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0134] like Figure 5 As shown, the third aspect of this embodiment provides another water quality multi-parameter detection device based on an artificial intelligence model. Taking the device as an electronic device as an example, it includes: a memory, a processor and a transceiver that are communicatively connected in sequence, wherein the memory is used to store computer programs, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the water quality multi-parameter detection method based on the artificial intelligence model as described in the first aspect of the embodiment.

[0135] For example, the memory may include, but is not limited to, random access memory (RAM), read-only memory (ROM), flash memory, first-in-first-out memory (FIFO) and / or first-in-last-out memory (FILO), etc. Specifically, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). At the same time, the processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.

[0136] In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. For example, the processor may not be limited to a microprocessor of the STM32F105 series, a reduced instruction set computer (RISC) microprocessor, an X86 or other architecture processor, or a processor with an integrated embedded neural network processor (NPU); the transceiver may be, but is not limited to, a wireless fidelity (WIFI) wireless transceiver, a Bluetooth wireless transceiver, a general packet radio service technology (Genera l Packet Rad ioService, GPRS) wireless transceiver, a ZigBee protocol (a low-power LAN protocol based on the IEEE 802.15.4 standard, ZigBee) wireless transceiver, a 3G transceiver, a 4G transceiver and / or a 5G transceiver, etc. In addition, the device may also include, but is not limited to, a power module, a display screen and other necessary components.

[0137] The working process, working details and technical effects of the electronic device provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0138] The fourth aspect of this embodiment provides a storage medium that stores instructions for the multi-parameter water quality detection method based on the artificial intelligence model described in the first aspect of the embodiment, that is, the storage medium stores instructions, and when the instructions are run on a computer, the multi-parameter water quality detection method based on the artificial intelligence model described in the first aspect of the embodiment is executed.

[0139] The storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, a CD, a hard disk, a flash memory, a USB flash drive and / or a memory stick, etc. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0140] The working process, working details and technical effects of the storage medium provided in this embodiment can be found in the first aspect of the embodiment and will not be described in detail here.

[0141] The fifth aspect of this embodiment provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the multi-parameter water quality detection method based on an artificial intelligence model as described in the first aspect of the embodiment, wherein the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0142] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A water quality multi-parameter detection method based on an artificial intelligence model, characterized in that: include: Obtaining m spectral band information in the full spectrum image of the target water sample, wherein m is the number of types of water quality parameters in the target water sample, and each spectral band information corresponds to one water quality parameter; Acquire a multi-parameter detection model, wherein the multi-parameter detection model includes m single-parameter inversion models, each single-parameter inversion model is used to detect a water quality parameter, any single-parameter inversion model is trained by taking characteristic data of sample spectral band information corresponding to a target water quality parameter in a sample full-spectrum image of a plurality of sample water samples as input and the detection value of the target water quality parameter of each sample water sample as output, and the target water quality parameter is the water quality parameter used to detect by any single-parameter inversion model; Performing feature extraction processing on each spectral band information in the full-spectrum image, so as to obtain feature data corresponding to each spectral band information after the feature extraction processing; The characteristic data corresponding to each spectral band information is input into the multi-parameter detection model for water quality parameter detection processing, so as to obtain the detection values ​​of various water quality parameters in the target water sample after the water quality parameter detection processing, so as to use the detection values ​​of various water quality parameters to obtain the water quality detection result of the target water sample.

2. The method according to claim 1, characterized in that Get a multi-parameter detection model, including: Obtaining sample full spectrum images of several sample water samples; For any sample full spectrum image, extract m sample spectrum band information in the any sample full spectrum image, wherein each sample spectrum band information corresponds to a water quality parameter; Performing feature extraction processing on each sample spectral band information to obtain feature data corresponding to each sample spectral band information, and after polling all sample full-spectrum images, obtaining feature data corresponding to each sample spectral band information in all sample full-spectrum images; Based on m water quality parameters, feature data corresponding to each sample spectral band information in all sample full-spectrum images are divided and processed, so as to obtain a feature set corresponding to each water quality parameter after the division and processing, wherein the feature set of any water quality parameter contains feature data corresponding to each target sample spectral band information, and each target sample spectral band information is the sample spectral band information corresponding to any water quality parameter in each sample full-spectrum image; Use each feature set to form a training set; Constructing a corresponding water quality detection model for each water quality parameter, and using the training set to train each water quality detection model, so as to obtain a single parameter inversion model corresponding to each water quality parameter after the training is completed; The single-parameter inversion models are merged to obtain the multi-parameter detection model after the merging process.

3. The method according to claim 2, characterized in that Perform feature extraction processing on the spectral band information of each sample to obtain feature data corresponding to the spectral band information of each sample, including: For any sample spectral band information, extract a plurality of initial feature data in the any sample spectral band information; Performing feature screening processing on the plurality of initial feature data to obtain a plurality of candidate feature data after the feature screening processing; A feature construction process is performed on a plurality of candidate feature data, so as to obtain feature data corresponding to any sample spectral band information after the feature construction process.

4. The method according to claim 3, characterized in that Before extracting the m sample spectral band information in any sample full-spectrum image, the method further includes: Performing filtering processing on any one of the sample full-spectrum images to obtain a filtered sample full-spectrum image, so as to perform spectral band extraction processing on the filtered sample full-spectrum image to obtain m sample spectral band information in any one of the sample full-spectrum images; Accordingly, before performing feature screening processing on the plurality of initial feature data, the method further includes: A feature expansion process is performed on a plurality of initial feature data to obtain an extended feature data set, so as to perform a feature screening process on the extended feature data set, so as to obtain a plurality of candidate feature data after the feature screening process.

5. The method according to claim 2, characterized in that: A corresponding water quality detection model is constructed for each water quality parameter, including: For any water quality parameter, construct a model search space of a water quality detection model corresponding to the any water quality parameter, wherein the model search space includes a model architecture and model parameters of the water quality detection model corresponding to the any water quality parameter; Using a preset search strategy, a model search process is performed in the model search space, so as to obtain a candidate model architecture and candidate model parameters of a water quality detection model corresponding to any water quality parameter after the model search process; The candidate model architecture and the candidate model parameters are evaluated, and according to the evaluation results, the candidate model architecture and the candidate model parameters are optimized through feedback, so as to obtain the optimal model architecture and the optimal model parameters after the feedback optimization process; The optimal model architecture and optimal model parameters are used to construct a water quality detection model corresponding to any of the water quality parameters.

6. The method according to claim 2, characterized in that The training set is used to train each water quality detection model, so that after the training, a single parameter inversion model corresponding to each water quality parameter is obtained, including: For a water quality detection model corresponding to any water quality parameter, a feature set corresponding to the any water quality parameter is selected from the training set; Divide the selected feature set into a training subset and a test subset; Taking each piece of training data in the training subset as input and the detection value of any water quality parameter of the sample water sample corresponding to each piece of training data as output, a water quality detection model corresponding to any water quality parameter is trained to obtain a trained water quality detection model after the training is completed; Input each test data in the test subset into the trained water quality detection model to obtain a model output result corresponding to each test data in the test subset; Calculate the model test index based on the label data corresponding to each test data and the model output results; Determine whether the model test indicators meet the preset requirements; If not, the trained water quality detection model is optimized and trained to obtain a single parameter inversion model corresponding to any water quality parameter after the optimization training.

7. The method according to claim 1, characterized in that There are multiple feature data corresponding to any sample spectral band information, and the multi-parameter detection model is expressed as: In formula (1), represents the output matrix of the multi-parameter detection model, y m It represents the detection value of the mth water quality parameter of any sample water. represents the input matrix of the multi-parameter detection model, x n Indicates the nth feature data corresponding to each sample spectral band information of any sample water sample, Model mimo represents the multi-parameter detection model; in, In formula (2), Model miso-i Represents the i-th single parameter inversion model, Model miso-i.n represents the nth input unit in the i-th single-parameter inversion model, i = 1, 2, ..., m.

8. A water quality multi-parameter detection device based on an artificial intelligence model, characterized in that: include: An acquisition unit, used for acquiring m spectral band information in the full spectrum image of the target water sample, wherein m is the number of types of water quality parameters in the target water sample, and each spectral band information corresponds to one water quality parameter; A model building unit, used for obtaining a multi-parameter detection model, wherein the multi-parameter detection model includes m single-parameter inversion models, each of which is used to detect a water quality parameter, and any single-parameter inversion model is trained by taking characteristic data of sample spectral band information corresponding to a target water quality parameter in a sample full-spectrum image of a plurality of sample water samples as input and the detection value of the target water quality parameter of each sample water sample as output, and the target water quality parameter is the water quality parameter used to detect by any single-parameter inversion model; A feature extraction unit, used to perform feature extraction processing on each spectral band information in the full-spectrum image, so as to obtain feature data corresponding to each spectral band information after the feature extraction processing; The water quality detection unit is used to input the characteristic data corresponding to each spectral band information into the multi-parameter detection model to perform water quality parameter detection processing, so as to obtain the detection values ​​of various water quality parameters in the target water sample after the water quality parameter detection processing, so as to use the detection values ​​of various water quality parameters to obtain the water quality detection result of the target water sample.

9. A water quality multi-parameter detection device based on an artificial intelligence model, characterized in that: include: A memory, a processor and a transceiver which are sequentially connected in communication, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the multi-parameter water quality detection method based on an artificial intelligence model as described in any one of claims 1 to 7.

10. A computer program product comprising instructions, characterized in that When the instructions are executed on a computer, the computer is enabled to execute the multi-parameter water quality detection method based on an artificial intelligence model as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Water quality evaluation method and device, electronic equipment, storage medium and program product

    CN120177387A

  • Seawater quality AI fusion intelligent monitoring system and method based on full spectrum data

    CN120992523A