辽宁石油化工大学学报 ›› 2024, Vol. 44 ›› Issue (2): 83-90.DOI: 10.12422/j.issn.1672-6952.2024.02.013

• 信息与控制工程 • 上一篇    下一篇

基于图像分块和多头注意力机制的气象识别研究

赵旭峰1(), 刘琳琳1, 曹宇1(), 叶成荫1, 郭宗凯2   

  1. 1.辽宁石油化工大学 信息与控制工程学院,辽宁 抚顺 113001
    2.辽宁省气象装备保障中心,辽宁 沈阳 110166
  • 收稿日期:2022-08-10 修回日期:2022-09-02 出版日期:2024-04-25 发布日期:2024-04-24
  • 通讯作者: 曹宇
  • 作者简介:赵旭峰(1996⁃),男,硕士研究生,从事机器学习、深度学习算法的研究;E⁃mail:925874520@qq.com
  • 基金资助:
    辽宁省重点研发计划项目(2020JH2/10300040);辽宁省教育厅科学研究项目(L2020031);辽宁省应用基础研究计划项目(2022JH2/101300272)

Research on Weather Recognition Based on Image Segmentation and Multi⁃Head Attention Mechanism

Xufeng ZHAO1(), Linlin LIU1, Yu CAO1(), Chengyin YE1, Zongkai GUO2   

  1. 1.School of Information and Control Engineering,Liaoning Petrochemical University,Fushun Liaoning 113001,China
    2.Liaoning Meteorological Equipment Support Center,Shenyang Liaoning 110166,China
  • Received:2022-08-10 Revised:2022-09-02 Published:2024-04-25 Online:2024-04-24
  • Contact: Yu CAO

摘要:

基于图像对天气现象进行识别,对天气状况的分析至关重要。针对传统的机器学习方法对各类天气特征难以准确提取且天气现象分类效果差,以及深度学习对天气现象识别的准确率不高的问题,提出了基于图像分块和多头注意力机制的天气识别模型。该模型首次将Swin Transformer引入天气识别领域中,采用了窗口多头自注意层与移位窗口多头自注意层相结合的多头注意力机制。结果表明,其区域相关特征提取能力弥补传统方法的不足,能够提取图像中复杂的天气特征。采用迁移学习对模型进行训练,将微调模型的全连接参数输入到Softmax分类器,实现了对多类别天气图像的识别,识别准确率为99.20%,优于对比的几种主流方法。因此,该方法可以作为天气识别模块应用于地面气象识别系统。

关键词: 天气识别, 图像分块, 多头注意力机制, 区域相关特征, 迁移学习

Abstract:

Recognition of weather phenomena based on images is essential for the analysis of weather conditions. To address the problems that traditional machine learning methods are difficult to accurately extract various weather features and poor in classifying weather phenomena and the accuracy of deep learning for weather phenomena recognition is not high, a weather recognition model based on image block and multi?headed attention mechanism is proposed. The model introduces Swin Transformer into the field of weather recognition for the first time, and adopts a multi?headed attention mechanism combining window multi?head self?attention layer and shifted?window multi?head self?attention layer, whose regionally relevant features extraction capability makes up for the shortcomings of traditional methods and can extract complex weather features from images. The model is trained using transfer learning, and the fully connected parameters of the fine?tuned model are input to the Softmax classifier to achieve recognition of multi?category weather images with 99.20% recognition accuracy, which is better than several mainstream methods in comparison, and it can be applied to ground weather recognition systems as a weather recognition module.

Key words: Weather recognition, Image block, Multi?headed attention mechanism, Regional correlation features, Transfer learning

中图分类号: 

引用本文

赵旭峰, 刘琳琳, 曹宇, 叶成荫, 郭宗凯. 基于图像分块和多头注意力机制的气象识别研究[J]. 辽宁石油化工大学学报, 2024, 44(2): 83-90.

Xufeng ZHAO, Linlin LIU, Yu CAO, Chengyin YE, Zongkai GUO. Research on Weather Recognition Based on Image Segmentation and Multi⁃Head Attention Mechanism[J]. Journal of Liaoning Petrochemical University, 2024, 44(2): 83-90.

使用本文

0
    /   /   推荐

导出引用管理器 EndNote|Ris|BibTeX

链接本文: https://journal.lnpu.edu.cn/CN/10.12422/j.issn.1672-6952.2024.02.013

               https://journal.lnpu.edu.cn/CN/Y2024/V44/I2/83