Satellite inversion cloud classification method, device, electronic equipment and computer storage medium

Through a two-stage training method, the hierarchical structure of the deep learning model is frozen and unfrozen to adapt to the satellite inversion cloud classification task, solving the problem of low accuracy and efficiency of the traditional model in satellite cloud classification, and achieving a more efficient cloud classification effect.

CN118279671BActive Publication Date: 2024-09-13BEIJING HONG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410564021.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2024-09-13
Estimated Expiration
2044-05-08

AI Technical Summary

Technical Problem

Traditional deep learning models cannot effectively adapt to the characteristics of satellite inversion cloud classification tasks, resulting in poor accuracy and low efficiency of cloud classification results.

Method used

A two-stage training method is adopted. First, all layers of the pre-trained model are frozen and only the normalization layer, Flatten layer and fully connected layer are trained, and then the fully connected layer is gradually unfrozen and the model is recompiled to adapt to the specific cloud classification task.

Benefits of technology

The accuracy and efficiency of cloud classification are significantly improved, enabling more accurate identification of cloud areas in satellite images and efficient cloud classification processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118279671B
    Figure CN118279671B
Patent Text Reader

Abstract

The present invention provides a satellite inversion cloud classification method, device, electronic device and computer storage medium, belonging to the technical field of image processing. In the method, a pre-trained model is incorporated into a cloud classification model to fully utilize its rich feature representation capabilities learned on large-scale image data; two optimization strategies are adopted to further improve the model performance: first, all layers of the pre-trained model are frozen, and only the subsequent normalization layer, Flatten layer, first fully connected layer and second fully connected layer are trained, so that the model can adapt to specific cloud classification tasks; then, the fully connected layers in the pre-trained model are gradually unfrozen, and the model is recompiled to fine-tune the weights of the unfrozen fully connected layer, normalization layer, Flatten layer, first fully connected layer and second fully connected layer, so as to further improve the performance of the model on the cloud classification task. The obtained target cloud classification model has achieved significant improvements in both cloud classification accuracy and efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a satellite inversion cloud classification method, device, electronic equipment and computer storage medium. Background Art

[0002] With the development of satellite remote sensing technology, satellite images have been widely used in meteorology, environmental monitoring, agriculture and other fields. Among them, cloud classification is an important part of satellite remote sensing data processing. Accurately identifying different types of clouds is of great significance for meteorological forecasting and environmental monitoring. Traditional cloud classification methods usually rely on manually designed feature extraction and classification algorithms, which often perform poorly under complex and changing cloud cover conditions.

[0003] In recent years, transfer learning technology has made significant progress in the field of image recognition. It has the ability to automatically learn feature representation and powerfully process large-scale data. Therefore, satellite inversion cloud classification methods based on transfer learning have become one of the research hotspots. Models represented by classic deep learning networks such as VGG16 and ResNet have achieved excellent performance in image recognition tasks, thus attracting the attention of researchers who hope to apply these models to satellite cloud classification tasks.

[0004] However, due to the specific spatial resolution and noise characteristics of satellite remote sensing data, directly using traditional deep learning models cannot fully utilize their performance. Therefore, how to optimize the transfer learning network structure to make it more suitable for the characteristics of satellite inversion cloud classification tasks has become an important research direction.

[0005] In summary, how to optimize the transfer learning network structure to make it more suitable for the characteristics of satellite inversion cloud classification tasks and thus improve the accuracy and efficiency of cloud classification has become a technical problem that needs to be solved urgently. Summary of the invention

[0006] In view of this, the purpose of the present invention is to provide a satellite inversion cloud classification method, device, electronic device and computer storage medium to alleviate the technical problem that traditional deep learning models cannot adapt to the characteristics of satellite inversion cloud classification tasks, and the obtained cloud classification results have poor accuracy and low efficiency.

[0007] In a first aspect, an embodiment of the present invention provides a satellite inversion cloud classification method, comprising:

[0008] Acquire an infrared remote sensing image sample collected by a first satellite sensor and cloud classification information corresponding to the infrared remote sensing image sample collected by a second satellite sensor;

[0009] The infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples are used to perform two-stage training on the original cloud classification model to obtain a target cloud classification model, wherein the original cloud classification model includes a pre-trained model, a normalization layer, a Flatten layer, a first fully connected layer, and a second fully connected layer connected in sequence. When performing the first stage of the two-stage training, the pre-trained model is frozen, and the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples are used to train the original cloud classification model to obtain a first-stage cloud classification model. When performing the second stage of the two-stage training, the fully connected layers in the pre-trained model are gradually unfrozen, and then the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples are used to train the first-stage cloud classification model to obtain the target cloud classification model.

[0010] The target cloud classification model is used to perform cloud classification processing on the infrared remote sensing image to be classified, and cloud classification results at various positions in the infrared remote sensing image to be classified are obtained.

[0011] Further, obtaining the infrared remote sensing image sample collected by the first satellite sensor and the cloud classification information corresponding to the infrared remote sensing image sample collected by the second satellite sensor includes:

[0012] Acquire first meteorological observation data collected by a sensor carried by a first satellite and transmitted by the first satellite;

[0013] Performing a first preprocessing on the first meteorological observation data to obtain the infrared remote sensing image sample, wherein the first preprocessing includes: correction, quality control, geographic positioning, data normalization, dimension reduction and feature extraction;

[0014] Acquire second meteorological observation data transmitted by a second satellite and collected by a sensor carried by the second satellite;

[0015] Performing a second preprocessing on the second meteorological observation data to obtain the cloud classification information, wherein the second preprocessing includes: correction, quality control, interpolation, geographic positioning, data normalization, dimension reduction and feature extraction;

[0016] The infrared remote sensing image samples are associated and annotated with corresponding cloud classification information to obtain cloud classification information corresponding to the infrared remote sensing image samples, wherein the associated annotations include: associated annotations between the infrared remote sensing image samples and the cloud classification information in space and time.

[0017] Furthermore, the first fully connected layer and the second fully connected layer include regularization terms, a Dropout layer is added after the first fully connected layer and the second fully connected layer, the number of neurons in the first fully connected layer is 256, the number of neurons in the second fully connected layer is 128, the first fully connected layer uses a ReLU activation function, and the second fully connected layer uses a softmax activation function.

[0018] Furthermore, the pre-trained model includes: a VGG16 network, wherein the VGG16 network includes an input layer, a convolutional layer and a fully connected layer connected in sequence.

[0019] Further, freezing the pre-trained model, and using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to train the original cloud classification model includes:

[0020] Freeze the pre-trained model, and use the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to train the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer to obtain the first-stage cloud classification model.

[0021] Further, the fully connected layers in the pre-trained model are gradually unfrozen, and the first-stage cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples, including:

[0022] The fully connected layers in the pre-trained model are gradually unfrozen, and then the unfrozen fully connected layers, the normalization layer, the Flatten layer, the first fully connected layer and the second fully connected layer are trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain the target cloud classification model.

[0023] Further, the fully connected layers in the pre-trained model are gradually unfrozen, and the unfrozen fully connected layers, the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer are trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples, including:

