Skip to main content

Money Laundering Expert System - A machine learning framework for financial fraud detection

Project description

Money Laundering Expert System (MLEX)

A comprehensive machine learning framework for financial fraud detection and money laundering prevention.

Features

  • Neural Network Models: GRU, LSTM, and RNN implementations optimized for sequence data
  • Evaluation Framework: Comprehensive evaluation metrics and visualization tools
  • Data Processing: Advanced preprocessing and feature engineering capabilities
  • Model Pipeline: End-to-end machine learning pipelines for fraud detection
  • Visualization: Interactive plotting and analysis tools

Installation

pip install mlex

For development installation:

pip install mlex[dev]

Quick Start

import pandas as pd
import numpy as np
from mlex.models import GRU, LSTM, RNN
from mlex.utils import DataReader, FeatureStratifiedSplit
from mlex.evaluation import StandardEvaluator, F1MaxThresholdStrategy

# Load and preprocess data
reader = DataReader('path/to/your/data.csv', target_columns=['fraud_label'])
X = reader.fit_transform()
y = reader.get_target()

# Split data
splitter = FeatureStratifiedSplit(column_to_stratify='account_id', test_proportion=0.3)
splitter.fit(X, y)
X_train, y_train, X_test, y_test = splitter.transform(X, y)

# Train model
model = GRU(
    target_column='fraud_label',
    validation_data=(X_test, y_test),
    input_size=10,
    hidden_size=64,
    epochs=50
)
model.fit(X_train, y_train)

# Evaluate
scores = model.score_samples(X_test)
evaluator = StandardEvaluator("fraud_detection", F1MaxThresholdStrategy())
evaluator.evaluate(y_test, [], scores)
print(evaluator.summary())

License

This project is licensed under the MIT License - see the LICENSE file for details.

Citation

If you use MLEX in your research, please cite:

@software{mlex2024,
  title={Money Laundering Expert System (MLEX)},
  author={Pinheiro, Diego},
  year={2024},
  url={https://github.com/IoTDataAtelier/mlex}
}

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlex_lib-0.0.1.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlex_lib-0.0.1-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file mlex_lib-0.0.1.tar.gz.

File metadata

  • Download URL: mlex_lib-0.0.1.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0rc1

File hashes

Hashes for mlex_lib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2475316fb9af8c586e14e6751dc9a755417499905b9a1d6099fd27da4b1a147b
MD5 a2e61e408e0a6e011ba4c46a28400a8f
BLAKE2b-256 5d824019f7eda625ebe12e68e318b4a36af6858f21c244dfd3e74fad06ab53db

See more details on using hashes here.

File details

Details for the file mlex_lib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mlex_lib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0rc1

File hashes

Hashes for mlex_lib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f8130d8710ef1aabb46968060d7aa90e6023b5d7bcc85accf3ac9c60d99785c
MD5 be112fd0de9d23cae4df58ab20c8e9e3
BLAKE2b-256 b6df32b74d7643993c2da1693454a1a6e20c6f0029b386c345cb6580728e7004

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page