A hybrid rule-based NLP and machine learning approach for PII detection and anonymization in financial documents
Authors:
Open Access
- 2 July 2025
- journal article
- research article
- Published by Springer Nature in Scientific Reports
- Vol. 15 (1) , 1-27
Abstract
Safeguarding Personally Identifiable Information (PII) in financial documents is essential to prevent data breaches and maintain regulatory compliance. This research presents a scalable hybrid approach that integrates rule-based Natural Language Processing (NLP), Machine Learning (ML) approaches, and a custom Named Entity Recognition (NER) model for the accurate detection and anonymization of Personally Identifiable Information (PII). A varied and accurate synthetic dataset was created to replicate genuine financial document formats, enhancing model training and assessment. The model has attained a precision of 94.7%, a recall of 89.4%, an F1-score of 91.1%, and an overall accuracy of 89.4% on synthetic datasets. Additional validation on actual financial documents, such as audit reports and vendor bills, revealed a consistent performance with an accuracy of 93%. The study utilizes confusion matrices, ROC curves, and precision-recall curves to evaluate the model which further validates the model’s capabilities and generalization ability. The suggested approach provides a robust and efficient solution for protecting sensitive information in operational financial contexts, markedly enhancing current methods for PII protection.Keywords
Funding Information
- Symbiosis International
This publication has 24 references indexed in Scilit:
- GA-mADAM-IIoT: A new lightweight threats detection in the industrial IoT via genetic algorithm with attention mechanism and LSTM on multivariate time series sensor dataSensors International, 2025
- CPS-IoT-PPDNN: A new explainable privacy preserving DNN for resilient anomaly detection in Cyber-Physical Systems-enabled IoT networksChaos, Solitons & Fractals, 2024
- XAIEnsembleTL-IoV: A new eXplainable Artificial Intelligence ensemble transfer learning for zero-day botnet attack detection in the Internet of VehiclesResults in Engineering, 2024
- Exploring the Application of Large Language Models in Detecting and Protecting Personally Identifiable Information in Archival Data: A Comprehensive Study*2023
- Privacy-Preserving Personal Identifiable Information (PII) Label Detection Using Machine Learning2023
- Is personally identifiable information really more valuable? Evidence from consumers' willingness-to-accept valuation of their privacy informationDecision Support Systems, 2023
- Autoencoder via DCNN and LSTM Models for Intrusion Detection in Industrial Control Systems of Critical Infrastructures2023
- The Text Anonymization Benchmark (TAB): A Dedicated Corpus and Evaluation Framework for Text AnonymizationComputational Linguistics, 2022
- Automated PII Extraction from Social Media for Raising Privacy Awareness: A Deep Transfer Learning Approach2021
- A Graph Convolutional Network‐Based Sensitive Information Detection AlgorithmComplexity, 2021