[0024] Obtain a plurality of ordered mask vectors to determine the target layer whose weights are to be updated in the first-stage cloud classification model according to the elements in each of the mask vectors, wherein the number of elements of the mask vector is the same as the number of layers of the first-stage cloud classification model, and in the plurality of ordered mask vectors, in the first mask vector, the values ​​of the last preset number of elements of the elements corresponding to the pre-trained model are 1, the values ​​of the elements corresponding to the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer are 1, and the values ​​of the remaining elements are 0; in the second mask vector, the values ​​of the last 2 times the preset number of elements of the elements corresponding to the pre-trained model are 1, the values ​​of the elements corresponding to the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer are 1, and the values ​​of the remaining elements are 0, and so on, until the values ​​of all elements corresponding to the fully connected layers in the pre-trained model are 1;

[0025] Update the formula w according to the weight new,i =w old,i -α×m i × gradient i Update the weights of each layer in the first stage cloud classification model, where w new,i represents the updated weight of the i-th layer in the pre-trained model, w old,i represents the weight of the i-th layer in the pre-trained model before updating, α represents the learning rate, and m i Represents the i-th element of the current mask vector in the mask vector, gradient i Represents the gradient of the i-th layer weight in the pre-trained model.

[0026] In a second aspect, an embodiment of the present invention further provides a satellite inversion cloud classification device, comprising:

[0027] An acquisition unit, configured to acquire an infrared remote sensing image sample acquired by a first satellite sensor and cloud classification information corresponding to the infrared remote sensing image sample acquired by a second satellite sensor;

[0028] A two-stage training unit, configured to perform two-stage training on an original cloud classification model using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a target cloud classification model, wherein the original cloud classification model includes a pre-trained model, a normalization layer, a Flatten layer, a first fully connected layer, and a second fully connected layer connected in sequence; when performing the first stage of the two-stage training, the pre-trained model is frozen, and the original cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a first stage cloud classification model; when performing the second stage of the two-stage training, the fully connected layers in the pre-trained model are gradually unfrozen, and then the first stage cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain the target cloud classification model;

[0029] The cloud classification processing unit is used to perform cloud classification processing on the infrared remote sensing image to be classified using the target cloud classification model to obtain cloud classification results for each position in the infrared remote sensing image to be classified.

[0030] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.

[0031] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to execute any method described in the first aspect above.

[0032] In an embodiment of the present invention, a satellite inversion cloud classification method is provided, comprising: obtaining infrared remote sensing image samples collected by a first satellite sensor and cloud classification information corresponding to the infrared remote sensing image samples collected by a second satellite sensor; performing two-stage training on an original cloud classification model using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a target cloud classification model, wherein the original cloud classification model comprises a pre-trained model, a normalization layer, a Flatten layer, a first fully connected layer, and a second fully connected layer connected in sequence; during the first stage of the two-stage training, the pre-trained model is frozen, and the original cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a first-stage cloud classification model; during the second stage of the two-stage training, the fully connected layers in the pre-trained model are gradually unfrozen, and then the first-stage cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a target cloud classification model; and the target cloud classification model is used to perform cloud classification processing on the infrared remote sensing image to be classified to obtain cloud classification results for each position in the infrared remote sensing image to be classified. It can be seen from the above description that the satellite inversion cloud classification method of the present invention is based on the pre-training model, and is improved and optimized on this basis to adapt to the specific needs of satellite inversion cloud classification. First, the pre-training model is incorporated into the cloud classification model to make full use of its rich feature representation capabilities learned on large-scale image data; secondly, the present invention adopts two optimization strategies to further improve the model performance: first, all layers of the pre-training model are frozen, and only the subsequent normalization layer, Flatten layer, first fully connected layer and second fully connected layer are trained, so that the model can adapt to specific cloud classification tasks; then, the fully connected layers in the pre-training model are gradually unfrozen, and the model is recompiled to fine-tune the weights of the unfrozen fully connected layer, normalization layer, Flatten layer, first fully connected layer and second fully connected layer, so as to further improve the performance of the model in cloud classification tasks. The target cloud classification model obtained by the present invention has achieved significant improvements in cloud classification accuracy and efficiency. It can more accurately identify cloud areas in satellite images (i.e., infrared remote sensing images to be classified) and can perform cloud classification processing more efficiently, alleviating the technical problems that traditional deep learning models cannot adapt to the characteristics of satellite inversion cloud classification tasks, and the resulting cloud classification results have poor accuracy and low efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 A flowchart of a satellite inversion cloud classification method provided by an embodiment of the present invention;

[0035] Figure 2 A schematic diagram of the structure of a cloud classification model provided by an embodiment of the present invention;

[0036] Figure 3 A schematic diagram of cloud classification model training and application provided by an embodiment of the present invention;

[0037] Figure 4 A schematic diagram of a satellite inversion cloud classification device provided in an embodiment of the present invention;

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

[0039] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] Traditional deep learning models cannot adapt to the characteristics of satellite inversion cloud classification tasks, and the obtained cloud classification results are of poor accuracy and low efficiency.

[0041] Based on this, in the satellite inversion cloud classification method of the present invention, the pre-training model is used as the basis, and improvements and optimizations are made on the basis of the pre-training model to adapt to the specific needs of satellite inversion cloud classification. First, the pre-training model is incorporated into the cloud classification model to make full use of its rich feature representation capabilities learned on large-scale image data; secondly, the present invention adopts two optimization strategies to further improve the model performance: first, all layers of the pre-training model are frozen, and only the subsequent normalization layer, Flatten layer, first fully connected layer and second fully connected layer are trained, so that the model can adapt to specific cloud classification tasks; then, the fully connected layers in the pre-training model are gradually unfrozen, and the model is recompiled to fine-tune the weights of the unfrozen fully connected layer, normalization layer, Flatten layer, first fully connected layer and second fully connected layer, so as to further improve the performance of the model in the cloud classification task. The target cloud classification model obtained by the present invention has achieved significant improvements in cloud classification accuracy and efficiency, can more accurately identify cloud areas in satellite images (i.e., infrared remote sensing images to be classified), and can more efficiently perform cloud classification processing.

[0042] To facilitate understanding of this embodiment, a satellite inversion cloud classification method disclosed in an embodiment of the present invention is first introduced in detail.

[0043] Embodiment 1:

[0044] According to an embodiment of the present invention, an embodiment of a satellite inversion cloud classification method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0045] Figure 1 is a flow chart of a satellite inversion cloud classification method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0046] Step S102, acquiring infrared remote sensing image samples collected by the first satellite sensor and cloud classification information corresponding to the infrared remote sensing image samples collected by the second satellite sensor;

[0047] Step S104, using infrared remote sensing image samples and cloud classification information corresponding to the infrared remote sensing image samples to perform two-stage training on the original cloud classification model to obtain a target cloud classification model, wherein the original cloud classification model includes a pre-trained model, a normalization layer, a Flatten layer, a first fully connected layer, and a second fully connected layer connected in sequence. When performing the first stage of the two-stage training, the pre-trained model is frozen, and the original cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain the first stage cloud classification model. When performing the second stage of the two-stage training, the fully connected layers in the pre-trained model are gradually unfrozen, and then the first stage cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain the target cloud classification model.

[0048] Step S106, using the target cloud classification model to perform cloud classification processing on the infrared remote sensing image to be classified, and obtaining cloud classification results for each position in the infrared remote sensing image to be classified.

