[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-120715-en":3,"doc-seo-120715-105":30,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},120715,687197100911,"Himbo","https://ap-avatar.wpscdn.com/avatar/a000239b6f1da00475?x-image-process=image/resize,m_fixed,w_180,h_180&k=1785132997149421697",8,"Research & Report","Machine Learning to detect cyber-attacks and discriminating the types of power system disturbances - Random Forest model","Research proposes a machine learning-based attack detection model for smart grids, using data and logs from Phasor Measuring Devices (PMUs) to learn system behaviors and identify potential security boundaries. The workflow includes dataset pre-processing, feature selection, model creation, and evaluation. Experiments use 15 datasets from different PMUs with relay Snort alarms and logs. Random Forest, Logistic Regression, and K-Nearest Neighbour are trained and assessed with metrics including F1-macro, recall, accuracy, and precision. Results show Random Forest achieves the best performance, reaching 90.56% accuracy for detecting power system disturbances, supporting operator decision-making.","Machine Learning to detect cyber-attacks and discriminating the types of power system  \ndisturbances  \nDiane Tuyizere  \n[dtuyizer@andrew.cmu.edu](dtuyizer@andrew.cmu.edu)[ ](dtuyizer@andrew.cmu.edu)Carnegie Mellon University Africa Kigali, Rwanda  \nRemy Ihabwikuzo  \n[rihabwik@andrew.cmu.edu](rihabwik@andrew.cmu.edu)[ ](rihabwik@andrew.cmu.edu)Carnegie Mellon University Africa Kigali, Rwanda  \narXiv :2307 .03323v 1 [ cs .LG] 6 Jul 2023  \nAbstract  \nThis research proposes a machine learning-based attack detection model for power systems, specifically targeting smart grids. By utilizing data and logs collected from Phasor Measuring Devices (PMUs), the model aims to learn system behaviors and effectively identify potential security boundaries. The proposed approach involves crucial stages including dataset pre-processing, feature selection, model creation, and evaluation. To validate our approach, we used a dataset used, consist of 15 separate datasets obtained from different PMUs, relay snort alarms and logs. Three machine learning models: Random Forest, Logistic Regression, and K-Nearest Neighbour were built and evaluated using various performance metrics. The findings indicate that the Random Forest model achieves the highest performance with an accuracy of 90.56% in detecting power system disturbances and has the potential in assisting operators in decision-making processes.  \nKeywords: Machine Learning, Cyber-attack  \n1 Introduction  \nAlthough Cyber-physical system has many advantages in areas such as power distribution grids and wastewater treatment plants, it also has some disadvantages and threats. A smart grid is an electrical grid equipped with automation, communication, and information technology systems that can monitor power flows from points of generation to points of consumption [1] . If these systems fail, it can result in massive damage or loss to people as well as the shutdown of all infrastructure.  \nNowadays, most businesses have regulations and policies in place to ensure their security. Phasor Measurement Units (PMUs) have been used to increase system performance as power systems become increasingly complex in their architecture [5] . It provides information that can help to make quick decisions. Hackers, on the other hand, can create a trigger that will cause the system to fail and cause significant damage to smart grids. Machine learning techniques can be used to find pattern recognition, learning abilities, and rapid identification of potential security boundaries [5]. This paper proposes a machine learning approach for detecting system behaviors by learning from historical data and relevant information. Mainly we present a machine learning-based attack  \ndetection model for power systems that can be taught using data and logs collected by PMUs.  \nTo accomplish this, the dataset was preprocessed, for model selection, 10-fold cross-validation was used to build a random forest, logistic regression, and k-Nearest neighbor models, and the results were compared using four performance metrics: f1 macro, recall, accuracy, and precision scores. Furthermore, feature selection was performed, and the results were compared to models without feature selection; the best model found was Random Forest, and finally, optimization of the best model was performed.  \nThe structure of this paper is as follows: Section 2 provides an overview of related research in the field. In Section 3, we detail our proposed approach by highlighting the conducted data processing, model building, testing various machine learning methods, and experimental results as well as discussing the findings. Lastly, Section 4 offers concluding remarks.  \n2 Literature review  \nSmart grids, are vulnerable to cyber-attacks due to their reliance on automation, communication, and information technology systems [1] . Hackers target these systems to disrupt the power supply, cause damage, or gain unauthorized access to critical infrastructure. As highlighted [2","cbCaimi3qyAewxW6","https://ap.wps.com/l/cbCaimi3qyAewxW6","pdf",632067,1,4,"English","en",105,"# Introduction\n# Literature review\n# Proposed approach\n## Dataset","[{\"question\":\"What data sources are used to detect cyber-attacks in the proposed model?\",\"answer\":\"The approach uses data and logs collected from Phasor Measuring Devices (PMUs), along with relay Snort alarms and related logs.\"},{\"question\":\"Which machine learning models are built and compared?\",\"answer\":\"Random Forest, Logistic Regression, and K-Nearest Neighbour are constructed and evaluated using multiple performance metrics.\"},{\"question\":\"How well does the best model perform for detecting power system disturbances?\",\"answer\":\"The Random Forest model achieves the highest accuracy, reaching 90.56% for detecting power system disturbances.\"}]","Machine Learning to detect cyber-attacks and discriminating the types of power system disturbances - Random Forest model | PDF",1785731685,10,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":28},"machine-learning-to-detect-cyber-attacks-and-discriminating-the-types-of-power-system-disturbances-random-forest-model","",{"@graph":36,"@context":85},[37,53,68],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":21},"https://docshare.wps.com/document/machine-learning-to-detect-cyber-attacks-and-discriminating-the-types-of-power-system-disturbances-random-forest-model/120715/",{"url":52,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":41,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-08-05","2026-08-03",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What data sources are used to detect cyber-attacks in the proposed model?","Question",{"text":75,"@type":76},"The approach uses data and logs collected from Phasor Measuring Devices (PMUs), along with relay Snort alarms and related logs.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"Which machine learning models are built and compared?",{"text":80,"@type":76},"Random Forest, Logistic Regression, and K-Nearest Neighbour are constructed and evaluated using multiple performance metrics.",{"name":82,"@type":73,"acceptedAnswer":83},"How well does the best model perform for detecting power system disturbances?",{"text":84,"@type":76},"The Random Forest model achieves the highest accuracy, reaching 90.56% for detecting power system disturbances.","https://schema.org",{"og:url":52,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,128,131,134],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":21,"doc_module":4,"doc_module_name":46,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":46,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":46,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":29,"doc_module":4,"doc_module_name":46,"category_name":132,"show_sort_weight":29,"slug":133},"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":46,"category_name":136,"show_sort_weight":106,"slug":137},19,"General","general"]