Weather condition is an important factor that is considered for various decisions. In the industrial world, weather classification is very useful, such as in development of self-driving cars, smart transportation systems, and outdoor vision systems. Manual weather classification by humans is inconsistent and takes a long time. Weather forecast information obtained from the internet is not real time at a specific location. Weather image has unique characteristics because one type of weather can be like another. Computer vision is a branch of computer science to recognize or classify images that can assist in classifying weather images that do not depend on weather forecast information from the internet. This study aims to classify weather images using Convolutional Neural Network (CNN) with Transfer Learning. Four CNN architectures, MobileNetV2, VGG16, DenseNet201, and Xception were used to perform weather image classification. Transfer learning was used to speed up the process of training models to get better performance faster. The proposed method will be applied to the weather image which consists of six classes, cloudy, rainy, shine, sunrise, snowy, and foggy were classified in this study. The experiment result with 5-cross validation and 50 epochs showed that the Xception has the best average accuracy of 90.21% with 10,962 seconds of average training time and MobileNetV2 has the fastest average training time of 2,438 seconds with 83.51% of average accuracy.

1.
Automotive Revolution & Perspective Towards 2030
,”
2016
. doi: .
2.
B.
Javidi
,
Image Recognition and Classification
.
CRC Press
,
2002
.
3.
L. W.
Kang
,
K. L.
Chou
, and
R. H.
Fu
, “
Deep learning-based weather image recognition
,”
Proc. - 2018 Int. Symp. Comput. Consum. Control. IS3C 2018
, pp.
384
387
,
2019
, doi: .
4.
J.
Xia
,
D.
Xuan
,
L.
Tan
, and
L.
Xing
, “
ResNet15: Weather Recognition on Traffic Road with Deep Convolutional Neural Network
,”
Adv. Meteorol.
, vol.
2020
,
2020
, doi: .
5.
M.
Elhoseiny
,
S.
Huang
, and
A.
Elgammal
, “
Weather classification with deep convolutional neural networks
,”
Proc. - Int. Conf. Image Process. ICIP
, vol.
2015
-Decem, no. September, pp.
3349
3353
,
2015
, doi: .
6.
N. M.
Notarangelo
,
K.
Hirano
,
R.
Albano
, and
A.
Sole
, “
Transfer learning with convolutional neural networks for rainfall detection in single images
,”
Water (Switzerland)
, vol.
13
, no.
5
, pp.
1
17
,
2021
, doi: .
7.
ImageNet
.” https://www.image-net.org/index.php (accessed May 27, 2021).
8.
C.
Tan
,
F.
Sun
,
T.
Kong
,
W.
Zhang
,
C.
Yang
, and
C.
Liu
, “
A survey on deep transfer learning
,”
Lect. Notes Comput. Sci. (including Subser. Lect. Notes Artif. Intell. Lect. Notes Bioinformatics)
, vol.
11141
LNCS, pp.
270
279
,
2018
, doi: .
9.
Multi-Class Images for Weather Classification
| Kaggle.” https://www.kaggle.com/somesh24/multiclass-images-for-weather-classification (accessed
May 27, 2021
).
10.
W. T.
Chu
,
X. Y.
Zheng
, and
D. S.
Ding
, “
Camera as weather sensor: Estimating weather information from single images
,”
J. Vis. Commun. Image Represent.
, vol.
46
, pp.
233
249
, Jul.
2017
, doi: .
11.
F.
Chollet
and & O., “
Keras: the Python deep learning API
,”
Keras: the Python deep learning API
,
2020
. https://keras.io/ (accessed Dec. 18, 2020).
12.
R. N.
Goldman
, “More matrices and transformations: Shear and pseudo-perspective,” in
Graphics Gems II
,
Elsevier Inc
.,
1991
, pp.
338
341
.
13.
M.
Sandler
,
A.
Howard
,
M.
Zhu
,
A.
Zhmoginov
, and
L.-C.
Chen
, “
MobileNetV2: Inverted Residuals and Linear Bottlenecks
,”
Proc. IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognit.
, pp.
4510
4520
, Jan.
2018
, Accessed: May 27, 2021. [Online]. Available: http://arxiv.org/abs/1801.04381.
14.
K.
Simonyan
and
A.
Zisserman
, “
Very deep convolutional networks for large-scale image recognition
,” Sep.
2015
, Accessed: May 27, 2021. [Online]. Available: http://www.robots.ox.ac.uk/.
15.
G.
Huang
,
Z.
Liu
,
L.
van der Maaten
, and
K. Q.
Weinberger
, “
Densely Connected Convolutional Networks
,”
Proc. - 30th IEEE Conf. Comput. Vis. Pattern Recognition, CVPR 2017
, vol.
2017
-January, pp.
2261
2269
, Aug. 2016, Accessed: May 27, 2021. [Online]. Available: http://arxiv.org/abs/1608.06993.
16.
F.
Chollet
, “
XCeption: Deep Learning with Depthwise Separable Convolutions
,”
Comput. Vis. Found.
,
2016
, doi: .
17.
C.
Szegedy
,
V.
Vanhoucke
,
S.
Ioffe
,
J.
Shlens
, and
Z.
Wojna
, “
Rethinking the Inception Architecture for Computer Vision
,”
Proc. IEEE Comput. Soc. Conf. Comput. Vis. Pattern Recognit.
, vol.
2016
-Decem, pp.
2818
2826
,
2016
, doi: .
18.
L.
Fei-Fei
,
J.
Deng
, and
K.
Li
, “
ImageNet: Constructing a large-scale image database
,”
J. Vis.
, vol.
9
, no.
8
, pp.
1037
1037
,
2010
, doi: .
19.
D. P.
Kingma
and
J. L.
Ba
, “
Adam: A method for stochastic optimization
,”
3rd Int. Conf. Learn. Represent. ICLR 2015 - Conf. Track Proc.
, pp.
1
15
,
2015
.
This content is only available via PDF.
You do not currently have access to this content.