Skip to content

Commit 1ceb753

Browse files
committed
Chore: Updated MLOops fraud detection docs and added a link to IBM fusion community post
1 parent dc1f851 commit 1ceb753

15 files changed

+120
-204
lines changed
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
title: MLOps Fraud Detection
3-
date: 2023-11-12
3+
date: 2025-11-20
44
tier: sandbox
5-
summary: This pattern demonstrates how Red Hat OpenShift Data Science and MLFlow can be used together to build an end-to-end MLOps platform. It demonstrates this using a credit card fraud detection use case.
5+
summary: This pattern demonstrates how Red Hat OpenShift AI can be used to build an end-to-end MLOps platform. It demonstrates this using a credit card fraud detection use case.
66
rh_products:
77
- Red Hat OpenShift Container Platform
8-
- Red Hat OpenShift Data Science
9-
- Red Hat OpenShift Data Foundation
8+
- Red Hat OpenShift AI
9+
partners:
10+
- IBM Fusion
1011
industries:
1112
- financial services
1213
aliases: /mlops-fraud-detection/
@@ -17,11 +18,6 @@ links:
1718
arch: https://www.redhat.com/architect/portfolio/architecturedetail?ppid=6
1819
bugs: https://github.com/validatedpatterns/mlops-fraud-detection/issues
1920
feedback: https://docs.google.com/forms/d/e/1FAIpQLScI76b6tD1WyPu2-d_9CCVDr3Fu5jYERthqLKJDUGwqBg7Vcg/viewform
20-
ci: mfd
21-
contributor:
22-
name: Arslan Khan
23-
contact: mailto:arskhan@redhat.com
24-
git: https://github.com/arslankhanali
2521
---
2622
:toc:
2723
:imagesdir: /images
@@ -34,4 +30,4 @@ include::modules/mfd-architecture.adoc[leveloffset=+1]
3430
[id="next-steps_mfd-index"]
3531
== Next steps
3632

37-
* link:mfd-getting-started[Deploy the management hub] using Helm.
33+
* link:mfd-getting-started[Install this pattern.]
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
title: Explore this pattern
3+
weight: 20
4+
aliases: /mlops-fraud-detection/mfd-explore-this-pattern/
5+
---
6+
:toc:
7+
:imagesdir: /images
8+
:_content-type: ASSEMBLY
9+
include::modules/comm-attributes.adoc[]
10+
11+
[id="rhoai-components"]
12+
== {rhoai} components
13+
14+
Most components installed as part of this pattern are available in the {rhoai} (RHOAI) console. To navigate to this page, click the {rhoai} link in the application launcher of the OpenShift console.
15+
16+
.The RHOAI Link
17+
image::/images/mlops-fraud-detection/mfd-rhoai-link.png[]
18+
19+
[id="kubeflow-pipeline"]
20+
=== Kubeflow pipeline
21+
22+
The pattern installation automatically creates and runs a Kubeflow pipeline to build and train the fraud detection model. To view pipeline details in the RHOAI console, select the *Pipelines* tab.
23+
24+
.The pipelines tab
25+
image::/images/mlops-fraud-detection/mfd-pipelines-tab.png[]
26+
27+
This tab displays the fraud-detection pipeline deployed as part of this pattern. To view the specific run that trained the initial model, select the *Runs* tab and then select the *job-run* item.
28+
29+
.The runs tab
30+
image::/images/mlops-fraud-detection/mfd-runs-tab.png[]
31+
32+
The *Runs* page displays a diagram of the pipeline, which includes the following three major steps:
33+
34+
* Obtaining the training data.
35+
* Training the model.
36+
* Uploading the model to MinIO.
37+
38+
You can view the logs of any stage, such as the training stage, to monitor accuracy changes for each model training epoch.
39+
40+
.The job-run pipeline details
41+
image::/images/mlops-fraud-detection/mfd-job-run-detail.png[]
42+
43+
[NOTE]
44+
====
45+
The source code for this pipeline run is available in the pattern repository at link:https://github.com/validatedpatterns/mlops-fraud-detection/blob/main/src/kubeflow-pipelines/small-model/train_upload_model.yaml[src/kubeflow-pipelines/small-model].
46+
====
47+
48+
[id="kserve-model-serving"]
49+
=== Kserve model serving
50+
51+
You can view the model deployment in the Model Deployments tab of the RHOAI console.
52+
53+
.The model deployment
54+
image::/images/mlops-fraud-detection/mfd-model-deployments.png[]
55+
56+
[id="inferencing-application"]
57+
== Inferencing application
58+
59+
The pattern installs a simple Gradio front end to communicate with the fraud detection model. To access the application, click the link in the application launcher of the OpenShift console.
60+
61+
.The inferencing application link
62+
image::/images/mlops-fraud-detection/mfd-inf-app-link.png[]
63+
64+
You can manually configure transaction details in the form. The application includes two examples: a fraudulent transaction and a non-fraudulent transaction.
65+
66+
.Using the fraud example
67+
image::/images/mlops-fraud-detection/mfd-inferencing-app.png[]
68+
69+
[IMPORTANT]
70+
====
71+
Due to the non-deterministic nature of the training process, the model might not always identify these transactions accurately.
72+
====
73+
74+
[NOTE]
75+
====
76+
The source code for the inferencing application is available in the pattern repository at link:https://github.com/validatedpatterns/mlops-fraud-detection/blob/main/src/inferencing-app/app.py[src/inferencing-app].
77+
====

