[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-119650-en":3,"doc-seo-119650-105":29,"detail-sidebar-cat-0-en-105":90},{"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":11,"language":21,"language_code":22,"site_id":23,"html_lang":22,"table_of_contents":24,"faqs":25,"seo_title":26,"seo_description":14,"update_tm":27,"read_time":28},119650,7971461741311,"Ophelia","https://ap-avatar.wpscdn.com/avatar/74000253aff267980c6?x-image-process=image/resize,m_fixed,w_180,h_180&k=1779345379180704826",8,"Research & Report","SemetonBug - Next-Generation Machine Learning-Powered Code Analyzer for Precision Bug Detection and Dynamic Error Localization","SemetonBug delivers an automated approach to Python bug detection using machine learning and dynamic error localization. The system relies on a Random Forest Classifier trained on features derived from code syntax via Abstract Syntax Tree (AST) representations. A dataset of 200 Python files (100 buggy, 100 non-buggy) is used, and the model is tuned with Grid Search Cross Validation, reaching 85% accuracy, 0.84 precision, 0.87 recall, and 0.86 F1-score. Detected bugs are exported for further analysis and quality improvement.","SemetonBug: Next-Generation Machine Learning-Powered Code Analyzer for Precision Bug Detection and Dynamic Error Localization  \nSurni Erniwati 1*, Bahtiar Imran 2**, Zumratul Muahidin 3***, Zaeniah 4***, Juhartini 5****  \n* Manajemen Informatika, Universitas Teknologi Mataram  \n** Rekayasa Sistem Komputer, Universitas Teknologi Mataram  \n*** Sistem Informasi, Universitas Teknologi Mataram  \n**** Teknik Informatika, Universitas Teknologi Mataram  \n[mentari1990@gmail.com](mentari1990@gmail.com1)[1](mentari1990@gmail.com1), [bahtiarimranlombok@gmail.com](bahtiarimranlombok@gmail.com2)[2](bahtiarimranlombok@gmail.com2), [muahidinzumratul@gmail.com](muahidinzumratul@gmail.com3)[3](muahidinzumratul@gmail.com3), [zaen1989@gmail.com](zaen1989@gmail.com4)[4](zaen1989@gmail.com4),  \n[j](juhartini8815@gmail.com5)[uhartini8815@gmail.com](juhartini8815@gmail.com5)[5](juhartini8815@gmail.com5)  \n\n| Article history:\u003Cbr>Received 2025-11-24 Revised 2025-12-22 Accepted 2026-01-07 | Bug detection in Python programming is a crucial challenge in software development. This research proposes SemetonBug, a machine learning-based system for automatically detecting bugs in Python code. The system utilizes a Random Forest Classifier as the main model, with features extracted from the syntactic structure of the code using an Abstract Syntax Tree (AST). The dataset consists of 200 Python files, divided into 100 files with bugs and 100 files without bugs. The model is optimized using Grid Search Cross Validation, with the best combination of n_estimators = 300, max_depth = 20, min_samples_split = 5, and min_samples_leaf = 2. Evaluation results show that the model achieves 85% accuracy, 0.84 precision, 0.87 recall, and 0.86 F1-score. The detected bugs are stored in an Excel file for further analysis. By leveraging machine learning, SemetonBug enhances efficiency and accuracy in bug identification compared to traditional rulebased methods. These findings highlight the potential of machine learning models in improving software quality and reducing coding errors automatically.\u003Cbr>\u003Cbr>This is an open access article under the CC–BY-SA license. |\n| --- | --- |\n| Keyword:\u003Cbr>Bug Detection, Machine Learning, Python,\u003Cbr>Random Forest, Abstract Syntax Tree. |  |\n\nArticle Info ABSTRACT  \nI. INTRODUCTION  \nBug detection in Python programming is one of the most critical challenges in software development. Various studies have demonstrated that bugs can be minimized through appropriate tools and techniques. For instance, PYBUGLAB, an implementation designed for the Python language, is developed to detect and fix various types of simple bugs that significantly impact code accuracy. By focusing on simple bugs, this tool illustrates that minor corrections can lead to substantial improvements in overall code quality, reducing errors and enhancing software reliability [1] . Empirical analysis of code modifications after bug fixes in Python reveals specific patterns, indicating that changes are not made randomly but occur within a particular coding context [2]. This finding underscores the importance of understanding code context for further advancements in bug detection tools. In the modern era, advanced techniques are increasingly employed, including machine learning models for bug  \ndetection and duplicate bug report identification. Research indicates that attention-based models can improve accuracy in detecting duplicate bug reports, which often pose challenges in large-scale software management [3] . In software development, manual bug identification is often timeconsuming, prone to human error, and inefficient, particularly when dealing with large-scale codebases. This manual approach relies on programmers' expertise to review and test code directly, which may result in undetected bugs or issues only discovered during the final testing phase. Therefore, automated methods that enable faster, more accurate, and consistent bug detection are essential.  \nSeveral previous stu","cbCaieiRBXZqdgXj","https://ap.wps.com/l/cbCaieiRBXZqdgXj","pdf",652965,1,"English","en",105,"# Abstract\n# Introduction\n## Background and challenges in Python bug detection\n## Prior work and related tools","[{\"question\":\"What is SemetonBug and what problem does it address?\",\"answer\":\"SemetonBug is a machine learning-based system that automatically detects bugs in Python code. It targets the limitations of manual and rule-based bug identification by improving speed and detection quality.\"},{\"question\":\"How does SemetonBug represent Python code for model training?\",\"answer\":\"SemetonBug extracts features from the syntactic structure of the code using an Abstract Syntax Tree (AST). These AST-derived features feed a Random Forest Classifier for classification.\"},{\"question\":\"What dataset and evaluation results does SemetonBug report?\",\"answer\":\"The study uses 200 Python files split into 100 buggy and 100 non-buggy samples. The optimized model achieves 85% accuracy, with 0.84 precision, 0.87 recall, and 0.86 F1-score.\"}]","SemetonBug - Next-Generation Machine Learning-Powered Code Analyzer for Precision Bug Detection and Dynamic Error Localization | PDF",1785725468,20,{"code":4,"msg":30,"data":31},"ok",{"site_id":23,"language":22,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":85,"head_meta":87,"extra_data":89,"updated_unix":27},"semetonbug-next-generation-machine-learning-powered-code-analyzer-for-precision-bug-detection-and-dynamic-error-localization","",{"@graph":35,"@context":84},[36,53,67],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/semetonbug-next-generation-machine-learning-powered-code-analyzer-for-precision-bug-detection-and-dynamic-error-localization/119650/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":22,"description":14,"dateModified":61,"datePublished":61,"encodingFormat":60,"isAccessibleForFree":62,"interactionStatistic":63},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-08-03",true,{"@type":64,"interactionType":65,"userInteractionCount":20},"InteractionCounter",{"@type":66},"ViewAction",{"@type":68,"mainEntity":69},"FAQPage",[70,76,80],{"name":71,"@type":72,"acceptedAnswer":73},"What is SemetonBug and what problem does it address?","Question",{"text":74,"@type":75},"SemetonBug is a machine learning-based system that automatically detects bugs in Python code. It targets the limitations of manual and rule-based bug identification by improving speed and detection quality.","Answer",{"name":77,"@type":72,"acceptedAnswer":78},"How does SemetonBug represent Python code for model training?",{"text":79,"@type":75},"SemetonBug extracts features from the syntactic structure of the code using an Abstract Syntax Tree (AST). These AST-derived features feed a Random Forest Classifier for classification.",{"name":81,"@type":72,"acceptedAnswer":82},"What dataset and evaluation results does SemetonBug report?",{"text":83,"@type":75},"The study uses 200 Python files split into 100 buggy and 100 non-buggy samples. The optimized model achieves 85% accuracy, with 0.84 precision, 0.87 recall, and 0.86 F1-score.","https://schema.org",{"og:url":51,"og:type":86,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":88,"canonical":51},"index,follow",{"doc_id":7,"site_id":23},{"code":4,"msg":5,"data":91},[92,96,100,104,109,114,119,122,126,129,133],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":93,"show_sort_weight":94,"slug":95},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":97,"show_sort_weight":98,"slug":99},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":101,"show_sort_weight":102,"slug":103},"Exam",70,"exam",{"id":105,"doc_module":4,"doc_module_name":45,"category_name":106,"show_sort_weight":107,"slug":108},5,"Comic",60,"comic",{"id":110,"doc_module":4,"doc_module_name":45,"category_name":111,"show_sort_weight":112,"slug":113},6,"Technology",50,"technology",{"id":115,"doc_module":4,"doc_module_name":45,"category_name":116,"show_sort_weight":117,"slug":118},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":120,"slug":121},30,"research-report",{"id":123,"doc_module":4,"doc_module_name":45,"category_name":124,"show_sort_weight":28,"slug":125},9,"Religion & Spirituality","religion-spirituality",{"id":28,"doc_module":4,"doc_module_name":45,"category_name":127,"show_sort_weight":28,"slug":128},"World Cup","world-cup",{"id":130,"doc_module":4,"doc_module_name":45,"category_name":131,"show_sort_weight":130,"slug":132},10,"Lifestyle","lifestyle",{"id":134,"doc_module":4,"doc_module_name":45,"category_name":135,"show_sort_weight":105,"slug":136},19,"General","general"]