[0049] In an embodiment of the present invention, a satellite inversion cloud classification method is provided, comprising: obtaining infrared remote sensing image samples collected by a first satellite sensor and cloud classification information corresponding to the infrared remote sensing image samples collected by a second satellite sensor; performing two-stage training on an original cloud classification model using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a target cloud classification model, wherein the original cloud classification model comprises a pre-trained model, a normalization layer, a Flatten layer, a first fully connected layer, and a second fully connected layer connected in sequence; during the first stage of the two-stage training, the pre-trained model is frozen, and the original cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a first-stage cloud classification model; during the second stage of the two-stage training, the fully connected layers in the pre-trained model are gradually unfrozen, and then the first-stage cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a target cloud classification model; and the target cloud classification model is used to perform cloud classification processing on the infrared remote sensing image to be classified to obtain cloud classification results for each position in the infrared remote sensing image to be classified. It can be seen from the above description that the satellite inversion cloud classification method of the present invention is based on the pre-training model, and is improved and optimized on this basis to adapt to the specific needs of satellite inversion cloud classification. First, the pre-training model is incorporated into the cloud classification model to make full use of its rich feature representation capabilities learned on large-scale image data; secondly, the present invention adopts two optimization strategies to further improve the model performance: first, all layers of the pre-training model are frozen, and only the subsequent normalization layer, Flatten layer, first fully connected layer and second fully connected layer are trained, so that the model can adapt to specific cloud classification tasks; then, the fully connected layers in the pre-training model are gradually unfrozen, and the model is recompiled to fine-tune the weights of the unfrozen fully connected layer, normalization layer, Flatten layer, first fully connected layer and second fully connected layer, so as to further improve the performance of the model in cloud classification tasks. The target cloud classification model obtained by the present invention has achieved significant improvements in cloud classification accuracy and efficiency. It can more accurately identify cloud areas in satellite images (i.e., infrared remote sensing images to be classified) and can perform cloud classification processing more efficiently, alleviating the technical problems that traditional deep learning models cannot adapt to the characteristics of satellite inversion cloud classification tasks, and the resulting cloud classification results have poor accuracy and low efficiency.

[0050] The above content briefly introduces the satellite inversion cloud classification method of the present invention, and the specific contents involved therein are described in detail below.

[0051] In an optional embodiment of the present invention, obtaining an infrared remote sensing image sample collected by a first satellite sensor and cloud classification information corresponding to the infrared remote sensing image sample collected by a second satellite sensor specifically includes the following steps:

[0052] (1) obtaining first meteorological observation data collected by a sensor carried by a first satellite and transmitted by the first satellite;

[0053] In an embodiment of the present invention, the first satellite may be a FY-4A satellite, which is a Chinese meteorological satellite and the fourth generation polar-orbiting meteorological satellite in the history of Chinese meteorological satellite development. The FY-4A satellite was successfully launched by the Long March 3B carrier rocket on December 11, 2016, with the mission of providing all-weather, all-time atmospheric, cloud, water vapor and other meteorological observation data for China and surrounding areas. The FY-4A satellite is equipped with a variety of advanced meteorological detection instruments (which can be understood as sensors), including optical imagers, lightning detectors, ultraviolet radiation meters, etc., which can obtain high-resolution and high-precision meteorological observation data. These data can be used in the fields of meteorological disaster monitoring and early warning, meteorological scientific research and meteorological services. The FY-4A satellite has a global coverage capability and can monitor and predict meteorological changes around the world. At the same time, the FY-4A satellite can also share data and conduct collaborative observations with other meteorological satellites and ground meteorological observation stations to improve the accuracy and reliability of meteorological monitoring. FY-4A data (i.e. the first meteorological observation data) has important meteorological monitoring and early warning value, and plays an important role in improving the level of meteorological services and protecting people’s lives and property.

[0054] The data transmitted by the FY-4A satellite mainly includes two formats: L1 data and L2 data.

[0055] L1 data (Level 1 data):

[0056] L1 data is raw remote sensing data, i.e., unprocessed data received directly from satellite sensors;

[0057] L1 data is usually stored in binary format and contains a lot of digital information, such as brightness value, radiation value, etc.

[0058] L1 data needs to be preprocessed and corrected to obtain L2 data.

[0059] L2 data (Level 2 data):

[0060] L2 data is advanced meteorological product data obtained after processing and correction based on L1 data;

[0061] L2 data are usually stored in a standard format, such as NetCDF format, and contain information on various meteorological parameters, such as temperature, humidity, cloud cover, etc.;

[0062] L2 data has undergone quality control and verification and can be directly used in applications in meteorological monitoring, forecasting, scientific research and other fields.

[0063] In addition to the above two main data formats, FY-4A data also includes metadata, which is used to describe and record the data's attributes, sources, time, etc. Metadata plays an important role in data management, query, and use.

[0064] FY-4A data are mainly in L1 and L2 formats, providing rich meteorological observation information and an important reference for meteorological experts and decision makers.

[0065] The multiple channels (Channel 08 to Channel 14) in the FY-4A data represent satellite observation data in different bands or frequency bands. Each channel captures and transmits a specific type of information, which can provide observation data on different aspects such as the atmosphere, clouds, and the surface.

[0066] The training set is composed of multiple channels. This practice is usually called feature merging or feature splicing. Its purpose is to combine different channel data (Channel) as the input features of the model to provide more comprehensive and rich information for model training.

[0067] After processing and parsing, the data from these channels can provide various information about the atmosphere, clouds, surface temperature, etc., which is helpful for weather forecasting, cloud classification, climate research, etc. In the project, the data from these channels are combined as the input features of the model, which can comprehensively utilize various information to improve the model's expression ability and prediction accuracy. By analyzing the data from these channels, we can better understand the characteristics of the atmosphere and clouds, thereby achieving more accurate weather forecasting and cloud classification and other applications.

[0068] (2) performing a first preprocessing on the first meteorological observation data to obtain an infrared remote sensing image sample, wherein the first preprocessing includes: correction, quality control, geographic positioning, data normalization, dimension reduction, and feature extraction;

[0069] Specifically, the FY4A satellite data is used as a training set. FY4A satellite data acquisition: First, it is necessary to obtain the observation data files transmitted by the FY4A satellite from the relevant data center or satellite data receiving station. The FY4A satellite is equipped with a variety of sensors, including visible light, infrared and lightning detectors, which can provide high-resolution meteorological observation data.

[0070] Data preprocessing: Preprocess the FY4A satellite data, including quality control, correction, geolocation, etc., to ensure the accuracy and integrity of the data. These steps can be completed using specialized meteorological data processing software.

[0071] FY4A data is used as the input feature (X) of the training set. FY4A data contains cloud images observed by satellites. FY4A data includes infrared remote sensing images acquired by satellite sensors. During the training process, FY4A data is processed into a suitable format as the input feature (X) of the model. Before training the model, the FY4A data must be preprocessed to ensure that its format and structure meet the requirements of the model. This may include: data normalization, dimensionality reduction, feature extraction and other operations.

[0072] (3) obtaining second meteorological observation data collected by a sensor carried by a second satellite;

[0073] In an embodiment of the present invention, the second satellite may be Himawari-8. Himawari-8 is a geostationary meteorological satellite successfully launched by the Japan Meteorological Agency (JMA) in 2014, and is intended to provide high-quality meteorological observation data. Himawari-8 mainly covers the Pacific region and provides all-weather meteorological monitoring services for the Asia-Pacific region. It is equipped with a variety of advanced meteorological detection instruments, including an all-disc scanner (AHI), a lightning detector, a space environment monitor, and the like. These instruments can provide high-resolution, high-frequency meteorological observation data, including: cloud maps, water vapor maps, temperature maps, and the like. The data of this satellite are mainly the following:

[0074] Visible light and infrared images: Visible light and infrared images obtained by the AHI instrument can be used to monitor meteorological elements such as clouds, precipitation, and temperature, helping meteorological forecasters to make weather forecasts and disaster monitoring.