content/patterns/mlops-fraud-detection/mfd-getting-started.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ include::modules/mfd-deploying-mfd-pattern.adoc[leveloffset=1]
1111

1212
= Next Steps
1313

14-
* link:../mfd-running-the-demo[Run the demo].
14+
* link:../mfd-explore-this-pattern[Explore this pattern].
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Fraud Detection on IBM Fusion
3+
weight: 30
4+
aliases: /mlops-fraud-detection/mfd-ibm-fustion/
5+
---
6+
:toc:
7+
:imagesdir: /images
8+
:_content-type: ASSEMBLY
9+
10+
== MLOPS credit card fraud detection on IBM Fusion
11+
12+
This pattern is deployed with IBM Fusion. For more details, see the link:https://community.ibm.com/community/user/blogs/saif-adil/2026/01/08/deploying-ai-driven-credit-card-fraud-detection[IBM Community Post].

content/patterns/mlops-fraud-detection/mfd-running-the-demo.adoc

Lines changed: 0 additions & 16 deletions
This file was deleted.

modules/mfd-about-mlops-fraud-detection.adoc

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
:imagesdir: ../../images
33

44
[id="about-mlops-fraud-detection-pattern"]
5-
= About the MLOps Fraud Detection
5+
= About the MLOps Fraud Detection Pattern
6+
7+
NOTE: This pattern has been reworked for a modern RHOAI experience. To see the original pattern, check out the link:https://github.com/validatedpatterns/mlops-fraud-detection/tree/legacy[legacy branch].
68

79
MLOps Credit Card Fraud Detection use case::
8-
* Build and train models in RHODS to detect credit card fraud
9-
* Track and store those models with MLFlow
10-
* Serve a model stored in MLFlow using RHODS Model Serving (or MLFlow serving)
11-
* Deploy a model application in OpenShift that runs sends data to the served model and displays the prediction
10+
* Build, train and serve models in RHOAI to detect credit card fraud
11+
* Use Kubeflow pipelines in RHOAI for declarative model building workflows
12+
* Store models in S3-compatible storage with Minio
13+
* Serve ML models using Kserve on RHOAI
1214

1315
+
1416
Background::
@@ -21,8 +23,9 @@ The model is built on a Credit Card Fraud Detection model, which predicts if a c
2123

2224
== Technology Highlights:
2325
* Event-Driven Architecture
24-
* Data Science on OpenShift
25-
* Model registry using MLFlow
26+
* Data Science on Red Hat OpenShift AI
27+
* Declarative MLOps pipeline with Kubeflow
28+
* ML model serving with Kserve
2629

2730
== Solution Discussion
2831

@@ -33,7 +36,7 @@ This architecture pattern demonstrates four strengths:
3336
* *Cost Efficiency*: By automating the detection process, AI reduces the need for extensive manual review of transactions, which can be time-consuming and costly.
3437
* *Flexibility and Agility*: An cloud native architecture that supports the use of microservices, containers, and serverless computing, allowing for more flexible and agile development and deployment of AI models. This means faster iteration and deployment of new fraud detection algorithms.
3538

36-
== Demo Video
37-
38-
.Overview of the solution for credit card fraud detection
39-
video::9Yx_XUOMMYI[youtube]
39+
[INFO]
40+
====
41+
This pattern is based on the OpenShift AI tutorial for link:https://docs.redhat.com/en/documentation/red_hat_openshift_ai_cloud_service/1/html-single/openshift_ai_tutorial_-_fraud_detection_example/index[fraud detection].
42+
====

