Abstract
This paper presents a novel framework that bridges Product Line Engineering (PLE) and Machine Learning (ML). By utilizing ML as both an implementation tool for predictive features and a source of quantitative performance metrics, the authors enable the creation of more robust Attributed Feature Models. This approach is demonstrated through a bike-sharing system (BSS) case study, where ML-derived attributes like accuracy and mean absolute error allow stakeholders to perform data-driven cost-performance trade-offs during system configuration.
Introduction
Product Line Engineering (PLE) is a well-established methodology for managing families of related software systems by identifying commonalities and variabilities, typically represented in feature models. However, modern applications increasingly demand "predictive features"—such as estimating bike arrival times or predicting user destinations—which are difficult to implement using traditional rule-based logic.
Furthermore, stakeholders often struggle with Attributed Feature Models, where features are assigned non-functional characteristics like cost or reliability. Historically, there has been no standardized way to predict a feature's performance before deployment. This research addresses this gap by proposing ML as a dual-purpose tool: to build complex predictive features and to provide the "performance attributes" required for principled design decisions.
Methodology
The proposed framework employs a supervised learning approach to handle two distinct types of predictive tasks within a Bike-Sharing System:
- Static Data Modeling (
UserProfile): To predict a user's destination and arrival time based on historical data, the authors utilize models such as Support Vector Machines (SVMs), Naive Bayes, or Logistic Regression. These models process static inputs like departure time and station. - Sequential Data Modeling (
LocationPreview): To predict arrival based on real-time GPS trajectories, the authors advocate for Reservoir Computing (RC), a computationally efficient type of Recurrent Neural Network (RNN) suitable for run-time training. - Evaluation as Attribute: The core innovation lies in treating the ML model's error functions (e.g., Mean Absolute Error or Class Accuracy) as formal attributes within the Feature Model. This allows for a rigorous "cost-performance trade-off" analysis during the product configuration phase.
Case Study: Bike-Sharing Systems
The methodology was applied to real-world data from Pisa, Italy, as part of the European QUANTICOL project. The dataset included over 280,000 bike hire entries over two years, capturing UserIDs, stations, and timestamps. While the Pisa fleet lacked GPS hardware at the time, the framework accounts for such features (LocationPreview) by suggesting the use of simulated or external city data for initial evaluation.
Results and Discussion
The authors successfully mapped the BSS status subsystem into a formal Feature Model. This model distinguishes between mandatory baseline features and optional predictive features that can be enhanced with ML-derived attributes.
Key findings from the methodological implementation include:
- ML as a Specification Tool: ML models bridge the gap between requirements and implementation, with performance metrics serving as "quality requirements."
- Three-Step Assessment: A rigorous pipeline of training, model selection, and final assessment on unseen data ensures that the attributes in the feature model are robust.
- Context Sensitivity: Predictive performance is highly dependent on the deployment environment (e.g., city size), necessitating re-evaluation of feature models for different contexts.
Conclusion and Future Work
This research provides a principled way to assess the runtime behavior of software components before operation, reducing risk for both suppliers and clients. Future work aims to address the "cold start" problem for new users, automate the triggers for model re-training, and integrate ML-derived attributes into modeling languages like Clafer for automated product line optimization.
Summary updated