November 2025
Exam - Semester Examination
Session - November 2025
Question 1 (20 Marks)
Question Statement
A FinTech startup wants to build a system to detect fraudulent transactions in real-time. They have a massive dataset of past transactions, with some of them already labeled as 'fraudulent' or 'legitimate'. They are also considering incorporating new, unlabeled transaction data to discover new fraud patterns.
- i) Explain the primary challenge of using a pure supervised learning approach for this task, especially when new, unknown fraud types emerge. (10 Marks)
- ii) Propose a hybrid machine learning strategy that combines both supervised and unsupervised learning techniques to address this challenge. Justify your choice of approach by explaining how it overcomes the limitations of using a single learning paradigm. (10 Marks)
Solution 1 (20 Marks)
(i) Primary Challenges of Pure Supervised Learning (10 Marks)
A pure supervised model learns a decision boundary mapping transaction features to historical class labels by approximating the posterior . While highly effective for known, stationary fraud topologies, this paradigm faces fundamental structural failures in a dynamic financial environment:
1. Violation of the Closed-World Assumption (Zero-Day Invisibility)
- Supervised models operate under the closed-world hypothesis: test data distributions are assumed to follow the support of the training distribution ().
- Emerging fraud schemes (e.g., automated credential stuffing bots, synthetic identities, novel micro-deposit exploits) exhibit feature patterns never seen during model training.
- Because the supervised model has only seen historical legitimate points in that new region of space, it assigns a high posterior probability of legitimacy (), resulting in catastrophic False Negatives.
2. Concept Drift & Adversarial Distribution Shifts
- Fraud detection is inherently adversarial. Attackers continuously alter behavior to bypass production classification thresholds:
- Covariate Shift: (spending behaviors shift due to external trends).
- Concept Drift: (a previously benign transaction signature is repurposed for exploitation).
- Pure supervised classifiers cannot detect drift autonomously; they require verified labels from the shifted distribution to update their loss surfaces.
3. Severe Label Latency Window
- Ground-truth fraud labels are subject to substantial latency due to banking dispute processes and 30 to 90-day chargeback cycles.
- During this latency window, a pure supervised model remains static and blind, allowing new fraud campaigns to scale undetected before ground-truth labels can be incorporated into retraining.
4. Extreme Class Imbalance & Majority Loss Domination
- Fraud typically accounts for less than 0.1% of transactions (). Under empirical risk minimization, the loss function is dominated by the legitimate majority class, suppressing sensitivity to subtle fraud boundaries unless aggressive sampling is applied.
(ii) Proposed Hybrid Machine Learning Strategy (10 Marks)
To bridge the gap between real-time millisecond execution and zero-day anomaly detection, we propose a Two-Stage Hybrid Learning Pipeline integrating Unsupervised Outlier Scoring, Supervised Gradient Boosted Classifiers, and Active Learning.
Pipeline Components
1. Stage 1: Unsupervised Representation & Anomaly Scoring (Novel Pattern Discovery)
- Deep Semi-Supervised Autoencoder: An autoencoder is trained on high-volume, unflagged transactions to learn the compact manifold of normal behavior:
- Anomaly Reconstruction Score: When an unseen fraud pattern arrives, its reconstruction error serves as a continuous anomaly score: Because novel fraud schemes deviate from normal transactions, they produce high reconstruction errors without requiring historical labels.
2. Stage 2: Supervised Real-Time Classification (High Precision on Known Patterns)
- Feature Augmentation: The supervised model (e.g., LightGBM) takes original transaction features augmented with the unsupervised latent embedding and anomaly score:
- Latency SLA: LightGBM evaluates the augmented feature vector in sub-10 milliseconds, satisfying real-time production requirements.
3. Stage 3: Active Learning & Semi-Supervised Triage
- Transactions exhibiting high unsupervised anomaly scores () but uncertain supervised probabilities () are sent to an analyst review queue.
- Analyst verifications generate ground truth for emerging patterns, updating the supervised dataset via Active Learning:
Paradigm Comparison
| Dimension | Pure Supervised | Pure Unsupervised | Proposed Hybrid Paradigm |
|---|---|---|---|
| Known Fraud Precision | High | Low (high false alarm rate) | High (supervised classifier) |
| Zero-Day Novel Fraud | Zero (blind to unseen types) | High (detects distribution shifts) | High (unsupervised anomaly engine) |
| False Positive Overhead | Controlled | Severe (unusual fraud) | Balanced (anomaly score as a feature) |
| Adaptation to Concept Drift | Delayed (30-90 days) | Immediate | Continuous (Active Learning loop) |
Examiner's Note
Full marks require stating both the mathematical basis (closed-world hypothesis, distribution shifts) and operational realities (chargeback latency, inference speed SLAs). Specifying a concrete architecture (e.g., Autoencoder reconstruction error feeding into a Gradient Boosted Classifier) directly fulfills the 12-mark requirement for part (ii).
Question 2 (20 Marks)
Question Statement
A company is developing a machine learning model to predict a rare event in a manufacturing process. The dataset consists of 10,000 data points. In the test set of 1,000 data points, only 10 are positive events. Your model makes the following predictions:
- It correctly identifies 7 out of the 10 positive events.
- It incorrectly flags 25 negative events as positive.
Based on this information, calculate the following performance metrics. Show all your calculations. (15 Marks)
- True Positives (TP), True Negatives (TN), False Positives (FP), and False Negatives (FN).
- Accuracy.
- Precision.
- Recall.
- F1-score.
Based on your calculations, analyze which metric is most suitable for this problem and explain why. (5 Marks)
Solution 2 (20 Marks)
1. Derivation of Confusion Matrix Parameters (15 Marks)
From the test set specification:
- Total Test Instances ():
- Total Actual Positive Events ():
- Total Actual Negative Events ():
Mapping model predictions to matrix elements:
- True Positives (): The model correctly identifies 7 out of the 10 positive events .
- False Negatives (): Missed actual positive events .
- False Positives (): Incorrectly flagged negative events .
- True Negatives (): Correctly classified negative events .
Confusion Matrix Table
| Actual \ Predicted | Predicted Positive () | Predicted Negative () | Total Actual |
|---|---|---|---|
| Actual Positive () | |||
| Actual Negative () | |||
| Total Predicted |
2. Accuracy Calculation
3. Precision Calculation
4. Recall Calculation
5. F1-Score Calculation
Using the harmonic mean formulation:
Substituting the rational fractions:
Metric Suitability Analysis for Rare Manufacturing Events (5 Marks)
1. Why Accuracy is Misleading (The Accuracy Paradox)
- The model achieves accuracy. However, consider a trivial baseline classifier that predicts every instance as negative ( for all ):
- The trivial model scores higher on accuracy () than our trained model (), despite capturing zero rare events (). Accuracy is heavily dominated by the majority class and is completely unsuitable for rare-event detection.
2. Operational Cost Asymmetry in Manufacturing
- Cost of False Negative (): High. A missed rare failure causes machine breakdown, assembly line downtime, or defective product shipments to clients.
- Cost of False Positive (): Low. An incorrect alarm merely triggers a manual inspection by an on-site technician.
- Because , the process must minimize false negatives above all else.
3. Conclusion
- Primary Operational Metric: Recall (70.00%)
Recall directly tracks the proportion of rare manufacturing failures captured. Maximizing Recall ensures catastrophic failures are caught. - Primary Model Optimization Metric: -Score (or -Score = 33.33%)
Relying exclusively on Recall can encourage a degenerate model that flags all 1,000 items as defective (achieving 100% Recall but halting production). The -Score (weighting Recall twice as heavily as Precision) balances defect capture against false alarm overhead: Among the 5 calculated metrics, Recall is the most critical operational metric, and the -Score is the most reliable balanced metric for model selection.
Examiner's Note
Show the harmonic sum cancellation: . In the suitability analysis, explicitly contrast the trained model's accuracy (97.20%) against the null classifier's accuracy (99.00%) to prove the Accuracy Paradox.
Question 3 (20 Marks)
Question Statement
A marketing team has collected a dataset of customer feedback on a new product. The feedback is highly varied and includes both structured data and unstructured, highly subjective text. The relationship between the input variables and customer satisfaction seems to be non-linear and complex. The team leader suggests using a simple linear regression model to predict satisfaction.
- i) Justify why a non-parametric model, such as a Support Vector Machine (SVM) or Naïve Bayes Classifier, might be a better choice than a linear model for this scenario. (10 Marks)
- ii) Explain how your chosen non-parametric model handles the non-linear and complex nature of the data. (10 Marks)
Solution 3 (20 Marks)
(i) Justification Against Linear Regression and for Non-Parametric Models (10 Marks)
The team leader's recommendation to use Simple Linear Regression suffers from key structural limitations in this scenario:
Deficiencies of Linear Regression
- Rigid Parametric Form: Linear regression enforces a strict hyperplanar hypothesis space: It assumes constant marginal effects (), unable to model saturation, thresholds, or non-linear customer satisfaction dynamics.
- Failure in High-Dimensional Sparse Text: Vectorizing subjective customer feedback (via TF-IDF or Bag-of-Words) generates thousands of sparse textual features (). When , the sample covariance matrix is singular and non-invertible, causing Ordinary Least Squares (OLS) estimates to collapse.
- Multimodal Incompatibility: The dataset mixes dense structured numerical variables with sparse unstructured sentiment tokens. Linear regression cannot capture cross-modal feature interactions without manual polynomial expansion.
Superiority of Non-Parametric Models (SVM / Naive Bayes)
| Criterion | Simple Linear Regression | Support Vector Machine (Kernel SVM) | Naive Bayes Classifier |
|---|---|---|---|
| Model Type | Fixed Parametric ( parameters) | Non-Parametric (scales with support vectors) | Generative probabilistic model |
| Feature Space | Constrained to linear plane | Infinite-dimensional RKHS via kernels | High-dimensional text tokens |
| High Dimensions () | Overfits or fails numerically | Immune via dual formulation & margin control | Robust due to feature-wise independence |
| Non-Linear Dynamics | Incompatible | Solved via RBF / Polynomial kernels | Handled via log-likelihood ratios |
- Conclusion: A Support Vector Machine (SVM) is superior because its capacity is determined by the geometric distribution of the data (support vectors) rather than a rigid parameter count, providing robustness against high-dimensional sparsity while maintaining a globally optimal convex objective.
(ii) How Kernel SVM Handles Non-Linear, Complex Data (10 Marks)
1. Cover's Theorem & High-Dimensional Projections
Cover's Theorem states that a non-linear pattern classification problem is more likely to be linearly separable when cast into a higher-dimensional space through a non-linear mapping:
2. The Kernel Trick (Avoiding Explicit Inner Products)
Directly evaluating in high dimensions is computationally intractable. In the dual formulation of SVM, the training data enters exclusively via inner products: subject to and .
The Kernel Trick replaces the inner product with an equivalent Mercer kernel function evaluated directly in the input space:
3. The Radial Basis Function (RBF) Kernel
For non-linear marketing feedback combining text features and numerical metrics, the Gaussian RBF kernel is optimal:
Expanding the exponential term via Taylor series shows that the RBF kernel corresponds to an infinite-dimensional polynomial feature space: This enables the SVM to model complex feature interactions across text sentiment and purchase metadata without explicitly computing infinite coordinates.
4. Final Non-Linear Decision Function
Predictions depend solely on the subset of data points that lie on or violate the margin boundaries (the Support Vectors where ):
Examiner's Note
State the mathematical identity of the Kernel Trick: . Citing Cover's Theorem and demonstrating via Taylor series how the RBF kernel maps inputs into an infinite-dimensional space earns full marks on part (ii).
Question 4 (20 Marks)
Question Statement
You have trained a single Decision Tree model to predict housing prices. While the model has a very low error on the training data, its performance on new, unseen data is significantly worse. Your manager is concerned about this and asks for a more robust solution.
- i) Diagnose the problem with your current single Decision Tree model. (6 Marks)
- ii) Propose a solution using Ensembling techniques. (6 Marks)
- iii) Explain in detail how a specific Ensembling method addresses the problem identified in your diagnosis. (8 Marks)
Solution 4 (20 Marks)
(i) Diagnosis of the Single Decision Tree Model (6 Marks)
The combination of near-zero training error and poor test performance is a classic manifestation of Overfitting, driven by High Variance and Low Bias in the Bias-Variance Decomposition:
Root Causes
- Unconstrained Tree Depth: Without pruning or depth constraints, the tree recursively splits feature space until leaves contain single instances (). Training bias vanishes (), but variance explodes ().
- High Sensitivity (Instability): CART models use greedy recursive splitting. A minor change in a single training housing record can alter the root or early splits, resulting in an entirely different tree topology.
- Step-Function Approximation: Regression trees approximate continuous target variables (housing prices) with piecewise-constant partitions. Fitting smooth price curves requires excessive splits, memorizing localized noise and outliers.
(ii) Proposed Solution: Ensemble Learning (6 Marks)
To eliminate high variance while preserving the non-linear expressive power of decision trees, we deploy Random Forest Regression (an ensemble of Bootstrap-Aggregated decision trees with feature subspace randomization).
(iii) Detailed Mechanics of Random Forest Regression (8 Marks)
Random Forest addresses high variance through three complementary mechanisms:
1. Bootstrap Aggregation (Bagging)
- Given training set of size , draw independent bootstrap datasets , each formed by sampling observations uniformly at random with replacement.
- Each sample leaves approximately of instances out of training: These form the Out-Of-Bag (OOB) dataset, providing an internal validation estimate.
- Train an unpruned regression tree on each bootstrap sample , and compute the ensemble average:
2. Mathematical Proof of Variance Reduction
Let each individual tree have variance .
Let the pairwise correlation between trees be for .
The variance of the ensemble mean is derived as:
As the ensemble size grows ():
3. Feature Subspace Randomization (Minimizing Correlation )
- If we only use Bagging, all trees split on the most dominant features (e.g., house square footage), making trees highly correlated () and limiting variance reduction.
- Random Forest Modification: At every node split, the algorithm restricts candidate features to a randomly selected subset:
- This decorrelates the individual trees, driving . As , the residual variance approaches zero, yielding a stable, low-variance model that generalizes well to unseen housing data.
Examiner's Note
The core scoring element for Question 4 is the explicit derivation of ensemble variance: . Showing how feature subsampling () lowers directly answers part (iii).
Question 5 (20 Marks)
Question Statement
You are a data scientist working for a bioinformatics company. Your task is to analyze a gene expression dataset with 5,000 genes (features) and 100 samples (data points). The company wants to identify patterns in the data to potentially discover new disease subtypes. The high number of genes makes it impossible to visualize and difficult for most machine learning algorithms to process efficiently.
- i) Justify the need for dimensionality reduction in this specific scenario. (6 Marks)
- ii) Propose a suitable dimensionality reduction technique for this dataset and explain its underlying working principle. (8 Marks)
- iii) After applying dimensionality reduction, you decide to use K-Means Clustering to identify potential disease subtypes. Explain a key challenge you might face when interpreting the resulting clusters and how you could address it to provide meaningful insights to the biologists. (6 Marks)
Solution 5 (20 Marks)
(i) Justification for Dimensionality Reduction () (6 Marks)
In this dataset, features (genes, ) vastly exceed samples (patients, ). This regime requires dimensionality reduction due to:
- Distance Metric Degeneration (Loss of Contrast): In high-dimensional spaces, pairwise Euclidean distances converge to a uniform scalar: Every patient vector becomes equidistant from every other patient in , rendering distance-based clustering algorithms like K-Means ineffective.
- Subspace Rank Deficiency: The empirical data matrix has a maximum possible rank of . The data lies entirely within a 99-dimensional subspace; the remaining 4,901 dimensions represent empty space dominated by biological assay noise.
- High Multicollinearity: Co-regulated genes share similar expression patterns. Retaining all 5,000 features introduces redundant information that destabilizes distance calculations.
- Visual Intractability: Visual inspection of cluster separation requires projecting high-dimensional expression manifolds into 2D/3D representations.
(ii) Proposed Dimensionality Reduction: Principal Component Analysis via Dual SVD (8 Marks)
We deploy Principal Component Analysis (PCA) implemented via Singular Value Decomposition (SVD).
Mathematical Working Principle
-
Centering: Given (), center each column:
-
Maximizing Projection Variance: Find orthogonal axes that maximize projected sample variance:
-
Dual SVD Formulation (Avoiding Computation): Computing the full covariance matrix is computationally inefficient. Instead, we apply SVD directly to the centered matrix :
- : Left singular vectors (patient eigenvectors).
- : Singular values .
- : Right singular vectors (gene loading vectors).
The eigenvalues of the covariance matrix relate directly to the singular values:
-
Low-Rank Projection: Project the 100 samples onto the top principal components (): We select based on the cumulative explained variance ratio ():
(iii) Cluster Interpretation Challenge & Biological Translation (6 Marks)
The Interpretation Challenge: The Latent Space Barrier
- K-Means segments the 100 patients into clusters based on coordinates in reduced space (e.g., ).
- The Dilemma: Principal components are abstract linear combinations of all 5,000 genes:
- Biologists cannot treat patients based on mathematical eigenvalues; they require identification of specific driver biomarkers and mutated biological pathways.
Methodological Solutions
- Eigenvector Factor Loading Inspection: Examine the loading coefficients in . Genes with the highest absolute loading weights along the primary separation components are identified as candidate driver biomarkers.
- Differential Expression Analysis (DEA): Map the cluster assignments back to the original 5,000-gene space. Perform two-sample Welch's -tests across clusters with Benjamini-Hochberg False Discovery Rate (FDR) correction: Volcano plots (Fold Change vs. ) isolate statistically significant up/down-regulated genes.
- Pathway Enrichment Analysis (GSEA / KEGG): Feed significant biomarkers into Gene Ontology databases to translate mathematical clusters into functional biological mechanisms (e.g., "Subtype 2 displays upregulation in DNA repair pathways, pointing to targeted therapeutic options").
Examiner's Note
Emphasize the computational shortcut for : computing SVD on or the Gram matrix requires operations, avoiding the operations of a full covariance eigendecomposition. In part (iii), referencing Differential Expression Analysis (DEA) and Gene Ontology (GO) enrichment provides an applied answer.
Question 6 (20 Marks)
Question Statement
A cybersecurity firm is developing a model to detect network intrusions. The dataset is highly imbalanced, with only 0.5% of the data representing actual intrusions. The initial model, a Logistic Regression classifier, has an accuracy of 99.5% but misses nearly all the intrusion events.
- i) Evaluate the misleading nature of accuracy as a performance metric for this imbalanced classification problem. (6 Marks)
- ii) Recommend two alternative metrics that would be more appropriate for this scenario. Justify why each of these metrics is a better choice. (6 Marks)
- iii) Suggest two strategies to handle the class imbalance in the dataset to improve the model's ability to detect intrusions. (8 Marks)
Solution 6 (20 Marks)
(i) Misleading Nature of Accuracy (The Accuracy Paradox) (6 Marks)
The reported accuracy is a textbook demonstration of the Accuracy Paradox in severe class imbalance:
1. Mathematical Demonstration of the Null Model
Let the network dataset contain packets:
- Actual Intrusions (Minority, ): packets
- Benign Traffic (Majority, ): packets
Consider a trivial Null Predictor that classifies every packet as benign ():
The null classifier achieves accuracy while missing of security intrusions.
2. Cross-Entropy Loss Domination
Standard Logistic Regression minimizes binary cross-entropy: Because benign samples outnumber intrusions 199 to 1, the gradient is dominated by benign terms. The optimizer drives the intercept , pushing predicted probabilities for all instances to minimize training loss.
(ii) Two Recommended Alternative Metrics (6 Marks)
1. Precision-Recall AUC (PR-AUC / Average Precision)
- Definition: The area under the Precision-Recall curve across all classification thresholds :
- Justification: ROC-AUC is misleading here because the False Positive Rate denominator () contains . Hundreds of false alarms produce a small , artificially inflating the ROC-AUC score. PR-AUC focuses exclusively on the positive minority class (), making it sensitive to genuine intrusion detection performance.
2. -Score (Recall-Weighted Harmonic Mean)
- Definition:
- Justification: A missed intrusion () risks severe security breaches, while a false alarm () incurs minor analyst review overhead. Setting places twice as much weight on Recall as Precision, penalizing models that fail to capture intrusions while retaining regularization against excessive false alarms.
(iii) Two Strategies to Handle Class Imbalance (8 Marks)
1. Algorithm-Level Strategy: Cost-Sensitive Learning & Balanced Class Weights
Modify the cross-entropy loss function to weight errors inversely proportional to class frequencies: Setting balanced weights: A single missed intrusion is penalized 200 times more heavily than a false positive, preventing the majority class from dominating gradient updates.
2. Data-Level Strategy: SMOTE Combined with Tomek Links
- SMOTE (Synthetic Minority Over-sampling Technique): Rather than duplicating rows (which leads to overfitting), SMOTE synthesizes new minority points along the feature space segments connecting -nearest minority neighbors:
- Tomek Links Cleaning: Remove borderline majority instances that form mutually closest opposite-class pairs with synthetic minority instances, clarifying the decision boundary.
Examiner's Note
Bloom's Taxonomy Level 5 (Evaluation) requires comparing why PR-AUC is superior to ROC-AUC in extreme imbalance (the dilution problem in the denominator). Providing the exact class-weight balance formula () rounds out a complete response.
Question 7 (20 Marks)
Question Statement
A manufacturing plant is using a Boosting model to predict equipment failure based on sensor data. The model is highly accurate but is so complex that a human engineer cannot understand how it makes its predictions. The engineers are hesitant to trust a model they cannot interpret, which is crucial for root cause analysis of failures.
- i) Analyze the trade-off between model complexity and interpretability in this context. (6 Marks)
- ii) Explain why the boosting model might be difficult to interpret compared to a single Decision Tree. (6 Marks)
- iii) Propose an alternative approach that could offer a better balance between predictive performance and interpretability, and discuss its potential advantages and disadvantages in this specific scenario. (8 Marks)
Solution 7 (20 Marks)
(i) Complexity vs. Interpretability Trade-Off Analysis (6 Marks)
In industrial manufacturing, deploying machine learning requires balancing Predictive Accuracy (Expressive Capacity) against Cognitive Transparency (Interpretability):
| Model Paradigm | Interpretability | Predictive Accuracy | Root Cause Analysis (RCA) Utility |
|---|---|---|---|
| White-Box Baselines (Single Tree, Linear Model) | High (Transparent rules) | Low-to-Moderate (Underfits sensor complexity) | High (Immediate physical validation) |
| Black-Box Ensembles (Gradient Boosting, Deep Nets) | Low (Entangled additive splits) | High (Captures non-linear failure signals) | Low (Blind alert triggers unneeded teardowns) |
| Glass-Box Ensembles (Explainable Boosting - EBM) | High (Additive 2D curves) | High (Near-XGBoost performance) | High (Direct component attribution) |
1. The Cost of Pure Complexity Without Interpretability
- Ensemble models (such as XGBoost with 300 trees) capture higher-order sensor interactions (vibration, heat, pressure), yielding high failure detection rates.
- The Operational Bottleneck: High accuracy without interpretability prevents Root Cause Analysis (RCA). If a model predicts a 94% probability of failure but cannot indicate which component is degrading (e.g., bearing wear vs. coolant blockage), maintenance crews must perform costly system teardowns, negating predictive maintenance benefits.
2. Trust, Safety, and Spurious Correlations
- Plant engineers carry operational liability. An uninterpretable model risks exploiting non-causal correlations (e.g., shifts in ambient factory temperature or operator shift times rather than true mechanical stress).
- Engineers cannot validate model logic against thermodynamic principles, leading them to bypass alerts during critical operations.
(ii) Why Boosting is Difficult to Interpret vs. a Single Decision Tree (6 Marks)
1. Single Decision Tree: Transparent, Rule-Based Logic
A single decision tree features high simulative interpretability (can be validated step-by-step by a domain expert):
- Prediction paths map directly to IF-THEN rules:
- The feature space is segmented into visible, axis-aligned orthogonal partitions.
2. Boosting Model: Additive Gradient Entanglement
Gradient Boosted Decision Trees (GBDT) replace this single rule set with an additive expansion of sequentially dependent weak learners (): where each tree does not predict the target failure label, but instead fits the pseudo-residuals (negative loss gradients) of preceding trees:
Key Architectural Differences
| Dimension | Single Decision Tree | Gradient Boosted Ensemble |
|---|---|---|
| Prediction Structure | Single deterministic path from root to leaf | Sum of outputs across hundreds of trees |
| Split Target | Failure label () | Residual error from previous boosting iterations |
| Feature Interactions | Visible in branch conjunctions | Distributed across hundreds of additive splits |
| Cognitive Traceability | Traceable manually on paper | Requires aggregating hundreds of separate trees |
| Tree Modularity | Stand-alone decision model | Incomplete weak learner; meaningless on its own |
(iii) Proposed Alternative Approaches & Trade-Offs (8 Marks)
To reconcile predictive power with interpretability, two primary methodologies are applicable:
Approach 1: Explainable Boosting Machines (EBM / GAM) [Intrinsic Glass-Box]
EBMs are Generalized Additive Models with Pairwise Interactions:
- Mechanism: Trees are trained on one feature at a time using round-robin cyclic learning, preventing feature entanglement.
- Interpretability: Each produces an exact 2D graph showing how changes in that sensor affect failure risk.
Approach 2: TreeSHAP (Shapley Additive Explanations) [Post-Hoc Attribution]
Keep the existing Boosting model, but compute local feature attribution values via TreeSHAP: where represents the exact marginal contribution of sensor to the prediction, satisfying four axiomatic game-theoretic properties: Efficiency, Symmetry, Dummy (Null Effect), and Additivity.
Comparison for Manufacturing Deployment
| Dimension | Option 1: Explainable Boosting Machines (EBM) | Option 2: Gradient Boosting + TreeSHAP |
|---|---|---|
| Paradigm | Intrinsic Glass-Box Model | Post-Hoc Model-Agnostic / Tree-Specific |
| Predictive Accuracy | Comparable to XGBoost on tabular sensor data | State-of-the-art ensemble accuracy |
| Root Cause Utility | High: inspect exact global sensor curves | High: local waterfall charts for each alarm |
| Adoption Friction | Requires retraining and migrating models | Runs directly on existing trained boosting models |
Plant Recommendation
- Immediate Deployment: Integrate TreeSHAP with the current Boosting pipeline to provide local attribution waterfall plots for every generated alert (e.g., "Failure likelihood 94%: driven +42% by exhaust temperature > 450°C and +35% by axial vibration"), enabling immediate root cause analysis without model retraining.
- Long-Term Strategy: Retrain using Explainable Boosting Machines (EBM) to achieve intrinsic glass-box interpretability that satisfies engineering safety standards.
Examiner's Note
Distinguish between intrinsic interpretability (models that are transparent by design, like EBMs) and post-hoc interpretability (methods applied after training, like SHAP/LIME). Highlighting that SHAP values are uniquely grounded in cooperative game theory axioms (Efficiency, Symmetry, Dummy, Additivity) provides a well-reasoned response.