Cal Poly
Detecting Software Anomalies in Microservices Using Spectrograms, Scalograms, and Convolutional Neural Networks
Abstract
dc:description.abstractThe growing complexity of cloud-native microservices has intensified the need for robust anomaly detection mechanisms, particularly for misconfiguration-induced failures that often manifest subtly and propagate across service boundaries. This thesis proposes a comparative framework for runtime anomaly detection by transforming system metrics into frequency-domain representations—spectrograms using Short-Time Fourier Transform and scalograms using Continuous Wavelet Transform—and classifying them with Convolutional Neural Networks (CNNs). Evaluated on DeathStarBench, a production-grade microservices benchmark with injected anomalies in the Reservation and Recommendation services, the framework also includes baseline Long Short-Term Memory (LSTM) models trained on raw time-series features. Stratified 5-fold cross-validation shows that CNNs trained on scalograms outperform all other models, achieving 98.54% accuracy, 98.53% F1-score, and a Matthews Correlation Coefficient (MCC) of 0.9628, compared to 84.76% accuracy and 85.10% F1-score for the best LSTM model (128×8). Scalograms also deliver superior class-wise F1-scores for both anomalies—0.9451 for A1 and 0.9276 for A2—highlighting their strength in capturing bursty and slowly varying patterns often missed by fixed-window spectrograms and temporal baselines. These findings support the hypothesis that wavelet-based representations offer enhanced sensitivity and robustness for detecting misconfigurations in dynamic, resource-constrained microservice environments, paving the way for future research in multi-resolution anomaly detection and real-time telemetry analysis.
Degree
thesis:*- Name thesis:degree_name
- MS in Computer Science
- Discipline thesis:degree_discipline
- Computer Science
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Jonnaikode, Snehith
- Contributors dc:contributor
-
- Joydeep Mukherjee
- Computer Science
- College of Engineering
Identifiers
dc:identifier.*- Repository record dc:identifier
- https://digitalcommons.calpoly.edu/theses/2994