arXiv(opens in a new tab)cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.10796

DR-LabStack: Design and Implementation of a Clinician-Facing Web System for Diabetic Retinopathy Prediction

Yingfan Xu, Tieming Liu, Ye Liang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Pretrained diabetic retinopathy (DR) prediction models differ in their input fields, serialization formats, preprocessing requirements, and output semantics. Making these models accessible through a common clinical interface therefore requires explicit coordination between the user interface and the inference service. We designed and implemented DR-LabStack, a React–Flask web system integrating four externally developed pretrained models: RuleFit, Pruned RuleFit, Elaborative XGBoost, and Two-level Ensemble. A shared form retrieves ordered model features, renders model-specific numerical and categorical controls, and constructs a positional input vector. Backend adapters load heterogeneous artifacts and apply the ensemble's accompanying scaler, while a common JSON response supports binary classification display alongside method and source information. Functional evaluation on September 8, 2026 used copied application files and real model artifacts in a documented isolated environment. All four models loaded and exposed their 14-, 6-, 8-, and 25-field contracts. Sixty-two Flask test-client requests characterized service behavior; 12 limited-vector checks confirmed invocation-path and threshold consistency. Twenty-four browser-component scenarios with mocked transport verified input ordering and result rendering and characterized input-validation behavior. The resulting system demonstrates a reusable interaction and serving workflow for heterogeneous DR models. The contribution is web-system design, integration, and software functionality; clinical effectiveness and clinician usability require separate evaluation.

1 Introduction

Diabetic retinopathy (DR) prediction from structured clinical data has motivated research using laboratory measurements, recorded complications, and demographic variables. Related studies have also developed web tools that make predictive models accessible through manual data entry [9,10,17][9, 10, 17]. For a research group working with several such models, the software task extends beyond exposing a single prediction function. Each model can require a different ordered feature vector, artifact loader, preprocessing object, and interpretation of its numerical output. A common interface must preserve these distinctions while presenting an understandable interaction. Model reuse and deployment are also central concerns in broader software-engineering studies of machine-learning applications [1][1].

We designed and implemented DR-LabStack to support this workflow across four pretrained models: RuleFit, Pruned RuleFit, Elaborative XGBoost, and Two-level Ensemble. The application

∗^{*}Corresponding author.

combines React model pages and a shared prediction form with Flask model-discovery, feature-discovery, and inference endpoints. The project repository is publicly available. 1^{1} This paper describes the complete four-model system and evaluates its implemented integration paths.

The predictive models were developed by their respective researchers in separate prior work. The contribution of this paper is the design, implementation, and functional evaluation of the web application and its integration interfaces. Algorithm design, training, feature selection, rule pruning, and ensemble learning belong to the underlying model research. We neither introduce a new prediction algorithm nor retrain the supplied artifacts in this study.

Three engineering concerns motivate the design. First, positional inference APIs make feature order a correctness condition: recognizable labels alone cannot ensure that a value reaches the expected model input. Second, heterogeneous artifacts require model-specific loading and preprocessing, including an external scaler for the ensemble. Third, a uniform display must distinguish a shared response format from a shared probabilistic meaning. These concerns connect interface design directly to the serving layer.

The system contributions are: (i) a shared React interaction that uses model-derived ordering while retaining model-specific display labels, hints, and categorical controls; (ii) a Flask integration layer for heterogeneous pretrained artifacts, associated preprocessing, and a common classification response; and (iii) a functional evaluation separating real-model service checks from browser-component tests. The evaluation establishes implemented behavior for specified inputs and identifies the integration contracts needed for further use. The interface is clinician-facing in its intended audience and presentation; clinician participation and clinical utility were not evaluated in this study.

References (16)