Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

fmmido/ai-tax-customs-evasion-prevention

Domain:

socioeconomic

Record type:

software
Creator:
fmm
Host:
AI Platform for Detecting and Preventing Tax and Customs Evasion in Egypt: Anomaly Detection, NLP Analysis, and Real-Time Alerts. # AI Platform for Preventing Tax and Customs Evasion ## Overview This AI platform detects fraudulent activities in tax declarations and customs invoices using machine learning and NLP. Key features: - **Anomaly Detection**: Identifies unusual patterns in transaction amounts, HS codes, and values (e.g., under-valuation in imports). - **NLP Analysis**: Extracts entities from invoices (e.g., misclassified goods) using Hugging Face models. - **Real-Time Alerts**: Flags high-risk cases (e.g., evasion probability >70%) and generates reports. - **Self-Updating**: Retrains weekly on new data via GitHub Actions. Built for Egypt's tax/customs authorities, using simulated data from Kaggle (Egyptian VAT datasets) and public APIs. Aligns with digital tax reforms for Vision 2030. ## Features - Data Loading: Simulated invoices with features like amount, HS code, origin country. - Detection: Isolation Forest for anomalies + BERT for text classification (fraudulent descriptions). - Alerts: JSON reports with risk scores and mitigation suggestions. - Dashboard: Streamlit UI for querying and visualizing flagged cases (run `streamlit run dashboard.py`). ## Installation and Running 1. Clone the repo: `git clone github.com` 2. Install requirements: `pip install -r requirements.txt` 3. Load data: `python data_loader.py` 4. Train detector: `python evasion_detector.py` 5. Generate alerts: `python alert_generator.py` 6. Run dashboard: `streamlit run dashboard.py` ## Data Sources - Kaggle Egyptian Tax Dataset: [kaggle.com]. - HS Code API: UN Comtrade for customs validation. - Real-Time: Integrate with Egypt Tax Authority APIs (mocked here). ## Technologies - Python 3.10+ - scikit-learn for anomaly detection. - Transformers (Hugging Face) for NLP. - Pandas for data handling. - Streamlit for UI. - GitHub Actions for automation.

Visit

github.com

Similar

Explaining Customs Tax Evasion in Ethiopia: The Effect of Trade Tax, Law Enforcement, and Product CharacteristicsAre Tax Penalties Effective Enough in Combating Tax Evasion?E-tax system effectiveness in reducing tax evasion in NigeriaInternational Trade and Tax Evasion in BeninContribution of Tax Consultancy Firm in the Reduction of Tax Evasion in CameroonAn estimation of the underground economy and tax evasion

Explaining Customs Tax Evasion in Ethiopia: The Effect of Trade Tax, Law Enforcement, and Product Characteristics

Low-income African countries face significant customs tax evasion due to undervaluation and smugglin

Are Tax Penalties Effective Enough in Combating Tax Evasion?

This paper examined whether Tax Penalties is Effective in Combating Tax Evasion in Nigeria. The stud

E-tax system effectiveness in reducing tax evasion in Nigeria

This study examined how electronic tax system (E- tax system) reduces tax evasion in Nigeria. The su

International Trade and Tax Evasion in Benin

In this study, we analyzed the drivers of tax evasion occurring through international trade between

Contribution of Tax Consultancy Firm in the Reduction of Tax Evasion in Cameroon

This study attempts to examine the Contribution of Tax Consultancy Firm in the Reduction of Tax Evas

An estimation of the underground economy and tax evasion

Purpose This paper aims to use an econometric model to estimate tax evasion from the size of the un