A method for inverting chlorophyll a in water based on artificial deep neural network

Through a method based on artificial deep neural network, combined with ant colony algorithm and root mean square error loss function, the problem of poor accuracy and stability of water chlorophyll a inversion is solved, achieving higher inversion accuracy and applicability, and is suitable for complex and poor water environment.

CN118196093BActive Publication Date: 2024-09-03SHANDONG FENGSHI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies have problems with low accuracy and poor stability when retrieving chlorophyll a concentration in water bodies. Especially in areas with complex dynamic changes and poor conditions, it is difficult to accurately capture subtle changes in chlorophyll a and process noise and interference information in remote sensing images. .

Method used

Using a method based on artificial deep neural networks, by fusing remote sensing image data and the initial weights and biases optimized by the ant colony algorithm, combined with the root mean square error loss function and Adam optimization function, a deep learning model is constructed, and deep features are automatically extracted and trained. , forming an inversion model of chlorophyll a.

Benefits of technology

It improves the accuracy and stability of chlorophyll a concentration inversion, can more accurately capture complex nonlinear mapping relationships, handle noise and interference information, reduces computing resource consumption, is suitable for areas with poor conditions, and provides higher data fitting Accuracy and applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118196093B
    Figure CN118196093B
Patent Text Reader

Abstract

The present invention relates to a method for inverting chlorophyll a in water bodies based on an artificial deep neural network, and belongs to the technical field of water environment supervision. Multiple groups of chlorophyll a concentration measurements are obtained through actual measurement and standard curve calculation; a linear relationship between the band values ​​of different sampling points and the chlorophyll a concentration measurements is established according to the position of the sampling point and the band value of the remote sensing image at the position; multiple groups of chlorophyll a concentrations are simulated as data sets using the linear relationship, and the training set and the band value of the corresponding remote sensing image are used as the input layer, and the initial weights and biases optimized by the ant colony algorithm are input into the artificial deep neural network for training; the weights and biases are optimized using the loss value and the optimization function, and the network model is obtained after the training is completed. The method of the present invention has the advantages of parallel processing capability, nonlinearity, fault tolerance, adaptability and self-learning, and can effectively improve the accuracy of chlorophyll a data fitting in water bodies, while reducing the input of manpower and material resources in the process of measuring chlorophyll a in water bodies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for inverting chlorophyll a in water bodies, and in particular to a method for inverting chlorophyll a in water bodies based on an artificial deep neural network, and belongs to the technical field of water body parameter inversion and water environment supervision. Background Art

[0002] Chlorophyll a is a green pigment molecule found in plants, algae and some bacteria. It is one of the important pigments required for photosynthesis. Chlorophyll a in water is an important indicator of the pollution status of the water ecological environment. When the chlorophyll a content in water is high, it usually indicates that there is a large amount of plant and algae growth in the water, which may be caused by factors such as excessive fertilizers, chemical pollutants, over-breeding, discharged waste or climate change. If the chlorophyll content in the water is too high, it means that the density of phytoplankton in the water is too high, which may lead to eutrophication of the water, cause algal blooms and affect water quality. Therefore, detecting the chlorophyll a content in water can provide important information for water environment protection.

[0003] A common chlorophyll a inversion method is to use specific bands of remote sensing images to estimate the chlorophyll a concentration. For example, when the chlorophyll a concentration increases, the position of its absorption peak will show a "red shift" phenomenon, that is, it moves toward the long-wave direction. This characteristic makes certain specific bands of remote sensing images sensitive to chlorophyll a concentration, and can be used to estimate its concentration. However, there are still some difficulties in the inversion of chlorophyll a concentration. First, the dynamic change mechanism of chlorophyll a is very complex, and its concentration is affected by many factors, such as light, temperature, and nutrient concentration. This makes it difficult to accurately invert the chlorophyll a concentration. Secondly, the quality of remote sensing images is also affected by many factors, such as clouds, aerosols, solar altitude angle, etc. These factors may lead to inaccurate inversion results, especially in areas with poor conditions and difficult to measure.

