Aegis is a Clinical Decision Support System (CDSS) prototype designed to intercept latent suicide risk within the constraints of a 15-minute primary care workflow.

It combines a probabilistic Naïve Bayes baseline with deterministic C-SSRS routing and uses a fixed reference-cohort threshold to create an approximately 8% alert-volume target for Phase 1 workflow evaluation.


Year

Deliverables


The Interception Gap
Primary care creates an opportunity to intervene.
Existing screening alone does not reliably identify who requires suicide-specific assessment.

Opportunity for Intervention
45% of people who died by suicide had contact with a primary care provider within one month before death.

Detection Limitation
30–50% of patients with suicide risk may not be detected by depression screening alone.

Sources:
Luoma et al. (2002) | Horowitz et al. (2023)

From Academic Theory to Deployable Reality

The academic proposal described a broad hybrid architecture combining probabilistic risk estimation, structured EHR data, suicide-specific assessment, and, in some versions, NLP-derived chart signals.

For a MVP, that scope was too broad to validate responsibly as a single implementation.

Phase 1 architecture narrowed

The MVP would use structured EHR-compatible inputs, pre-computed model outputs, and deterministic workflow routing rather than attempting to validate NLP extraction, live inference, and clinical interaction simultaneously.

This pivot established a controlled testing boundary:

Model outputs remained fixed, while the prototype tested how clearly and consistently clinicians could review a risk signal, complete the suicide-specific assessment, and receive the appropriate disposition.

Designing for Alert-Volume Control

A risk model has limited clinical value if its alert behavior cannot be integrated into the primary care workflow. Rather than treating the Naïve Bayes output as a calibrated estimate of absolute clinical risk, I used the score for its intended MVP function: ordering encounters by relative risk within a fixed reference population.

I reframed the probabilistic layer as an operational prioritization mechanism, while reserving immediate safety escalation for the deterministic C-SSRS rules engine.

Instead of triggering on an uncalibrated probability value, the offline pipeline derives a fixed alert threshold from the historical distribution of scores in a static clinic reference cohort.

Selecting the score associated with the 92nd percentile designates approximately the highest-risk 8% of that reference population for workflow evaluation.

The MVP then applies that fixed cutoff consistently to each synthetic encounter.

This created a testable alert-volume target without tying workflow behavior to an arbitrary raw probability.

It did not assume that exactly 8% of every future patient population would exceed the threshold.

If clinical capacity or the underlying population changes, the cutoff could be reconsidered through the established governance process.

Any revision would require retrospective outcome review, subgroup analysis, and prospective monitoring rather than an automatic adjustment based on staffing alone.

Actionable Explainability:
Making the Risk Signal Inspectable

A risk score without an observable basis becomes a trust demand. Aegis gives the clinician a concise view into the model output without requiring probability calculations during the patient encounter.

The offline statistical pipeline calculates the Naïve Bayes tier scores using class priors and Laplace-smoothed conditional likelihoods.

After assigning the risk tier, the pipeline ranks the patient’s present features by their class-conditional likelihoods, , for that tier.

The three highest-ranked factors are exported as static explanation fields with the encounter record.

Interpretation boundary

The interface displays those fields alongside the passive alert, using clinically recognizable labels such as a PHQ-9 finding, a documented prior attempt, or living-alone status.
These factors expose the model terms most associated with the assigned tier. They do not establish causality or provide a complete account of why that tier outranked every alternative.


Phase 1 boundary

For the Phase 1 prototype, this established a deliberate explainability boundary: the interface made the model signal inspectable using native conditional-likelihood terms, while comparative feature attribution and clinician-interpretation testing remained outside the validated scope.


Orchestrating the AI Toolchain for Rapid Validation

The original mandate tested prototype development through a no-code builder within a 48-hour sprint. During implementation, the fixed split-canvas workspace and forward-chaining C-SSRS interactions exposed requirements that needed more explicit control over layout, state, and progressive disclosure.

Before directing implementation, I defined the clinical, mathematical, and architectural boundaries:

  1. A structured categorical input matrix without NLP-derived features.
  2. Offline statistical processing using Laplace-smoothed Naïve Bayes likelihoods.
  3. A fixed threshold derived from the 92nd percentile of the reference cohort.
  4. Boolean banner outputs and three conditional-likelihood explanation fields.
  5. Separation of the probabilistic risk output from deterministic C-SSRS routing.

With the architecture and data contracts established, I used multiple AI-assisted development tools to accelerate implementation and verification within those boundaries.

The workflow included Claude Sonnet 4.6, Opus 4.6, Gemini Pro 3.1 and Google AI Studio used as part of the development environment.

AI-assisted development tool

Below the workstation boundary, the Phase 1 design would require one of two major layout changes:

  • Stack the surfaces: Move the assessment away from the chart evidence it references.
  • Compress the surfaces: Reduce the visible area available to both the chart and assessment.

