Introduction
Self-adaptive software (SAS) must continuously adjust its behavior to maintain performance in dynamic environments. However, traditional Requirements Engineering (RE) faces significant challenges when dealing with uncertainty. Contextual data from sensors is often imprecise, and human requirements—such as "high efficiency"—are inherently "fuzzy" and subjective. This paper proposes a fuzzy-theory-based framework that bridges the gap between these ambiguous requirements and precise system configurations, allowing software to not only adapt but also evolve its logic over time.
Methodology: A Multi-Layered Reasoning Framework
The proposed approach integrates fuzzy logic with control theory and machine learning to handle uncertainties at runtime. The process follows a structured four-step workflow: modeling uncertainties, generating reasoning rules, designing adaptation mechanisms, and final decision-making/learning.
Fuzzy Modeling and Goal Extension
The framework utilizes fuzzy sets to describe linguistic terms for context variables and softgoals. It extends the KAOS goal modeling framework by incorporating fuzzy "Help/Hurt" relations. This allows the system to quantify how specific tasks (e.g., locating a user via GPS vs. network) impact non-functional requirements like energy efficiency.
Reasoning Schemas
To facilitate adaptation, the authors define four distinct reasoning schemas:
- Forward Reasoning (FR): A direct, rule-based adaptation approach.
- Backward Reasoning (BR): Employs a Genetic Algorithm (GA) to find configurations that minimize the gap between desired and actual goal satisfaction.
- Parameter-identified Reasoning (PR): A "gray-box" method that uses GA to tune fuzzy membership function parameters at runtime.
- System-identified Reasoning (SR): A "black-box" method using Neural Networks (NN) to learn mappings between context and configuration from scratch.
Case Study: Mobile Business Application
The framework was evaluated using a simulated mobile push-notification system. The model accounts for various computing contexts, such as bandwidth rate and battery energy, and their impact on goals like time and energy efficiency.
The researchers tested the system against three types of context data: predictable (derivable), quasi-noisy (predictable with Gaussian noise), and purely noisy.
Key Insights and Results
The evaluation revealed several critical findings:
- Efficiency vs. Accuracy: While Backward Reasoning (BR) significantly improved requirement satisfaction compared to the naive Forward Reasoning (FR), it introduced higher latency (~0.35s vs. ~0.003s per adaptation).
- Evolutionary Learning: Both PR and SR schemas successfully reduced inconsistencies between initial design-time knowledge and actual runtime performance. Interestingly, the "gray-box" PR approach often proved more flexible by leveraging prior domain knowledge rather than learning from a blank slate.
- Noise Tolerance: The system remained stable under minor noise, though highly volatile "noisy" contexts still present a challenge for consistent adaptation.
Conclusion and Future Work
By treating requirements as live, evolving entities rather than static documents, this fuzzy-theory-based approach provides a robust foundation for SAS. Future research will focus on reducing computational overhead for real-time systems and integrating stochastic uncertainty models via Hidden Markov Models (HMM) and formal verification tools like UPPAAL-SMC.
Summary updated