[0004] In order to improve the accuracy of chlorophyll a concentration inversion, researchers have proposed some improvement methods. For example, the multi-source remote sensing data fusion technology is used to combine the advantages of different remote sensing images to improve the inversion accuracy. In addition, some machine learning algorithms have been introduced into chlorophyll a concentration inversion, such as support vector machines and random forests. These algorithms can use historical data to train models to improve inversion accuracy. Chlorophyll a concentration inversion technology has achieved certain results, but further research and improvement are still needed to improve inversion accuracy and stability. Summary of the invention

[0005] The purpose of the present invention is to provide a method for inverting chlorophyll a in water bodies based on an artificial deep neural network. By fusing remote sensing images and deep learning network models, the inversion accuracy of chlorophyll a in water bodies is improved, providing data support for water ecological protection.

[0006] The technical solution adopted by the present invention is:

[0007] The method for inverting chlorophyll a in water based on artificial deep neural network includes the following steps:

[0008] S1. Determine the chlorophyll a sampling points in the water body, extract chlorophyll from the water samples collected at different sampling points and measure the chlorophyll a concentration by spectrophotometry, draw a correlation standard curve between the absorbance value and the corresponding chlorophyll a concentration, measure the absorbance of different samples and calculate the chlorophyll a content in the sample according to the standard curve, and obtain multiple groups of chlorophyll a concentration measurement values ​​through actual measurement and calculation;

[0009] S2. Download the remote sensing image data of the measured water area, and according to the location of the sampling point and the band value of the remote sensing image at that location, use the remote sensing image band value corresponding to each sampling point as the x-coordinate, and the chlorophyll a concentration measurement value of each sampling point as the y-coordinate, and establish a linear relationship between different band values ​​and chlorophyll a concentration. The linear relationship with the largest correlation coefficient R² among these linear relationships is taken as the final linear relationship between the band value and the chlorophyll a concentration;

[0010] S3. According to the linear relationship between the band value and the chlorophyll a concentration, multiple groups of chlorophyll a concentrations are simulated as data sets, divided into training sets and test sets, and the training sets and the band values ​​of the corresponding remote sensing images are used as the input layer. The initial weights and biases optimized by the ant colony algorithm are input into the artificial deep neural network for training, and the simulated chlorophyll a concentration is obtained in the output layer;

[0011] S4. Calculate the loss function using the simulated chlorophyll a concentration and the measured chlorophyll a concentration, optimize the weights and biases using the loss value and the optimization function, and finally obtain a trained artificial deep neural network;

[0012] S5. Input the test set data into the trained optimal network model for testing. The obtained network model is the inversion model of chlorophyll a. Input the remote sensing image of the water area to calculate the chlorophyll a concentration of the water body in the water area.

[0013] In the above method, in step S3, 1000 groups of chlorophyll a are simulated as training sets and saved as csv files.

[0014] The steps of optimizing the parameters of the artificial deep neural network using the ant colony algorithm in step S3 are:

[0015] (1) Read remote sensing image band data and chlorophyll a measurements, and initialize the structure of the artificial deep neural network and the parameters of the ant colony algorithm;

[0016] (2) Calculate the dimension of the solution space and initialize the ant position and the highest pheromone;

[0017] (3) Calculate the pheromone content based on the position of the ants;

[0018] (4) Calculate the highest pheromone and update the optimal individual position;

[0019] (5) Transfer and update the ant position according to probability;

[0020] (6) Execute the loop body of steps (3) to (5) to reach the termination algebra;

[0021] (7) Take out the optimized best ant position coordinates and assign them to the artificial neural network to obtain the optimal initial weight and bias;

[0022] (8) The optimized artificial neural network is trained and tested.

[0023] In step S4, the root mean square error loss function is used to calculate the error between the process value and the true value and between the output result and the true value. The root mean square error loss function is shown in the following formula:

[0024] ,

[0025] in: y i To predict the results, y For the real result, n is the number of training set data;

[0026] The calculation of the sum of the two loss functions is shown in the following formula:

[0027] S = α L 1+ β L 2,

[0028] in, L 1 represents the intermediate loss function of the network, which is the error between the process value and the true value; L 2 represents the final loss function of the network, which is the error between the output result and the true value. α for L The weight of 1, β for L The weight is 2.

