Abstract
Many institutions within the healthcare ecosystem are making significant investments in AI technologies to optimize their business operations at lower cost with improved patient outcomes. Despite the hype with AI, the full realization of this potential is seriously hindered by several systemic problems, including data privacy, security, bias, fairness, and explainability. In this paper, we propose a novel canonical architecture for the development of AI models in healthcare that addresses these challenges. This system enables the creation and management of AI predictive models throughout all the phases of their life cycle, including data ingestion, model building, and model promotion in production environments. This paper describes this architecture in detail, along with a qualitative evaluation of our experience of using it on real world problems.
Introduction
While Artificial Intelligence (AI) shows immense promise for improving patient outcomes and operational efficiency, the "last mile" of deployment in healthcare remains notoriously difficult. Most AI systems in this space are characterized as "brittle," suffering from high maintenance costs, limited code reuse, and significant technical debt. These engineering hurdles are compounded by unique systemic requirements in the healthcare domain, such as extreme data fragmentation across insurance claims, electronic health records (EHRs), and social determinants of health (SBDoH).
Furthermore, clinical adoption is often stalled by a lack of trust and transparency. Clinicians require more than just high accuracy; they need to understand the rationale behind a prediction and the lineage of the data used (provenance). Regulatory compliance, particularly with privacy laws like HIPAA, adds another layer of complexity. This paper proposes a cohesive, canonical architecture designed to integrate these disparate requirements into a unified, production-grade lifecycle.
The Canonical Architecture
The proposed architecture is designed to move healthcare AI from experimental prototypes to reliable systems. It consists of four tightly integrated subsystems that manage the entire AI lifecycle, bridging the gap between development and production.
- Inference Framework: This serves as the runtime engine. It receives requests, fetches model specifications from a registry, coordinates feature generation, and returns predictions accompanied by explainability metadata.
- Model Management Subsystem: Built on the MLflow platform, this component handles MLOps tasks, including model versioning, metric tracking, and the transformation of trained models into deployable microservices.
- Feature Repository: Inspired by industry-leading systems like Uber’s Michelangelo, this acts as a centralized store for features. It allows data scientists to reuse complex features—such as "number of ER visits in the last year"—across different models, ensuring consistency between training and production environments.
- Model Development Toolkit: This provides a comprehensive workbench for data scientists, including tools for cohort construction and automated machine learning (AutoML) pipelines. It utilizes Data Version Control (DVC) to ensure that every model is traceable to the exact dataset version used for training.
Experimental Evaluation
The robustness of the architecture was evaluated using a massive longitudinal medical claims database. The dataset encompassed approximately 220,000 patient lives and 330,000 individual medical claims. From this data, over 530 raw features were extracted, including demographics, diagnosis history, and procedure history. The system successfully integrated diverse data sources, including claims, EHR, and SBDoH data.
To test the system's operational efficiency, the team conducted a high-intensity "stress test." During a single month, the team executed over 1,000 experiments, tracking more than 10 different model architectures ranging from classical statistical models to advanced deep learning approaches. Crucially, every experiment was fully traceable back to its specific input data and feature generation logic, demonstrating a level of reproducibility rarely achieved in ad-hoc research settings.
Discussion and Key Insights
Several key insights emerged from the development and evaluation of this canonical architecture:
- Provenance as a Core Requirement: In healthcare, auditability is non-negotiable. The architecture's ability to trace the entire lineage—from raw claims to specific feature generation code—is essential for regulatory compliance and clinical trust.
- Feature Stores for Performance: By pre-computing and storing features in a NoSQL database, the system avoids expensive joins on historical data during real-time inference, significantly reducing latency and improving the user experience for clinicians.
- Closing the Feedback Loop: The inclusion of a dedicated Feedback Repository allows physicians to log disagreements with predictions. This data is used to trigger model monitoring or retraining, creating a vital "human-in-the-loop" system.
- Scalable Collaboration: The modular design allowed a large, geographically distributed team of over 20 members to collaborate effectively on the same pipeline without conflict.
Conclusion
This canonical architecture provides a blueprint for building healthcare AI that is explainable, reproducible, and capable of handling longitudinal patient records. While the core components are functional, future work will focus on formal user studies to quantify improvements in clinician trust and workflow efficiency. Additionally, the researchers aim to enhance the system with proactive feedback mechanisms and apply the blueprint to broader healthcare domains, such as medical imaging and real-time bedside monitoring.
Summary updated