Mangrove forest classification method and device based on time sequence remote sensing image data
By performing sub-pixel extraction and feature extraction on time-series remote sensing image data, the mangrove classification model is trained, which solves the problems of low efficiency and strong subjectivity of traditional methods, improves the accuracy of mangrove classification, and adapts to the spatial heterogeneity of mangroves. nature and dynamics, providing decision-making support for ecological protection.
Patent Information
- Application Number
- CN202410645633.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-06
AI Technical Summary
Traditional manual interpretation methods are inefficient and highly subjective in identifying mangrove species. Existing machine learning algorithms are difficult to effectively extract and describe the characteristic information of mangroves, resulting in insufficient classification accuracy and inability to effectively deal with the spatial heterogeneity of mangroves. sex and highly dynamic.
By performing sub-pixel extraction and feature extraction on time-series remote sensing image data, fine time-series feature data is obtained, which is used to train the mangrove classification model so that it can fit the spatial heterogeneity and highly dynamic nature of mangroves and improve classification accuracy. sex.
It improves the accuracy of mangrove classification, provides reliable decision support for mangrove resource management and ecological protection, and enhances the ability to describe dynamic changes in mangroves.
Smart Images

Figure CN118608979A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of remote sensing data analysis, and in particular to a mangrove classification method, device, computer equipment and storage medium based on time-series remote sensing image data. Background Art
[0002] As the importance of mangrove ecosystems becomes increasingly prominent, rapid and accurate remote sensing identification of mangrove species has become a key requirement for the protection and management of mangroves. Traditional manual interpretation methods have problems such as low efficiency and strong subjectivity, so an automated mangrove species identification method is needed to improve efficiency and accuracy. As a powerful data analysis and pattern recognition tool, machine learning has been widely used in the field of remote sensing image processing. By training a suitable machine learning model, the characteristic information of mangroves can be learned from remote sensing images, and automatic classification and identification of different mangrove species can be achieved.
[0003] However, there are still some challenges in the classification and identification of mangrove species. For example, the growth state and environmental conditions of mangroves vary widely, which affects the feature expression of remote sensing images; the high spatial heterogeneity of mangroves leads to relatively weak generalization ability of classification algorithms, which often cannot effectively extract and describe the characteristic information of mangroves for effective mangrove classification. Summary of the invention
[0004] Based on this, the purpose of the present invention is to provide a mangrove classification method, device, computer equipment and storage medium based on time series remote sensing image data, perform sub-pixel extraction on each remote sensing image in the time series remote sensing image data, perform feature extraction based on the extracted sub-pixels, and obtain more refined time series feature data for training the mangrove classification model, so that the trained mangrove classification model can fit the spatial heterogeneity and high dynamics of mangroves, improve the accuracy of mangrove classification, and provide reliable decision-making support for mangrove resource management and ecological protection.
[0005] In a first aspect, an embodiment of the present application provides a mangrove classification method based on time-series remote sensing image data, comprising the following steps:
[0006] Obtaining time-series remote sensing image data of a sample area, wherein the time-series remote sensing image data includes remote sensing images at several time points; obtaining spectral data and label data of several remote sensing images, wherein the label data is used to indicate several mangrove classification areas of the remote sensing images;
[0007] According to the label data, a sub-pixel extraction method is used to obtain a plurality of sub-pixels of a plurality of mangrove classification areas of a plurality of the remote sensing images, and according to the spectral data, features are extracted for the plurality of sub-pixels to obtain first time series feature data, wherein the first time series feature data includes first feature data of a plurality of time points, and the first feature data includes feature index data of a plurality of sub-pixels of a plurality of mangrove classification areas;
[0008] Obtaining second time series feature data of the sample area, inputting the first time series feature data and the second time series feature data into a mangrove classification model to be trained for training, and obtaining a target mangrove classification model, wherein the second time series feature data includes second feature data of a plurality of time points corresponding to the first time series feature data, and the second feature data includes feature index data of a plurality of preset sampling points of a plurality of mangrove classification areas;
[0009] Time-series remote sensing image data to be classified are obtained, and the time-series remote sensing image data to be classified are input into the target mangrove classification model to obtain mangrove classification results of several remote sensing images in the time-series remote sensing image data to be classified.
[0010] In a second aspect, an embodiment of the present application provides a mangrove classification device based on time-series remote sensing image data, comprising:
[0011] A data acquisition module is used to obtain time-series remote sensing image data of a sample area, wherein the time-series remote sensing image data includes remote sensing images at several time points; obtain spectral data and label data of several remote sensing images, wherein the label data is used to indicate several mangrove classification areas of the remote sensing image;
[0012] A feature extraction module, configured to obtain, according to the label data, a plurality of sub-pixels of a plurality of mangrove classification areas of a plurality of the remote sensing images by using a sub-pixel extraction method, and to perform feature extraction on the plurality of sub-pixels according to the spectral data to obtain first time series feature data, wherein the first time series feature data includes first feature data of a plurality of time points, and the first feature data includes feature index data of a plurality of sub-pixels of a plurality of mangrove classification areas;
[0013] A model training module, used to obtain second time series feature data of a sample area, input the first time series feature data and the second time series feature data into a mangrove classification model to be trained for training, and obtain a target mangrove classification model, wherein the second time series feature data includes second feature data of a plurality of time points corresponding to the first time series feature data, and the second feature data includes feature index data of a plurality of preset sampling points of a plurality of mangrove classification areas;
[0014] The mangrove dominant type identification module is used to obtain time-series remote sensing image data to be classified, input the time-series remote sensing image data to be classified into the target mangrove classification model, and obtain mangrove classification results of several remote sensing images in the time-series remote sensing image data to be classified.
[0015] In a third aspect, an embodiment of the present application provides a computer device comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor; when the computer program is executed by the processor, the steps of the mangrove classification method based on time series remote sensing image data as described in the first aspect are implemented.
[0016] In a fourth aspect, an embodiment of the present application provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the mangrove classification method based on time-series remote sensing image data as described in the first aspect.
[0017] In an embodiment of the present application, a method, apparatus, computer equipment and storage medium for mangrove classification based on time series remote sensing image data are provided, sub-pixel extraction is performed on each remote sensing image in the time series remote sensing image data, and feature extraction is performed based on the extracted sub-pixels to obtain more refined time series feature data for training a mangrove classification model, so that the trained mangrove classification model can fit the spatial heterogeneity and high dynamics of mangroves, thereby improving the accuracy of mangrove classification and providing reliable decision support for mangrove resource management and ecological protection.
[0018] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 A schematic diagram of the process of a mangrove classification method based on time-series remote sensing image data provided in the first embodiment of the present application;
[0020] Figure 2 A schematic diagram of the process of S2 in the mangrove classification method based on time-series remote sensing image data provided in the first embodiment of the present application;
[0021] Figure 3 A schematic diagram of the process of S3 in the mangrove classification method based on time-series remote sensing image data provided in the first embodiment of the present application;
[0022] Figure 4 A schematic diagram of the flow of a mangrove classification method based on time-series remote sensing image data provided in the second embodiment of the present application;
[0023] Figure 5A schematic diagram of a process flow of a mangrove classification method based on time-series remote sensing image data provided in the third embodiment of the present application;
[0024] Figure 6 A schematic diagram of the structure of a mangrove classification device based on time-series remote sensing image data provided in the fourth embodiment of the present application;
[0025] Figure 7 A schematic diagram of the structure of a computer device provided in the fifth embodiment of the present application. DETAILED DESCRIPTION
[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0027] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0028] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" / "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".
[0029] See also Figure 1 , Figure 1 A flowchart of a mangrove classification method based on time-series remote sensing image data provided in the first embodiment of the present application is provided. The method comprises the following steps:
[0030] S1: Obtain time-series remote sensing image data of a sample area, wherein the time-series remote sensing image data includes remote sensing images at several time points; obtain spectral data and label data of several remote sensing images.
[0031] The executor of the mangrove classification method based on time series remote sensing image data is a classification device of the mangrove classification method based on time series remote sensing image data (hereinafter referred to as the classification device). In an optional embodiment, the classification device can be a computer device, a server, or a server cluster composed of multiple computer devices.
[0032] In this embodiment, the classification device may obtain the time-series remote sensing image data of the sample area via a satellite, or may obtain the data by downloading from a database, wherein the time-series remote sensing image data includes a plurality of remote sensing images.
[0033] Specifically, the classification device uses Landsat 5TM, Landsat 7ETM+, and Landsat8 OLI / TIRS as data sources, with a time span of 1993-2015 and a spatial resolution of 30m×30m, to obtain multi-period long-term time series multi-source data as time series remote sensing image data. In an optional embodiment, the classification device performs radiation correction, atmospheric correction, and geometric registration processing on several remote sensing images in the time series remote sensing image data to obtain several processed remote sensing images, which are used to correct the time series remote sensing image data collected by the satellite, thereby improving the accuracy of feature information extraction of the remote sensing images.
[0034] The classification equipment divides several processed remote sensing images into patches based on deep learning segmentation methods, such as semantic segmentation and instance segmentation. The patches are preprocessed, including resizing, normalization, and noise removal, to train the mangrove classification model to improve the performance and stability of the model.
[0035] The classification device obtains spectral data and label data of several remote sensing images, wherein the spectral data includes near infrared band reflectivity, red light band reflectivity, blue light band reflectivity, first short-wave infrared band reflectivity, second short-wave infrared band reflectivity and green light band reflectivity. The label data is used to indicate several mangrove classification areas of the remote sensing image.
[0036] S2: According to the label data, a sub-pixel extraction method is used to obtain a number of sub-pixels of a number of mangrove classification areas of a number of the remote sensing images, and according to the spectral data, feature extraction is performed on the sub-pixels to obtain first time series feature data.
[0037] In this embodiment, the classification device adopts a sub-pixel extraction method based on the label data to obtain a number of sub-pixels of a number of mangrove classification areas of a number of the remote sensing images, introduces the sub-pixel scale into the classification process, obtains more refined first time series feature data, and more accurately describes the spatial heterogeneity inside the mangroves.
[0038] The classification device extracts features from the plurality of sub-pixels according to the spectral data to obtain first time series feature data, wherein the first time series feature data includes first feature data at a plurality of time points, and the first feature data includes feature index data of a plurality of sub-pixels in a plurality of mangrove classification areas. This can more comprehensively reflect the spatial dynamic changes of mangroves, and is used to construct a balanced training data set to improve the accuracy of model training.
[0039] The characteristic index data include the relevant vegetation index, normalized difference vegetation index, enhanced vegetation index, normalized water index, enhanced mangrove vegetation index and mangrove vegetation index. Figure 2 , Figure 2 The flowchart of S2 in the mangrove classification method based on time-series remote sensing image data provided in the first embodiment of the present application includes steps S21 to S25, which are specifically as follows:
[0040] S21: Obtaining the relevant vegetation index and the normalized vegetation index of the plurality of sub-pixels according to the near-infrared band reflectance, the red light band reflectance, a preset relevant vegetation index algorithm and a normalized vegetation index algorithm in the spectral data.
[0041] In this embodiment, the classification device obtains the relevant vegetation index and the normalized vegetation index of the plurality of sub-pixels according to the near-infrared band reflectance, the red light band reflectance, the preset relevant vegetation index algorithm and the normalized vegetation index algorithm in the spectral data, wherein the relevant vegetation index algorithm is:
[0042]
[0043] Where RVI is the normalized difference humidity index, ρ NIR is the reflectivity in the near-infrared band, ρ RED is the reflectivity of red light band;
[0044] The normalized difference vegetation index algorithm is:
[0045]
[0046] Where NDVI is the normalized difference vegetation index.
[0047] S22: Obtaining the augmented vegetation index of a plurality of the sub-pixels according to the near-infrared band reflectivity, the red light band reflectivity, the blue light band reflectivity and a preset augmented vegetation index algorithm in the spectral data.
[0048] The algorithm of the increased vegetation index is:
[0049]
[0050] Where, EVI is the increasing vegetation index, ρ BLUE is the reflectivity in the blue light band.
[0051] In this embodiment, the classification device obtains the augmented vegetation index of several sub-pixels according to the near-infrared band reflectivity, the red light band reflectivity, the blue light band reflectivity in the spectral data and a preset augmented vegetation index algorithm.
[0052] S23: obtaining normalized water indexes of a plurality of sub-pixels according to the near-infrared band reflectance, the green light band reflectance and a preset normalized water index algorithm in the spectral data.
[0053] The normalized water index algorithm is:
[0054]
[0055] Where NDWI is the normalized water index, ρ GREEN is the reflectivity in the green light band.
[0056] In this embodiment, the classification device obtains the normalized water index of the plurality of sub-pixels according to the near-infrared band reflectance, the green light band reflectance and a preset normalized water index algorithm in the spectral data.
[0057] S24: Obtain enhanced mangrove vegetation indices of the plurality of sub-pixels according to the green light band reflectance, the first short-wave infrared band reflectance, the second short-wave infrared band reflectance and a preset enhanced mangrove vegetation index algorithm in the spectral data.
[0058] The enhanced mangrove vegetation index algorithm is:
[0059]
[0060] Where, EMVI is the enhanced mangrove vegetation index, ρ SIWR2 is the reflectivity of the second short-wave infrared band, ρ SIWR1 is the reflectivity in the first short-wave infrared band.
[0061] In this embodiment, the classification device obtains the enhanced mangrove vegetation index of several sub-pixels based on the green light band reflectivity, the first short-wave infrared band reflectivity, the second short-wave infrared band reflectivity and a preset enhanced mangrove vegetation index algorithm in the spectral data.
[0062] S25: Obtaining mangrove vegetation indexes of the plurality of sub-pixels according to the near-infrared band reflectivity, the green light band reflectivity, the first short-wave infrared band reflectivity and a preset mangrove vegetation index algorithm in the spectral data.
[0063] The mangrove vegetation index algorithm is:
[0064]
[0065] Where MVI is the mangrove vegetation index.
[0066] In this embodiment, the classification device obtains the mangrove vegetation index of several sub-pixels according to the near-infrared band reflectivity, the green light band reflectivity, the first short-wave infrared band reflectivity and a preset mangrove vegetation index algorithm in the spectral data.
[0067] S3: Obtain second time series feature data of the sample area, input the first time series feature data and the second time series feature data into the mangrove classification model to be trained for training, and obtain a target mangrove classification model.
[0068] In this embodiment, the classification device obtains the second time series characteristic data of the sample area, wherein the second time series characteristic data includes the second characteristic data of several time points corresponding to the first time series characteristic data, and the second characteristic data includes characteristic index data of several preset sampling points of several mangrove classification areas. Specifically, the characteristic index data of several preset sampling points in the second characteristic data are data obtained by feature extraction based on the spectral data of several sampling points obtained according to actual investigation and on-site sampling. The steps of feature extraction can refer to steps S21 to S25, which will not be repeated here.
[0069] In this embodiment, the classification device inputs the first time series feature data and the second time series feature data into the mangrove classification model to be trained to obtain a target mangrove classification model. Specifically, the mangrove classification model adopts a convolutional neural network model, see Figure 3 , Figure 3 The flowchart of S3 in the mangrove classification method based on time-series remote sensing image data provided in the first embodiment of the present application includes steps S31 to S33, which are specifically as follows:
[0070] S31: Taking the characteristic index data of several sub-pixels of several mangrove classification areas in the first characteristic data at several time points in the first time series characteristic data as input data, input it into the convolutional neural network model, and according to a preset forward propagation algorithm, obtain the probability data of several sub-pixels of several mangrove classification areas in the first characteristic data at several time points in the first time series characteristic data output by the convolutional neural network model.
[0071] The forward propagation algorithm is:
[0072]
[0073] f2=A L =W L,L-1 A L-1
[0074]
[0075] Wherein, f1 is the forward propagation algorithm of the input layer and output layer of the convolutional neural network model, f2 is the forward propagation algorithm of the output layer of the convolutional neural network model, f3 is the forward propagation algorithm based on the convolutional neural network model, and A l-1 is the input value of the l-1th layer of the convolutional neural network model, A l is the output value of the l-1th layer of the convolutional neural network model and serves as the input value of the lth layer, X represents the input data of the convolutional neural network model, A L represents the output value of the output layer of the convolutional neural network model, A L-1 represents the input value of the output layer of the convolutional neural network model, W l,l-1 is the weight matrix from the l-1th layer to the lth layer of the convolutional neural network model, Y represents the probability data of the convolutional neural network model, Represents the Hadamard product.
[0076] In this embodiment, the classification device takes the characteristic index data of several sub-pixels of several mangrove classification areas in the first feature data at several time points in the first time series feature data as input data, and inputs it into the convolutional neural network model, and obtains the probability data of several sub-pixels of several mangrove classification areas in the first feature data at several time points in the first time series feature data output by the convolutional neural network model according to a preset forward propagation algorithm.
[0077] S32: Obtain probability data of several sampling points of several mangrove classification areas in the second feature data at several time points in the second time series feature data output by the convolutional neural network model, use the probability data of several sub-pixels of the same mangrove classification area at the same time point as predicted values, and the probability data of several sampling points as true values, and obtain the error value of each layer of the convolutional neural network model according to the predicted values, true values and the error back propagation algorithm in the convolutional neural network model.
[0078] The error back propagation algorithm is:
[0079]
[0080] dA l-1 =(W l,l-1 ) T Z l
[0081] In the formula, Z L is the error value of the output layer of the convolutional neural network model, dZ L is the partial derivative of the error value of the output layer, Z l is the error value of the middle layer of the convolutional neural network model, dZ l is the partial derivative of the error value of the intermediate layer, and MSE is the error loss value of the convolutional neural network model; dA l-1 is the partial derivative of the input value of the l-1th layer, (W l,l-1 ) T is the transpose of the weight matrix from the l-1th layer to the lth layer of the convolutional neural network model.
[0082] In this embodiment, the classification device obtains the probability data of several sampling points of several mangrove classification areas in the second feature data at several time points in the second time series feature data output by the convolutional neural network model, takes the probability data of several sub-pixels of the same mangrove classification area at the same time point as the predicted value, and the probability data of several sampling points as the true value, and obtains the error value of each layer of the convolutional neural network model according to the predicted value, the true value and the error back propagation algorithm in the convolutional neural network model.
[0083] S33: According to the error value of each layer of the convolutional neural network model and the weight updating algorithm in the convolutional neural network model, the weight matrix of each layer of the convolutional neural network model is updated to obtain the trained convolutional neural network model.
[0084] The weight update algorithm is:
[0085]
[0086] w l,l-1(new) =w l,l-1 -αdW l,l-1
[0087] Where m is the number of input data for each training of the convolutional neural network model, (A l-1 ) T is the transpose of the input value of the l-1th layer, dW l,l-1 is the partial derivative of the weight matrix from the l-1th layer to the lth layer of the convolutional neural network model, α is the learning rate, W l,l-1(old) represents the weight matrix from the l-1th layer to the lth layer of the convolutional neural network model when it is not updated, W l,l-1 Represents the updated weight matrix from the l-1th layer to the lth layer of the convolutional neural network model.
[0088] In this embodiment, the classification device updates the weight matrix of each layer of the convolutional neural network model according to the error value of each layer of the convolutional neural network model and the weight update algorithm in the convolutional neural network model to obtain the trained convolutional neural network model. The trained mangrove classification model can fit the spatial heterogeneity and high dynamics of mangroves, thereby improving the accuracy of mangrove classification.
[0089] S4: obtaining time-series remote sensing image data to be classified, inputting the time-series remote sensing image data to be classified into the target mangrove classification model, and obtaining mangrove classification results of several remote sensing images in the time-series remote sensing image data to be classified.
[0090] In this embodiment, the classification device responds to a classification instruction, which is issued by a user and received by the classification device.
[0091] The classification device obtains time-series remote sensing image data to be classified, inputs the time-series remote sensing image data to be classified into the target mangrove classification model, and obtains mangrove classification results of several remote sensing images in the time-series remote sensing image data to be classified.
[0092] Sub-pixel extraction is performed on each remote sensing image in the time series remote sensing image data, and feature extraction is performed based on the extracted sub-pixels to obtain more refined time series feature data, which is used to train the mangrove classification model. The trained mangrove classification model can fit the spatial heterogeneity and high dynamics of mangroves, improve the accuracy of mangrove classification, and provide reliable decision-making support for mangrove resource management and ecological protection.
[0093] See also Figure 4 , Figure 4The flowchart of the mangrove classification method based on time-series remote sensing image data provided in the second embodiment of the present application also includes step S5, which is as follows:
[0094] S5: According to several mangrove classification areas in the mangrove classification results, obtain the area data of several mangrove classification types at several time points in the time series remote sensing image data to be classified, and according to the area data of several mangrove classification types at several time points, calculate the area expansion rates of several mangrove classification types, and take the mangrove classification type with the highest area expansion rate as the mangrove dominant type identification result.
[0095] In this embodiment, the classification device obtains the area data of several mangrove classification types at several time points in the time-series remote sensing image data to be classified according to several mangrove classification areas in the mangrove classification results, calculates the area expansion rates of several mangrove classification types according to the area data of several mangrove classification types at several time points, and takes the mangrove classification type with the highest area expansion rate as the mangrove dominant type identification result, so as to provide reliable decision support for mangrove resource management and ecological protection.
[0096] See also Figure 5 , Figure 5 The flowchart of the mangrove classification method based on time-series remote sensing image data provided in the third embodiment of the present application also includes step S6, which is as follows:
[0097] S6: In response to the display instruction, the electronic map data is acquired, and according to the mangrove classification result, the mangrove classification result is displayed and marked on the electronic map data.
[0098] The display instruction is issued by a user and received by the classification device.
[0099] In this embodiment, the classification device obtains electronic map data in response to the display instruction, and displays and annotates the mangrove classification result on the electronic map data according to the mangrove classification result.
[0100] Please refer to Figure 6 , Figure 6 This is a schematic diagram of the structure of a mangrove classification device based on time-series remote sensing image data provided in the fourth embodiment of the present application. The device can implement all or part of the mangrove classification device based on time-series remote sensing image data through software, hardware, or a combination of both. The device 6 includes:
[0101] The data acquisition module 61 is used to obtain time-series remote sensing image data of the sample area, wherein the time-series remote sensing image data includes remote sensing images at several time points; obtain spectral data and label data of several remote sensing images, wherein the label data is used to indicate several mangrove classification areas of the remote sensing image;
[0102] The feature extraction module 62 is used to obtain a plurality of sub-pixels of a plurality of mangrove classification areas of a plurality of the remote sensing images by using a sub-pixel extraction method according to the label data, and to perform feature extraction on the plurality of sub-pixels according to the spectral data to obtain first time series feature data, wherein the first time series feature data includes first feature data of a plurality of time points, and the first feature data includes feature index data of a plurality of sub-pixels of a plurality of mangrove classification areas;
[0103] The model training module 63 is used to obtain second time series feature data of the sample area, input the first time series feature data and the second time series feature data into the mangrove classification model to be trained for training, and obtain a target mangrove classification model, wherein the second time series feature data includes second feature data of a plurality of time points corresponding to the first time series feature data, and the second feature data includes feature index data of a plurality of preset sampling points of a plurality of mangrove classification areas;
[0104] The mangrove dominant type identification module 64 is used to obtain time-series remote sensing image data to be classified, input the time-series remote sensing image data to be classified into the target mangrove classification model, and obtain mangrove classification results of several remote sensing images in the time-series remote sensing image data to be classified.
[0105] In an embodiment of the present application, time-series remote sensing image data of a sample area is obtained through a data acquisition module, wherein the time-series remote sensing image data includes remote sensing images at several time points; spectral data and label data of several remote sensing images are obtained, wherein the label data is used to indicate several mangrove classification areas of the remote sensing image; through a feature extraction module, based on the label data, a sub-pixel extraction method is adopted to obtain several sub-pixels of several mangrove classification areas of several remote sensing images, and based on the spectral data, features are extracted for several sub-pixels to obtain first time-series feature data, wherein the first time-series feature data includes first feature data at several time points, and the first feature data includes several sub-pixels of several mangrove classification areas. The characteristic index data of the element; through the model training module, the second time series characteristic data of the sample area is obtained, and the first time series characteristic data and the second time series characteristic data are input into the mangrove classification model to be trained for training, and the target mangrove classification model is obtained, wherein the second time series characteristic data includes the second characteristic data of several time points corresponding to the first time series characteristic data, and the second characteristic data includes the characteristic index data of several preset sampling points in several mangrove classification areas; through the mangrove dominant type identification module, the time series remote sensing image data to be classified is obtained, and the time series remote sensing image data to be classified is input into the target mangrove classification model, and the mangrove classification results of several remote sensing images in the time series remote sensing image data to be classified are obtained. Sub-pixel extraction is performed on each remote sensing image in the time series remote sensing image data, and feature extraction is performed based on the extracted sub-pixels to obtain more refined time series characteristic data, which is used to train the mangrove classification model, so that the trained mangrove classification model can fit the spatial heterogeneity and high dynamics of mangroves, improve the accuracy of mangrove classification, and provide reliable decision support for mangrove resource management and ecological protection.
[0106] Please refer to Figure 7 , Figure 7 The structural diagram of the computer device provided for the fifth embodiment of the present application, the computer device 7 includes: a processor 71, a memory 72, and a computer program 73 stored in the memory 72 and executable on the processor 71; the computer device can store multiple instructions, and the instructions are suitable for the processor 71 to load and execute the method steps of the first to third embodiments above. The specific execution process can refer to the specific description of the first to third embodiments, which will not be repeated here.
[0107] Among them, the processor 71 may include one or more processing cores. The processor 71 uses various interfaces and lines to connect various parts in the server, and executes various functions and processes data of the mangrove classification device 6 based on time-series remote sensing image data by running or executing instructions, programs, code sets or instruction sets stored in the memory 72, and calling the data in the memory 72. Optionally, the processor 71 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programble Logic Array, PLA). The processor 71 can integrate one or more combinations of a central processing unit 71 (Central Processing Unit, CPU), an image processor 71 (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 71, but may be implemented by a single chip.
[0108] Among them, the memory 72 may include a random access memory 72 (Random Access Memory, RAM), and may also include a read-only memory 72 (Read-Only Memory). Optionally, the memory 72 includes a non-transitory computer-readable storage medium. The memory 72 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 72 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch instructions, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 72 may also be optionally at least one storage device located away from the aforementioned processor 71.
[0109] An embodiment of the present application also provides a storage medium, which can store multiple instructions. The instructions are suitable for being loaded by a processor and executing the method steps of the above-mentioned first to third embodiments. The specific execution process can be found in the specific description of the first to third embodiments, which will not be repeated here.
[0110] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0111] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0112] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraint algorithm of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0113] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0115] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0116] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.
[0117] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.
Claims
1. A mangrove classification method based on time series remote sensing image data, characterized in that: The following steps are involved: Obtaining time-series remote sensing image data of a sample area, wherein the time-series remote sensing image data includes remote sensing images at several time points; obtaining spectral data and label data of several remote sensing images, wherein the label data is used to indicate several mangrove classification areas of the remote sensing images; According to the label data, a sub-pixel extraction method is used to obtain a plurality of sub-pixels of a plurality of mangrove classification areas of a plurality of the remote sensing images, and according to the spectral data, features are extracted for the plurality of sub-pixels to obtain first time series feature data, wherein the first time series feature data includes first feature data of a plurality of time points, and the first feature data includes feature index data of a plurality of sub-pixels of a plurality of mangrove classification areas; Obtaining second time series feature data of the sample area, inputting the first time series feature data and the second time series feature data into a mangrove classification model to be trained for training, and obtaining a target mangrove classification model, wherein the second time series feature data includes second feature data of a plurality of time points corresponding to the first time series feature data, and the second feature data includes feature index data of a plurality of preset sampling points of a plurality of mangrove classification areas; Time-series remote sensing image data to be classified are obtained, and the time-series remote sensing image data to be classified are input into the target mangrove classification model to obtain mangrove classification results of several remote sensing images in the time-series remote sensing image data to be classified.
2. The method for classifying mangroves based on time-series remote sensing image data according to claim 1, characterized in that: The spectral data includes near-infrared band reflectivity, red light band reflectivity, blue light band reflectivity, first short-wave infrared band reflectivity, second short-wave infrared band reflectivity and green light band reflectivity, and the characteristic index data includes relevant vegetation index, normalized vegetation index, enhanced vegetation index, normalized water body index, enhanced mangrove vegetation index and mangrove vegetation index.
3. The mangrove classification method based on time series remote sensing image data according to claim 2 is characterized in that: The mangrove classification model adopts a convolutional neural network model; The step of inputting the first time series feature data and the second time series feature data into a mangrove classification model to be trained to obtain a target mangrove classification model comprises the following steps: The characteristic index data of several sub-pixels in several mangrove classification areas in the first characteristic data at several time points in the first time series characteristic data are used as input data and input into the convolutional neural network model, and the probability data of several sub-pixels in several mangrove classification areas in the first characteristic data at several time points in the first time series characteristic data output by the convolutional neural network model are obtained according to a preset forward propagation algorithm, wherein the forward propagation algorithm is: f2=A L =W L,L-1 A L-1 Wherein, f1 is the forward propagation algorithm of the input layer and output layer of the convolutional neural network model, f2 is the forward propagation algorithm of the output layer of the convolutional neural network model, f3 is the forward propagation algorithm based on the convolutional neural network model, and A l-1 is the input value of the l-1th layer of the convolutional neural network model, A l is the output value of the l-1th layer of the convolutional neural network model and serves as the input value of the lth layer, X represents the input data of the convolutional neural network model, A L represents the output value of the output layer of the convolutional neural network model, A L-1 represents the input value of the output layer of the convolutional neural network model, W l,l-1 is the weight matrix from the l-1th layer to the lth layer of the convolutional neural network model, Y represents the probability data of the convolutional neural network model, and ° represents the Hadamard product; Obtain probability data of several sampling points of several mangrove classification areas in the second feature data at several time points in the second time series feature data output by the convolutional neural network model, use the probability data of several sub-pixels of the same mangrove classification area at the same time point as the predicted value, and the probability data of several sampling points as the true value, and obtain the error value of each layer of the convolutional neural network model according to the predicted value, the true value and the error back propagation algorithm in the convolutional neural network model, wherein the error back propagation algorithm is: and l-1 =(w l,l-1 ) T dZ l In the formula, Z L is the error value of the output layer of the convolutional neural network model, dZ L is the partial derivative of the error value of the output layer, Z l is the error value of the middle layer of the convolutional neural network model, dZ l is the partial derivative of the error value of the intermediate layer, and MSE is the error loss value of the convolutional neural network model; dA l-1 is the partial derivative of the input value of the l-1th layer, (W l ,l-1 ) T is the transpose of the weight matrix from the l-1th layer to the lth layer of the convolutional neural network model; According to the error value of each layer of the convolutional neural network model and the weight update algorithm in the convolutional neural network model, the weight matrix of each layer of the convolutional neural network model is updated to obtain the trained convolutional neural network model, wherein the weight update algorithm is: IN l,l-1(new) =In l,l-1 -αdW l,l-1 Where m is the number of input data for each training of the convolutional neural network model, (A l-1 ) T is the transpose of the input value of the l-1th layer, dW l,l-1 is the partial derivative of the weight matrix from the l-1th layer to the lth layer of the convolutional neural network model, α is the learning rate, W l,l-1(old) represents the weight matrix from the l-1th layer to the lth layer of the convolutional neural network model when it is not updated, W l,l-1 Represents the updated weight matrix from the l-1th layer to the lth layer of the convolutional neural network model.
4. The mangrove classification method based on time series remote sensing image data according to claim 1 is characterized in that: Also includes the steps: According to several mangrove classification areas in the mangrove classification results, the area data of several mangrove classification types at several time points in the time series remote sensing image data to be classified are obtained; according to the area data of several mangrove classification types at several time points, the area expansion rates of several mangrove classification types are calculated; the mangrove classification type with the highest area expansion rate is taken as the mangrove dominant type identification result.
5. The mangrove classification method based on time series remote sensing image data according to claim 1 is characterized in that: Also includes the steps: In response to the display instruction, electronic map data is acquired, and according to the mangrove classification result, the mangrove classification result is displayed and marked on the electronic map data.
6. A mangrove classification device based on time-series remote sensing image data, characterized in that: include: A data acquisition module is used to obtain time-series remote sensing image data of a sample area, wherein the time-series remote sensing image data includes remote sensing images at several time points; obtain spectral data and label data of several remote sensing images, wherein the label data is used to indicate several mangrove classification areas of the remote sensing image; A feature extraction module, configured to obtain, according to the label data, a plurality of sub-pixels of a plurality of mangrove classification areas of a plurality of the remote sensing images by using a sub-pixel extraction method, and to perform feature extraction on the plurality of sub-pixels according to the spectral data to obtain first time series feature data, wherein the first time series feature data includes first feature data of a plurality of time points, and the first feature data includes feature index data of a plurality of sub-pixels of a plurality of mangrove classification areas; A model training module, used to obtain second time series feature data of a sample area, input the first time series feature data and the second time series feature data into a mangrove classification model to be trained for training, and obtain a target mangrove classification model, wherein the second time series feature data includes second feature data of a plurality of time points corresponding to the first time series feature data, and the second feature data includes feature index data of a plurality of preset sampling points of a plurality of mangrove classification areas; The mangrove dominant type identification module is used to obtain time-series remote sensing image data to be classified, input the time-series remote sensing image data to be classified into the target mangrove classification model, and obtain mangrove classification results of several remote sensing images in the time-series remote sensing image data to be classified.
7. A computer device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor; when the computer program is executed by the processor, the steps of the mangrove classification method based on time series remote sensing image data as described in any one of claims 1 to 5 are implemented.
8. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the mangrove classification method based on time-series remote sensing image data as described in any one of claims 1 to 5 are implemented.
Citation Information
Cited By
Mangrove forest state diagnosis method and system based on AI assistance
CN120525880A
