Design and Implementation of A Cloud Particle Shape Recognition Algorithm Based On MATLAB
Design and Implementation of A Cloud Particle Shape Recognition Algorithm Based On MATLAB
Abstract—Clouds are an important factor affecting climate particles to improve cloud particles recognition accuracy [7].
change and the cloud microphysical characteristics are an Xiao et al. (2019) used the ice crystal images observed from
important aspect to describe the cloud. Airborne two- the Cloud Particle Imager (CPI) to build an ice crystal dataset
dimensional stereo probe detector (2D-S) is widely used in named "China Ice Crystal Database", which consists of 10
domestic meteorological observation for the cloud microphysics shape categories and contains more than 7,000 ice crystal
research. Aiming at the situation that cloud particle shape particle images [8]. Huang et al. (2022) analyzed the
classification based on artificial naked eye is not only subjective distribution characteristics of ice particle habits in different
and different, but also time-consuming and poor in classification precipitation stages, along with temperature and diameter
effect, a cloud particle shape recognition method based on
ranges [9]. The convolution neural network (CNN) has now
convolution neural network (CNN) is proposed. A 21-layer
convolutional neural network model is built by using a
widely and successfully used in image detection area, Justin
lightweight convolution module to realize the automatic shape Ker introduces a lot of examples of CNN applied to medical
recognition of cloud particle shapes. The results show that the image analysis field [10]. Milica M. Badža present a new CNN
model accuracy rate reaches 96%, which is better than architecture for brain tumor classification of three tumor types
traditional manual shape recognition method. and in that case, the accuracy was 96.56% [11]. At present,
there are few researches on automatic recognition and
Keywords-component; cloud particles; shape recognition; classification of cloud particle images from two-dimensional
convolutional neural network; 2D-S stereo probe detector (2D-S). It is of great significance to apply
the CNN model to the recognition of cloud particle images.
I. INTRODUCTION
Clouds are an important factor affecting climate change and II. CLOUD PARTICLE DATASET PARTITION
play an important role in regulating the Earth’s radiation The data source is the cloud particle image data captured
balance [1]. Clouds can affect short-term and local weather by the airborne 2D-S provided by the Weather Modification
changes, and have an impact on global climate change, which Office of Hebei Province and Beijing Weather Modification
is one of the important objects of atmospheric scientific Office. Cloud particle image data collected from two different
research [2]. the cloud microphysical characteristics are an units at different times need to be treated differently in the
important aspect to describe the cloud, and identifying the image preprocessing process. The connected domain labeling
shape of ice crystal particles in clouds is of great significance method is used to segment the particle shapes in the original
for the study of clouds microphysical changes [3]. According image, and 9 types of datasets are manually constructed and
to the method proposed by Holroyd [4], Korolev and Sussman divided into training set and test set.
[5], Wang et al. (2014) proposed a particle shape recognition
method suitable for grayscale probes. The two-dimensional A. Image preprocessing
images of particles are divided into spherical, hexagonal, The original cloud particle image contains multiple particle
irregular, microscopic, aggregated, linear, graupel, and images captured at different times. To perform shape
branched shapes [2]. Huang et al. (2020) proposed a Holroyd recognition on cloud particles, it is first necessary to segment a
threshold algorithm suitable for shape recognition of cloud single cloud particle image from the original image. The
particles measured by cloud imaging probe (CIP) [6]. Huang original images of both data sources contain labels such as time
et al. (2020) further divided complete particles and partial information, it is necessary to convert the original image into a
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on September 28,2023 at 13:17:39 UTC from IEEE Xplore. Restrictions apply.
sets the convolution kernel to 7x7 and 1x1, and weight factor B. GUI interface design
of the last convolution layer is set to 0.1, the number of Relying on MATLAB software, a simple GUI interface is
convolution kernel layers is 128, and the 1x1 convolution built according to the realized functions, which is convenient
kernel plays the role of reducing the dimension and saving the
for the display of experimental functions. According to the
operation time.
structure of the experiment, this experiment displays the main
Set a three-layer pooling layer. The first two layers select functions and key steps realized by the MATLAB program on
maximum pooling to highlight detailed features, and the last the GUI user interface. The GUI interface of this paper is set
layer selects average pooling to select the average value of the with 6 interactive buttons and 2 display windows, which
image to retain the global features. The kernel of the pooling respectively realize the select an original image, Image source
layer is set to 3 and the step is 2. The activation function adopts selection, image segmentation and size unification, input to
the batch normalization operation and the Rectified Linear the trained convolutional neural network model, display the
Unit (ReLU) function to speed up the convergence. The classification result, and close the application; two display
positive part of the ReLU function is not 0, and the negative windows respectively display the process of image processing
part is always 0, so using the ReLU activation function in the and the output of the final classification result. The above 8
deep network will not cause the gradient to be small and controls can simply and comprehensively display the main
explosion problem. Two fully connected layers are set, the first work content of this experiment, and also provide convenience
fully connected layer is set to 1048 neurons, the second fully
for later transplantation, expansion and display to others.
connected layer is set to 9 neurons, and 9 neurons represent the
final convolutional neural network output 9 classification Figure 4 shows the GUI program interface.
results.
After the convolutional neural network model is built, set
the relevant parameters. the number of training times are set to
16, and the minimum batch of each iteration are 15. The
minimum learning rate for gradient descent is 0.001. Set the
learning rate to decrease by 0.1 every 8 epochs of training.
Perform out-of-order processing before each batch of training.
By returning the confusion matrix of the classification results,
the performance of the classification results of each type of
dataset can be evaluated. The performance of the network
model is evaluated by parameters such as accuracy and time
consumption, finally saved the trained CNN model. The
operation process is shown in Figure 3, the flow chart of
building a convolutional neural network model.
Figure 3. Flow chart of building a CNN model • Click the close button to close the program.
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on September 28,2023 at 13:17:39 UTC from IEEE Xplore. Restrictions apply.
IV. ANALYSIS OF RESULTS analysis shows that with the increase of the number of
This experiment relies on the MATLAB software convolution kernel layers, the time consumption also increases.
platform version R2018b to study the parameters affecting the At the same time, it can be found that the influence of the
classification results of the convolutional neural network number of layers of the second layer of convolution kernels is
model. The experimental data are 9 types of training sets and not significant, and the change of the third layer of convolution
test sets that have been manually divided. In this simulation layers has a greater impact on the accuracy of the results.
experiment, two experiments are set up to analysis the
influence of different initial learning rates and the number of TABLE III. THE EFFECT OF THE NUMBER OF CONVOLUTION KERNEL
convolution kernel layers on the model classification results, LAYERS ON ACCURACY
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on September 28,2023 at 13:17:39 UTC from IEEE Xplore. Restrictions apply.
shows the accuracy and loss changes in the training process of thesis. At the same time, I would like to think Mr. Huang
the convolutional neural network. Minsong, due to the epidemic, although we have never been
masked, you have given me great help in guiding me in terms
of professional knowledge.
REFERENCES
[1] V. Ramanathan, R. D. Cess, E. F. Harrison, et al. Cloud radiative forcing
and climate: Results from the earth radiation budget experiment.
Science, 1988, 243(4887): 57-63.
[2] Wang Lei, Li Chengcai, Zhao Zengliang, etc. Application of two-
dimensional particle shape classification technology in cloud
microphysical feature analysis. Atmospheric Science, 2014, 38(02):201-
212.
[3] H. Letu, H. Ishimoto, J. Riedi, et al. Investigation of ice particle habits to
be used for ice cloud remote sensing for the GCOM-C satellite mission.
Atmospheric Chemistry and Physics,2015,15(21),31,665–31,703.
Figure 6. The accuracy and loss changes in the training process [4] E. W. Holroyd. Some techniques and uses of 2D-C habit classification
software for snow particles. Journal of Atmospheric and Oceanic
Technology, 1987, 4:498-511.
V. SUMMARY [5] A. Korolev, B. Sussman. A technique for habit classification of cloud
particles. Journal of Atmospheric and Oceanic Technology, 2000,
The classification of cloud particle shape is of great 17:1048-1057.
significance to meteorological observation and atmospheric [6] Huang Minsong, Lei Hengchi, Wang Xiujuan, Ice particle habit
cloud microphysics research. Previously, the classification of classification method with improved thresholds and its application.
cloud particle shape mostly relied on artificial naked-eye Climate and Environment Research,2020,25(04):419-428.
classification, which is subjectivity and differently. In this [7] Huang Minsong,Lei Hengchi. An improved Holroyd cloud particle
habit identification method and its application. Acta Meteorologica
paper, the original cloud particle image is preprocessed to Sinica,2020,78(02): 289-300
realize the segmentation of single particle image, 9 types of [8] Xiao Haixia, Zhang Feng. Classification of ICE Crystal Habits Observed
cloud particle shape datasets are created manually, divided From Airborne Cloud Particle Imager by Deep Transfer Learning. Earth
into training set and test set, and build a CNN model. The and Space Science, 2019, 6:36-46.
highest accuracy rate of the model reaches 96%, which [9] Huang Minsong, Lei Hengchi. Ice particle habit distribution in stratiform
clouds at different precipitation stages. Transactions of Atmospheric
realizes the automatic classification and recognition of cloud Sciences, 2020,45(02):247-256.
particle shapes with high accuracy. [10] J. Ker, L. Wang, J. Rao and T. Lim, "Deep Learning Applications in
Medical Image Analysis," in IEEE Access, vol. 6, pp. 9375-9389, 2018,
ACKNOWLEDGMENT doi: 10.1109/ACCESS.2017.2788044.
I would like to think my tutor, Mrs. Jiao Ruili. You are [11] Badža MM, Barjaktarović MČ. Classification of Brain Tumors from
not only my class teacher when I first entered the university, MRI Images Using a Convolutional Neural Network. Applied Sciences.
2020; 10(6):1999. https://doi.org/10.3390/app10061999.
but also a teacher who imparts my subject knowledge, thank
you for your guidance from the beginning to the end of my
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on September 28,2023 at 13:17:39 UTC from IEEE Xplore. Restrictions apply.