[0075] Lightning data: Lightning data obtained by lightning detectors can be used to monitor thunderstorm activities and weather disasters, and improve the monitoring and early warning capabilities of extreme weather events.

[0076] Space environment data: The Sunflower-8 satellite can also monitor and diagnose space environment parameters such as the Earth's magnetic field and ionospheric activity, providing support for space weather forecasts and satellite communications.

[0077] The data of the Sunflower-8 satellite are stored in binary format, usually in standard data formats such as NetCDF, GRIB, etc. These data can be parsed and analyzed by specialized meteorological data processing software, providing important support for weather forecasting, scientific research and disaster monitoring.

[0078] The data of Sunflower-8 satellite mainly adopts two standard data formats: NetCDF (Network Common Data Form) and GRIB (GRIDded Binary). NetCDF is a self-describing, portable binary format, usually used to store scientific and meteorological data. NetCDF data files contain metadata information such as variables, dimensions, coordinate axes, etc., making data reading, writing and sharing more convenient and flexible. GRIB is a binary-based meteorological data format, usually used to store and transmit atmospheric and ocean forecast data. GRIB data organizes data in a hierarchical grid manner, supports data compression and encryption, and can effectively save storage space and network bandwidth. The use of Sunflower-8 satellite data usually requires the following steps:

[0079] Data acquisition: The data files transmitted by the Sunflower-8 satellite are obtained through the satellite data receiving station or data center.

[0080] Data decoding: Decode data files into readable data formats such as NetCDF or GRIB.

[0081] Data preprocessing: Perform quality control, correction, and interpolation on data to improve its accuracy and completeness.

[0082] Data analysis: Use specialized meteorological data processing software to analyze and model data to obtain various meteorological products and forecast results.

[0083] Data application: Use the analysis results in fields such as weather forecasting, disaster monitoring, and scientific research to provide important meteorological services and support for human society.

[0084] The present invention uses the Sunflower-8 satellite data as the true value to classify the cloud labels.

[0085] Sunflower-8 satellite data acquisition: It is necessary to obtain the observation data files transmitted by the Sunflower-8 satellite as a true value data set to verify and evaluate the classification model of FY4A satellite data. The data of the Sunflower-8 satellite includes visible light and infrared images, which can be used to monitor clouds and other meteorological elements.

[0086] The Sunflower 8 data is used as the label of the training set (Y). Specifically, the Sunflower 8 data contains relevant cloud classification information and is used as the label or target output (Y) of the model.

[0087] (4) performing a second preprocessing on the second meteorological observation data to obtain cloud classification information, wherein the second preprocessing includes: correction, quality control, interpolation, geographic positioning, data normalization, dimension reduction, and feature extraction;

[0088] Specifically, before training the model, the Sunflower 8 data needs to be preprocessed to ensure that its format and structure meet the requirements of the model. This may include: data normalization, dimensionality reduction, feature extraction and other operations. The Sunflower 8 data includes the corresponding cloud classification information obtained through manual annotation or other means.

[0089] (5) Associating and labeling the infrared remote sensing image samples with the corresponding cloud classification information to obtain the cloud classification information corresponding to the infrared remote sensing image samples, wherein the associated labeling includes: associating and labeling the infrared remote sensing image samples with the cloud classification information in space and time.

[0090] Specifically, data labeling and classification model training: using FY4A satellite data as the training set, combined with Sunflower 8 satellite data as the true value, to label the cloud classification labels, and train the cloud classification model based on the labeled data. Commonly used models include: deep learning models, such as convolutional neural networks (CNN) and recurrent neural networks (RNN).

[0091] Model verification and evaluation: After training is completed, the performance of the model needs to be evaluated using the Sunflower-8 satellite data as a validation set, including indicators such as accuracy, recall, and precision, to ensure that the model has good generalization capabilities for cloud classification.

[0092] Model application: Finally, the trained cloud classification model can be applied to actual weather forecasting, disaster monitoring and other fields to provide accurate meteorological services and support for human society.

[0093] During the training process, infrared remote sensing image samples and cloud classification information corresponding to the infrared remote sensing image samples are used to train the model so that the model can learn how to predict the corresponding cloud classification information from the input satellite observation data.

[0094] When training the model, the model can learn the cloud classification information corresponding to the sunflower 8 data from the FY4A data, thereby realizing the function of cloud classification prediction.

[0095] FY4A data and Sunflower 8 data are used as input features and labels of the model in the training set respectively. By learning them, the model can realize the mapping from satellite observation data to cloud classification information, and then realize the function of cloud classification prediction.

[0096] In an optional embodiment of the present invention, the first fully connected layer and the second fully connected layer include regularization terms, a Dropout layer is added after the first fully connected layer and the second fully connected layer, the number of neurons in the first fully connected layer is 256, the number of neurons in the second fully connected layer is 128, the first fully connected layer uses a ReLU activation function, and the second fully connected layer uses a softmax activation function.

[0097] Specifically, the present invention uses the tensorflow deep learning framework to design the network structure as follows:

[0098] like Figure 2 As shown in the figure, the basic network structure contains a pre-trained model (base_model), a normalization layer, a Flatten layer, a first fully connected layer, and a second fully connected layer (Dense layer), where the first fully connected layer uses a ReLU activation function and the second fully connected layer uses a softmax activation function to output classification probabilities. Although this network structure itself is effective, some optimizations can still be performed to improve performance or reduce the risk of overfitting.

[0099] Here are some suggested optimizations:

[0100] Add regularization: Regularization terms such as L2 regularization can be added to fully connected layers to help reduce the risk of overfitting.

[0101] Adding Dropout: Adding a Dropout layer after the first fully connected layer and the second fully connected layer can help prevent overfitting and improve the generalization ability of the model.

[0102] Adjust the number of neurons in the fully connected layer: You can try different numbers of neurons to adjust the complexity of the model to get better performance. The number of neurons in the first fully connected layer is 256, and the number of neurons in the second fully connected layer is 128.

[0103] Use different optimizers and learning rates: Try different optimizers (such as Adam, SGD, etc.) and learning rates to optimize the model training process.

[0104] Try different activation functions: In addition to ReLU and softmax, you can also try other activation functions such as LeakyReLU, ELU, etc. to see if it can improve the performance.

[0105] Fine-tune the pre-trained model: If base_model is a model that has been pre-trained on a large-scale dataset, you can try to unfreeze the fully connected layers to fine-tune the entire model to further adapt it to a specific task.

[0106] By trying some of the above optimization methods, the model can be further improved and its performance in satellite inversion cloud classification tasks can be enhanced.

[0107] According to the above optimization method, the present invention can make some adjustments and optimizations to the network structure, as follows:

[0108] [Optimization 1] Add regularization terms: Add L2 regularization terms to the first and second fully connected layers to help reduce the risk of overfitting.

[0109] [Optimization 2] Add Dropout layer: Add Dropout layer after the first fully connected layer and the second fully connected layer to further prevent overfitting.

[0110] Through the above optimization, the present invention adds L2 regularization terms to the first fully connected layer and the second fully connected layer, and adds a Dropout layer after the layer. This can help improve the generalization ability of the model and reduce the risk of overfitting. The parameters of the regularization term and the Dropout layer can be adjusted according to actual conditions to obtain the best performance.

