{"id":{"repo_id":"vt","oai_identifier":"oai:vtechworks.lib.vt.edu:10919/135034"},"canonical_url":"https://search.ndltd.org/etd/vt/oai:vtechworks.lib.vt.edu:10919/135034","repository":{"repo_id":"vt","name":"Virginia Tech","base_url":"https://vtechworks.lib.vt.edu/oai/request"},"display":{"title":"Statistical Methods for Performance Evaluation of Machine Learning and Artificial Intelligence Models","abstract":"Artificial Intelligence (AI) and Machine Learning (ML) have revolutionized the field of statistics by introducing advanced data analysis methods for predictive modeling and decision- making. These technologies facilitate handling both structured and unstructured data with high accuracy and efficiency. However, the performance evaluation of AI and ML models poses unique statistical challenges, especially in complex and unbalanced data scenarios. This dissertation aims to develop and refine statistical methodologies for assessing and improv- ing the efficacy of AI and ML models, with a focus on practical applications in solar panel electroluminescence (EL) image analysis under unbalanced dataset scenarios. Additionally, considering the growing popularity of large language models (LLMs) and their applications in AI-powered statistical analysis, metrics and performance evaluations on AI-generated code quality are explored for actionable insights. Chapter 1 begins with an introduction to EL image scenarios. It discusses the ML models used for identifying defects in EL images and explains the metrics utilized for performance evaluation. This chapter also introduces the analysis under unbalanced data scenarios, ex- plores AI-powered statistical programming and methods of quality control. Chapter 2 provides an in-depth analysis of various machine learning and deep learning (DL) methods applied to the classification of solar panel EL images. We compare these methods using different performance metrics to assess their effectiveness in classifying EL images of solar cells. To evaluate the robustness of ML models, we perform replications of the experiments. Additionally, we provide a thorough discussion on the selection and impact of various assessment criteria. The results offer insights and guidelines for practitioners in choosing appropriate prediction methods and evaluation metrics. Chapter 3 focuses on improving the accuracy and robustness of machine learning models when dealing with unbalanced data scenarios. Building on the comparison study from Chap- ter 2, we found a severe imbalance in EL image datasets: functional and severely defective classes are the majority, while mildly and moderately defective classes are the minority. This imbalance harms model performance in rare event prediction and robustness. To address this issue, sampling techniques and multiple customized loss functions are employed by choosing dynamicweightsatclassandsampleleveltoenhancetheaccuracyandreliabilityofpredictions for the minority classes. Chapter4introducestheincreasingpopularityandcriticalroleofLLMs, suchasChatGPT and Llama, in automating statistical programming tasks within SAS programming. Despite the strengths of LLMs in generating syntactically correct code, there still remain concerns regarding their ability to handle complex statistical analyses that require deep domain-specific expertise and ensure executable code. To address these issues, a systematic evaluation of SAS code generated by various LLMs through multiple dimensions of assessments is conducted by human experts. This evaluation specifically examines correctness, effectiveness, readability, executability, and accuracy of code execution results. This investigation aims to highlight the capabilities and limitations of LLM-generated code, providing actionable insights into their effective integration into statistical programming workflows. Chapter 5 introduces StatLLM, an open-source benchmark dataset designed to evaluate the coding capabilities of LLMs in statistical analysis tasks. Recognizing the lack of stan- dardized datasets for assessing statistical code, StatLLM addresses this gap by providing comprehensive statistical analysis tasks, corresponding SAS code generated by popular LLMs (ChatGPT 3.5, ChatGPT 4.0, and Llama 3.1), and detailed human expert evaluations of code correctness, effectiveness, readability, executability, and output accuracy. Derived from the evaluations presented in Chapter 4, StatLLM offers a valuable resource for advancing natural language processing metrics, improving LLM performance, and guiding the development of next-generation statistical software, thus enhances critical advancements in machine learning and data science research. Chapter 6 provides the summary of key results of this dissertation and explores the direc- tions for future research opportunities.","abstract_html":"Artificial Intelligence (AI) and Machine Learning (ML) have revolutionized the field of statistics by introducing advanced data analysis methods for predictive modeling and decision- making. These technologies facilitate handling both structured and unstructured data with high accuracy and efficiency. However, the performance evaluation of AI and ML models poses unique statistical challenges, especially in complex and unbalanced data scenarios. This dissertation aims to develop and refine statistical methodologies for assessing and improv- ing the efficacy of AI and ML models, with a focus on practical applications in solar panel electroluminescence (EL) image analysis under unbalanced dataset scenarios. Additionally, considering the growing popularity of large language models (LLMs) and their applications in AI-powered statistical analysis, metrics and performance evaluations on AI-generated code quality are explored for actionable insights. Chapter 1 begins with an introduction to EL image scenarios. It discusses the ML models used for identifying defects in EL images and explains the metrics utilized for performance evaluation. This chapter also introduces the analysis under unbalanced data scenarios, ex- plores AI-powered statistical programming and methods of quality control. Chapter 2 provides an in-depth analysis of various machine learning and deep learning (DL) methods applied to the classification of solar panel EL images. We compare these methods using different performance metrics to assess their effectiveness in classifying EL images of solar cells. To evaluate the robustness of ML models, we perform replications of the experiments. Additionally, we provide a thorough discussion on the selection and impact of various assessment criteria. The results offer insights and guidelines for practitioners in choosing appropriate prediction methods and evaluation metrics. Chapter 3 focuses on improving the accuracy and robustness of machine learning models when dealing with unbalanced data scenarios. Building on the comparison study from Chap- ter 2, we found a severe imbalance in EL image datasets: functional and severely defective classes are the majority, while mildly and moderately defective classes are the minority. This imbalance harms model performance in rare event prediction and robustness. To address this issue, sampling techniques and multiple customized loss functions are employed by choosing dynamicweightsatclassandsampleleveltoenhancetheaccuracyandreliabilityofpredictions for the minority classes. Chapter4introducestheincreasingpopularityandcriticalroleofLLMs, suchasChatGPT and Llama, in automating statistical programming tasks within SAS programming. Despite the strengths of LLMs in generating syntactically correct code, there still remain concerns regarding their ability to handle complex statistical analyses that require deep domain-specific expertise and ensure executable code. To address these issues, a systematic evaluation of SAS code generated by various LLMs through multiple dimensions of assessments is conducted by human experts. This evaluation specifically examines correctness, effectiveness, readability, executability, and accuracy of code execution results. This investigation aims to highlight the capabilities and limitations of LLM-generated code, providing actionable insights into their effective integration into statistical programming workflows. Chapter 5 introduces StatLLM, an open-source benchmark dataset designed to evaluate the coding capabilities of LLMs in statistical analysis tasks. Recognizing the lack of stan- dardized datasets for assessing statistical code, StatLLM addresses this gap by providing comprehensive statistical analysis tasks, corresponding SAS code generated by popular LLMs (ChatGPT 3.5, ChatGPT 4.0, and Llama 3.1), and detailed human expert evaluations of code correctness, effectiveness, readability, executability, and output accuracy. Derived from the evaluations presented in Chapter 4, StatLLM offers a valuable resource for advancing natural language processing metrics, improving LLM performance, and guiding the development of next-generation statistical software, thus enhances critical advancements in machine learning and data science research. Chapter 6 provides the summary of key results of this dissertation and explores the direc- tions for future research opportunities.","abstract_has_math":false,"creators":["Song, Xinyi"],"institution":"Virginia Tech","degree_name":"Doctor of Philosophy","degree_level":"doctoral","degree_discipline":"Statistics","degree_department":"Statistics","school":null,"contributors":[],"advisors":[],"committee_chairs":["Hong, Yili"],"committee_members":["Freeman, Laura J.","Deng, Xinwei","Xing, Xin"],"year":2025,"date_issued":"2025-06-03","date_published":"2025-06-03","updated_at":"2026-11-18T20:05:45Z","subjects":["AI-reliability","Image analysis","Imbalanced data","Evaluation of LLMs","Neural networks","NLP metrics."],"languages":["en"],"rights":["In Copyright"],"rights_urls":["http://rightsstatements.org/vocab/InC/1.0/"],"identifier_entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["vt_gsexam:44183"],"render_values":[{"text":"vt_gsexam:44183","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10919/135034","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10919/135034","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","download_url":null,"download_label":null,"download_source":null,"access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://vtechworks.lib.vt.edu/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Avtechworks.lib.vt.edu%3A10919%2F135034","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.committeechair","label":"Committee Chair","values":["Hong, Yili"]},{"key":"dc:contributor.committeemember","label":"Committee Member","values":["Freeman, Laura J.","Deng, Xinwei","Xing, Xin"]},{"key":"dc:contributor.department","label":"Department","values":["Statistics"]},{"key":"dc:creator","label":"Author","values":["Song, Xinyi"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-06-04T08:04:30Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-06-04T08:04:30Z"]},{"key":"dc:date.issued","label":"Date","values":["2025-06-03"]},{"key":"dc:publisher","label":"Institution","values":["Virginia Tech"]},{"key":"dc:type","label":"Dc Type","values":["Dissertation"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Statistics"]},{"key":"thesis:degree_level","label":"Degree Level","values":["doctoral"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Doctor of Philosophy"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Virginia Polytechnic Institute and State University"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["AI-reliability","Image analysis","Imbalanced data","Evaluation of LLMs","Neural networks","NLP metrics."]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["In Copyright"]},{"key":"dc:rights.uri","label":"Rights URI","values":["http://rightsstatements.org/vocab/InC/1.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.other","label":"Dc Identifier Other","values":["vt_gsexam:44183"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10919/135034"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Artificial Intelligence (AI) and Machine Learning (ML) have revolutionized the field of statistics by introducing advanced data analysis methods for predictive modeling and decision- making. These technologies facilitate handling both structured and unstructured data with high accuracy and efficiency. However, the performance evaluation of AI and ML models poses unique statistical challenges, especially in complex and unbalanced data scenarios. This dissertation aims to develop and refine statistical methodologies for assessing and improv- ing the efficacy of AI and ML models, with a focus on practical applications in solar panel electroluminescence (EL) image analysis under unbalanced dataset scenarios. Additionally, considering the growing popularity of large language models (LLMs) and their applications in AI-powered statistical analysis, metrics and performance evaluations on AI-generated code quality are explored for actionable insights. Chapter 1 begins with an introduction to EL image scenarios. It discusses the ML models used for identifying defects in EL images and explains the metrics utilized for performance evaluation. This chapter also introduces the analysis under unbalanced data scenarios, ex- plores AI-powered statistical programming and methods of quality control. Chapter 2 provides an in-depth analysis of various machine learning and deep learning (DL) methods applied to the classification of solar panel EL images. We compare these methods using different performance metrics to assess their effectiveness in classifying EL images of solar cells. To evaluate the robustness of ML models, we perform replications of the experiments. Additionally, we provide a thorough discussion on the selection and impact of various assessment criteria. The results offer insights and guidelines for practitioners in choosing appropriate prediction methods and evaluation metrics. Chapter 3 focuses on improving the accuracy and robustness of machine learning models when dealing with unbalanced data scenarios. Building on the comparison study from Chap- ter 2, we found a severe imbalance in EL image datasets: functional and severely defective classes are the majority, while mildly and moderately defective classes are the minority. This imbalance harms model performance in rare event prediction and robustness. To address this issue, sampling techniques and multiple customized loss functions are employed by choosing dynamicweightsatclassandsampleleveltoenhancetheaccuracyandreliabilityofpredictions for the minority classes. Chapter4introducestheincreasingpopularityandcriticalroleofLLMs, suchasChatGPT and Llama, in automating statistical programming tasks within SAS programming. Despite the strengths of LLMs in generating syntactically correct code, there still remain concerns regarding their ability to handle complex statistical analyses that require deep domain-specific expertise and ensure executable code. To address these issues, a systematic evaluation of SAS code generated by various LLMs through multiple dimensions of assessments is conducted by human experts. This evaluation specifically examines correctness, effectiveness, readability, executability, and accuracy of code execution results. This investigation aims to highlight the capabilities and limitations of LLM-generated code, providing actionable insights into their effective integration into statistical programming workflows. Chapter 5 introduces StatLLM, an open-source benchmark dataset designed to evaluate the coding capabilities of LLMs in statistical analysis tasks. Recognizing the lack of stan- dardized datasets for assessing statistical code, StatLLM addresses this gap by providing comprehensive statistical analysis tasks, corresponding SAS code generated by popular LLMs (ChatGPT 3.5, ChatGPT 4.0, and Llama 3.1), and detailed human expert evaluations of code correctness, effectiveness, readability, executability, and output accuracy. Derived from the evaluations presented in Chapter 4, StatLLM offers a valuable resource for advancing natural language processing metrics, improving LLM performance, and guiding the development of next-generation statistical software, thus enhances critical advancements in machine learning and data science research. Chapter 6 provides the summary of key results of this dissertation and explores the direc- tions for future research opportunities."]},{"key":"dc:description.abstractgeneral","label":"General Abstract","values":["This dissertation explores strategies to improve the reliability and effectiveness of artificial intelligence (AI) and machine learning (ML) in practical data analysis tasks. As AI tech- nologies become increasingly capable and widely adopted in real-world applications—from detecting defect severity in solar panels to automatically generating analytical code—they often encounter challenges in complex scenarios, such as imbalanced datasets with rare out- comes. This research focuses on developing and refining tools and methodologies that enhance decision-making and enable more accurate evaluation of AI models, particularly under such challenging conditions. The first project focuses on using EL images to detect defects in solar panels. It compares several machine learning and deep learning models to see how well they identify severity of defectiveness. The results provide useful guidance for choosing the right prediction methods and evaluation tools in solar panel research. Building upon insights from the first project, the second project tackles a significant chal- lenge: although machine learning and deep learning models generally perform well, they struggle to accurately detect less frequent defect classes, such as \"mildly defective\" and \"mod- erately defective\" solar panels. To overcome this issue, we introduce customized loss functions alongwithmini-batchstratifiedsampling, aimingtoimprovepredictionaccuracyfortheserare defect classes. The proposed methods are evaluated using both a simulated dataset derived from Fashion MNIST—which mirrors the class proportion of the EL image dataset—and real EL image datasets, utilizing VGG-19 and ResNet-50 architectures. To ensure reliability, the analysis is repeated 50 times on the simulated dataset and 30 times on the EL image dataset. The third project examines how well AI tools—specifically LLMs like ChatGPT and Llama—can generate SAS code for automated statistical analysis. Although the code often appears correct, these tools sometimes fall short in handling more complex tasks or producing code that runs properly. This project evaluates the quality of the AI-generated code based on human expert assessment, focusing on code quality, correctness, executability and output. To support this evaluation, the last part of this dissertation introduces a new open-source dataset called StatLLM. This dataset provides examples of statistical tasks, code written by AI, and expert ratings of the results. StatLLM helps researchers and developers understand where AI tools perform well, wheretheyneedimprovementwhenitcomestowritingstatistical code. In summary, this dissertation advances our ability to evaluate and improve AI tools in data science. It helps ensure these technologies are not only powerful but also trustworthy and practical in solving real-world problems."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["Doctor of Philosophy"]},{"key":"dc:format.medium","label":"Dc Format Medium","values":["ETD"]},{"key":"dc:title","label":"Title","values":["Statistical Methods for Performance Evaluation of Machine Learning and Artificial Intelligence Models"]}]}],"canonical_facts":{"dc:contributor.committeechair":["Hong, Yili"],"dc:contributor.committeemember":["Freeman, Laura J.","Deng, Xinwei","Xing, Xin"],"dc:contributor.department":["Statistics"],"dc:creator":["Song, Xinyi"],"dc:date.accessioned":["2025-06-04T08:04:30Z"],"dc:date.available":["2025-06-04T08:04:30Z"],"dc:date.issued":["2025-06-03"],"dc:description.abstract":["Artificial Intelligence (AI) and Machine Learning (ML) have revolutionized the field of statistics by introducing advanced data analysis methods for predictive modeling and decision- making. These technologies facilitate handling both structured and unstructured data with high accuracy and efficiency. However, the performance evaluation of AI and ML models poses unique statistical challenges, especially in complex and unbalanced data scenarios. This dissertation aims to develop and refine statistical methodologies for assessing and improv- ing the efficacy of AI and ML models, with a focus on practical applications in solar panel electroluminescence (EL) image analysis under unbalanced dataset scenarios. Additionally, considering the growing popularity of large language models (LLMs) and their applications in AI-powered statistical analysis, metrics and performance evaluations on AI-generated code quality are explored for actionable insights. Chapter 1 begins with an introduction to EL image scenarios. It discusses the ML models used for identifying defects in EL images and explains the metrics utilized for performance evaluation. This chapter also introduces the analysis under unbalanced data scenarios, ex- plores AI-powered statistical programming and methods of quality control. Chapter 2 provides an in-depth analysis of various machine learning and deep learning (DL) methods applied to the classification of solar panel EL images. We compare these methods using different performance metrics to assess their effectiveness in classifying EL images of solar cells. To evaluate the robustness of ML models, we perform replications of the experiments. Additionally, we provide a thorough discussion on the selection and impact of various assessment criteria. The results offer insights and guidelines for practitioners in choosing appropriate prediction methods and evaluation metrics. Chapter 3 focuses on improving the accuracy and robustness of machine learning models when dealing with unbalanced data scenarios. Building on the comparison study from Chap- ter 2, we found a severe imbalance in EL image datasets: functional and severely defective classes are the majority, while mildly and moderately defective classes are the minority. This imbalance harms model performance in rare event prediction and robustness. To address this issue, sampling techniques and multiple customized loss functions are employed by choosing dynamicweightsatclassandsampleleveltoenhancetheaccuracyandreliabilityofpredictions for the minority classes. Chapter4introducestheincreasingpopularityandcriticalroleofLLMs, suchasChatGPT and Llama, in automating statistical programming tasks within SAS programming. Despite the strengths of LLMs in generating syntactically correct code, there still remain concerns regarding their ability to handle complex statistical analyses that require deep domain-specific expertise and ensure executable code. To address these issues, a systematic evaluation of SAS code generated by various LLMs through multiple dimensions of assessments is conducted by human experts. This evaluation specifically examines correctness, effectiveness, readability, executability, and accuracy of code execution results. This investigation aims to highlight the capabilities and limitations of LLM-generated code, providing actionable insights into their effective integration into statistical programming workflows. Chapter 5 introduces StatLLM, an open-source benchmark dataset designed to evaluate the coding capabilities of LLMs in statistical analysis tasks. Recognizing the lack of stan- dardized datasets for assessing statistical code, StatLLM addresses this gap by providing comprehensive statistical analysis tasks, corresponding SAS code generated by popular LLMs (ChatGPT 3.5, ChatGPT 4.0, and Llama 3.1), and detailed human expert evaluations of code correctness, effectiveness, readability, executability, and output accuracy. Derived from the evaluations presented in Chapter 4, StatLLM offers a valuable resource for advancing natural language processing metrics, improving LLM performance, and guiding the development of next-generation statistical software, thus enhances critical advancements in machine learning and data science research. Chapter 6 provides the summary of key results of this dissertation and explores the direc- tions for future research opportunities."],"dc:description.abstractgeneral":["This dissertation explores strategies to improve the reliability and effectiveness of artificial intelligence (AI) and machine learning (ML) in practical data analysis tasks. As AI tech- nologies become increasingly capable and widely adopted in real-world applications—from detecting defect severity in solar panels to automatically generating analytical code—they often encounter challenges in complex scenarios, such as imbalanced datasets with rare out- comes. This research focuses on developing and refining tools and methodologies that enhance decision-making and enable more accurate evaluation of AI models, particularly under such challenging conditions. The first project focuses on using EL images to detect defects in solar panels. It compares several machine learning and deep learning models to see how well they identify severity of defectiveness. The results provide useful guidance for choosing the right prediction methods and evaluation tools in solar panel research. Building upon insights from the first project, the second project tackles a significant chal- lenge: although machine learning and deep learning models generally perform well, they struggle to accurately detect less frequent defect classes, such as \"mildly defective\" and \"mod- erately defective\" solar panels. To overcome this issue, we introduce customized loss functions alongwithmini-batchstratifiedsampling, aimingtoimprovepredictionaccuracyfortheserare defect classes. The proposed methods are evaluated using both a simulated dataset derived from Fashion MNIST—which mirrors the class proportion of the EL image dataset—and real EL image datasets, utilizing VGG-19 and ResNet-50 architectures. To ensure reliability, the analysis is repeated 50 times on the simulated dataset and 30 times on the EL image dataset. The third project examines how well AI tools—specifically LLMs like ChatGPT and Llama—can generate SAS code for automated statistical analysis. Although the code often appears correct, these tools sometimes fall short in handling more complex tasks or producing code that runs properly. This project evaluates the quality of the AI-generated code based on human expert assessment, focusing on code quality, correctness, executability and output. To support this evaluation, the last part of this dissertation introduces a new open-source dataset called StatLLM. This dataset provides examples of statistical tasks, code written by AI, and expert ratings of the results. StatLLM helps researchers and developers understand where AI tools perform well, wheretheyneedimprovementwhenitcomestowritingstatistical code. In summary, this dissertation advances our ability to evaluate and improve AI tools in data science. It helps ensure these technologies are not only powerful but also trustworthy and practical in solving real-world problems."],"dc:description.degree":["Doctor of Philosophy"],"dc:format.medium":["ETD"],"dc:identifier.other":["vt_gsexam:44183"],"dc:identifier.uri":["https://hdl.handle.net/10919/135034"],"dc:language.iso":["en"],"dc:publisher":["Virginia Tech"],"dc:rights":["In Copyright"],"dc:rights.uri":["http://rightsstatements.org/vocab/InC/1.0/"],"dc:subject":["AI-reliability","Image analysis","Imbalanced data","Evaluation of LLMs","Neural networks","NLP metrics."],"dc:title":["Statistical Methods for Performance Evaluation of Machine Learning and Artificial Intelligence Models"],"dc:type":["Dissertation"],"thesis:degree_discipline":["Statistics"],"thesis:degree_level":["doctoral"],"thesis:degree_name":["Doctor of Philosophy"],"thesis:institution_name":["Virginia Polytechnic Institute and State University"]},"updated_at":"2026-11-18T20:05:45Z"}