A method for inversion of coastal floating garbage volume based on BP neural network
Through the method based on BP neural network, remote sensing images and field measurement data are used to solve the problem of difficulty in calculating the volume of floating garbage along the coast, and achieve high-precision inversion of the volume of garbage strips, saving manpower and material resources and improving efficiency. .
Patent Information
- Application Number
- CN202110315318.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-03-24
AI Technical Summary
Existing technology cannot effectively study and calculate the volume of floating garbage along the coast. In particular, it is difficult to distinguish garbage strips on remote sensing images, and field surveys are difficult and practical methods are lacking.
Using a method based on BP neural network, by acquiring high-resolution remote sensing images, setting up garbage and non-garbage sample points, extracting spectral information, establishing a normalized garbage index, calculating garbage coverage, and training the BP neural network model with field measurement data , predicting the thickness and volume of garbage strips.
It realizes the calculation of the volume of garbage strips under high-precision requirements, saves manpower and material resources, and reduces field investigation work. It relies on the high-precision characteristics of BP neural network to achieve good inversion results.
Smart Images

Figure CN113065437B
Abstract
Description
Technical Field
[0001] The invention relates to an inversion method, in particular to a method for inverting the volume of coastal floating landfill garbage based on a BP neural network, and belongs to the technical field of remote sensing inversion. Background Art
[0002] Remote sensing inversion technology is an important category in the field of remote sensing image technology. Processing remote sensing image data and establishing the corresponding inversion model is a key process to apply theoretical technology to practice. In recent years, BP neural network has been widely used in the field of remote sensing inversion technology, providing an effective method for the establishment of inversion models and the prediction of changing trends. In particular, in the inversion study of the volume of floating garbage in coastal areas of Jiangsu Province, BP neural network has achieved good results.
[0003] Floating garbage on the coast seriously damages the ecological environment of the coastal zone. It not only threatens the survival of precious coastal species, but also greatly increases the cost of human maintenance of the coastal tourist scenic area. The composition of floating garbage on the coast of Jiangsu is diverse, often consisting of some natural garbage (stalks of Spartina alterniflora, water hyacinth plants) and artificial garbage (glass bottles, plastic foam, etc.). Affected by the action of waves, it often gathers on the shore in the form of strips stretching for several kilometers, and appears as high-reflectivity garbage strips on remote sensing images. The floating garbage strips on the coast cover a wide area and have high spatial continuity. Because they are often located on coastal mudflats, it is difficult to conduct large-scale field surveys. Therefore, there is no practical method to study the volume of floating garbage on the coast so far. Summary of the invention
[0004] The present invention aims at the problems existing in the prior art and provides a method for inverting the volume of coastal floating garbage based on BP neural network. This technical solution can calculate the thickness of each point on the garbage strip under high precision requirements, thereby obtaining the volume of the garbage strip.
[0005] In order to achieve the above object, the technical solution of the present invention is as follows: a method for inverting the volume of coastal floating garbage based on a BP neural network, the method comprising the following steps:
[0006] S1: Obtain a remote sensing image containing a high-brightness garbage stripe and perform preprocessing (due to the landing characteristics and scale, select a remote sensing image with a higher resolution (resolution of about 1m));
[0007] S2 is as follows: import the remote sensing image into ArcGIS software, randomly select and create more than or equal to 50 "garbage sample points" on the garbage stripe, and randomly create more than or equal to 50 "non-garbage sample points" on the image of the area outside the garbage stripe.
[0008] S3: Extract the spectral information of “garbage sample points” and “non-garbage sample points” on the ArcGIS platform;
[0009] S4: Explore the connection between the values of each band in the spectral information of the sample point, and use the characteristic bands to establish a normalized garbage index A (such as garbage index A = (b7-(b3+b4+b8) / 3)) / (b7+(b3+b4+b8) / 3)); b3: The band value of the third band of the single-view LANDSAT-8 remote sensing image, which can be extracted to the point by ArcGIS software; Similarly, the meanings of b4, b7, and b8 can be obtained.
[0010] In this scheme, in the EXCEL worksheet, the band category of each point is used as the horizontal axis and the band value is used as the vertical axis to establish the "garbage sample point spectrum" and "non-garbage sample point spectrum", respectively, so as to explore the relationship between the values of each band in the spectral information of the sample point. Finally, it is found that there are significant differences between the spectra of the garbage sample points and the non-garbage samples in the four bands of b3, b4, b7, and b8. Since the b3, b4, and b8 band values of the garbage sample points are relatively close, the normalized garbage index A is set as A=(b7-(b3+b4+b8) / 3)) / (b7+(b3+b4+b8) / 3).
[0011] S5: Using this index and coverage calculation formula (f v =(A-A0) / (A V -A0)) Calculate the garbage coverage of remote sensing images on the ENVI software platform;
[0012] S6: Use ArcGIS software to set up a vertical coastline profile at a fixed distance on the garbage strip, and set up three stations on each profile (station 1 is closest to the land, station 3 is closest to the ocean, and station 2 is located at the midpoint of the profile);
[0013] S7: extract the garbage coverage values of all sites on the ArcGIS platform, and measure the distance x between sites 2 and 3 and site 1;
[0014] S8: On-site measurement of the thickness d and density of garbage at the set site;
[0015] S9: The measured distance x value and the calculated garbage coverage f v The value is taken as the input data, and the garbage thickness d obtained by field measurement is taken as the output data. The neural network tool in MATLAB software is used for training. The parameters are adjusted multiple times to improve the accuracy. The BP neural network model with the highest accuracy is exported as the final inversion model. The closer R is to 1, the better the accuracy, and the minimum requirement is greater than 0.999. The closer MSE is to 0, the better the accuracy.
[0016] S10: On the ArcGIS platform, randomly generate a number of dense points within the garbage strip range and extract the garbage coverage of these points f v values, and measure the distance x of these points from the landward side of the garbage strip;
[0017] S11: The f of these points v The value and x value are input into the BP neural network model to obtain the thickness d' predicted by the BP neural network.
[0018] S12: Calculate the volume of garbage based on the inversion results; organize the prediction results into a digital table, input it into the Surfer software to get the volume of the garbage strip in the study area, and input it into the R software to fit the three-dimensional model of the garbage strip profile. Combined with the average density measured on site, the mass of the garbage can be calculated.
[0019] S13: Verify the accuracy of the inversion. Select several randomly generated points and measure the thickness of the garbage at these points on the spot, and compare them with the predicted value of the BP neural network to determine whether the accuracy meets the requirements. Randomly select several points (the more the better, no less than 100) from the inversion results (each point on the garbage strip will have a corresponding inverted garbage thickness d'), and check the coordinates of these points in ArcGIS software, then measure the actual thickness d of the garbage at these points on the spot, and finally substitute d and d' into the mean square error formula to obtain the accuracy.
[0020] Compared with the prior art, the present invention has the following advantages: the technical solution provides a method for inverting the volume of floating garbage on the coast based on BP neural network. By setting up sample points on the high reflectivity garbage strips in the remote sensing image, the garbage coverage f of the sample points can be extracted. v The vertical distance x value of the sample point from the land side of the garbage stripe is measured, and the garbage thickness d value of these sample points is measured on the spot, so a BP neural network model can be trained to invert the garbage thickness of other points on the garbage stripe. This method only needs to measure the garbage thickness of a small number of points on the garbage stripe on the spot to invert the volume of the entire garbage stripe. Since most of the work can be completed on the geographic information system platform, there is no need to enter the coastal zone for large-scale measurement, thus saving a lot of manpower and material resources. At the same time, relying on the high precision of the BP neural network, it can also achieve good inversion results. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flow chart of a method for inverting the volume of coastal floating garbage based on a BP neural network provided by the present invention;
[0022] Figure 2 , 3 It is a study area diagram and an enlarged example diagram in this embodiment;
[0023] Figure 4 is the inversion result diagram of the garbage stripe profile in this embodiment; DETAILED DESCRIPTION
[0024] In order to deepen the understanding of the present invention, the present embodiment is described in detail below with reference to the accompanying drawings.
[0025] Example 1: See Figure 1 A method for inverting the volume of coastal floating garbage based on a BP neural network, the method comprising the following steps:
[0026] S1: Obtain a remote sensing image containing a high-brightness garbage stripe and do preprocessing (due to the landing characteristics and scale, select a remote sensing image with a higher resolution (resolution of about 1m)); it should be noted that the garbage stripe is a bright white strip that stretches for several kilometers on the remote sensing image, often appears near the coastal zone and is parallel to the coastline. In order to better design a normalized index that reflects the garbage coverage, it is best to obtain multispectral remote sensing images. In this example, Gaofen-2 and Landsat 8 remote sensing images are used. The main research area is the Yancheng Rare Bird Nature Reserve in Jiangsu. Preprocessing is an important task to ensure the accuracy of inversion. It generally includes atmospheric correction, radiation correction, and cloud mask preprocessing. In this example, cloud mask processing is performed on the Landsat 8 remote sensing image.
[0027] S2: Import the remote sensing image into ArcGIS software, randomly select and create 50 "garbage sample points" on the garbage stripe, and randomly create 50 "non-garbage sample points" on the image outside the garbage stripe; In S2, import the remote sensing image into ArcGIS software, randomly select and create 50 "garbage sample points" on the garbage stripe, and randomly create 50 "non-garbage sample points" on the image outside the garbage stripe; The detailed steps are: open ArcGIS software, [File] | [Open], import the acquired multispectral remote sensing image, click [Directory], right-click to create a new [Shapefiles] point file, set the projection coordinate system of the point to be consistent with that of the remote sensing image when creating a new point file, then open the editor, [Start Editing] | [New Feature], find the high-brightness garbage stripe on the remote sensing image, evenly select 50 points on it, and then evenly select 50 points outside the garbage stripe.
[0028] S3: Extract the spectral information of "junk sample points" and "non-junk sample points" on the ArcGIS platform; use the [Multi-value Extract to Point] tool in the Toolbox to extract the band values of the remote sensing image into the attribute tables of "junk sample points" and "non-junk sample points". Be careful not to create a pyramid when importing remote sensing images, otherwise it is easy to report an error when extracting spectral information;
[0029] S4: Explore the connection between the values of each band in the spectral information of the sample point, and use the characteristic bands therein to establish a normalized garbage index A (such as garbage index A = (b7-(b3+b4+b8) / 3)) / (b7+(b3+b4+b8) / 3)); in this example, in the EXCEL worksheet, the band category of each point is used as the horizontal axis and the band value is used as the vertical axis to establish a "garbage sample point spectrum diagram" and a "non-garbage sample point spectrum diagram" respectively, so as to explore the connection between the values of each band in the spectral information of the sample point. Finally, it is found that there are significant differences between the spectra of the garbage sample points and the non-garbage samples in the four bands of b3, b4, b7, and b8. Since the band values of b3, b4, and b8 of the garbage sample points are relatively close, the normalized garbage index A is established as A = (b7-(b3+b4+b8) / 3)) / (b7+(b3+b4+b8) / 3).
[0030] S5: Using this index and coverage calculation formula (f v =(A-A0) / (A V -A0)) to calculate the garbage coverage of remote sensing images on the ENVI software platform; A0 in the garbage coverage calculation formula is the value of the normalized index A of the non-garbage coverage part, A V is the value of the normalized index A of the garbage-covered part. Usually, the A values with a frequency of 5% and 95% in the statistical histogram of the normalized garbage index of a remote sensing image are taken as A0 and A1 respectively. V The detailed steps are as follows: open ENVI software, [File] | [OpenImage File], import the acquired multispectral remote sensing image, open [Basic Tools] | [Band Math], enter the calculation formula of the normalized index A in the "Enter an expression" box of the BandMath dialog box and perform the calculation. In this example, it is (float(b7-float(b3+b4+b8) / 3)) / (b7+(b3+b4+b8) / 3)-(-0.01). In the Available BandList window, right-click the image list obtained after the calculation, click [Quick Stats] for statistical analysis, and select the A values with a frequency of 5% and 95% in the histogram as A0 and A. V In this example, the value of A0 is -0.01, and the value of A V The value of is 0.06. Then enter the garbage coverage f in the "Enter an expression" box of the BandMath dialog box. vThe calculation formula is used to calculate the original hyperspectral remote sensing image. In this example, the calculation formula is ((float(b7-float(b3+b4+b8) / 3)) / (b7+(b3+b4+b8) / 3)-(-0.01)) / (0.06-(-0.01)). Finally, save the calculated f v Worth getting the image.
[0031] S6: Use ArcGIS software to establish a vertical profile of the coastline at a fixed distance on the garbage strip, and set up three stations on each profile (station 1 is closest to the land, station 3 is closest to the ocean, and station 2 is located at the midpoint of the profile); when establishing the profile, the length of the high-brightness garbage strip in the remote sensing image should be measured first, and then a profile perpendicular to the coastline should be established at the same distance. In this example, a profile was established every 90m, and a total of 78 profiles were established.
[0032] S7: Extract the garbage coverage values of all stations on the ArcGIS platform and measure the distance x between stations 2 and 3 and station 1; the length of the garbage strip, the profile length, the distance x and the location of the station can be completed by creating a new Shapefile in ArcGIS software. v When extracting the value to the site, it is necessary to calculate f in the ENVI software v Import the obtained image into ArcGIS software, and use the "Multi-value Extract to Point" tool in Toolbox to extract it. After the extraction is completed, export the site attribute table to obtain the required f v Value data.
[0033] S8: Measure the thickness d and density of garbage at the set stations on the spot; export the coordinates of the set stations from the attribute table on the ArcGIS platform, and then conduct field work to measure the thickness d of garbage at the stations.
[0034] S9: The measured distance x value and the calculated garbage coverage f v The value is used as input data, and the garbage thickness d obtained by field measurement is used as output data. The neural network tool in MATLAB software is used for training. The parameters are adjusted multiple times to improve the accuracy. The BP neural network model with the highest accuracy is exported as the final inversion model. The specific process is to enter the f of each site in column A of the EXCEL worksheet. vValue data, enter the corresponding x value data in column B. This worksheet is the input data of the BP neural network training sample. Create a new worksheet and enter the d value data corresponding to each site in column A. This worksheet is the output data of the BP neural network training sample. Then open the MATLAB software, click [APP] | [Neural NetFitting], follow the window instructions to import sample data, adjust the ratio of the number of training, verification and test samples and the number of hidden layers of the neural network several times, and keep a record of different neural network training schemes and the corresponding neural network accuracy, and export the BP neural network model code with the highest accuracy.
[0035] S10: On the ArcGIS platform, randomly generate a number of dense points within the garbage strip range and extract the garbage coverage of these points f v value, and measure the distance x of these points from the land side of the garbage stripe; in order to randomly generate a number of dense points in the garbage stripe range, we need to create a new Shapefile surface feature whose range coincides with the garbage stripe, and use it as a basis for extracting other points on the garbage stripe. v A mask of the values is created. A new Shapefile line feature that coincides with the landward side of the garbage strip is also created as the starting line for measuring the distance x value. Use the "Randomly Generate Points" tool in the Toolbox to create dense points on the garbage strip, and then use the "Extract Multi-Values to Points" tool to extract the f value of each point. v The value is extracted, and the next step is to use the "Neighbor Analysis" tool to obtain the x value of the distance between each point and the land side of the garbage strip. Finally, f v Values and x-values are exported.
[0036] S11: The f of these points v The value and x value are input into the BP neural network model to obtain the thickness d' predicted by the BP neural network; the f of the point with unknown thickness is v The values and x values are entered into the EXCEL worksheet, and column A stores the values of f v The B column stores the x value as the input data of the BP neural network. Then open the previously trained neural network code in MATLAB software, and use the "Sim(net,filename)" function at the end of the code to get the thickness d' value predicted by the BP neural network.
[0037] S12: Calculate the volume of garbage based on the inversion results; organize the prediction results data into a digital table, input it into the Surfer software to get the volume of the garbage strip in the study area, and input it into the R software to fit the three-dimensional model of the garbage strip profile. Combined with the average density measured in the field, the mass of the garbage can be calculated. Organize the prediction results data into a digital table, input it into the Surfer software to get the volume of the garbage strip in the study area, and input it into the R software to fit the three-dimensional model of the garbage strip profile. Combined with the average density measured in the field, the mass of the garbage can be calculated. Randomly select a number of points (the more the better, not less than 100) from the inversion results (each point on the garbage strip will have a corresponding inversion garbage thickness d'), and check the coordinates of these points in ArcGIS software, then measure the actual thickness d of the garbage at these points in the field, and finally substitute d and d' into the mean square error formula to obtain the accuracy.
[0038] S13: Verify the accuracy of the inversion. Select several randomly generated points and measure the thickness of the garbage at these points on the spot, and compare them with the predicted value of the BP neural network to determine whether the accuracy meets the requirements. Randomly select several points (the more the better, no less than 100) from the inversion results (each point on the garbage strip will have a corresponding inverted garbage thickness d'), and check the coordinates of these points in ArcGIS software, then measure the actual thickness d of the garbage at these points on the spot, and finally substitute d and d' into the mean square error formula to obtain the accuracy.
[0039] Specific embodiment 1: See Figure 1-Figure 4 , which is a flow chart of a target classification method based on a convolutional neural network provided in this embodiment. A target classification method based on a convolutional neural network includes the following steps:
[0040] S1: Obtain a remote sensing image containing a high-brightness garbage stripe and perform preprocessing (due to the landing characteristics and scale, select a remote sensing image with a higher resolution (resolution of about 1m));
[0041] In this step, the garbage strips appear as bright white strips that stretch for several kilometers on the remote sensing image, often appearing near the coastal zone and parallel to the coastline. In order to better design a normalized index that reflects the coverage of garbage, it is best to obtain multispectral remote sensing images. In this example, Gaofen-2 and Landsat 8 remote sensing images are used, and the main research area is the Yancheng Rare Bird Nature Reserve in Jiangsu. Preprocessing is an important task to ensure the accuracy of inversion, which generally includes atmospheric correction, radiation correction, and cloud mask preprocessing. In this example, cloud mask processing is performed on Landsat 8 remote sensing images.
[0042] S2: Import the remote sensing image into ArcGIS software, randomly select and create 50 "garbage sample points" on the garbage stripe, and randomly create 50 "non-garbage sample points" on the image of the area outside the garbage stripe;
[0043] The detailed steps are as follows: open ArcGIS software, [File] | [Open], import the acquired multispectral remote sensing image, click [Directory], right-click to create a new [Shapefiles] point file, set the projection coordinate system of the point to be consistent with the remote sensing image when creating a new point file, then open the editor, [Start Editing] | [New Feature], find the high-brightness garbage stripe on the remote sensing image, evenly select 50 points on it, and then evenly select 50 points in the area outside the garbage stripe.
[0044] S3: Extract the spectral information of “garbage sample points” and “non-garbage sample points” on the ArcGIS platform;
[0045] Use the [Multi-value Extraction to Points] tool in the Toolbox to extract the band values of the remote sensing image into the attribute tables of "junk sample points" and "non-junk sample points". Be careful not to create a pyramid when importing remote sensing images, otherwise it is easy to report an error when extracting spectral information.
[0046] S4: Explore the relationship between the values of each band in the spectral information of the sample point, and use the characteristic bands therein to establish a normalized garbage index A (such as garbage index A = (b7-(b3+b4+b8) / 3)) / (b7+(b3+b4+b8) / 3));
[0047] In this example, in the EXCEL worksheet, the band category of each point is used as the horizontal axis and the band value is used as the vertical axis to establish the "garbage sample point spectrum" and "non-garbage sample point spectrum", respectively, so as to explore the relationship between the values of each band in the spectral information of the sample point. Finally, it is found that there are significant differences between the spectra of the garbage sample points and the non-garbage samples in the four bands of b3, b4, b7, and b8. Since the b3, b4, and b8 band values of the garbage sample points are relatively close, the normalized garbage index A is set as A=(b7-(b3+b4+b8) / 3)) / (b7+(b3+b4+b8) / 3).
[0048] S5: Using this index and coverage calculation formula (f v =(A-A0) / (A V -A0)) to calculate the garbage coverage of remote sensing images on the ENVI software platform; where A0 in the garbage coverage calculation formula is the value of the normalized index A of the non-garbage covered part, A V is the value of the normalized index A of the garbage-covered part. Usually, the A values with a frequency of 5% and 95% in the statistical histogram of the normalized garbage index of a remote sensing image are taken as A0 and A1 respectively.V The detailed steps are as follows: open ENVI software, [File] | [Open ImageFile], import the acquired multispectral remote sensing image, open [Basic Tools] | [Band Math], enter the calculation formula of the normalized index A in the "Enter an expression" box of the Band Math dialog box and perform the calculation. In this example, it is (float(b7-float(b3+b4+b8) / 3)) / (b7+(b3+b4+b8) / 3)-(-0.01). In the Available Band List window, right-click the image list obtained after the calculation, click [Quick Stats] for statistical analysis, and select the A values with a frequency of 5% and 95% in the histogram as A0 and A. V In this example, the value of A0 is -0.01, and the value of A V The value of is 0.06. Then enter the garbage coverage f in the "Enter an expression" box of the Band Math dialog box. v The calculation formula is used to calculate the original hyperspectral remote sensing image. In this example, the calculation formula is ((float(b7-float(b3+b4+b8) / 3)) / (b7+(b3+b4+b8) / 3)-(-0.01)) / (0.06-(-0.01)). Finally, save the calculated f v Worth getting the image.
[0049] S6: Use ArcGIS software to establish a vertical coastline profile every several meters on the garbage strip, and set up three stations on each profile (station 1 is closest to the land, station 3 is closest to the ocean, and station 2 is located at the midpoint of the profile); when establishing the profile, the length of the high-brightness garbage strip in the remote sensing image should be measured first, and then a profile perpendicular to the coastline should be established at the same distance. In this example, a profile was established every 90 meters, and a total of 78 profiles were established.
[0050] S7: extract the garbage coverage values of all sites on the ArcGIS platform, and measure the distance x between sites 2 and 3 and site 1;
[0051] The length of the garbage strip, the length of the profile, the measurement of the distance x, and the location of the site can all be completed by creating a new Shapefile in ArcGIS software. v When extracting the value to the site, it is necessary to calculate f in the ENVI software vImport the obtained image into ArcGIS software, and use the "Multi-value Extract to Point" tool in Toolbox to extract it. After the extraction is completed, export the site attribute table to obtain the required f v Value data.
[0052] S8: Measure the thickness d and density of garbage at the set stations on the spot; export the coordinates of the set stations from the attribute table on the ArcGIS platform, and then conduct field work to measure the thickness d of garbage at the stations.
[0053] S9: The measured distance x value and the calculated garbage coverage f v The value is used as input data, and the garbage thickness d obtained by field measurement is used as output data. The neural network tool in MATLAB software is used for training. The parameters are adjusted multiple times to improve the accuracy. The BP neural network model with the highest accuracy is exported as the final inversion model. The specific process is to enter the f of each site in column A of the EXCEL worksheet. v Value data, enter the corresponding x value data in column B. This worksheet is the input data of the BP neural network training sample. Create a new worksheet and enter the d value data corresponding to each site in column A. This worksheet is the output data of the BP neural network training sample. Then open the MATLAB software, click [APP] | [Neural NetFitting], follow the window instructions to import sample data, adjust the ratio of the number of training, verification and test samples and the number of hidden layers of the neural network several times, and keep a record of different neural network training schemes and the corresponding neural network accuracy, and export the BP neural network model code with the highest accuracy.
[0054] S10: On the ArcGIS platform, randomly generate a number of dense points within the garbage strip range and extract the garbage coverage of these points f v value, and measure the distance x of these points from the land side of the garbage stripe; in order to randomly generate a number of dense points in the garbage stripe range, we need to create a new Shapefile surface feature whose range coincides with the garbage stripe, and use it as a basis for extracting other points on the garbage stripe. v A mask of the values is created. A new Shapefile line feature that coincides with the landward side of the garbage strip is also created as the starting line for measuring the distance x value. Use the "Randomly Generate Points" tool in the Toolbox to create dense points on the garbage strip, and then use the "Extract Multi-Values to Points" tool to extract the f value of each point. v The value is extracted, and the next step is to use the "Neighbor Analysis" tool to obtain the x value of the distance between each point and the land side of the garbage strip. Finally, f v Values and x-values are exported.
[0055] S11: The f of these pointsv The value and x value are input into the BP neural network model to obtain the thickness d' predicted by the BP neural network; the f of the point with unknown thickness is v The values and x values are entered into the EXCEL worksheet, and column A stores the values of f v The x value is stored in column B as the input data of the BP neural network. Then open the previously trained neural network code in MATLAB software, and use the "Sim(net,filename)" function at the end of the code to get the thickness d' predicted by the BP neural network.
[0056] S12: Calculate the volume of garbage based on the inversion results; organize the prediction results into a digital table, input the Surfer software to obtain the volume of the garbage strip in the study area, and input the R software to fit the three-dimensional model of the garbage strip profile. Combined with the average density measured in the field, the mass of the garbage can be calculated. Randomly select a number of points (the more the better, no less than 100) from the inversion results (each point on the garbage strip will have a corresponding inverted garbage thickness d'), and check the coordinates of these points in ArcGIS software, then measure the actual thickness d of the garbage at these points in the field, and finally substitute d and d' into the mean square error formula to obtain the accuracy.
[0057] S13: Select a number of randomly generated points and measure the thickness of the garbage at these points on the spot, and compare them with the predicted values of the BP neural network to determine whether the accuracy meets the requirements.
[0058] Table 1 Accuracy of BP neural network inversion results in this embodiment
[0059]
[0060] This example studies the volume of floating garbage in the coastal area of Yancheng Nature Reserve in Jiangsu Province. It mainly uses six softwares: EXCEL, ArcGIS, ENVI, MATLAB, Surfer, and R. The prediction accuracy of the BP neural network is good, and the R value reaches more than 0.968. It can be seen that the present invention greatly reduces the field investigation work on the volume of floating garbage in the coastal area, saves manpower and material resources, and at the same time makes extensive use of geographic information systems and digital data processing methods, which greatly improves efficiency while ensuring the inversion accuracy.
[0061] It should be noted that the above embodiments are not intended to limit the protection scope of the present invention, and equivalent changes or substitutions made on the basis of the above technical solutions all fall within the protection scope of the claims of the present invention.
Claims
1. A method for inverting the volume of coastal floating garbage based on BP neural network, characterized in that: The method comprises the following steps: S1: Acquire remote sensing images and do preprocessing; S2: Randomly select and create "junk sample points" and "non-junk sample points"; S3: extracting the spectrum information of the sample point; S4: Create a normalized garbage index; S5: Calculate garbage coverage; S6: Establish profiles and stations on the garbage strip; S7: extract the garbage coverage of the site and measure the distance; S8: Field measurement of the thickness and density of site waste; S9: training BP neural network model; S10: extract all coverage on the garbage strip and measure the distance; S11: Invert the thickness of all points using BP neural network; S12: Calculate the volume of garbage based on the inversion results; S13: Verify the accuracy of the inversion; Among them, S5 is as follows: Calculate the garbage coverage using the index and coverage calculation formula: f v =(A-A0) / (A V -A0), calculate the garbage coverage of remote sensing images on the ENVI software platform; where f v is the garbage coverage, A is the normalized garbage index, A0 is the value of the normalized index A of the non-garbage coverage part, and A V is the value of the normalized index A of the garbage-covered part. Usually, the A values with a frequency of 5% and 95% in the statistical histogram of the normalized garbage index of a remote sensing image are taken as A0 and A1 respectively. V The specifics of S6 are as follows: set up profiles and stations on the garbage strip; use ArcGIS software to set up a vertical coastline profile at fixed intervals on the garbage strip, and set up three stations on each profile, with station 1 closest to the land, station 3 closest to the ocean, and station 2 at the midpoint of the profile; S7 is as follows: to extract the garbage coverage values of all stations on the ArcGIS platform, and measure the distance x between stations 2 and 3 and station 1; S8 is as follows: for field measurement of the thickness d and density of garbage at the set station; S10 is as follows: On the ArcGIS platform, a number of dense points are randomly generated within the garbage stripe range, and the garbage coverage of these points is extracted. v values, and measure the distance x of these points from the landward side of the garbage strip; S11 is as follows: the f of these points v The value and x value are input into the BP neural network model to obtain the thickness d' predicted by the BP neural network; S12 is specifically as follows: Calculate the volume of garbage according to the inversion result.
2. The method for inverting the volume of coastal floating garbage based on BP neural network according to claim 1 is characterized in that: S1 is as follows: obtain a remote sensing image containing a high-brightness garbage stripe and perform preprocessing; S2 is as follows: import the remote sensing image into ArcGIS software, randomly select and create more than or equal to 50 "garbage sample points" on the garbage stripe, and randomly create more than or equal to 50 "non-garbage sample points" on the image of the area outside the garbage stripe.
3. The method for inverting the volume of coastal floating garbage based on BP neural network according to claim 2 is characterized in that: S3 is as follows: Extracting the spectral information of the sample points is to extract the spectral information of "garbage sample points" and "non-garbage sample points" on the ArcGIS platform; S4 is specifically as follows: Creating a normalized garbage index is to explore the relationship between the values of each band in the spectral information of the sample point, and using the characteristic bands therein to establish a normalized garbage index A.
4. The method for inverting the volume of coastal floating garbage based on BP neural network according to claim 3 is characterized in that: S9 is as follows: the measured distance x value and the calculated garbage coverage f v The value is taken as the input data, and the garbage thickness d obtained by field measurement is taken as the output data. The neural network tool in MATLAB software is used for training. The parameters are adjusted multiple times to improve the accuracy. The BP neural network model with the highest accuracy is exported as the final inversion model.
5. The method for inverting the volume of coastal floating garbage based on BP neural network according to claim 4 is characterized in that: S13 is specifically as follows: select a number of randomly generated points and measure the thickness of the garbage at these points on the spot, and compare them with the predicted values of the BP neural network to determine whether the accuracy meets the requirements.
