In high-stakes biomanufacturing, telemetry data is often siloed in static logs, leading to a reactive operational posture where deviations are discovered only post-batch. This gap creates significant risk for high-value pharmaceutical yields.
I developed the Bioprocess Insight Platform (BIP): a containerized, AI-augmented Triad Microservice Architecture designed to serve as a high-fidelity Digital Twin for Sartorius Biostat® fermentation systems. Unlike a simple dashboard, BIP integrates three distinct layers:
Real-time SCADA Simulation: A high-frequency FastAPI engine that streams multivariate sensor data and calculates physics-based projections ($OTR/k_{L}a$).
Regulatory Compliance: A dedicated .NET/Docker microservice that ensures 21 CFR Part 11 data integrity through an immutable GxP audit trail.
Industrial HMI: A reactive TypeScript dashboard that translates raw telemetry into predictive "Batch Health" scores.
By architecting this polyglot solution, I have demonstrated a production-ready approach to transforming raw process data into a proactive, observable, and compliant digital twin.
AI Pilot (Closed-Loop Control): A reactive layer that automatically restores Dissolved Oxygen levels by adjusting impeller speeds, demonstrating autonomous deviation recovery.
Unique Batch Tracking: Implementation of a persistent Batch ID system (e.g., B2026-001) to isolate and identify distinct production runs for historical analysis.
E-Signature Verification: Role-based digital signatures (Lead Scientist, Lab Tech, QA) for all critical actions, ensuring strict adherence to 21 CFR Part 11.
All code, is version-controlled and fully documented.
👉 Launch Live Dashboard | Audit API | Explore Source Code on GitHub | Interactive API Docs (Swagger)
The implementation of the Bioprocess Insight Platform (BIP) directly addresses the high-risk nature of pharmaceutical manufacturing by replacing reactive monitoring with proactive intelligence.
1. Risk Mitigation & Yield Protection
By utilizing the AI Pilot and Digital Twin projections, the system can anticipate a thermal or oxygen-related deviation up to 60 seconds before it occurs. In a production environment, this translates to saving batches worth hundreds of thousands of dollars that would otherwise be lost to process excursions.
2. Regulatory Readiness (GxP)
The platform is engineered with a "Compliance-First" mindset. By automating the Audit Trail via a dedicated .NET microservice, the system ensures that every operator interaction is recorded in a 21 CFR Part 11 compliant format, significantly reducing the time required for QA review and regulatory filing.
3. Operational Efficiency
The Industrial HMI simplifies multivariate data. By translating complex sensor telemetry into a single Batch Health Score, operators can manage multiple bioreactors simultaneously with high-fidelity "At-a-Glance" observability, reducing the cognitive load and potential for human error.
4. Technical Scalability
The Triad Microservice Architecture ensures that the system is not a monolith. The Data Engine, Compliance Service, and HMI can be scaled independently, allowing the platform to grow from a single R&D lab to an enterprise-wide manufacturing execution system (MES).
The platform is orchestrated across a modern, distributed cloud environment to ensure sub-second latency and high availability.
Frontend: React (TypeScript) hosted on Vercel for lightning-fast UI delivery.
Backend: Python 3.12 (FastAPI) hosted on Render for high-performance data streaming.
CI/CD: Automatic deployment pipelines triggered via GitHub Actions.
DevOps: Environment-aware API routing using VITE_API_URL to toggle between local and production clusters.
Compliance Layer: .NET 10 (C#) microservice utilizing SQLite for immutable logging of operator and AI-driven actions.
Containerization: Full Docker & Docker Compose orchestration, ensuring 100% environment parity between local development and cloud production.
Build-Time Injection: Frontend endpoints are injected during the Vercel build process via VITE_ prefixed variables. This ensures the React HMI is hard-wired to the correct Render production instances upon deployment, eliminating "localhost" leakages in the cloud.
System Flow Diagram
This system flow diagram utilizes a decoupled microservices-style approach. The Dark Blue nodes handle high-frequency mathematical projections, while the Light Blue nodes manage real-time UI synchronization.
High Architecture Diagram
The platform utilizes a Decoupled Triad Architecture. This separates the HMI Layer (React), the Digital Twin Engine (Python), and the Compliance/Audit Service (.NET). This separation of concerns ensures that real-time monitoring remains fast even while high-security logging is occurring in the background.
System Architecure Diagram
The core value of the BIP lies in its ability to transform raw sensor data into actionable quality metrics through the following layers:
The platform features an autonomous AI Pilot designed to mitigate batch loss. If Dissolved Oxygen (DO2) drops below a critical threshold (20%), the AI overrides manual setpoints to calculate and apply an optimal RPM boost using a simplified control logic:
RPM_{new} = min(600, RPM_{current} + Delta{Correction})
1. Batch Health Score
The Health Score is a simulated Quality Index (Q) that quantifies deviation from ideal biological setpoints (37°C and 7.0 pH).
Health = 100 - (|T_{actual} - 37| x 15) - (|pH_{actual} - 7| x 40)
2. The Digital Twin (Predictive Layer)
The platform utilizes a "moving-window" linear regression engine to project trends before they manifest physically.
Calibration Phase: Upon startup, the system enters a 5-second "Warm-up" to populate the sliding buffer.
Trend Analysis: The backend calculates the rate of change ({Delta Temp}/{Delta Time}) to project temperature 60 seconds into the future.
Predictive Alarms: An early warning system flags potential "Out of Spec" (OOS) conditions before physical sensors reach danger thresholds.
3. Physics-Based Closed-Loop Simulation
To move beyond static playback, I implemented a mathematical correlation between Impeller Agitation (RPM) and Dissolved Oxygen (DO2). This allows the Digital Twin to react physically to manual operator inputs, simulating real-world Oxygen Mass Transfer (kLa).
To test system resilience and operator readiness, I implemented a "Chaos Mode." This allows for the manual injection of process failures (e.g., sudden O2 drops).
Deterministic Alarms: Validates the HMI’s high-contrast pulsing animations, designed to reduce operator reaction time during critical excursions.
BIP Data Pipeline & Business Logic
In biopharmaceutical manufacturing, data integrity isn't just a best practice—it’s a legal mandate. I engineered a dedicated .NET Audit Microservice to serve as the platform’s "Compliance" backbone, ensuring every interaction meets rigorous 21 CFR Part 11 standards through the following features:
Role-Based E-Signatures: To ensure accountability, critical actions are digitally signed and bound to specific organizational roles (e.g., "Lead Scientist"). This prevents generic "Admin" overrides and ensures a clear chain of custody.
Immutable Logging & Synchronous Hooks: Every setpoint change (e.g., adjusting Impeller RPM) within the Digital Twin is paired with a concurrent, non-repudiable log entry. These synchronous hooks ensure that a change cannot be committed to the process without a successful write to the audit database.
Polyglot Coordination: This demonstrates a complex "Golden Record" architecture. A single user action in the React HMI is verified across two distinct backend environments—Python for process logic and .NET for compliance—guaranteeing data consistency across the entire batch lifecycle.
21 CFR Part 11 Exports: A dedicated reporting engine generates "verified receipts" in CSV format. These exports provide a tamper-evident audit trail of all interactions, ready for immediate regulatory submission during audits.
To mimic a live Biostat controller without physical hardware, I implemented a global index tracker in FastAPI. The API iterates through historical CSV rows, calculates "derived metrics" on the fly, and loops back to provide a continuous, live telemetry stream.
High-Contrast Interface: Optimized for 24/7 cleanroom monitoring environments.
Automated Anomaly Detection: Real-time flagging of thermal spikes (greater than 40°C) or agitation failures (less than 100 RPM).
Strict Type Safety: Utilizes TypeScript interfaces for multivariate sensor data, preventing runtime errors during rapid polling.
This platform utilizes a multi-service API architecture to separate real-time process simulation from regulatory compliance logging.