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-lib

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.3.tar.gz (33.7 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.3-py3-none-any.whl (44.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlex_lib-0.0.3.tar.gz
  • Upload date:
  • Size: 33.7 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.3.tar.gz
Algorithm Hash digest
SHA256 fb71a982c88f4f60cbf266f68d35ad333fd5e2196ec40dbb30697c17b0af8c2a
MD5 c48c2f84f04b7b072ceaba6ef0a73e95
BLAKE2b-256 57f2bd6012ff6618c7556a2dcc31053ea032c6982b23e832ff5fe06db6f9f056

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlex_lib-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 44.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 882bced4f3750c91d21d0901ca44fbfcd05d28b4750369d610c7e01f02c1fe50
MD5 7f0907913d169811361db3ce8b7896ec
BLAKE2b-256 24a26c8a613231098825f2bcd3930a2c9966177fbc9203415020d7fbdeb8e579

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