Non-Functional Requirements for Machine Learning Systems

dc.citation.doiITF
dc.contributor.authorMohammad Habibullah, Khan
dc.date.accessioned2025-08-23T08:11:01Z
dc.date.available2025-08-23T08:11:01Z
dc.date.issued2025-08-23
dc.description.abstractBackground: Machine learning (ML) systems are increasingly being deployed in complex and safety-critical domains such as autonomous driving, healthcare, and finance. ML systems learn using big data and solve a wide range of prediction and decision-making problems that would be difficult to solve with traditional systems. However, increasing use of ML in different systems has raised concerns about quality requirements, which are defined as non-functional requirements (NFRs). Many NFRs, such as fairness, transparency, explainability, and safety, are critical in ensuring the success and acceptance of ML systems. However, many NFRs for ML systems are not well understood (e.g., maintainability), some known NFRs may become more important (e.g., fairness), while some may become irrelevant in the ML context (e.g., modularity), some new NFRs may come into play (e.g., retrainability), and the scope of defining and measuring NFRs in ML systems is also a challenging task. Objective: The research project focuses on addressing and managing issues related to NFRs for ML systems. The objective of the research is to identify current practices and challenges related to NFRs in an ML context, and to develop solutions to manage NFRs for ML systems. Method: This research follows a design science methodology and consists of a series of empirical and design-oriented studies. First, we conducted an interview study to explore practitioners' perceptions of NFRs and the challenges associated with defining and measuring them in ML systems. Then we conducted a subsequent survey study to validate and expand these findings with broader practitioner input. To complement these studies, we conducted a partial systematic mapping study to assess the coverage of NFRs in the academic literature, revealing discrepancies between research focus and industrial needs. Additionally, we conducted group interviews with domain experts in the automotive industry to uncover requirements engineering (RE) practices and challenges specific to ML-enabled perception systems. Based on these insights, we proposed a structured, five-step quality framework and evaluated it through practitioner interviews. Finally, we proposed revised maintainability metrics adapted to the unique structure of ML systems, and we evaluated them using ten real-world open-source ML projects. Findings: We found that NFRs are crucial and play an important role in the success of the ML systems. However, there is a research gap in this area, and managing NFRs for ML systems is challenging. To address the research objectives, we have identified important NFRs for ML systems, such as accuracy, reliability, fairness, transparency, retrainability, and explainability. We also identified challenges in defining, scoping, and measuring NFRs, including domain dependence, lack of standardized metrics, and difficulty in tracing NFRs across ML system components. Furthermore, we found that practitioners face significant challenges in applying RE to ML systems---particularly in autonomous perception—due to uncertainty, evolving components, and lack of systematic approaches for managing quality trade-offs, data quality, and cross-organizational collaboration. To address these gaps, we proposed a five-step NFR management framework, covering NFR selection, scoping, trade-off analysis, measurement planning, and structured specification using templates. Finally, given that maintainability is an important NFR for ML systems, we proposed scope-aware definitions and measurement strategies for maintainability in ML systems and demonstrated their usefulness through empirical evaluation. Conclusion: NFRs are critical for ML systems, but they are difficult to define, allocate, specify, and measure due to challenges like unintended bias, non-deterministic behavior, and the high cost of thorough testing. Industry and research lack well-structured solutions to manage NFRs for ML systems effectively. This research addresses this critical gap by providing a comprehensive understanding of NFRs and the unique challenges they pose in the ML context. Through a combination of empirical studies and the development of a structured NFR management framework, this research offers a solution for identifying, prioritizing, scoping, measuring, and specifying NFRs across granular-level components of ML systems. Contributions also include scope-aware definitions and measurement metrics of maintainability for ML systems. These findings enrich the theoretical understanding of NFRs for ML systems, provide empirically grounded insights into their challenges, and introduce artifacts and metrics to support future research. These outcomes also provide valuable guidance for practitioners to build trustworthy, maintainable, and high-quality ML systems. This research will help practitioners make better engineering decisions, improve quality assurance processes, and provide a foundation for more systematic and accountable ML system development.sv
dc.gup.defencedate2025-09-18
dc.gup.defenceplaceThusrday, 18 September, 2025, at 13:00 in Room Omega, Jupiter Building, Campus Lindholmen, Hörselgången 5, Göteborgsv
dc.gup.departmentDepartment of Computer Science and Engineering ; Institutionen för data- och informationstekniksv
dc.gup.originUniversity of Gothenburg, Faculty of Science and Technologysv
dc.identifier.urihttps://hdl.handle.net/2077/89223
dc.language.isoengsv
dc.relation.haspart[A] K. M. Habibullah, G. Gay, J. Horkoff “Non-functional requirements for machine learning: understanding current use and challenges among practitioners” Requirements Engineering (2023), 28(2), pp.283–316. https://doi.org/10.1007/s00766-022-00395-3sv
dc.relation.haspart[B] K. M. Habibullah, H. -M. Heyn, G. Gay, J. Horkoff, E. Knauss, M. Borg, A. Knauss, H. Sivencrona, P. Li. Jing “Requirements and software engineering for automotive perception systems: an interview study” Requirements Engineering (2024), 29(1), pp.25-48. https://doi.org/10.1007/s00766-023-00410-1sv
dc.relation.haspart[C] H. -M. Heyn, K. M. Habibullah, E. Knauss, J. Horkoff, M. Borg, A. Knauss, P. Li. Jing “Automotive perception software development: Data, annotation, and ecosystem challenges” IEEE/ACM 2nd International Conference on AI Engineering–Software Engineering for AI (CAIN), (2023), pp. 13-24. https://doi.org/10.1109/CAIN58948.2023.00011sv
dc.relation.haspart[D] K. M. Habibullah, G. Gay, J. Horkoff “Non-Functional Requirements for Machine Learning: An Exploration of System Scope and Interest” IEEE/ACM 1st International Workshop on Software Engineering for Responsible Artificial Intelligence (SE4RAI) (2022), pp.29-36. https://doi.org/10.1145/3526073.3527589sv
dc.relation.haspart[E] K. M. Habibullah, G. Gay, J. Horkoff “A Framework for Managing Quality Requirements for Machine Learning-Based Software Systems” International Conference on the Quality of Information and Communications Technology (2024), (pp. 3-20). https://doi.org/10.1007/978-3-031-70245-7_1sv
dc.relation.haspart[F] K. M. Habibullah, J. G. Diaz, G. Gay, J. Horkoff “Maintainability Definition, Scoping, and Measurement for Machine Learning Systems” Accepted to the International Conference on the Quality of Information and Communications Technology (2025).sv
dc.subjectNon-functional Requirementssv
dc.subjectNFRssv
dc.subjectMachine Learningsv
dc.subjectQuality Requirementssv
dc.subjectRequirements Engineeringsv
dc.titleNon-Functional Requirements for Machine Learning Systemssv
dc.typeText
dc.type.svepDoctoral thesis

Files

Original bundle

Now showing 1 - 4 of 4
No Thumbnail Available
Name:
Cover.pdf
Size:
368.4 KB
Format:
Adobe Portable Document Format
Description:
Cover
No Thumbnail Available
Name:
Abstract.pdf
Size:
235.06 KB
Format:
Adobe Portable Document Format
Description:
Abstract
No Thumbnail Available
Name:
Thesis_Habibullah.pdf
Size:
5.08 MB
Format:
Adobe Portable Document Format
Description:
Thesis
No Thumbnail Available
Name:
Thesis_withoutPapers_Habibullah.pdf
Size:
1.27 MB
Format:
Adobe Portable Document Format
Description:
Thesis without papers

License bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
4.68 KB
Format:
Item-specific license agreed upon to submission
Description: