<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Explainability on Corebaseit — POS · EMV · Payments · AI · Telecommunications</title><link>https://corebaseit.com/tags/explainability/</link><description>Recent content in Explainability on Corebaseit — POS · EMV · Payments · AI · Telecommunications</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><managingEditor>contact@corebaseit.com (Vincent Bevia)</managingEditor><webMaster>contact@corebaseit.com (Vincent Bevia)</webMaster><lastBuildDate>Mon, 08 Jun 2026 10:00:00 +0100</lastBuildDate><atom:link href="https://corebaseit.com/tags/explainability/index.xml" rel="self" type="application/rss+xml"/><item><title>AI in POS and Payments: From Transaction Processing to Transaction Intelligence</title><link>https://corebaseit.com/corebaseit_posts/pos_detecting_fraud_ai/</link><pubDate>Mon, 08 Jun 2026 10:00:00 +0100</pubDate><author>contact@corebaseit.com (Vincent Bevia)</author><guid>https://corebaseit.com/corebaseit_posts/pos_detecting_fraud_ai/</guid><description>&lt;p>&lt;em>This post looks at where machine learning actually fits in a payment system: not inside the authorization path that EMV, tokenization, and the networks already own, but in the risk layer that wraps around it. It pairs with earlier posts on &lt;a class="link" href="https://corebaseit.com/corebaseit_posts/what-happens-in-2-3-seconds-of-card-payment/" >what happens in the 2–3 seconds of a card payment&lt;/a> and on &lt;a class="link" href="https://corebaseit.com/corebaseit_posts/ai-amplifier-not-replacement/" >AI as an amplifier, not a replacement&lt;/a>.&lt;/em>&lt;/p>
&lt;hr>
&lt;p>In the acquiring and POS stacks I have worked on, the authorization path is the part nobody wants to touch. A card is tapped, inserted, or presented through a wallet. The terminal or SoftPOS SDK runs the card interaction and the cryptography. The transaction is routed for authorization, and a decision comes back: approved or declined. That path is deterministic, latency-bound, and heavily governed, and it works.&lt;/p>
&lt;p>What changed over the last few years is not that path. It is the layer forming around it. Fraud scoring, anomaly detection, risk-based authentication, and analyst tooling increasingly sit beside the transaction flow and feed it context. That layer is what people usually mean when they say &amp;ldquo;AI in payments,&amp;rdquo; and it is worth being precise about what it does and does not do.&lt;/p>
&lt;p>It does not replace EMV, tokenization, PCI controls, or the authorization networks. It surrounds them. And it has two jobs that are easy to state and hard to build: detect abnormal behavior fast enough to act on it, and explain that behavior clearly enough for a human to trust the decision.&lt;/p>
&lt;p align="center">
&lt;img src="https://corebaseit.com/diagrams/pos_ai_fraud.png" alt="AI in POS and payment systems. Transaction data, behavior analytics, risk scoring, and explainable insights wrap around the payment terminal as an intelligence layer. The terminal shows an approved transaction while a phone displays a low risk score with the contributing factors: amount, device, location, and behavior." style="max-width: 1000px; width: 100%;" />
&lt;/p>
&lt;hr>
&lt;h2 id="why-rules-alone-stopped-being-enough">Why rules alone stopped being enough
&lt;/h2>&lt;p>Payment fraud is not static. It moves with consumer behavior, new channels, device usage, regulation, and whatever the attackers are doing this quarter.&lt;/p>
&lt;p>For a long time the controls were rules: suspicious amounts, unusual locations, repeated failed attempts, blocked cards, high-risk merchant categories, known compromised accounts. Rules still earn their place, especially when the pattern is already understood and you want a hard, auditable block. The problem is that a lot of modern fraud does not announce itself in a single field.&lt;/p>
&lt;p>A €200 transaction is not suspicious on its own. It is normal for one merchant, unusual for another, and only becomes a real signal when you combine it with device history, time of day, account behavior, failed authentication attempts, velocity, location, and card type. That combination is what machine learning is good at: relationships that are too distributed or too fast-changing for a static rule table.&lt;/p>
&lt;p>The reason this is an engineering problem and not just a modeling problem comes down to four properties of the data:&lt;/p>
&lt;p>Fraud is rare. In the public IEEE-CIS Fraud Detection dataset, labeled fraud sits in the low single-digit percent of transactions (you should confirm the exact figure against your own datasets). A model can post high accuracy while missing most of what matters, simply by guessing &amp;ldquo;legitimate.&amp;rdquo;&lt;/p>
&lt;p>Fraud data is sensitive. Payment records carry personal, financial, and behavioral information. Even after anonymization, the surviving features are often opaque, which makes both modeling and explanation harder.&lt;/p>
&lt;p>Fraud patterns drift. Holiday shopping, travel seasons, inflation, new merchants, and new wallets all move the baseline of &amp;ldquo;normal.&amp;rdquo;&lt;/p>
&lt;p>The costs are asymmetric. A false negative lets fraud through. A false positive blocks a real customer, annoys a merchant, and opens a support case. In payments, a false positive is not a row in a confusion matrix. It is a lost sale.&lt;/p>
&lt;hr>
&lt;h2 id="detection-is-a-pipeline-not-a-single-model">Detection is a pipeline, not a single model
&lt;/h2>&lt;p>The most useful correction I can offer to the &amp;ldquo;drop in a model&amp;rdquo; framing is this: the model is one component. The pipeline around it does most of the work.&lt;/p>
&lt;p>Before anything gets scored, the data has to be prepared. Real transaction data arrives with missing values, duplicates, inconsistent formats, and a heavily imbalanced class distribution. A workable fraud pipeline tends to run through ingestion, preprocessing and de-duplication, scaling and normalization, categorical encoding, class balancing for the rare fraud cases, feature extraction, training and validation, real-time scoring, explanation, human review, and ongoing drift monitoring.&lt;/p>
&lt;p>Two parts of that chain deserve attention.&lt;/p>
&lt;p>Class imbalance has to be handled deliberately. If legitimate transactions outnumber fraud by twenty or thirty to one, an untreated model drifts toward predicting &amp;ldquo;normal.&amp;rdquo; Oversampling techniques such as SMOTE [3] are one common way to give the minority class enough representation during training. They are not free — synthetic samples can blur the boundary you care about — but ignoring imbalance is worse.&lt;/p>
&lt;p>Feature work still matters, even with deep models. Some features are transactional and low-level: amount, card type, merchant category. Others are behavioral and historical: frequency, device patterns, failed attempts, customer history. Some teams combine representation learning, anomaly detection, dimensionality reduction, and sequence modeling to capture both the static and the time-ordered structure in the data. The specific architecture is less important than the reason for it: transaction behavior has both shape and sequence.&lt;/p>
&lt;p>The takeaway is plain. In payments, model performance depends as much on the pipeline feeding it as on the model itself.&lt;/p>
&lt;hr>
&lt;h2 id="the-latency-budget-decides-the-architecture">The latency budget decides the architecture
&lt;/h2>&lt;p>A fraud model that looks excellent in an offline notebook can be useless inside the authorization path.&lt;/p>
&lt;p>Payment decisions are latency-bound. A real-time decision may have milliseconds to a few seconds, and within that budget the system cannot run unlimited computation, generate a rich explanation for every transaction, or wait for an analyst. That forces a tradeoff between accuracy, explainability, and runtime that you cannot wish away. A deeper model may catch subtler fraud at a higher compute cost. A simpler model is faster and easier to explain but misses more. An explanation method adds overhead that may not fit in the authorization window at all.&lt;/p>
&lt;p>The practical answer is to stop pretending there is one path. In the stacks I have seen, it splits into three:&lt;/p>
&lt;p>The real-time path is optimized for fast scoring and an operational action: a fraud score, a risk band, or a challenge recommendation.&lt;/p>
&lt;p>The near-real-time path handles queueing, alerting, analyst review, and merchant monitoring, where a few seconds or minutes of latency is acceptable.&lt;/p>
&lt;p>The offline path is where the heavier work lives: deeper analysis, compliance review, model debugging, and the detailed explanations you do not have time to compute inline.&lt;/p>
&lt;p>Not every decision needs the same depth at the same moment. Designing as if it does is how teams end up with a model that is accurate and unusable.&lt;/p>
&lt;hr>
&lt;h2 id="explaining-the-score-not-just-producing-it">Explaining the score, not just producing it
&lt;/h2>&lt;p>Flagging a transaction is half the work. Understanding why it was flagged is the other half, and in a regulated system it is not optional.&lt;/p>
&lt;p>A model that outputs &amp;ldquo;fraud&amp;rdquo; with no context is operationally thin. Analysts need the drivers behind the score. Compliance teams may need evidence that the system is governed and not arbitrary. Support staff need to tell a cardholder something more useful than &amp;ldquo;the system declined it.&amp;rdquo; Under GDPR Article 22 [4], decisions based solely on automated processing that significantly affect a person come with obligations, including providing meaningful information about the logic involved. Whether that amounts to a strict &amp;ldquo;right to explanation&amp;rdquo; is debated among lawyers, but the operational direction is clear enough: &amp;ldquo;because the model said so&amp;rdquo; is not a defensible answer.&lt;/p>
&lt;p>This is where LIME [1] and SHAP [2] come in. Both explain an individual prediction by ranking the features that pushed the model toward fraud or non-fraud. They make a score legible: was it the amount, the device, the velocity, the mismatch with this account&amp;rsquo;s history?&lt;/p>
&lt;p>They also come with a tradeoff, and the source research is direct about it. LIME tends to be faster but can be less stable across similar inputs. SHAP tends to give more consistent attributions but can be slower depending on the background dataset and model type. That difference maps cleanly onto the path split above: a fast, approximate explanation can ride along in the near-real-time path, while the slower, more rigorous one belongs in offline review and compliance.&lt;/p>
&lt;p>There is a product constraint underneath all of this. An explanation is only useful if the person receiving it can act on it. A fraud analyst does not need raw model weights or a feature called &lt;code>id_31&lt;/code>. They need &amp;ldquo;unfamiliar device, transaction velocity above this account&amp;rsquo;s norm, amount outside the merchant&amp;rsquo;s range.&amp;rdquo; The translation from model output to operator-readable reason is part of the system, not an afterthought.&lt;/p>
&lt;hr>
&lt;h2 id="false-positives-are-a-business-cost-not-a-metric">False positives are a business cost, not a metric
&lt;/h2>&lt;p>In a machine-learning report, a false positive is one cell in a matrix. In an acquiring business, it is a declined legitimate purchase, a frustrated cardholder, a merchant complaint, and a support ticket.&lt;/p>
&lt;p>This is why fraud detection cannot be tuned for accuracy alone. Accuracy is misleading on imbalanced data: if 97% of transactions are legitimate, a model that almost always says &amp;ldquo;legitimate&amp;rdquo; looks accurate and catches almost nothing. The metrics that actually matter are precision, recall, F1, AUC, false-positive and false-negative rates, and cost-sensitive evaluation that prices the two error types differently.&lt;/p>
&lt;p>The right target depends on who is asking. A high-risk environment may accept more false positives to catch more fraud. A premium merchant may prioritize not blocking good customers. A regulated setting may weigh explainability and auditability above raw capture rate. A real-time POS flow may care most about fast, stable, low-latency scoring. The model should be judged against the context it runs in, not in isolation. This is the same lifecycle that shows up in &lt;a class="link" href="https://corebaseit.com/corebaseit_posts/reversals-refunds-chargebacks-payment-lifecycle/" >reversals, refunds, and chargebacks&lt;/a>: the cost of a wrong call is paid downstream, not at the moment of scoring.&lt;/p>
&lt;hr>
&lt;h2 id="when-normal-changes-concept-drift">When &amp;ldquo;normal&amp;rdquo; changes: concept drift
&lt;/h2>&lt;p>A model trained on last year&amp;rsquo;s behavior does not automatically understand this year&amp;rsquo;s. Holidays, travel, inflation, new merchant categories, and new payment methods all shift the baseline. The term for this is concept drift, and in fraud it is sharper than in most domains because the adversary adapts on purpose. Once a detection pattern is known or blocked, attackers change behavior to route around it.&lt;/p>
&lt;p>So a fraud model cannot be deployed and forgotten. It has to be observed like any other production system. The signals worth watching include the fraud capture rate, the false-positive rate, shifts in approval and decline rates, changes in feature distributions and merchant segments, model confidence drift, analyst override rates, and chargeback feedback.&lt;/p>
&lt;p>Explainability helps here too. If the features driving decisions change suddenly, that is a signal in itself: a genuine behavioral shift, a data-quality problem upstream, an attacker adapting, or a model starting to degrade. A sudden change in what the model leans on is often visible before the headline metrics move.&lt;/p>
&lt;hr>
&lt;h2 id="keeping-humans-in-the-loop">Keeping humans in the loop
&lt;/h2>&lt;p>The strongest case for AI in fraud operations is not removing analysts. It is pointing them at the right cases.&lt;/p>
&lt;p>Analysts spend a lot of time inspecting alerts, and a large share of those are false positives, low risk, or repetitive. A model that prioritizes cases, summarizes the risk factors, and groups similar events reduces the noise an analyst has to wade through. The point is not an academic explanation; it is less time per investigation and better decisions.&lt;/p>
&lt;p>That is why a fraud system should return a score &lt;em>and&lt;/em> a reason. A label on its own — &amp;ldquo;high risk&amp;rdquo; — leaves the analyst to reconstruct the why. Something closer to &amp;ldquo;high risk; drivers: unfamiliar device, velocity above norm, amount outside merchant range, recent failed attempts; suggested action: challenge or hold per policy&amp;rdquo; is immediately actionable. This is the framing I keep coming back to in &lt;a class="link" href="https://corebaseit.com/corebaseit_posts/ai-amplifier-not-replacement/" >AI as an amplifier, not a replacement&lt;/a>: the model handles the volume and the ranking, the human still owns the call.&lt;/p>
&lt;hr>
&lt;h2 id="a-layered-architecture">A layered architecture
&lt;/h2>&lt;p>If you sketch a practical payment-AI design, it tends to fall into layers, each with a clear responsibility.&lt;/p>
&lt;p>The &lt;strong>data layer&lt;/strong> collects transaction events, authorization results, device data, merchant metadata, fraud labels, chargebacks, refunds, disputes, and analyst feedback. The &lt;strong>feature layer&lt;/strong> turns those raw events into signals: velocity, frequency, amount deviation, merchant behavior, device reputation, historical patterns. The &lt;strong>model layer&lt;/strong> does the scoring, anomaly detection, and sequence analysis. The &lt;strong>decision layer&lt;/strong> applies business policy — a model score should never define the outcome by itself, so this is where merchant settings, risk appetite, regulatory rules, thresholds, and authentication status combine into an action. The &lt;strong>explanation layer&lt;/strong> produces the human-readable reasons for analysts, compliance, and support. The &lt;strong>feedback layer&lt;/strong> captures what actually happened — confirmed fraud, false positives, chargebacks, analyst decisions — and feeds it back into the next model.&lt;/p>
&lt;p>The structural point is that AI belongs inside the payment platform as a governed decisioning system, not bolted on as an isolated experiment. Deterministic security controls answer &amp;ldquo;is this card authentic, is the cryptogram valid, can the issuer authorize it.&amp;rdquo; The intelligence layer answers a different question: &amp;ldquo;does this behavior look normal for this merchant, device, and account, and should it be challenged.&amp;rdquo; Both matter, and they answer different questions. EMV cryptography (&lt;a class="link" href="https://corebaseit.com/corebaseit_posts/emv-arqc-why-chip-cards-cant-be-cloned/" >why chip cards can&amp;rsquo;t be cloned&lt;/a>) is not competing with a fraud score; they sit at different layers.&lt;/p>
&lt;hr>
&lt;h2 id="what-can-go-wrong">What can go wrong
&lt;/h2>&lt;p>A fraud model can learn biased patterns, overfit to history, look strong on a research dataset and weak in production, degrade quietly over time, or be gamed by an adversary. It can also produce explanations that sound convincing but do not help the person reading them.&lt;/p>
&lt;p>Privacy is a constant constraint. Payment data is sensitive, so feature engineering and training have to respect data minimization, access control, retention rules, and the relevant regulatory obligations rather than treating every available field as fair game.&lt;/p>
&lt;p>Generalization is the other recurring trap. A model trained on one geography, merchant category, or channel may not transfer. Card-present POS, card-not-present online, wallet transactions, refunds, subscriptions, and account-to-account payments each carry different fraud patterns. So the question is not &amp;ldquo;how accurate is the model&amp;rdquo; in the abstract. The better question is whether the model improves the decisioning process safely, explainably, and within the operational limits of the system it runs in.&lt;/p>
&lt;hr>
&lt;h2 id="where-this-leaves-payment-ai">Where this leaves payment AI
&lt;/h2>&lt;p>AI is changing payments, but not in the way the marketing suggests. The future is not a system where a model magically approves or declines everything. It is an architecture where machine learning sits as an intelligence layer around an authorization path that still runs on EMV, tokenization, and the networks.&lt;/p>
&lt;p>That layer detects fraud, holds down false positives, explains its reasoning, supports analysts, watches for drift, and improves as the data comes back. For POS and payment platforms the opening is real, because every transaction already carries context — device, merchant, amount, timing, outcome — that can become a risk signal.&lt;/p>
&lt;p>The bar is demanding, though. The system has to be fast enough for real-time flows, accurate enough to catch meaningful risk, explainable enough for humans and regulators to trust, governed enough for compliance, and flexible enough to keep up as fraud changes. Strip it down and the two jobs are the ones I started with: detect the abnormal fast enough to act, and explain it clearly enough to trust. The first is a modeling and latency problem. The second is what decides whether the system gets used at all.&lt;/p>
&lt;hr>
&lt;h2 id="references">References
&lt;/h2>&lt;ol>
&lt;li>M. T. Ribeiro, S. Singh, C. Guestrin, &amp;ldquo;&amp;lsquo;Why Should I Trust You?&amp;rsquo;: Explaining the Predictions of Any Classifier,&amp;rdquo; &lt;em>Proceedings of KDD 2016&lt;/em>. (LIME)&lt;/li>
&lt;li>S. M. Lundberg, S.-I. Lee, &amp;ldquo;A Unified Approach to Interpreting Model Predictions,&amp;rdquo; &lt;em>Advances in Neural Information Processing Systems (NeurIPS) 2017&lt;/em>. (SHAP)&lt;/li>
&lt;li>N. V. Chawla, K. W. Bowyer, L. O. Hall, W. P. Kegelmeyer, &amp;ldquo;SMOTE: Synthetic Minority Over-sampling Technique,&amp;rdquo; &lt;em>Journal of Artificial Intelligence Research&lt;/em>, vol. 16, 2002.&lt;/li>
&lt;li>Regulation (EU) 2016/679 (General Data Protection Regulation), Article 22, &amp;ldquo;Automated individual decision-making, including profiling.&amp;rdquo;&lt;/li>
&lt;li>IEEE Computational Intelligence Society / Vesta Corporation, &amp;ldquo;IEEE-CIS Fraud Detection&amp;rdquo; dataset, Kaggle, 2019.&lt;/li>
&lt;/ol></description></item></channel></rss>