[0111] The optimization method of the present invention is not limited to [optimization 1] and [optimization 2]. The optimization methods generated by the interaction and combination of [optimization 1] [optimization 2] [optimization 3] [optimization 4] [optimization 5] [optimization 6] are all effective methods for improving the model of the present invention.

[0112] The following is an introduction to L2 regularization and Dropout layers:

[0113] L2 regularization: L2 regularization is a commonly used regularization method, and its mathematical form is as follows:

[0114]

[0115] Among them, λ is the regularization coefficient and w is the weight parameter of the model. The regularization term will be added to the loss function to penalize excessive weight values. By controlling the size of λ, the influence of the regularization term can be adjusted.

[0116] Dropout layer: Dropout layer is a commonly used regularization method, and its mathematical form is as follows:

[0117] y=r*x

[0118] Among them, x is the input vector, r is a binary random vector, each element has a certain probability of being set to 0, and y is the output vector. By randomly discarding a certain proportion of neurons, the Dropout layer can reduce the dependency between neurons, thereby improving generalization ability.

[0119] To keep the same behavior during testing, the Dropout layer also needs to be scaled:

[0120] y=(1-p)*r*x

[0121] Where p is the drop probability. The above formula describes the principle and implementation of L2 regularization and Dropout layer. Through these technologies, the complexity and generalization ability of the model can be effectively controlled, thereby improving the performance of the model.

[0122] In an optional embodiment of the present invention, the pre-trained model includes: a VGG16 network, wherein the VGG16 network includes an input layer, a convolutional layer, and a fully connected layer connected in sequence.

[0123] Specifically, the present invention introduces the pre-trained VGG16 network as part of the backbone network. Through this step, the present invention can make full use of the rich feature representation capabilities learned by VGG16 on large-scale image datasets. Specifically, the present invention retains the convolutional layer part of the VGG16 network, which has learned common feature extractors such as edges, textures, etc. during the training process. These features are of great significance for cloud classification tasks, because the shape and texture of clouds are crucial to distinguishing different types of clouds.

[0124] After incorporating the VGG16 network into the network structure of the present invention, a classifier is constructed by connecting the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer of the present invention. These first fully connected layer and the second fully connected layer are responsible for mapping the features extracted from the VGG16 part to the final

[0125] Cloud classification label space. In this way, the present invention realizes the combination of the feature representation capability of the pre-trained model and the satellite cloud classification task of the present invention, thereby providing the model with a more powerful feature expression capability and improving the model's recognition accuracy for different types of clouds. The application of this technical detail enables the satellite inversion cloud classification method of the present invention to be effectively optimized for specific cloud classification tasks while utilizing the pre-trained model, thereby achieving better classification performance.

[0126] In the present invention, VGG16 is used for the pre-training model, and its specific technical details are as follows:

[0127] VGG16 is a classic convolutional neural network architecture developed by the Visual Geometry Group at the University of Oxford. It achieved good results in the ImageNet Large Scale Visual Recognition Challenge. The following is the network architecture of VGG16:

[0128] Input layer: accepts input image data, usually RGB color images;

[0129] Convolutional layer part:

[0130] 13 convolutional layers, including multiple 3x3 convolution kernels and ReLU activation functions.

[0131] Each convolutional layer is followed by a 2x2 max pooling layer for downsampling.

[0132] Fully connected layer part:

[0133] 3 fully connected layers, each followed by a ReLU activation function.

[0134] The last layer is the output layer with 1000 neurons for classification of the 1000 categories of the ImageNet dataset.

[0135] VGG16 is famous for its simple and deep architecture. Its core idea is to increase the depth of the network by stacking multiple small-sized convolution kernels, thereby improving the model's ability to learn image features.

[0136] The advantage of this architecture is that it is relatively simple, easy to understand and implement, and performs well in many computer vision tasks. However, due to the deep network, the training and inference are computationally expensive, which may not be applicable in resource-constrained environments.

[0137] In an optional embodiment of the present invention, the pre-trained model is frozen, and the original cloud classification model is trained using infrared remote sensing image samples and cloud classification information corresponding to the infrared remote sensing image samples, including:

[0138] The pre-trained model is frozen, and the normalization layer, Flatten layer, first fully connected layer and second fully connected layer are trained using infrared remote sensing image samples and cloud classification information corresponding to the infrared remote sensing image samples to obtain the first-stage cloud classification model.

[0139] In an optional embodiment of the present invention, the fully connected layers in the pre-trained model are gradually unfrozen, and then the first-stage cloud classification model is trained using infrared remote sensing image samples and cloud classification information corresponding to the infrared remote sensing image samples, including:

[0140] The fully connected layers in the pre-trained model are gradually unfrozen, and then the unfrozen fully connected layers, normalization layers, Flatten layers, the first fully connected layers, and the second fully connected layers are trained using infrared remote sensing image samples and cloud classification information corresponding to the infrared remote sensing image samples to obtain the target cloud classification model.

[0141] Specifically, Figure 3 As shown, the training process of the target cloud classification model is shown. The present invention freezes all convolutional layers of the pre-trained model, which means that the weights of these layers will not be updated during the training process. The purpose of this is to maintain the general feature representation capabilities learned by the pre-trained model on large-scale image data, while only training the top fully connected layers of the pre-trained model. By freezing the convolutional layers, the present invention enables the model to focus on learning feature representations adapted to specific satellite cloud classification tasks without losing the knowledge learned by the pre-trained model on general image recognition tasks.

[0142] After freezing all the convolutional layers of the pre-trained model, the present invention only trains the top fully connected layers. These top fully connected layers are responsible for mapping the features extracted by the convolutional layers in combination with the normalization layer, Flatten layer, first fully connected layer and second fully connected layer of the present invention to the final cloud classification label space. Through this optimization strategy, the present invention can make the model better adapt to specific cloud classification tasks and improve the performance of the model on this task. The application of this technical detail enables the satellite inversion cloud classification method of the present invention to more accurately identify different cloud types in satellite images, and improves the training efficiency and generalization ability of the model.

[0143] By freezing all convolutional layers of the pre-trained model and training only the top fully connected layer, the feature representation capabilities learned by the pre-trained model on general image data can be maintained, and the model can focus on learning feature representations adapted to specific cloud classification tasks. Such a design can improve the performance of the model on specific tasks and avoid losing the knowledge learned in general image recognition tasks.

[0144] The application of this optimization strategy enables the model to better adapt to the cloud classification task and improve the performance of the model on this task. It helps the model to more accurately identify different cloud types in satellite images, while improving the training efficiency and generalization ability of the model.

[0145] When performing two-stage training, the following more complex but more standardized mathematical formula can be used:

[0146] Phase 1 (freeze all layers of the pre-trained model):

[0147] Loss function:

[0148] Parameter update: θ←θ*α*λ θ *L1

[0149] The second stage (unfreeze the last few layers (fully connected layers) of the pre-trained model and fine-tune the weights):

[0150] Loss function:

[0151] Parameter update: θ←θ*α*λ θ *L2

[0152] In the above formula, N is the number of training samples, y i is the true label, f θ (x i ) is the output of the model (including: pre-trained model and the second fully connected layer), F is the loss function (such as cross entropy loss), θ is all the parameters of the model, α is the learning rate, and Frac1 is the probability value / frequency value.

[0153] When performing two-stage training on the original cloud classification model, there are several ways to try to optimize training performance and efficiency:

[0154] Learning rate adjustment: When fine-tuning in the second stage, you can try using smaller learning rates, especially for the unfrozen layers. This helps avoid over-adjusting the features that the pre-trained model has learned.

