{"title":"一种新的基于视觉变压器的电能质量扰动分类方法","authors":"Sıtkı Akkaya , Sezer Dümen","doi":"10.1016/j.asej.2025.103718","DOIUrl":null,"url":null,"abstract":"<div><div>Accurate and automated classification of power quality disturbances (PQDs) is essential for ensuring the reliability and stability of smart power systems. This study introduces a novel classification framework that combines a Vision Transformer (ViT) model with<!--> <!-->an innovative signal-to-image transformation technique, which directly reshapes 1D time series (T.S.) signals into 32 × 32 grayscale images, thereby eliminating complex preprocessing steps such as feature extraction or wavelet transforms.<!--> <!-->Unlike traditional approaches that rely on handcrafted features or spectrogram-based methods, this<!--> <!-->lightweight conversion preserves temporal characteristics while enabling efficient end-to-end learning through ViT’s attention mechanism. The model was evaluated on a comprehensive dataset comprising<!--> <!-->21 distinct PQD classes, systematically generated under real-world conditions (20–50 dB noise levels and ± 0.5 Hz frequency deviations)<!--> <!-->using two Arbitrary Waveform Generators (AWGs).<!--> <!-->The proposed system achieved state-of-the-art performance with 99.23 % classification accuracy and an exceptionally fast inference time of 3.58 ms per sample, demonstrating both precision and suitability for real-time applications.<!--> <!-->Remarkably, the architecture maintained robust performance across all noise levels, confirming its strong generalization capability. Despite using an image-based approach, the method’s computational efficiency, achieved through optimized patch processing and compact input dimensions, makes it deployable in resource-constrained embedded systems.<!--> <!-->These findings position the framework as a practical foundation for next-generation PQD monitoring systems.<!--> <!-->The study advances the field by: (1) introducing the first ViT-based solution for raw PQD signal classification, (2) establishing a new benchmark in processing efficiency (3.58 ms runtime), and (3) demonstrating unprecedented robustness to both noise and frequency variations. Overall, this work provides a<!--> <!-->scalable, accurate, and hardware-friendly solution<!--> <!-->for intelligent power quality management, showcasing the untapped potential of transformer architectures in T.S. industrial applications.</div></div>","PeriodicalId":48648,"journal":{"name":"Ain Shams Engineering Journal","volume":"16 11","pages":"Article 103718"},"PeriodicalIF":5.9000,"publicationDate":"2025-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A novel vision transformer-based power quality disturbance classification method\",\"authors\":\"Sıtkı Akkaya , Sezer Dümen\",\"doi\":\"10.1016/j.asej.2025.103718\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>Accurate and automated classification of power quality disturbances (PQDs) is essential for ensuring the reliability and stability of smart power systems. This study introduces a novel classification framework that combines a Vision Transformer (ViT) model with<!--> <!-->an innovative signal-to-image transformation technique, which directly reshapes 1D time series (T.S.) signals into 32 × 32 grayscale images, thereby eliminating complex preprocessing steps such as feature extraction or wavelet transforms.<!--> <!-->Unlike traditional approaches that rely on handcrafted features or spectrogram-based methods, this<!--> <!-->lightweight conversion preserves temporal characteristics while enabling efficient end-to-end learning through ViT’s attention mechanism. The model was evaluated on a comprehensive dataset comprising<!--> <!-->21 distinct PQD classes, systematically generated under real-world conditions (20–50 dB noise levels and ± 0.5 Hz frequency deviations)<!--> <!-->using two Arbitrary Waveform Generators (AWGs).<!--> <!-->The proposed system achieved state-of-the-art performance with 99.23 % classification accuracy and an exceptionally fast inference time of 3.58 ms per sample, demonstrating both precision and suitability for real-time applications.<!--> <!-->Remarkably, the architecture maintained robust performance across all noise levels, confirming its strong generalization capability. Despite using an image-based approach, the method’s computational efficiency, achieved through optimized patch processing and compact input dimensions, makes it deployable in resource-constrained embedded systems.<!--> <!-->These findings position the framework as a practical foundation for next-generation PQD monitoring systems.<!--> <!-->The study advances the field by: (1) introducing the first ViT-based solution for raw PQD signal classification, (2) establishing a new benchmark in processing efficiency (3.58 ms runtime), and (3) demonstrating unprecedented robustness to both noise and frequency variations. Overall, this work provides a<!--> <!-->scalable, accurate, and hardware-friendly solution<!--> <!-->for intelligent power quality management, showcasing the untapped potential of transformer architectures in T.S. industrial applications.</div></div>\",\"PeriodicalId\":48648,\"journal\":{\"name\":\"Ain Shams Engineering Journal\",\"volume\":\"16 11\",\"pages\":\"Article 103718\"},\"PeriodicalIF\":5.9000,\"publicationDate\":\"2025-09-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Ain Shams Engineering Journal\",\"FirstCategoryId\":\"5\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S2090447925004599\",\"RegionNum\":2,\"RegionCategory\":\"工程技术\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"ENGINEERING, MULTIDISCIPLINARY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Ain Shams Engineering Journal","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2090447925004599","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, MULTIDISCIPLINARY","Score":null,"Total":0}
A novel vision transformer-based power quality disturbance classification method
Accurate and automated classification of power quality disturbances (PQDs) is essential for ensuring the reliability and stability of smart power systems. This study introduces a novel classification framework that combines a Vision Transformer (ViT) model with an innovative signal-to-image transformation technique, which directly reshapes 1D time series (T.S.) signals into 32 × 32 grayscale images, thereby eliminating complex preprocessing steps such as feature extraction or wavelet transforms. Unlike traditional approaches that rely on handcrafted features or spectrogram-based methods, this lightweight conversion preserves temporal characteristics while enabling efficient end-to-end learning through ViT’s attention mechanism. The model was evaluated on a comprehensive dataset comprising 21 distinct PQD classes, systematically generated under real-world conditions (20–50 dB noise levels and ± 0.5 Hz frequency deviations) using two Arbitrary Waveform Generators (AWGs). The proposed system achieved state-of-the-art performance with 99.23 % classification accuracy and an exceptionally fast inference time of 3.58 ms per sample, demonstrating both precision and suitability for real-time applications. Remarkably, the architecture maintained robust performance across all noise levels, confirming its strong generalization capability. Despite using an image-based approach, the method’s computational efficiency, achieved through optimized patch processing and compact input dimensions, makes it deployable in resource-constrained embedded systems. These findings position the framework as a practical foundation for next-generation PQD monitoring systems. The study advances the field by: (1) introducing the first ViT-based solution for raw PQD signal classification, (2) establishing a new benchmark in processing efficiency (3.58 ms runtime), and (3) demonstrating unprecedented robustness to both noise and frequency variations. Overall, this work provides a scalable, accurate, and hardware-friendly solution for intelligent power quality management, showcasing the untapped potential of transformer architectures in T.S. industrial applications.
期刊介绍:
in Shams Engineering Journal is an international journal devoted to publication of peer reviewed original high-quality research papers and review papers in both traditional topics and those of emerging science and technology. Areas of both theoretical and fundamental interest as well as those concerning industrial applications, emerging instrumental techniques and those which have some practical application to an aspect of human endeavor, such as the preservation of the environment, health, waste disposal are welcome. The overall focus is on original and rigorous scientific research results which have generic significance.
Ain Shams Engineering Journal focuses upon aspects of mechanical engineering, electrical engineering, civil engineering, chemical engineering, petroleum engineering, environmental engineering, architectural and urban planning engineering. Papers in which knowledge from other disciplines is integrated with engineering are especially welcome like nanotechnology, material sciences, and computational methods as well as applied basic sciences: engineering mathematics, physics and chemistry.