Either change could remove relevant chart or assessment information from simultaneous view at the moment of disposition. The workstation-oriented EHR reference environment informed the design, but the 1080-pixel minimum was an Aegis Phase 1 product decision rather than a claimed industry standard.

What Phase 1 Establishes

From Verified Workflow to Clinical Validation

Workflow fit
Can clinicians review the risk signal and complete the assessment without losing chart context or disrupting the encounter? 

Alert response
Does the alert attract appropriate attention without encouraging reflexive dismissal or unnecessary interruption?

Decision confidence 
Do the displayed rationale, assessment sequence, and resulting disposition give clinicians enough information to understand and act on the recommendation?


(Note: Accessible via the “Staff sign in” / Tester role toggle in the sidebar footer) 

Angerhofer Richards, J., Cruz, M., Stewart, C., Lee, A. K., Ryan, T. C., Ahmedani, B. K., & Simon, G. E. (2024). Effectiveness of integrating suicide care in primary care: Secondary analysis of a stepped-wedge, cluster randomized implementation trial. Annals of Internal Medicine, 177(11), 1471–1481. https://doi.org/10.7326/M24-0024

Ayer, L., Horowitz, L. M., Colpe, L., Lowry, N. J., Ryan, P. C., Boudreaux, E., Little, V., Erban, S., Ramirez-Estrada, S., & Schoenbaum, M. (2022). Clinical pathway for suicide risk screening in adult primary care settings: Special recommendations. Journal of the Academy of Consultation-Liaison Psychiatry, 63(5), 497–510. https://doi.org/10.1016/j.jaclp.2022.05.003

Bryan, C. J., Allen, M. H., Bryan, A. O., Thomsen, C. J., Baker, J. C., & May, A. M. (2023). Does suicide risk screening improve the identification of primary care patients who will attempt suicide versus depression screening alone? The Joint Commission Journal on Quality and Patient Safety, 49(12), 680–688. https://doi.org/10.1016/j.jcjq.2023.08.008

Cammack, A. L., Stevens, M. R., Naumann, R. B., et al. (2024). Vital signs: Suicide rates and selected county-level factors, United States, 2022. Morbidity and Mortality Weekly Report, 73(37), 810–818. https://doi.org/10.15585/mmwr.mm7337e1

Delgadillo, J., Budimir, S., Barkham, M., Humer, E., Pieh, C., & Probst, T. (2023). A Bayesian network analysis of psychosocial risk and protective factors for suicidal ideation. Frontiers in Public Health, 11, 1010264. https://doi.org/10.3389/fpubh.2023.1010264

Domingos, P., & Pazzani, M. (1997). On the optimality of the simple Bayesian classifier under zero-one loss. Machine Learning, 29(2–3), 103–130.

Etter, D. J., McCord, A., Ouyang, F., Gilbert, A. L., Williams, R. L., Hall, J. A., Tu, W., Downs, S. M., & Aalsma, M. C. (2018). Suicide screening in primary care: Use of an electronic screener to assess suicidality and improve provider follow-up for adolescents. Journal of Adolescent Health, 62(2), 191–197.

Hand, D. J., & Yu, K. (2001). Idiot’s Bayes: Not so stupid after all? International Statistical Review, 69(3), 385–399.

Horowitz, L. M., Ryan, P. C., Wei, A. X., Boudreaux, E. D., Ackerman, J. P., & Bridge, J. A. (2023). Screening and assessing suicide risk in medical settings: Feasible strategies for early detection. Focus, 21(2), 145–151. https://doi.org/10.1176/appi.focus.20220086

Ledley, R. S., & Lusted, L. B. (1959). Reasoning foundations of medical diagnosis. Science, 130(3366), 9–21.

Luoma, J. B., Martin, C. E., & Pearson, J. L. (2002). Contact with mental health and primary care providers before suicide: A review of the evidence. The American Journal of Psychiatry, 159(6), 909–916. https://doi.org/10.1176/appi.ajp.159.6.909

Mitchell, T. M. (1997). Machine learning. McGraw-Hill.

Simon, G. E., Rutter, C. M., Peterson, D., Oliver, M., Whiteside, U., Operskalski, B., & Ludman, E. J. (2013). Does response on the PHQ-9 Depression Questionnaire predict subsequent suicide attempt or suicide death? Psychiatric Services, 64(12), 1195–1202. https://doi.org/10.1176/appi.ps.201200587

Walsh, C. G., Ripperger, M. A., Novak, L., et al. (2025). Risk model-guided clinical decision support for suicide screening: A randomized clinical trial. JAMA Network Open, 8(1), e2452371. https://doi.org/10.1001/jamanetworkopen.2024.52371

To Top of Page