[0155] Unfreeze layers gradually: Instead of unfreezing all layers at once, unfreeze more layers gradually. You can unfreeze the last few layers first, and then unfreeze more layers gradually during training to balance the newly learned features with the preservation of the original features.

[0156] Data augmentation: In both stages of training, data augmentation techniques such as random cropping, flipping, rotation, etc. can be used to expand the training set and increase the generalization ability of the model.

[0157] Regularization techniques: Regularization techniques such as L1 regularization, L2 regularization, or Dropout can be introduced during the training process to help prevent overfitting.

[0158] Monitor the validation set: During the two-stage training, it is necessary to monitor the performance of the validation set in a timely manner to avoid overfitting, and adjust the training strategy based on the performance of the validation set.

[0159] Through the above optimization methods, the two-stage training effect of the VGG16 network can be improved, and the performance and generalization ability of the model can be improved.

[0160] In an optional embodiment of the present invention, the fully connected layers in the pre-trained model are gradually unfrozen, and then the unfrozen fully connected layers, normalization layers, Flatten layers, first fully connected layers, and second fully connected layers are trained using infrared remote sensing image samples and cloud classification information corresponding to the infrared remote sensing image samples, including the following steps:

[0161] (1) obtaining a plurality of ordered mask vectors to determine the target layer whose weights are to be updated in the first-stage cloud classification model according to the elements in each mask vector, wherein the number of elements in the mask vector is the same as the number of layers in the first-stage cloud classification model, and in the plurality of ordered mask vectors, in the first mask vector, the values ​​of the last preset number of elements in the elements corresponding to the pre-trained model are 1, the values ​​of the elements corresponding to the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer are 1, and the values ​​of the remaining elements are 0; in the second mask vector, the values ​​of the last 2 times the preset number of elements in the elements corresponding to the pre-trained model are 1, the values ​​of the elements corresponding to the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer are 1, and the values ​​of the remaining elements are 0, and so on, until the values ​​of all elements corresponding to the fully connected layers in the pre-trained model are 1;

[0162] (2) Update the formula w according to the weight new,i =w old,i -α×m i × gradient i Update the weights of each layer in the first stage cloud classification model, where w new,i represents the updated weight of the i-th layer in the pre-trained model, w old,i represents the weight of the i-th layer before updating in the pre-trained model, α represents the learning rate, and m i Represents the i-th element of the current mask vector in the mask vector, gradient i Represents the gradient of the i-th layer weight in the pre-trained model.

[0163] Specifically, the learning rate adjustment related formula is described as follows:

[0164] During the training of deep learning models, learning rate adjustment is usually implemented through optimizers (such as SGD, Adam, etc.), which are responsible for updating the weights of the model according to the calculated gradients. The learning rate (usually denoted as α or lr) is an important parameter that controls the update step size.

[0165] The general formula for weight update can be expressed as: w_new = w_old-α*gradient

[0166] Among them, w_new is the updated weight, w_old is the weight before update, α is the learning rate, and gradient is the gradient of the loss function with respect to the weight.

[0167] When fine-tuning a pre-trained model, a smaller learning rate α_small can be used for the unfrozen layers (i.e., those that start to participate in training), while the learning rate remains at 0 for the frozen layers (those that do not participate in training). Suppose there is a pre-trained model in which some layers are unfrozen during fine-tuning. The weights of the model can be divided into two parts: W_frozen (the weights of the frozen layers) and W_unfrozen (the weights of the unfrozen layers):

[0168] For frozen layers, the weight update formula is: W-frozen_new=W_frozen_old

[0169] That is, the weight of the frozen layer remains unchanged during the fine-tuning process. For the unfrozen layer, the weight update formula is:

[0170] W_unfrozen_new=W_unfrozen_old-α_small*gradient_unfrozen

[0171] Among them, α_small is a small learning rate, and gradient_unfrozen is the gradient of the unfrozen layer weights.

[0172] In this way, different learning rates can be used to update the weights of frozen and unfrozen layers separately, thereby preserving the features learned by the pretrained model during fine-tuning while allowing the model to adapt to new tasks.

[0173] The learning rate adjustment strategy can also include other methods, such as learning rate decay, learning rate warmup, etc. These strategies can further optimize the model training process.

[0174] The formula for gradually thawing the layer is described as follows:

[0175] During the fine-tuning process of gradually unfreezing layers, the model can be divided into multiple layer groups, each containing a certain number of layers. The unfreezing process can be seen as a process of gradually switching more layer groups from a frozen state to a trainable state. Assuming that the model has a total of N layers, it is divided into M layer groups, each containing n layers (N = M × n). At each stage, a layer group is unfrozen and its weights are updated during training. A variable k can be defined to represent the index of the currently unfrozen layer group, initially k = 0, indicating that no layers are unfrozen. At each unfreezing stage, k is increased by 1 and the kth layer group is unfrozen.

[0176] The general formula for weight update still applies: new =w old -α×gradient

[0177] Among them, w new is the updated weight, w old is the weight before update, α is the learning rate, and gradient is the gradient of the loss function with respect to the weight.

[0178] In the process of gradually unfreezing the layers, I introduce a mask vector m whose length is the same as the number of model layers (m∈{0,1} N ), used to indicate which layers are trainable (m i = 1) and which layers are frozen (m i =0). Initially, the mask values ​​of all layers of the pre-trained model are 0 (i.e., all layers are frozen): m (0) =[0, 0, ..., 0].

[0179] At each unfreezing stage k, the mask value of the k-th layer group is set to 1 to allow these layers to participate in training:

[0180] in, If the i-th layer belongs to the k-th layer group or the previous layer group, otherwise

[0181] During the training process, the mask vector m is used to determine whether to update the weight of each layer. The weight update formula becomes: new,i =w old,i -α×m i × gradient i

[0182] Where rni is the i-th element of the mask vector m, and gradienti is the gradient of the i-th layer weight. The weights will only be updated when mi=1 (i.e. the layer is trainable).

[0183] In this way, the mask vector m can be used to control which layers participate in training, thus achieving the effect of gradually unfreezing the layers. In each unfreezing stage, the mask values ​​of more layer groups are gradually set to 1 to allow these layers to update their weights during training.

[0184] The method of the present invention is a satellite inversion cloud classification method based on transfer learning network structure optimization, which aims to improve the accuracy and efficiency of cloud classification, has broad application prospects, and is of great significance to the development of satellite remote sensing. By combining transfer learning technology with the characteristics of satellite remote sensing data, a more effective solution is provided for the processing and application of satellite remote sensing data.

[0185] Embodiment 2:

[0186] An embodiment of the present invention further provides a satellite inversion cloud classification device, which is mainly used to execute the satellite inversion cloud classification method provided in the first embodiment of the present invention. The satellite inversion cloud classification device provided in the embodiment of the present invention is specifically introduced below.

[0187] Figure 4 is a schematic diagram of a satellite inversion cloud classification device according to an embodiment of the present invention. Figure 4 As shown, the device mainly includes: an acquisition unit 10, a two-stage training unit 20, and a cloud classification processing unit 30, wherein:

[0188] An acquisition unit, configured to acquire the infrared remote sensing image samples acquired by the first satellite sensor and cloud classification information corresponding to the infrared remote sensing image samples acquired by the second satellite sensor;

