🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles
advanced

Real-time Fraud Detection with CEP

#stream-processing #fintech #algorithms #real-time

Implement complex event processing logic for financial fraud.

Design a Complex Event Processing (CEP) query to detect potential credit card fraud in a real-time transaction stream. The logic should flag an account if: 1) Three transactions occur in different countries within 10 minutes, OR 2) A single transaction exceeds the user's average historical transaction amount by 5 standard deviations and occurs between 2 AM and 4 AM local time. Define the input event schema and the stateful windowing logic required to maintain historical aggregates efficiently.