Skip to content
iSAQB-blog-article-gharbi-blattner

Architecture for AI Systems

A Practical Report from the Financial Sector by Mahbouba Gharbi and Dimitri Blatner

With the rise of data-driven models, AI compo­nents have long become an integral part of productive IT systems. But how should we approach systems archi­tec­turally when they make autonomous decisions? A customer project focused on the analysis and forecasting of financial data reveals the challenges involved – and the solutions that proved successful.

Initial Situation and Objectives

In this project, we developed software for the automated evalu­ation of financial data. The goal was a system that analyzes historical and current market data, detects patterns, and generates forecasts – for example, the proba­bility of a price increase of more than five percent. To achieve this, we designed a time series model that included a data strategy, feature engineering, and model architecture. For classi­fi­cation tasks, additional models were used, especially in the case of imbal­anced class distributions.

Integration into the existing IT landscape was a key challenge: the model had to be powerful, scalable, and explainable. Although it delivered accurate predic­tions, the decision-making process was initially hard to under­stand for the business depart­ments – trace­ability was essential.

Trans­parency Through Trace­ability and Monitoring

One of the main goals was to make the model’s decision-making trans­parent. A reporting tool illus­trated which features were primarily respon­sible for a prediction. The focus was on identi­fying relevant influ­encing factors, quanti­fying uncer­tainty, and selecting appro­priate inter­pre­tation methods.

Confi­dence Metrics: Quanti­fying Uncer­tainty & Supporting Decisions

To improve explain­ability and accep­tance, we evaluated methods for local model inter­pre­tation. SHAP (SHapley Additive exPla­na­tions) proved partic­u­larly suitable. Using Tree SHAP for ensemble models, we achieved a good balance between expla­nation quality and perfor­mance. Under certain condi­tions, for instance, the 30-day moving average could be identified as the dominant factor.

Confi­dence metrics quantified the uncer­tainty of model predic­tions without affecting system perfor­mance. These were based on confi­dence intervals and proba­bility distri­b­u­tions. A forecast of +10% with an actual increase of only 5% was flagged as uncertain.

Heatmaps visualized these metrics: color-coded displays highlighted critical data points, making uncer­tainty immedi­ately visible. Business depart­ments could respond in a targeted way to risk-prone predictions.

Abbildung 1 - Heatmap EN

Figure 1: Heatmap

 

Monitoring System: Super­vision and Anomaly Detection

A multi-stage monitoring system ensured the relia­bility and function­ality of the model in live operation:

  • Drift detection: Identi­fying data shifts (e.g., due to interest rate changes or political events)
  • Perfor­mance monitoring: Assessing metrics such as accuracy, latency, F1 score – dashboard with real-time monitoring
  • Error analysis: Collecting and analyzing critical decisions to optimize the model

Abbildung 2 EN

Figure 2: Technical quality metrics

 

Decisions were considered critical if they signif­i­cantly deviated from the actual outcome or if the F1 score dropped below 0.75. An analysis tool collected data points to further develop the models in a targeted manner. AUC values and the Brier score were also used for calibration. A confusion matrix supported error classi­fi­cation. In addition, business-relevant metrics such as hit rate for price increases >5%, expected profit per trade, Sharpe ratio, and maximum drawdown were incor­po­rated. The combi­nation of technical and economic analysis enabled a well-founded assessment of model quality.

Abbildung 3 EN

Figure 3: Business-relevant evalu­ation metrics

 

Anonymization and Protection of Input Data

Processing sensitive financial data required strict measures. The data pipeline anonymized names and account information and used techniques such as gener­al­ization, pseudo­nymization, and encryption. Differ­ential privacy minimized the risk of re-identi­fi­cation and supported compliance with regulatory requirements.

Technical Imple­men­tation: Model Versioning and Fallback Mechanism

An essential component was model versioning: unlike tradi­tional software versioning, we additionally documented training data, hyper­pa­ra­meters, and evalu­ation metrics. A model registry stored all versions, including associated metadata and hyper­pa­ra­meters. In case of errors, a fallback mechanism with simple, rule-based calcu­la­tions ensured critical decisions remained protected.

 

Abbildung 4 EN

Figure 4: Schematic diagram of technical implementation

 

Lessons Learned: Architecture as Responsibility

Integrating AI requires foresight, team commu­ni­cation, and disci­pline. Goal defin­ition, data strategy, and system architecture must be aligned early. Our project showed: data protection, trace­ability, confi­dence metrics, and error analyses determine accep­tance and relia­bility. AI is not an end in itself – only in combi­nation with sound architecture, inter­dis­ci­plinary collab­o­ration, and continuous quality assurance does a robust, respon­sible system emerge.

AI architecture means: design, explain, safeguard – and contin­u­ously adapt.

 


About the Authors:

Mahbouba Gharbi is Managing Director, software architect, and trainer at ITech Progress GmbH, an iSAQB®-accredited training provider, with more than twenty years of experience. As curator of the iSAQB module SWARC4AI, Mahbouba teaches IT profes­sionals method­ological and technical concepts for designing and devel­oping scalable AI systems, with a strong focus on practical and sustainable solutions.

Dimitri Blatner is a software architect and trainer at ITech Progress GmbH. As a certified trainer for SWARC4AI, Dimitri shares practical knowledge on designing and devel­oping scalable AI systems. His focus areas include cloud technologies, DevSecOps, hybrid archi­tec­tures, and AI solutions. He supports companies in realizing innov­ative and secure systems.

Share this article:

Related Posts

Stay Up-to-Date with the iSAQB® Newsletter!

Scroll To Top