[0189] A two-stage training unit, for performing two-stage training on an original cloud classification model using infrared remote sensing image samples and cloud classification information corresponding to the infrared remote sensing image samples to obtain a target cloud classification model, wherein the original cloud classification model includes a pre-trained model, a normalization layer, a Flatten layer, a first fully connected layer, and a second fully connected layer connected in sequence. When performing the first stage of the two-stage training, the pre-trained model is frozen, and the original cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a first-stage cloud classification model. When performing the second stage of the two-stage training, the fully connected layers in the pre-trained model are gradually unfrozen, and then the first-stage cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a target cloud classification model.

[0190] The cloud classification processing unit is used to perform cloud classification processing on the infrared remote sensing image to be classified using a target cloud classification model to obtain cloud classification results for each position in the infrared remote sensing image to be classified.

[0191] In an embodiment of the present invention, a satellite inversion cloud classification device is provided, comprising: obtaining infrared remote sensing image samples collected by a first satellite sensor and cloud classification information corresponding to the infrared remote sensing image samples collected by a second satellite sensor; performing two-stage training on an original cloud classification model using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a target cloud classification model, wherein the original cloud classification model comprises a pre-trained model, a normalization layer, a Flatten layer, a first fully connected layer, and a second fully connected layer connected in sequence; when performing the first stage training in the two-stage training, freezing the pre-trained model, and training the original cloud classification model using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain the first stage cloud classification model; when performing the second stage training in the two-stage training, gradually unfreezing the fully connected layers in the pre-trained model, and then training the first stage cloud classification model using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain the target cloud classification model; and performing cloud classification processing on the infrared remote sensing image to be classified using the target cloud classification model to obtain cloud classification results for each position in the infrared remote sensing image to be classified. It can be seen from the above description that the satellite inversion cloud classification device of the present invention is based on the pre-trained model, and is improved and optimized on this basis to adapt to the specific needs of satellite inversion cloud classification. First, the pre-trained model is incorporated into the cloud classification model to fully utilize its rich feature representation capabilities learned on large-scale image data; second, the present invention adopts two optimization strategies to further improve the model performance: first, all layers of the pre-trained model are frozen, and only the subsequent normalization layer, Flatten layer, first fully connected layer and second fully connected layer are trained, so that the model can adapt to specific cloud classification tasks; then, the fully connected layers in the pre-trained model are gradually unfrozen, and the model is recompiled to fine-tune the weights of the unfrozen fully connected layer, normalization layer, Flatten layer, first fully connected layer and second fully connected layer, so as to further improve the performance of the model in cloud classification tasks. The target cloud classification model obtained by the present invention has achieved significant improvements in cloud classification accuracy and efficiency. It can more accurately identify cloud areas in satellite images (i.e., infrared remote sensing images to be classified) and can perform cloud classification processing more efficiently, alleviating the technical problems that traditional deep learning models cannot adapt to the characteristics of satellite inversion cloud classification tasks, and the resulting cloud classification results have poor accuracy and low efficiency.

[0192] Optionally, the acquisition unit is also used to: acquire first meteorological observation data collected by a sensor carried by a first satellite; perform a first preprocessing on the first meteorological observation data to obtain infrared remote sensing image samples, wherein the first preprocessing includes: correction, quality control, geolocation, data normalization, dimensionality reduction and feature extraction; acquire second meteorological observation data collected by a sensor carried by a second satellite; perform a second preprocessing on the second meteorological observation data to obtain cloud classification information, wherein the second preprocessing includes: correction, quality control, interpolation, geolocation, data normalization, dimensionality reduction and feature extraction; associate and annotate the infrared remote sensing image samples with corresponding cloud classification information to obtain cloud classification information corresponding to the infrared remote sensing image samples, wherein the associated annotation includes: association annotation of the infrared remote sensing image samples and the cloud classification information in space and time.

[0193] Optionally, the first fully connected layer and the second fully connected layer include regularization terms, a Dropout layer is added after the first fully connected layer and the second fully connected layer, the number of neurons in the first fully connected layer is 256, the number of neurons in the second fully connected layer is 128, the first fully connected layer uses a ReLU activation function, and the second fully connected layer uses a softmax activation function.

[0194] Optionally, the pre-trained model includes: a VGG16 network, wherein the VGG16 network includes an input layer, a convolutional layer, and a fully connected layer connected in sequence.

[0195] Optionally, the two-stage training unit is also used to: freeze the pre-trained model, use infrared remote sensing image samples and cloud classification information corresponding to the infrared remote sensing image samples to train the normalization layer, the Flatten layer, the first fully connected layer and the second fully connected layer to obtain a first-stage cloud classification model.

[0196] Optionally, the two-stage training unit is also used to: gradually unfreeze the fully connected layers in the pre-trained model, and then use infrared remote sensing image samples and cloud classification information corresponding to the infrared remote sensing image samples to train the unfrozen fully connected layers, normalization layers, Flatten layers, first fully connected layers and second fully connected layers to obtain a target cloud classification model.

[0197] Optionally, the two-stage training unit is further used to: obtain a plurality of ordered mask vectors to determine the target layer whose weights are to be updated in the first-stage cloud classification model according to the elements in each mask vector, wherein the number of elements of the mask vector is the same as the number of layers of the first-stage cloud classification model, and in the plurality of ordered mask vectors, in the first mask vector, the values ​​of the last preset number of elements of the elements corresponding to the pre-trained model are 1, the values ​​of the elements corresponding to the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer are 1, and the values ​​of the remaining elements are 0; in the second mask vector, the values ​​of the last 2 times the preset number of elements of the elements corresponding to the pre-trained model are 1, the values ​​of the elements corresponding to the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer are 1, and the values ​​of the remaining elements are 0, and so on, until the values ​​of all elements corresponding to the fully connected layers in the pre-trained model are 1; according to the weight update formula w new,i =w old,i -α×m i × gradient i Update the weights of each layer in the first stage cloud classification model, where w new,i represents the updated weight of the i-th layer in the pre-trained model, w old,i represents the weight of the i-th layer before updating in the pre-trained model, α represents the learning rate, mi represents the i-th element of the current mask vector in the mask vector, and gradient i Represents the gradient of the i-th layer weight in the pre-trained model.

[0198] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0199] like Figure 5 As shown, an electronic device 600 provided in an embodiment of the present application includes: a processor 601, a memory 602 and a bus, wherein the memory 602 stores machine-readable instructions executable by the processor 601. When the electronic device is running, the processor 601 communicates with the memory 602 through the bus, and the processor 601 executes the machine-readable instructions to perform the steps of the above-mentioned satellite inversion cloud classification method.

[0200] Specifically, the memory 602 and the processor 601 can be general-purpose memories and processors, which are not specifically limited here. When the processor 601 runs the computer program stored in the memory 602, the satellite inversion cloud classification method can be executed.

[0201] The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 601. The above processor 601 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.

[0202] Corresponding to the above-mentioned satellite inversion cloud classification method, an embodiment of the present application also provides a computer-readable storage medium, which stores machine-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the steps of the above-mentioned satellite inversion cloud classification method.

[0203] The satellite inversion cloud classification device provided in the embodiment of the present application can be specific hardware on the device or software or firmware installed on the device. The device provided in the embodiment of the present application, its implementation principle and the technical effect produced are the same as those in the aforementioned method embodiment. For the sake of brief description, the parts not mentioned in the device embodiment can refer to the corresponding contents in the aforementioned method embodiment. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can all refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0204] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, 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 communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0205] For another example, the flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0206] 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.

[0207] In addition, each functional unit in the embodiments provided in the present application 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.

