SentinelAI
Privacy-preserving AI for regulated enterprises
Created on 30th June 2026
ā¢
SentinelAI
Privacy-preserving AI for regulated enterprises
The problem SentinelAI solves
š Compliance-Aligned Enterprise AI Layer ā Sentinel-AI
Sentinel-AI is a secure intermediary abstraction layer that enables LLM inference on sensitive enterprise documents by performing structured entity-level data sanitization with reversible mapping, ensuring zero exposure of raw confidential data to downstream AI systems.
It is designed for regulated environments where direct transmission of PII/PHI/financial data to external models is prohibited.
Instead of blocking AI usage or permanently redacting information, Sentinel-AI preserves semantic structure while enforcing identity isolation through deterministic placeholder substitution and secure rehydration mapping.
š§ Core Capability
Sentinel-AI introduces a pipeline that decouples:
Semantic content (what the document means)
Sensitive entities (who/what it refers to)
This allows LLMs to operate on fully contextualized inputs without ever accessing raw identifiers.
āļø System Workflow
- Ingestion Layer (Document Parser)
Accepts structured and unstructured enterprise documents (PDF, text, reports)
Performs tokenization and entity boundary detection
Identifies sensitive classes:
PII (names, addresses, IDs)
PHI (medical records, patient metadata)
Financial identifiers (account numbers, transactions)
Organizational metadata - Entity Recognition & Classification Engine
Uses NER-based extraction + rule-based validation
Classifies entities into deterministic categories:
PERSON, ORG, LOCATION, ID, MEDICAL_ENTITY, FINANCIAL_ENTITY
Assigns unique stable identifiers:
PERSON_1, ORG_2, etc. - Privacy Sanitization Layer (Token Substitution)
Replaces sensitive spans with lossless placeholders
Maintains:
syntactic structure
document coherence
contextual relationships
Example transformation:
āSarah Mitchell treated at Apollo Hospitalā
ā ā[PERSON_1] treated at [ORG_1]ā
This ensures the input remains fully LLM-compatible while removing identity leakage vectors.
- LLM Processing Layer (Secure Inference Boundary)
Sanitized document is passed to external or internal LLMs
Model performs:
summarization
classification
extraction
reasoning tasks
Critical property:
The model never receives raw PII/PHIāonly abstracted tokens with preserved semantics.
- Rehydration Engine (Secure Mapping Resolution)
Post-processing step in a trusted environment
Maintains a secure key-value mapping table:
[PERSON_1] ā Sarah Mitchell
[ORG_1] ā Apollo Hospital
Restores output while preserving AI-generated structure
Final output reconstruction:
ā[PERSON_1] shows no abnormalitiesā ā āSarah Mitchell shows no abnormalitiesā
š Security & Compliance Properties
Sentinel-AI is designed to satisfy enterprise-grade compliance constraints:
Data minimization: Only abstracted tokens leave the secure boundary
Zero PII exposure to LLMs: No raw sensitive fields are transmitted
Reversible transformation model: Controlled de-sanitization only in trusted layer
Auditability: Entity mapping logs can be versioned for traceability
Policy alignment: Compatible with HIPAA, GDPR, PCI-DSS, SOC2 constraints
š¢ Enterprise Use Case Fit
Sentinel-AI is applicable across domains where LLM adoption is blocked by data sensitivity:
Healthcare NLP pipelines (PHI-safe clinical summarization)
Financial document intelligence (transaction-safe reasoning)
Legal contract analysis (client confidentiality preservation)
Insurance automation (claims processing at scale)
Enterprise knowledge systems (internal document mining)
š System-Level Impact
Sentinel-AI functions as a privacy enforcement middleware for LLM pipelines, enabling:
Secure LLM integration without infrastructure isolation
Reduced need for private model deployment
Scalable compliance-by-design architecture
Deployment across multi-domain enterprise workflows
š” Technical Essence
Sentinel-AI implements a reversible entity abstraction system that decouples semantic understanding from sensitive identity exposure, enabling compliant LLM inference on otherwise restricted enterprise datasets.
Challenges I ran into
š§© Challenges I Ran Into While Building Sentinel-AI
Building Sentinel-AI was not just an implementation challengeāit was about designing a system that preserves semantic meaning while guaranteeing zero sensitive data exposure to AI models. This introduced several technical and architectural hurdles.
ā ļø 1. Entity Preservation vs. Context Loss
Problem:
Early versions of the sanitization pipeline simply removed sensitive entities instead of replacing them.
This broke sentence structure and severely degraded LLM performance because the model lost context.
Example failure:
āSarah Mitchell treated at Apollo Hospitalā ā ātreated atā
The AI could no longer understand relationships between entities.
Solution:
I switched to a deterministic placeholder mapping system instead of deletion:
Sarah Mitchell ā [PERSON_1]
Apollo Hospital ā [ORG_1]
This preserved:
grammatical structure
entity relationships
downstream reasoning quality
ā ļø 2. Inconsistent Entity Mapping Across Pipeline
Problem:
During early testing, the same entity was being assigned different placeholders in different parts of the pipeline.
Example:
āSarah Mitchellā ā [PERSON_1] in input layer
but became [PERSON_2] during rehydration
This caused incorrect output reconstruction.
Solution:
I implemented a centralized entity registry (mapping store) that:
assigns a single stable ID per entity per document
persists mapping across sanitization ā inference ā rehydration stages
ensures deterministic restoration of outputs
ā ļø 3. LLM Hallucination on Placeholder Tokens
Problem:
Some models started āinterpretingā placeholders incorrectly, e.g.:
treating [PERSON_1] as a real medical term
or merging multiple placeholders into one entity
This reduced reliability of outputs.
Solution:
I standardized placeholder formatting and strengthened prompt constraints:
enforced strict token pattern: [ENTITY_TYPE_ID]
added explicit system-level instructions:
āTreat placeholders as atomic, non-semantic tokens.ā
This significantly improved model stability.
ā ļø 4. Rehydration Alignment Errors
Problem:
In longer documents, sentence restructuring by the LLM sometimes changed entity ordering, causing incorrect mapping during restoration.
Solution:
I introduced:
position-aware entity tagging during sanitization
stable reference IDs tied to token index positions
post-processing alignment validation before rehydration
This ensured accurate mapping even in complex multi-sentence outputs.
ā ļø 5. Balancing Privacy with Usability
Problem:
Over-sanitization made documents ātoo abstract,ā reducing AI usefulness in tasks like clinical summarization and contract analysis.
Solution:
I refined the pipeline to:
remove only identity-sensitive fields
preserve domain-critical attributes (symptoms, clauses, transactions, etc.)
maintain semantic richness while enforcing privacy boundaries
This restored strong downstream AI performance without compromising compliance.
š Final Outcome
By solving these issues, Sentinel-AI evolved into a stable privacy-preserving AI architecture where:
entity consistency is guaranteed
LLM context is preserved
sensitive data never reaches external models
outputs remain fully rehydrated and usable
The result is a system that is both technically reliable and enterprise-ready under strict compliance constraints.
Technologies used
