Key highlights
100%
pipeline automation — from data arrival to endpoint creation.
>90%
precision in anomaly flagging during the pilot, validated on client data.
80%
faster time-to-action vs. manual review baselines.
Brief Summary about the case study
A large US financial services firm needed reliable anomaly detection in FX treasury transactions spanning multiple currencies, products, time buckets, and systems. We built a three-tier framework combining rule-based checks, statistical/ML (autoencoder) scoring, and LLM reasoning for final justification. Delivered on Databricks, the solution features automated training, model registration, serving endpoints, and end-to-end logging — reducing deal errors and speeding risk remediation.
Overview
Three-tier AI-powered anomaly detection framework for FX treasury data on Databricks.
We implemented a progressive, three-layer anomaly framework combining client-defined rules, statistical/ML (autoencoder) scoring, and LLM-based contextual evaluation to ensure high-accuracy detection with minimal false positives. Built on Databricks, the system automates data onboarding, model training, MLflow versioning, and serving endpoints, with end-to-end logging for full auditability. It reliably flags high-risk FX transactions across currencies, products, time buckets, and systems, accelerating risk remediation.
Zensar’s Brief – Steps taken by Zensar
Developed a three-tier anomaly detection architecture (rules, ML, LLM).
Created an autoencoder-based ML model using TensorFlow/Keras for FX deal anomaly scoring.
Built fully automated pipelines in Databricks for training, model registry, and endpoint creation.
Designed dashboards and monitoring components for transparency and auditability.
Integrated Azure OpenAI for contextual anomaly explanations.
Provided seamless integration with the client’s Treasury and Risk Manager platform.
Beyond the Brief – How it helped the client
Reduced manual transaction reviews and operational overhead.
Increased accuracy and speed in identifying erroneous FX deals.
Enabled real-time monitoring across currencies, products, time buckets, and systems.
Improved financial risk mitigation and operational decision-making.
Enhanced customer trust through proactive anomaly alerts and explanations.
Challenges
Limited automation and accuracy in identifying anomalies in high-volume FX transactions across diverse systems and products
The client handled massive volumes of FX treasury transactions daily, spanning multiple currencies, financial products, and time buckets. Manual reviews were time-consuming and error-prone, leading to delayed detection of incorrect deals. The client’s existing system lacked contextual insights, forcing teams to interpret large amounts of raw transaction data. It required a robust, scalable solution that could detect anomalies in real time, reduce false positives, and provide explanations that business users, not just data scientists, could understand. Additionally, onboarding new customers to the anomaly detection platform needed to be automated and efficient.
Solution
AI-driven multi-layer anomaly detection architecture with end-to-end automation on Databricks
We deployed a comprehensive solution combining business rules, advanced ML models, and LLM-based contextual validation. The solution identifies anomalies at various levels, from transaction patterns and deviation from historical norms to contextual mismatches. The Databricks platform automates training, model lifecycle management, and endpoint creation for new clients. MLflow ensured structured tracking of experiments and model versions. Azure OpenAI added interpretability by explaining why a specific transaction was anomalous, enabling trust and faster risk mitigation. With scalable infrastructure, enterprises could deploy this capability across multiple client groups without additional overhead.
1.
Business rule layer
Applies client-defined rules for currencies, products, and time buckets to instantly flag obvious anomalies. Enables real-time filtering of inconsistent or out-of-range FX transactions.
2.
Statistical and ML layer
A TensorFlow/Keras autoencoder learns normal FX patterns and highlights deviations. Statistical scoring sharpens thresholds, while continuous retraining improves accuracy with new transactions.
3.
LLM analysis layer
Azure OpenAI interprets autoencoder outputs and provides clear, contextual explanations. Reduces false positives and helps business teams quickly understand and act on detected anomalies.
4.
Fully automated Databricks pipeline
Automates onboarding, training, MLflow model registration, and serving endpoint creation. Supports autotraining on new client data and full logging for auditability and traceability.
Databricks solution enablers
Real-time FX anomaly detection enabling faster risk mitigation and operational accuracy
1.
Faster identification of anomaly transactions
85% fewer manual reviews
2.
Reduced manual effort
3.
Improved data integrity in treasury operations
4.
Enhanced decision-making through anomaly insights
Impact
Impact
1.
Error prevention
Fewer incorrect bookings
Early detection of miskeyed fields
Lower rework and downstream fixes
2.
Faster triage
Ranked drivers of anomalies
Guided actions from LLM reasoning
~60% faster case resolution
3.
Anomaly monitoring
Cross-system correlation
High-risk counterparty flags
Enhanced alert precision
Business Outcome: ‘How the solution provided by Zensar has benefited the client in terms of business’ to mentioned here.
The solution significantly improved the accuracy and speed of detecting anomalies across FX transactions. Clients using the treasury and risk manager platform now benefit from proactive monitoring, reduced financial exposure, and fewer operational disruptions. The automation of onboarding, training, and endpoint creation accelerated adoption while minimizing costs and manual overhead. With LLM-enabled explanations, business users can make faster and more informed decisions. Overall, the platform now delivers higher integrity, trust, and efficiency in treasury operations.
Conclusion
This case study demonstrates how AI, ML, and LLM technologies can transform treasury operations for large financial enterprises. By combining rule-based checks, advanced modeling techniques, and contextual language intelligence, we delivered a powerful, scalable, and interpretable anomaly detection capability. The fully automated Databricks-based solution significantly reduces manual workloads and improves accuracy, enabling the client to swiftly and confidently mitigate financial risks. This approach sets a strong foundation for future enhancements across other financial datasets and risk domains.