[0029] The optimization function described in step S4 is the Adam algorithm, which calculates the adaptive learning rate of each parameter.

[0030] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for inverting chlorophyll a in water bodies based on an artificial deep neural network as described above.

[0031] A computer device comprises a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the method for inverting chlorophyll a in water bodies based on an artificial deep neural network when executing the computer program.

[0032] The beneficial effects of the present invention are:

[0033] (1) The optimized artificial deep neural network algorithm can automatically learn and extract deep features in remote sensing images without manually designing feature extraction methods. This automatic feature extraction capability enables the algorithm to more accurately capture subtle changes in chlorophyll a concentration, thereby improving inversion accuracy. Through a large amount of training data, complex nonlinear mapping relationships can be learned, thereby more accurately inverting chlorophyll a concentration. Compared with traditional inversion methods based on physical models, this algorithm can better handle noise and interference information in remote sensing images and improve inversion accuracy.

[0034] (2) The positive feedback mechanism is adopted to make the weights and biases approach the optimal solution, avoiding the disadvantages of optimization algorithms, lookup table methods and machine learning methods that consume a lot of computer computing resources, have large calculation dimensions and a small applicable area;

[0035] (3) The method of the present invention has the advantages of parallel processing capability, nonlinearity, fault tolerance, adaptability and self-learning, which can effectively improve the accuracy of chlorophyll a data fitting in water bodies, while reducing the input of manpower and material resources in the process of chlorophyll a measurement in water bodies. It has good applicability to areas with poor conditions and difficult to measure. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 is a flow chart of the method of the present invention;

[0037] Figure 2 It is a process diagram of the training phase of the method of the present invention;

[0038] Figure 3 1 is an inversion effect diagram of an embodiment of the present invention, wherein ah is the inversion effect of different months. DETAILED DESCRIPTION

[0039] The present invention is further described below with reference to specific embodiments.

[0040] Example 1 A method for inverting chlorophyll a in water based on an artificial deep neural network, comprising the steps (eg Figure 1 )as follows:

[0041] S1. Determine the chlorophyll a sampling points in the water body, extract chlorophyll from the water samples collected at different sampling points and measure the chlorophyll a concentration by spectrophotometry, draw a correlation standard curve between the absorbance value and the corresponding chlorophyll a concentration, measure the absorbance of different samples and calculate the chlorophyll a content in the sample according to the standard curve, and obtain multiple groups of chlorophyll a concentration measurements through actual measurement and calculation:

[0042] (1) Preparation of chlorophyll extract

[0043] Extract chlorophyll from the collected water sample, filter the collected water sample to remove suspended particles. Then extract the filtered water sample solution with ethanol to dissolve the chlorophyll in the water in the ethanol. The concentration of the extract can be adjusted according to the specific experimental requirements.

[0044] (2) Determination of absorbance of chlorophyll extract

[0045] Take a certain amount of chlorophyll extract, put it into the cuvette of the spectrophotometer, and select an appropriate wavelength for measurement. Generally speaking, chlorophyll a has a strong absorbance in the wavelength range of 400-700 nm, and the maximum absorbance peak is located at about 665 nm. Therefore, the absorbance at 665 nm is often used to indicate the content of chlorophyll a. According to the operating manual of the spectrophotometer, measure and record the absorbance value.

[0046] (3) Draw a standard curve and calculate the chlorophyll a content in the sample

[0047] In order to determine the content of chlorophyll a, a standard curve needs to be drawn. First, prepare chlorophyll a solutions of different concentrations and measure their absorbances respectively. Then, associate the obtained absorbance values ​​with the corresponding chlorophyll a concentrations and draw a standard curve. By measuring the absorbance of the sample, the chlorophyll a content in the sample can be calculated according to the standard curve.

[0048] S2. Download the remote sensing image data of the measured water area. According to the location of the sampling point and the band value of the remote sensing image at that location, take the remote sensing image band value corresponding to each sampling point as the x-coordinate and the chlorophyll a concentration measured value of each sampling point as the y-coordinate, establish the linear relationship between different band values ​​and chlorophyll a concentration, and take the linear relationship with the largest correlation coefficient R² as the final linear relationship between band value and chlorophyll concentration:

