Interpreting Long Short-Term Memory Autoencoders: A Study on Explainable AI Using LIME
2025 (English)Independent thesis Advanced level (professional degree), 20 credits / 30 HE credits
Student thesis
Abstract [en]
As machine learning models become increasingly prevalent in financial applications, the need for transparency and interpretability has grown. This thesis investigates the application of Explainable Artificial Intelligence (XAI) in the context of anomaly detection within transactional data at Handelsbanken. Specifically, Long Short-Term Memory (LSTM) autoencoders are used to detect anomalies in sequential trading data, followed by the application of the Local Interpretable Model-agnostic Explanations (LIME) method to interpret the models' behaviour. The study highlights the effectiveness of LSTM networks in capturing temporal dependencies and reconstructing legitimate transaction sequences. To bridge the gap between predictive performance and interpretability, reconstruction errors from the autoencoder are leveraged as labels for the LIME explanations. Through single instance analysis, aggregated importance measures, and heatmaps, the study demonstrates how LIME can provide valuable insights into feature contributions at local and global levels. The results indicate that LIME can be a practical tool for post hoc model interpretation in financial anomaly detection, offering potential benefits for improved transparency and model trustworthiness within the banking sector.
Abstract [sv]
I takt med att maskininlärningsmodeller blir allt vanligare inom finansiella tillämpningar, ökar behovet av förståelse. Detta examensarbete undersöker användningen av förklarbar AI i samband med avvikelseidentifiering i transaktionsdata hos Handelsbanken. Specifikt används Long Short-Term Memory (LSTM) autoencoders för att identifiera avvikelser i sekventiell transaktionsdata, följt av tillämpning av metoden Local Interpretable Model-agnostic Explanation (LIME) för att tolka modellernas beteende. Studien belyser LSTM-nätverks förmåga att fånga upp anomalier och rekonstruera transaktionssekvenser. För att minska klyftan mellan prediktiv prestanda och tolkningsbarhet används rekonstruktionsfel från autoencodern som annotation för LIME-förklaringarna. Genom analys av enskilda instanser, aggregerade mått och färgdiagram visar studien hur LIME ger upphov till värdefulla insikter hos variabler på både lokal och global nivå. Resultaten indikerar att LIME kan vara ett praktiskt verktyg till att förklara modeller inom finansiell avvikelseidentifiering, med potentiella fördelar för ökad transparens och tillit till modeller inom banksektorn.
Place, publisher, year, edition, pages
2025. , p. 51
Keywords [en]
LIME, explainable AI, LSTM, anomaly detection, transactional data, autoencoder, unsupervised learning
Keywords [sv]
LIME, förklarbar AI, LSTM, avvikelseidentifiering, transaktionsdata, autoencoder, unsupervised learning
National Category
Mathematical sciences
Identifiers
URN: urn:nbn:se:umu:diva-242172OAI: oai:DiVA.org:umu-242172DiVA, id: diva2:1983831
External cooperation
Handelsbanken
Educational program
Master of Science in Engineering and Management
Supervisors
Examiners
2025-08-072025-07-132025-09-10Bibliographically approved