[0208] If the function 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 technical solution of the present application can essentially or in other words, the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the satellite inversion cloud classification method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0209] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0210] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solution of the present application, rather than to limit it. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solution recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiment of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A satellite inversion cloud classification method, characterized in that: include: Acquire an infrared remote sensing image sample collected by a first satellite sensor and cloud classification information corresponding to the infrared remote sensing image sample collected by a second satellite sensor; The infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples are used to perform two-stage training on the original cloud classification model to obtain a target cloud classification model, wherein the original cloud classification model includes a pre-trained model, a normalization layer, a Flatten layer, a first fully connected layer, and a second fully connected layer connected in sequence. When performing the first stage of the two-stage training, the pre-trained model is frozen, and the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples are used to train the original cloud classification model to obtain a first-stage cloud classification model. When performing the second stage of the two-stage training, the fully connected layers in the pre-trained model are gradually unfrozen, and then the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples are used to train the first-stage cloud classification model to obtain the target cloud classification model. Using the target cloud classification model to perform cloud classification processing on the infrared remote sensing image to be classified, and obtaining cloud classification results for each position in the infrared remote sensing image to be classified; The step of gradually unfreezing the fully connected layers in the pre-trained model and then training the first-stage cloud classification model using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples includes: gradually unfreezing the fully connected layers in the pre-trained model, and then using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to train the unfrozen fully connected layers, the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer to obtain the target cloud classification model; The method further comprises: gradually unfreezing the fully connected layers in the pre-trained model, and then using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to train the unfrozen fully connected layers, the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer, including: Obtain a plurality of ordered mask vectors to determine the target layer whose weights are to be updated in the first-stage cloud classification model according to the elements in each of the mask vectors, wherein the number of elements of the mask vector is the same as the number of layers of the first-stage cloud classification model, and in the plurality of ordered mask vectors, in the first mask vector, the values ​​of the last preset number of elements of the elements corresponding to the pre-trained model are 1, the values ​​of the elements corresponding to the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer are 1, and the values ​​of the remaining elements are 0; in the second mask vector, the values ​​of the last 2 times the preset number of elements of the elements corresponding to the pre-trained model are 1, the values ​​of the elements corresponding to the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer are 1, and the values ​​of the remaining elements are 0, and so on, until the values ​​of all elements corresponding to the fully connected layers in the pre-trained model are 1; Update the formula w according to the weight new,i =w old,i -α×m i × gradient i Update the weights of each layer in the first stage cloud classification model, where w new,i represents the updated weight of the i-th layer in the pre-trained model, w old,i represents the weight of the i-th layer in the pre-trained model before updating, α represents the learning rate, and m i Represents the i-th element of the current mask vector in the mask vector, gradient i Represents the gradient of the i-th layer weight in the pre-trained model.

2. The method according to claim 1, characterized in that Acquiring an infrared remote sensing image sample collected by a first satellite sensor and cloud classification information corresponding to the infrared remote sensing image sample collected by a second satellite sensor, including: Acquire first meteorological observation data collected by a sensor carried by a first satellite and transmitted by the first satellite; Performing a first preprocessing on the first meteorological observation data to obtain the infrared remote sensing image sample, wherein the first preprocessing includes: correction, quality control, geographic positioning, data normalization, dimension reduction and feature extraction; Acquire second meteorological observation data transmitted by a second satellite and collected by a sensor carried by the second satellite; Performing a second preprocessing on the second meteorological observation data to obtain the cloud classification information, wherein the second preprocessing includes: correction, quality control, interpolation, geographic positioning, data normalization, dimension reduction and feature extraction; The infrared remote sensing image samples are associated and annotated with corresponding cloud classification information to obtain cloud classification information corresponding to the infrared remote sensing image samples, wherein the associated annotations include: associated annotations between the infrared remote sensing image samples and the cloud classification information in space and time.

3. The method according to claim 1, characterized in that The first fully connected layer and the second fully connected layer include regularization terms, and a Dropout layer is added after the first fully connected layer and the second fully connected layer. The number of neurons in the first fully connected layer is 256, and the number of neurons in the second fully connected layer is 128. The first fully connected layer uses a ReLU activation function, and the second fully connected layer uses a softmax activation function.

4. The method according to claim 1, characterized in that: The pre-trained model includes: a VGG16 network, wherein the VGG16 network includes an input layer, a convolutional layer and a fully connected layer connected in sequence.

5. The method according to claim 1, characterized in that Freezing the pre-trained model, and training the original cloud classification model using the infrared remote sensing image samples and cloud classification information corresponding to the infrared remote sensing image samples, including: Freeze the pre-trained model, and use the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to train the normalization layer, the Flatten layer, the first fully connected layer, and the second fully connected layer to obtain the first-stage cloud classification model.

6. A satellite inversion cloud classification device, characterized in that: include: An acquisition unit, configured to acquire an infrared remote sensing image sample acquired by a first satellite sensor and cloud classification information corresponding to the infrared remote sensing image sample acquired by a second satellite sensor; A two-stage training unit, configured to perform two-stage training on an original cloud classification model using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a target cloud classification model, wherein the original cloud classification model includes a pre-trained model, a normalization layer, a Flatten layer, a first fully connected layer, and a second fully connected layer connected in sequence; when performing the first stage of the two-stage training, the pre-trained model is frozen, and the original cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain a first stage cloud classification model; when performing the second stage of the two-stage training, the fully connected layers in the pre-trained model are gradually unfrozen, and then the first stage cloud classification model is trained using the infrared remote sensing image samples and the cloud classification information corresponding to the infrared remote sensing image samples to obtain the target cloud classification model; A cloud classification processing unit, used to perform cloud classification processing on the infrared remote sensing image to be classified using the target cloud classification model, and obtain cloud classification results for each position in the infrared remote sensing image to be classified; The two-stage training unit is further used to: gradually unfreeze the fully connected layer in the pre-trained model, and then use the infrared remote sensing image sample and the cloud classification information corresponding to the infrared remote sensing image sample to train the unfrozen fully connected layer, the normalization layer, the Flatten layer, the first fully connected layer and the second fully connected layer to obtain the target cloud classification model; Wherein, the two-stage training unit is also used to: obtain a plurality of ordered mask vectors to determine the target layer whose weights are to be updated in the first-stage cloud classification model according to the elements in each of the mask vectors, wherein the number of elements of the mask vector is the same as the number of layers of the first-stage cloud classification model, and in the plurality of ordered mask vectors, in the first mask vector, the values ​​of the last preset number of elements of the elements corresponding to the pre-trained model are 1, the values ​​of the elements corresponding to the normalization layer, the Flatten layer, the first fully connected layer and the second fully connected layer are 1, and the values ​​of the remaining elements are 0, and in the second mask vector, the values ​​of the last 2 times the preset number of elements of the elements corresponding to the pre-trained model are 1, the values ​​of the elements corresponding to the normalization layer, the Flatten layer, the first fully connected layer and the second fully connected layer are 1, and the values ​​of the remaining elements are 0, and so on, until the values ​​of all elements corresponding to the fully connected layers in the pre-trained model are 1; according to the weight update formula w new,i =w old,i -α×m i × gradient i Update the weights of each layer in the first stage cloud classification model, where w new,i represents the updated weight of the i-th layer in the pre-trained model, w old,i represents the weight of the i-th layer in the pre-trained model before updating, α represents the learning rate, and m i Represents the i-th element of the current mask vector in the mask vector, gradient i Represents the gradient of the i-th layer weight in the pre-trained model.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to execute the method according to any one of claims 1 to 5.