[0049] Download the Landsat 8 remote sensing image data of the measured water area from the geospatial data cloud website. Set up sampling points on site, and establish a linear relationship between the band value and the chlorophyll concentration based on the location of the sampling points and the band value of the Landsat 8 image.

[0050] S3. According to the linear relationship between band value and chlorophyll a concentration, multiple groups of chlorophyll a concentrations are simulated as data sets, divided into training set and test set, and the training set and the band value of the corresponding remote sensing image are used as the input layer. The weights and biases optimized by the ant colony algorithm are input into the artificial deep neural network for training, and the simulated chlorophyll a concentration is obtained in the output layer:

[0051] According to the relationship between the band value and the chlorophyll a concentration, 1000 sets of chlorophyll a concentration were simulated as a data set and saved as a csv file as the input layer. After standardization, the standardized data set was randomly divided into a training set and a test set according to a ratio of 7:3.

[0052] Build a network, extract the weights and bias elements in the network, and form the path coordinates of the ant population. Because the shorter the path for the ants to reach the food source, the higher the pheromone content on the path, the mean square error is used as the fitness value of the ants. Finally, the shortest path determined by the ant population is used as the optimal initial weight and bias parameters, which are then assigned to the artificial deep neural network for testing and training.

[0053] The steps to optimize the parameters of artificial deep neural network using ant colony algorithm are:

[0054] (1) Read remote sensing image band data and chlorophyll a measurements, and initialize the structure of the artificial deep neural network and the parameters of the ant colony algorithm;

[0055] (2) Calculate the dimension of the solution space and initialize the ant position and the highest pheromone;

[0056] (3) Calculate the pheromone content based on the position of the ants;

[0057] (4) Calculate the highest pheromone and update the optimal individual position;

[0058] (5) Transfer and update the ant position according to probability;

[0059] (6) Execute the loop body of steps (3) to (5) to reach the termination algebra;

[0060] (7) Take out the optimized best ant position coordinates and assign them to the artificial neural network to obtain the optimal initial weight and bias;

[0061] (8) The optimized artificial neural network is trained and tested.

[0062] The artificial deep neural network consists of an input layer, a hidden layer, and an output layer. The weights and biases optimized by the ant colony algorithm are used to train the band information of the input layer, and simulated chlorophyll a is obtained in the output layer.

[0063] The simulated data obtained according to the linear relationship is standardized and converted into dimensionless data, which is conducive to speeding up the gradient descent to find the optimal solution. The standardization process is shown in the following formula:

[0064] ,

[0065] The network was trained using the training set data. The input layer included 6 neurons, corresponding to the 6 bands of the sensor, and the output layer had only one neuron, corresponding to chlorophyll a. The 6 band variables were input for network calculation. After multiple trials and errors, the structure of the artificial deep neural network optimized by the ant colony algorithm was finally determined to be 12-12-12-36-12-12-12-6, that is, the number of nodes in each layer, with a total of eight layers.

[0066] S4. The loss function is calculated using the simulated chlorophyll a and the measured chlorophyll a concentration. The weights and biases are optimized using the loss value and the optimization function. Finally, the trained artificial deep neural network is obtained:

[0067] The root mean square error loss function is used to calculate the error between the process value and the true value and between the output result and the true value. The root mean square error loss function is shown in the following formula:

[0068] ,

[0069] in: y i To predict the results, y For the real result, n is the number of training set data.

[0070] The calculation formula for the sum of the two loss functions is as follows:

[0071] S = α L 1+ β L 2,

[0072] in, L 1 represents the intermediate loss function of the network, which is the error between the process value and the true value; L 2 represents the final loss function of the network, which is the error between the output result and the true value. After many experiments, the weight α and β Determined to be 0.3 and 0.7.

[0073] The optimization function uses the Adam algorithm, which is the adaptive moment estimation method, to calculate the adaptive learning rate of each parameter. Adam optimization can achieve higher computational efficiency and lower memory requirements.

