🔒 READI - Risk Evaluation and De-Identification
Privacy-preserving AI made simple - A comprehensive toolkit for data privacy risk assessment and de-identification in Python-based ML pipelines.
READI augments the functionalities provided by IBM Data Privacy Toolkit, offering state-of-the-art capabilities for detecting Personal and Sensitive Information in unstructured documents. Built for modern compliance frameworks and AI model training workflows.
✨ Features
- 🎯 Advanced PII Detection - Identify personal and sensitive information across multiple data types
- 🔄 Seamless Integration - Low-effort integration with existing ML pipelines
- 📊 Structured & Unstructured Data - Support for both data formats
- 🌐 REST API - Easy-to-use HTTP interface for remote processing
- 🧪 Extensible Framework - Modular design for custom privacy requirements
- 📝 Comprehensive Examples - Jupyter notebooks with real-world use cases
🚀 Quick Start
Prerequisites
- Python 3.11 or higher
- Git with git-lfs support (for large files >50 MB)
- uv (recommended) - A fast Python package installer
Installation
Simplest: install from PyPI
pip install readi-privacy
Using uv (10-100x faster)
# Install uv if you haven't already
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create and activate virtual environment
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install READI
uv pip install readi-privacy
Install from source:
git clone https://github.com/IBM/READI.git
cd READI
# With uv (recommended)
uv pip install -e .
# Or with pip
pip install -e .
💻 Development Setup
For contributors and developers:
Recommended: Using uv
# Install in editable mode with all development dependencies
uv pip install -e ".[dev]"
# Set up pre-commit hooks (recommended)
pre-commit install
Alternative: Using pip
# Install in editable mode with all development dependencies
pip install -e ".[dev]"
# Set up pre-commit hooks (recommended)
pre-commit install
This installs the project in editable mode along with development tools (pytest, ruff, bandit, etc.).
💡 Tip: Using
uvprovides significantly faster dependency resolution and installation compared to traditionalpip.
🔌 Optional Extras
READI ships several optional dependency groups that can be installed on top of the base package:
| Extra | What it adds | Install command |
|---|---|---|
stanza |
Stanza NLP pipeline — enables STANZAEntityExtractor and STANZASentenceTokenizer. The Python package is Apache 2.0; however, Stanza can optionally connect to the Stanford CoreNLP Java server, which is GPL-licensed. READI does not use that server bridge, but be aware of the GPL implications if you enable it separately. |
pip install "readi-privacy[stanza]" |
rest |
FastAPI server for the built-in REST API | pip install "readi-privacy[rest]" |
presidio |
Microsoft Presidio analyzer integration | pip install "readi-privacy[presidio]" |
dev |
Development tools (pytest, ruff, bandit, …) | pip install "readi-privacy[dev]" |
Multiple extras can be combined: pip install "readi-privacy[stanza,rest]".
🌐 REST API Usage
READI provides a simple REST API for remote processing.
Setup
# Install with REST API support
pip install -e '.[rest]'
# Start the server
uvicorn risk_assessment.entry_points.rest.api:app
Example Request
curl -H 'Content-Type: application/json' \
http://localhost:8000/detect_phi \
--data-raw '{"text":"My text with email: john@gmail.com"}'
The API will be available at http://localhost:8000 with interactive documentation at /docs.
📚 Examples & Tutorials
Explore our comprehensive Jupyter notebooks in the notebooks/ directory:
| Notebook | Description |
|---|---|
| Unstructured Data Classification | General overview of READI API for free-text processing |
| Structured Data Classification | Working with tabular and structured datasets |
| Unstructured Data Masking | Applying masking actions (redaction, tagging, hash) after PII classification |
| Structured Data Masking | Column classification followed by per-type masking of tabular data |
📖 Documentation
For detailed documentation, API references, and advanced usage patterns, please refer to the notebooks/ directory and the inline docstrings throughout the source code. A hosted documentation portal is planned for a future release.
🤝 Contributing
We welcome contributions! Please see our Contributing Guidelines for details on:
- Code style and standards
- Testing requirements
- Pull request process
- Development workflow
📄 License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
📌 How to Cite
If you use READI in academic work, please cite the most relevant publication from the references below. A general citation entry is:
@software{readi_ibm,
title = {READI: Risk Evaluation and De-Identification},
author = {Stefano Braghin and Liubov Nedoshivina and Anisa Halimi and Naoise Holohan and Kieran Fraser},
year = {2025},
url = {https://github.com/IBM/READI}
}
When your usage specifically relates to unstructured document de-identification, prefer citing:
@article{nedoshivina2024pragmatic,
title = {Pragmatic De-Identification of Cross-Domain Unstructured Documents: A Utility-Preserving Approach with Relation Extraction Filtering},
author = {Liubov Nedoshivina and Anisa Halimi and Joa Bettencourt-Silva and Stefano Braghin},
journal = {AMIA Summits on Translational Science Proceedings},
volume = {2024},
pages = {85},
year = {2024}
}
📚 Academic References
READI is built on years of privacy research. Key publications:
-
Nedoshivina, L., Halimi, A., Bettencourt-Silva, J., & Braghin, S. (2024). Pragmatic De-Identification of Cross-Domain Unstructured Documents: A Utility-Preserving Approach with Relation Extraction Filtering. AMIA Summits on Translational Science Proceedings, 2024, 85.
-
Pachilakis, M., Antonatos, S., Levacher, K., & Braghin, S. (2020). PrivLeAD: Privacy Leakage Detection on the Web. Intelligent Systems and Applications. IntelliSys 2020. Advances in Intelligent Systems and Computing, vol 1250. Springer, Cham. DOI: 10.1007/978-3-030-55180-3_32
-
Braghin, S., Bettencourt-Silva, J. H., Levacher, K., & Antonatos, S. (2019). An Extensible De-Identification Framework for Privacy Protection of Unstructured Health Information: Creating Sustainable Privacy Infrastructures. MEDINFO 2019: Health and Wellbeing e-Networks for All (pp. 1140-1144). IOS Press. DOI: 10.3233/SHTI190404
-
Antonatos, S., Braghin, S., Holohan, N., Gkoufas, Y., & Mac Aonghusa, P. (2018). PRIMA: An End-to-End Framework for Privacy at Scale. 2018 IEEE 34th International Conference on Data Engineering (ICDE), pp. 1531-1542. DOI: 10.1109/ICDE.2018.00171
-
Gkoulalas-Divanis, A., & Braghin, S. (2016). IPV: A system for identifying privacy vulnerabilities in datasets. IBM Journal of Research and Development, vol. 60, no. 4, pp. 14:1-14:10. DOI: 10.1147/JRD.2016.2576818
-
Gkoulalas-Divanis, A., Braghin, S., & Antonatos, S. (2016). FPVI: A scalable method for discovering privacy vulnerabilities in microdata. 2016 IEEE International Smart Cities Conference (ISC2), pp. 1-8. DOI: 10.1109/ISC2.2016.7580849
-
Gkoulalas-Divanis, A., & Braghin, S. (2015). Efficient algorithms for identifying privacy vulnerabilities. 2015 IEEE First International Smart Cities Conference (ISC2), pp. 1-8. DOI: 10.1109/ISC2.2015.7366170
🙏 Acknowledgment
This project is partly supported by the Innovative Health Initiative Joint Undertaking (IHI JU) under Grant Agreement No. 101172997 – SEARCH, and by the European Union’s Horizon research and innovation programme under Grant Agreement No. 101298664 - RegulAIze.
💬 Support & Community
- 🐛 Issues: GitHub Issues
- 💡 Discussions: GitHub Discussions
- 📧 Contact: For enterprise support, please contact the IBM Research team
Built with ❤️ by IBM Research
Metadata
Release files for readi-privacy 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| readi_privacy-0.1.9.tar.gz | 16.6 MB | With provenance | Details for readi_privacy-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| readi_privacy-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for readi_privacy-0.1.9-py3-none-any.whl |
Total release size: 29.7 MB
Release files / readi_privacy-0.1.9.tar.gz
| Download URL | readi_privacy-0.1.9.tar.gz |
|---|---|
| Size | 16.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1c97b489157aec26b5631bf9fb9f3ebb07c5d46cdcec7b996f380acdacbaded
|
|
BLAKE2b-256 checksum How to use checksums |
1ae18cef22bf739baeaa60e46e971b6a71aa5544af7d23189e97835886c53db5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / readi_privacy-0.1.9-py3-none-any.whl
| Download URL | readi_privacy-0.1.9-py3-none-any.whl |
|---|---|
| Size | 13.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfc169b0f6f242fa27a877094f7dbc3911bb5d65b1dd18ddf8fce5c9beac2095
|
|
BLAKE2b-256 checksum How to use checksums |
14864f3f6632f3d175801a6038236b8b3802c17589df4e5e38ea5ba5cf6e1089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logSecurity for readi-privacy 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for readi_privacy-0.1.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.