Style-Based Neural Architectures for Real-Time Weather Classification

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Ouattara, Hamed, Salmane, Pascal Houssam, Duthon, Pierre, Bernardin, Frédéric, Aider, Omar Ait
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908980168622080
author Ouattara, Hamed
Salmane, Pascal Houssam
Duthon, Pierre
Bernardin, Frédéric
Aider, Omar Ait
author_facet Ouattara, Hamed
Salmane, Pascal Houssam
Duthon, Pierre
Bernardin, Frédéric
Aider, Omar Ait
contents In this paper, we present three neural network architectures designed for real-time classification of weather conditions (sunny, rain, snow, fog) from images. These models, inspired by recent advances in style transfer, aim to capture the stylistic elements present in images. One model, called "Multi-PatchGAN", is based on PatchGANs used in well-known architectures such as Pix2Pix and CycleGAN, but here adapted with multiple patch sizes for detection tasks. The second model, "Truncated ResNet50", is a simplified version of ResNet50 retaining only its first nine layers. This truncation, determined by an evolutionary algorithm, facilitates the extraction of high-frequency features essential for capturing subtle stylistic details. Finally, we propose "Truncated ResNet50 with Gram Matrix and Attention", which computes Gram matrices for each layer during training and automatically weights them via an attention mechanism, thus optimizing the extraction of the most relevant stylistic expressions for classification. These last two models outperform the state of the art and demonstrate remarkable generalization capability on several public databases. Although developed for weather detection, these architectures are also suitable for other appearance-based classification tasks, such as animal species recognition, texture classification, disease detection in medical imaging, or industrial defect identification.
format Preprint
id arxiv_https___arxiv_org_abs_2604_18251
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Style-Based Neural Architectures for Real-Time Weather Classification
Ouattara, Hamed
Salmane, Pascal Houssam
Duthon, Pierre
Bernardin, Frédéric
Aider, Omar Ait
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
Applications
In this paper, we present three neural network architectures designed for real-time classification of weather conditions (sunny, rain, snow, fog) from images. These models, inspired by recent advances in style transfer, aim to capture the stylistic elements present in images. One model, called "Multi-PatchGAN", is based on PatchGANs used in well-known architectures such as Pix2Pix and CycleGAN, but here adapted with multiple patch sizes for detection tasks. The second model, "Truncated ResNet50", is a simplified version of ResNet50 retaining only its first nine layers. This truncation, determined by an evolutionary algorithm, facilitates the extraction of high-frequency features essential for capturing subtle stylistic details. Finally, we propose "Truncated ResNet50 with Gram Matrix and Attention", which computes Gram matrices for each layer during training and automatically weights them via an attention mechanism, thus optimizing the extraction of the most relevant stylistic expressions for classification. These last two models outperform the state of the art and demonstrate remarkable generalization capability on several public databases. Although developed for weather detection, these architectures are also suitable for other appearance-based classification tasks, such as animal species recognition, texture classification, disease detection in medical imaging, or industrial defect identification.
title Style-Based Neural Architectures for Real-Time Weather Classification
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
Applications
url https://arxiv.org/abs/2604.18251