[0074] S5. Input the test set data into the trained optimal network model for testing. The obtained network model is the inversion model of chlorophyll a. Input the remote sensing image of the water area to calculate the chlorophyll a concentration of the water body in the water area.

[0075] Embodiment 2 This embodiment provides a hardware device for implementing the method of the present invention. A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method for inverting chlorophyll a in water based on an artificial deep neural network as described in Embodiment 1.

[0076] A computer device comprises a memory, a processor and a computer program stored in the memory and executable by the processor, wherein when the processor executes the computer program, the method for inverting chlorophyll a in water body based on artificial deep neural network as described in Example 1 is implemented.

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

Claims

1. A method for inverting chlorophyll a in water based on artificial deep neural network, characterized in that: The steps include: S1. Determine the chlorophyll a sampling points in the water body, extract chlorophyll from the water samples collected at different sampling points and measure the chlorophyll a concentration by spectrophotometry, draw a correlation standard curve between the absorbance value and the corresponding chlorophyll a concentration, measure the absorbance of different samples and calculate the chlorophyll a content in the sample according to the standard curve, and obtain multiple groups of chlorophyll a concentration measurement values ​​through actual measurement and calculation; S2. Download the remote sensing image data of the measured water area, and according to the location of the sampling point and the band value of the remote sensing image at that location, use the remote sensing image band value corresponding to each sampling point as the x-coordinate, and the chlorophyll a concentration measurement value of each sampling point as the y-coordinate, and establish a linear relationship between different band values ​​and chlorophyll a concentration. The linear relationship with the largest correlation coefficient R² among these linear relationships is taken as the final linear relationship between the band value and the chlorophyll a concentration; S3. According to the linear relationship between the band value and the chlorophyll a concentration, multiple groups of chlorophyll a concentrations are simulated as data sets, divided into training sets and test sets, and the training sets and the band values ​​of the corresponding remote sensing images are used as the input layer. The initial weights and biases optimized by the ant colony algorithm are input into the artificial deep neural network for training, and the simulated chlorophyll a concentration is obtained in the output layer; The steps to optimize the parameters of artificial deep neural network using ant colony algorithm are: (1) Read remote sensing image band data and chlorophyll a measurements, and initialize the structure of the artificial deep neural network and the parameters of the ant colony algorithm; (2) Calculate the dimension of the solution space and initialize the ant position and the highest pheromone; (3) Calculate the pheromone content based on the position of the ants; (4) Calculate the highest pheromone and update the optimal individual position; (5) Transfer and update the ant position according to probability; (6) Execute the loop body of steps (3) to (5) to reach the termination algebra; (7) Take out the optimized best ant position coordinates and assign them to the artificial neural network to obtain the optimal initial weight and bias; (8) Training and testing the optimized artificial neural network; S4. Calculate the loss function using the simulated chlorophyll a concentration and the measured chlorophyll a concentration, optimize the weights and biases using the loss value and the optimization function, and finally obtain a trained artificial deep neural network; S5. Input the test set data into the trained optimal network model for testing. The obtained network model is the inversion model of chlorophyll a. Input the remote sensing image of the water area to calculate the chlorophyll a concentration of the water body in the water area.

2. The method for inverting chlorophyll a in water based on artificial deep neural network according to claim 1, characterized in that: In step S3, 1000 groups of chlorophyll a are simulated as training sets.

3. The method for inverting chlorophyll a in water based on artificial deep neural network according to claim 1, characterized in that: In step S4, the root mean square error loss function is used to calculate the error between the process value and the true value and between the output result and the true value. The root mean square error loss function is shown in the following formula: , in: y i To predict the results, y For the real result, n is the number of training set data; The calculation of the sum of the two loss functions is shown in the following formula: S = α L 1+ β L 2 , in, L 1 represents the intermediate loss function of the network, which is the error between the process value and the true value; L 2 represents the final loss function of the network, which is the error between the output result and the true value; α for L The weight of 1, β for L The weight is 2.

4. The method for inverting chlorophyll a in water based on artificial deep neural network according to claim 1, characterized in that: The optimization function described in step S4 is the Adam algorithm, which calculates the adaptive learning rate of each parameter.