modules/mfd-architecture.adoc

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66

77
Description of each component:
88

9-
* *Data Set*: The data set contains the data used for training and evaluating the model we will build in this demo.
10-
* *RHODS Notebook*: We will build and train the model using a Jupyter Notebook running in RHODS.
11-
* *MLFlow Experiment tracking*: We use MLFlow to track the parameters and metrics (such as accuracy, loss, etc) of a model training run. These runs can be grouped under different "experiments", making it easy to keep track of the runs.
12-
* *MLFlow Model registry*: As we track the experiment we also store the trained model through MLFlow so we can easily version it and assign a stage to it (for example Staging, Production, Archive).
13-
* *S3 (ODF)*: This is where the models are stored and what the MLFlow model registry interfaces with. We use ODF (OpenShift Data Foundation) according to the MLFlow guide, but it can be replaced with another solution.
14-
* *RHODS Model Serving*: We recommend using RHODS Model Serving for serving the model. It's based on ModelMesh and allows us to easily send requests to an endpoint for getting predictions.
15-
* *Application interface*: This is the interface used to run predictions with the model. In our case, we will build a visual interface (interactive app) using Gradio and let it load the model from the MLFlow model registry.
9+
* *Data Set*: The dataset contains the data used for training and evaluating the model built in this tutorial. The dataset is sourced from the link:https://github.com/rh-aiservices-bu/fraud-detection/tree/main/data[github.com/rh-aiservices-bu/fraud-detection]
10+
* *Kubeflow Pipeline*: The Kubeflow pipeline builds, trains, and uploads the model. The source for this pipeline is in the pattern repository at link:https://github.com/validatedpatterns/mlops-fraud-detection/blob/main/src/kubeflow-pipelines/small-model/train_upload_model.yaml[src/kubeflow-pipelines/small-model/train_upload_model.yaml]. Upon pattern installation, the system automatically runs this pipeline once to train the initial model.
11+
* *S3 (Minio)*: Minio provides storage for the models and serves as the storage interface for the Kubeflow pipeline. While this pattern uses Minio for parity with the source tutorial, any S3-compatible storage solution is compatible.
12+
* *Kserve Model Serving*: The pattern uses the Kserve model serving capabilities in Red Hat OpenShift AI (RHOAI) to serve models with an OpenVINO model server.
13+
* *Application interface*: This interface runs predictions with the model. This pattern includes a visual interface (interactive application) built with Gradio that loads the model from Minio.
1614

1715
//figure 1 originally
1816
.Overview of the solution reference architecture
@@ -39,15 +37,3 @@ Red Hat® OpenShift® AI is an AI-focused portfolio that provides tools to train
3937

4038
https://www.redhat.com/en/technologies/cloud-computing/openshift/try-it[Red Hat OpenShift GitOps]::
4139
A declarative application continuous delivery tool for Kubernetes based on the ArgoCD project. Application definitions, configurations, and environments are declarative and version controlled in Git. It can automatically push the desired application state into a cluster, quickly find out if the application state is in sync with the desired state, and manage applications in multi-cluster environments.
42-
43-
https://www.redhat.com/en/technologies/jboss-middleware/amq[Red Hat AMQ Streams]::
44-
Red Hat AMQ streams is a massively scalable, distributed, and high-performance data streaming platform based on the Apache Kafka project. It offers a distributed backbone that allows microservices and other applications to share data with high throughput and low latency. Red Hat AMQ Streams is available in the Red Hat AMQ product.
45-
46-
Hashicorp Vault (community)::
47-
Provides a secure centralized store for dynamic infrastructure and applications across clusters, including over low-trust networks between clouds and data centers.
48-
49-
MLFlow Model Registry (community)::
50-
A centralized model store, set of APIs, and UI, to collaboratively manage the full lifecycle of an MLflow Model. It provides model lineage (which MLflow experiment and run produced the model), model versioning, model aliasing, model tagging, and annotations.
51-
52-
Other::
53-
This solution also uses a variety of _observability tools_ including the Prometheus monitoring and Grafana dashboard that are integrated with OpenShift as well as components of the Observatorium meta-project which includes Thanos and the Loki API.

0 commit comments

Comments
 (0)