SafeImpute: Reliable Clinical Data Imputation
via Conformal Selection


Abstract

Clinical care often relies on key laboratory indicators, yet real-world patient visits are sparse and tests are ordered irregularly, leading to pervasive missingness. While many imputation methods improve average accuracy, they provide limited guidance on which imputed values are reliable enough for high-stakes downstream use. In this work, we study reliable clinical imputation, aiming to produce accurate imputations while selectively releasing the reliable results, with statistical control over clinically unacceptable errors. To achieve this goal, we propose SafeImpute, a reliable imputation framework for irregular and sparse clinical longitudinal records. SafeImpute constructs an event graph that captures both intra-patient temporal trajectories and inter-patient clinical similarity, and learns imputations with a two-relation GNN and adaptive fusion, regularized by an auxiliary masked reconstruction objective. For reliability guarantees, SafeImpute converts a proxy risk score into conformal p-values and applies the Benjamini–Hochberg procedure to control the false discovery rate (FDR) of unacceptable errors among released imputations at a user-specified tolerance. Experiments on our Mayo Clinic data, the public MIMIC-III and MIMIC-IV datasets show that SafeImpute achieves strong imputation accuracy while providing reliable error control, outperforming diverse baselines in both standard imputation evaluation and FDR-controlled selective-release evaluation. Code is available at https://github.com/Xinrui17/SafeImpute.

<ccs2012> <concept> <concept_id>10010147.10010257.10010293.10010294</concept_id> <concept_desc>Computing methodologies Neural networks</concept_desc> <concept_significance>500</concept_significance> </concept> <concept> <concept_id>10010405.10010444.10010449</concept_id> <concept_desc>Applied computing Health informatics</concept_desc> <concept_significance>500</concept_significance> </concept> </ccs2012>

1

1 Introduction↩︎

In clinical care, key indicators, e.g., Hemoglobin A1c (HbA1c) for diabetes management [1], are crucial for disease monitoring and treatment adjustment [2], yet patient visits are irregular, and labs are often not ordered at every visit, resulting in pervasive missingness in longitudinal records. Recent years have seen growing interest in clinical data imputation, with methods ranging from statistical models [3][5] to deep generative models and representation learning [6][9]. Despite this progress, most approaches emphasize overall accuracy and provide limited guarantees on error control in high-stakes use, where unreliable results can directly mislead diagnosis and treatment adjustment.

Clinical deployment, therefore, raises a question beyond overall accuracy: which imputed results are reliable enough to support clinical decision-making, and how can we provide explicit control over imputation errors? This motivates reliable clinical imputation, which augments imputation with uncertainty or reliability assessment, thereby producing imputations with quantitative error control. Related quality-control frameworks have been studied in high-stakes prediction, including Bayesian methods [10], [11], imprecise probability [12], and conformal prediction [13]. Several works have begun to apply these ideas in clinical settings [14][17], such as conformalized models for genomic medicine [18] and SAFER [19], which uses conformal prediction to provide statistical false discovery rate (FDR) control for treatment prediction. However, risk-controlled clinical imputation remains underexplored, particularly for irregular and sparsely observed patient records [20], [21].

Building on this gap, we focus on two challenges in reliable clinical data imputation. (i) Modeling irregular, sparse, and heterogeneous longitudinal records. Real-world patient visits usually occur at uneven intervals, and lab tests are ordered opportunistically, yielding highly sparse and heterogeneous measurement patterns. As a result, intra-patient temporal evidence is often limited, while informative signals may instead come from cross-patient analogies. This calls for an imputation model that can exploit both the limited temporal trajectory and relational structure across patients under severe missingness. (ii) Reliable imputation with statistical error control. In high-stakes settings, the goal is not only to minimize average error, but to determine which imputations are reliable enough to act on, and provide a quantitative guarantee that clinically unacceptable errors are rare among the released results. This requires uncertainty quantification for each imputed entry and a statistically grounded selection procedure that can control the error rate when releasing many imputations.

To address these challenges, we propose SafeImpute, a reliable imputation framework for irregular and sparse clinical records that couples a strong event graph imputer with alse discovery rate (FDR) control. Specifically, to address the irregular and sparse nature of clinical visits and measurements, we construct an event graph with temporal edges that capture intra-patient trajectories and trend-aware value edges that connect clinically similar events to capture inter-patient analogies. On this event graph, we learn event representations with a two-relation GNN that performs relation-specific message passing and fuses temporal and value signals via adaptive gating. To ensure reliability in high-stakes settings, SafeImpute computes a proxy risk score for each imputed entry and calibrates it into conformal p-values, then applies the Benjamini–Hochberg procedure to select a subset of imputations while controlling the FDR of clinically unacceptable errors at a user-specified tolerance level. Together, SafeImpute produces accurate imputations and selectively releases them with statistical error control.

The major contributions of this paper are summarized as follows:

  • We formulate the problem of reliable clinical data imputation, where the goal is not only to achieve accurate imputation but also to selectively release reliable results with statistical control over clinically unacceptable errors.

  • We propose SafeImpute, a reliable imputation framework that (i) represents irregular clinical visits as an event graph, where temporal edges capture intra-patient trajectories and similarity edges connect clinically related visits across patients, and learns imputations using a two-relation GNN with adaptive fusion; and (ii) provides reliability control by calibrating a proxy risk score into conformal p-values and applying the Benjamini–Hochberg procedure to control the false discovery rate among released imputations at a user-specified tolerance.

  • Extensive experiments on Mayo Clinic dataset and the MIMIC-III/IV datasets demonstrate that SafeImpute achieves strong imputation accuracy while providing reliable error control.

2 Preliminary↩︎

2.1 Clinical Imputation↩︎

In many clinical decision-making scenarios, decisions are driven by a small set of decision-critical laboratory markers that are directly relevant for diagnosis and treatment planning, rather than by completing every missing measurement. Motivated by this, we focus on imputing a designated decision-critical target, such as HbA1c for diabetes monitoring and treatment adjustment. We consider irregular, multi-lab longitudinal clinical records, where each patient has an irregular set of clinical visits over time and only a subset of laboratory tests may be measured at each visit. We treat each visit as an event node that aggregates the laboratory tests recorded during that visit. Let \(\mathcal{V}\) denote the set of all event nodes across patients. For node \(i\in\mathcal{V}\), let \(p_i\) denote its patient identity and \(t_i\) its timestamp. Let \(\mathcal{L}\) be the set of laboratory variables together with the available attributes of the patient. We denote the value of variable \(\ell\in\mathcal{L}\) at node \(i\) by \(z_{i,\ell}\). Formally, given partially observed multi-lab inputs \(\{z_{i,\ell}\}_{\ell\in\mathcal{L}}\), our goal is to impute only the designated target \(y_{i}\) at event nodes where it is missing.

2.2 Conformal Selection↩︎

Conformal selection (CS) [21] is a model-agnostic framework for selecting a subset of test instances while controlling the false discovery rate (FDR) [22] in finite samples.

CS formulates one hypothesis test for each candidate test sample. Let \(\{(x_i,y_i)\}_{i=1}^n\) denote the calibration samples and \(\{x_{n+j}\}_{j=1}^m\) denote the test candidates. For each test candidate \(j\in[m]\), CS considers the hypotheses \[H_{0j}:~ y_{n+j}\le c \label{eq:cs95hypothesis}\tag{1}\] Rejecting \(H_{0j}\) indicates that the \(j\)-th test candidate is deemed to exceed the threshold \(c\).

2.2.0.1 Nonconformity scores and conformal p-values.

CS relies on a nonconformity measure \(J(\cdot,\cdot)\) that quantifies how atypical an observation is relative to the calibration data. For calibration samples, the nonconformity scores are \[J_i = J(x_i,y_i),\quad i=1,\dots,n.\] For a test candidate \(x_{n+j}\), since \(y_{n+j}\) is unobserved, CS replaces it by the threshold \(c\) and computes \[\widehat{J}_{n+j} = J(x_{n+j},c).\] The conformal p-value [21] for testing 1 is then computed via a rank-based comparison between \(\widehat{J}_{n+j}\) and \(\{J_i\}_{i=1}^n\). Intuitively, a smaller conformal p-value provides stronger evidence against \(H_{0j}\).

2.2.0.2 BH procedure and FDR control.

To determine the final selected subset, CS applies the Benjamini–Hochberg (BH) [22] procedure to the set of conformal p-values \(\{p_{n+j}\}_{j=1}^m\). Let \(p_{(1)}\le \cdots \le p_{(m)}\) be the sorted p-values and define \[k^\star = \max\left\{k\in[m]:~ p_{(k)} \le \frac{k}{m}\,\alpha \right\},\] with the convention that \(k^\star=0\) if the set is empty. \(\alpha\in(0,1)\) is the target FDR level. BH rejects all hypotheses with \(p_{n+j}\le p_{(k^\star)}\), yielding the selected set. Under the standard validity conditions for conformal p-values (e.g., exchangeability), this procedure guarantees finite-sample FDR control at level \(\alpha\).

3 Method↩︎

In this section, we present SafeImpute, including event-graph construction for irregular clinical records, two-relation GNN learning over temporal and trend-aware value edges, and the selection module that provides FDR-controlled selective imputation release.

Figure 1: SafeImpute overview for reliable clinical imputation. We convert irregular and sparse longitudinal records into an event graph with temporal edges and trend-aware value edges, then learn with a two-relation GNN combined with an adaptive fusion gating network to impute missing labs. To achieve FDR control over clinically unacceptable errors, we compute a proxy risk score that combines perturbation-induced instability with evidence degree, convert it to conformal p-values, and apply the Benjamini–Hochberg procedure to selectively release safe imputations.

3.1 Event Graph Construction↩︎

3.1.0.1 Event Node.

We treat each patient visit as an event node. To preserve as much event-level information as possible under irregular missingness, we encode both available lab values and missingness patterns in the node feature. Specifically, for each lab \(\ell\in\mathcal{L}\) at event node \(i\), we define an observation indicator \[m_{i,\ell}=\mathbb{I}\big[z_{i,\ell}\;\text{is observed}\big].\] We then represent each event by concatenating lab values with their indicators: \[\mathbf{x}_i=\Big[\, z_{i,1}, m_{i,1},\;z_{i,2}, m_{i,2},\;\ldots,\;z_{i,|\mathcal{L}|}, m_{i,|\mathcal{L}|},\;g_i \Big],\] where unobserved \(z_{i,\ell}\) are set to \(0\) only for feature construction. To mitigate scale differences across lab values, we normalize the lab values.

With event nodes, we construct an event graph \(\mathcal{G}=(\mathcal{V},\mathcal{E}_t\cup\mathcal{E}_v)\) with two types of edges that capture two complementary signals: intra-patient trajectories and inter-patient analogies. Specifically, we include (1) intra-patient temporal edges \(\mathcal{E}_t\) that connect consecutive events of the same patient, preserving local temporal continuity; and (2) inter-patient trend-aware value edges \(\mathcal{E}_v\) that connect events among patients using lab value-level and trend-level information, enabling information sharing between clinically similar event contexts. We describe the construction of these two edge types below.

3.1.0.2 Temporal Edges.

To preserve intra-patient trajectories, for each patient \(p\) we sort its event nodes by time. Let \(\text{next}(i)\) denote the immediate subsequent event of the same patient after node \(i\). We add a temporal edge between consecutive events if the time gap is within a threshold: \[\mathcal{E}_t = \left\{(i,j)\;\middle|\;p_i=p_j,\;j=\text{next}(i),\;0 < t_j-t_i \le \Delta_t \right\}.\]

3.1.0.3 Trend-aware Value Edges.

Temporal edges capture within-patient continuity but do not facilitate information sharing across patients. To model inter-patient analogies, we additionally connect events that exhibit similar lab levels and temporal trends.

For each node \(i\) and lab \(\ell\), let \(r_{i,\ell}\) denote the most recent prior event of patient \(p_i\) before \(t_i\) where lab \(\ell\) is observed. If such an event does not exist, we set \(r_{i,\ell}=\varnothing\). We define the per-lab trend as the rate of change from the last available observation: \[\delta_{i,\ell}= \begin{cases} \dfrac{z_{i,\ell}-z_{r_{i,\ell},\ell}}{(t_i-t_{r_{i,\ell}})+\epsilon}, & r(i,\ell)\neq\varnothing,\;t_i>t_{r_{i,\ell}},\\[6pt] \text{missing}, & \text{otherwise}. \end{cases}\]

For a pair of nodes \((i,j)\), the sets of commonly observed labs for values and trends are defined as: \[\mathcal{L}_{ij} = \left\{\ell\in\mathcal{L}\mid z_{i,\ell}\;\text{and}\;z_{j,\ell}\;\text{are observed}\right\},\]

\[\mathcal{L}^{\delta}_{ij} = \left\{\ell\in\mathcal{L}\mid \delta_{i,\ell}\;\text{and}\;\delta_{j,\ell}\;\text{are observed}\right\}.\] To avoid node similarity being biased by the number of commonly observed labs, we compute RMS-normalized Euclidean distances over the common dimensions as value and trend similarities: \[\begin{align} d_v(i,j) &= \sqrt{\frac{1}{|\mathcal{L}_{ij}|}\sum_{\ell\in\mathcal{L}_{ij}}\left(\hat{z}_{i,\ell}-\hat{z}_{j,\ell}\right)^2},\\ d_\delta(i,j) &= \sqrt{\frac{1}{|\mathcal{L}^{\delta}_{ij}|}\sum_{\ell\in\mathcal{L}^{\delta}_{ij}}\left(\hat{\delta}_{i,\ell}-\hat{\delta}_{j,\ell}\right)^2}, \end{align}\]

where \(\hat{z}_{i,\ell}\) and \(\hat{\delta}_{i,\ell}\) denote the normalized value and trend features, respectively. We connect \(i\) and \(j\) if both the value and trend distance criteria are satisfied: \[\mathcal{E}_v =\{(i,j)| d_v(i,j) \le \tau_v, d_\delta(i,j)\le \tau_\delta\}.\] To avoid isolated nodes under sparse observations, for any node \(i\) with \(\mathcal{L}^{\delta}_{ij}=\emptyset\) for all \(j\), we connect \(i\) to its nearest value-based neighbor.

3.2 Two-Relation Learning↩︎

To learn event representations that jointly capture intra-patient progression and inter-patient similarity, we propose a two-relation graph neural network (GNN) that performs separate message passing over temporal edges \(\mathcal{E}_t\) and value edges \(\mathcal{E}_v\), followed by adaptive fusion at each layer.

Let \(\mathbf{h}_i^{(0)}=\mathbf{x}_i\). At layer \(k\), we compute relation-wise messages for each node \(i\): \[\begin{align} \mathbf{m}^{(k)}_{t,i} &= \mathrm{GNN}_t^{(k)}(\mathbf{H}^{(k-1)};\mathcal{E}_t)_i, \\ \mathbf{m}^{(k)}_{v,i} &= \mathrm{GNN}_v^{(k)}(\mathbf{H}^{(k-1)};\mathcal{E}_v)_i, \end{align}\] where \(\mathrm{GNN}_t^{(k)}\) and \(\mathrm{GNN}_v^{(k)}\) are GCN layers with independent parameters: \[\mathrm{GNN}(\mathbf{H};\mathcal{E}) = \sigma\!\left(\tilde{\mathbf{D}}^{-\frac{1}{2}}\tilde{\mathbf{A}}\tilde{\mathbf{D}}^{-\frac{1}{2}}\mathbf{H}\mathbf{W}\right),\] where \(\tilde{\mathbf{A}}\) is the adjacency with self-loops and \(\tilde{\mathbf{D}}\) is the corresponding degree matrix, \(\mathbf{W}\) is the learnable weight matrix and \(\sigma(\cdot)\) is the activation function.

We fuse the two relation-specific messages using a learnable gate computed for each node at each layer: \[\alpha_i^{(k)} = \mathrm{sigmoid}\!\left( \mathbf{w}^{(k)\top} \big(\mathbf{m}^{(k)}_{t,i}+\mathbf{m}^{(k)}_{v,i}\big) \right),\] \[\mathbf{h}_i^{(k)} = \alpha_i^{(k)}\mathbf{m}^{(k)}_{t,i} + \big(1-\alpha_i^{(k)}\big)\mathbf{m}^{(k)}_{v,i}.\]

After the final layer \(K\), we apply a multi-output linear prediction head: \[\hat{\mathbf{z}}_i = \mathbf{W}_o \mathbf{h}_i^{(K)} + \mathbf{b}_o,\] where each output dimension corresponds to one laboratory variable. The prediction for the designated target measurement is denoted by \(\tilde{y}_i\), i.e., the target dimension of \(\hat{\mathbf{z}}_i\).

Let \(\Omega_{\mathrm{train}}\) be the set of training nodes with observed target labels \(y_i\). We train the main target prediction by minimizing \[\mathcal{L}_{\mathrm{target}} = \frac{1}{|\Omega_{\mathrm{train}}|} \sum_{i\in\Omega_{\mathrm{train}}} (\tilde{y}_i-y_i)^2.\]

Although the final task is to impute the designated target measurement, we further regularize the event representations by reconstructing randomly masked non-target laboratory values. At each epoch, we randomly mask a small fraction of observed non-target labs from the input and ask the model to reconstruct them from the learned event representation. Let \(\mathcal{M}_\ell\) be the set of masked node–lab pairs for lab \(\ell\). To reduce sensitivity to outlying lab values, we use the Huber reconstruction loss: \[\mathcal{L}_{\mathrm{aux}} = \frac{1}{\sum_{\ell \ne y} |\mathcal{M}_\ell|} \sum_{\ell \ne y} \sum_{(i,\ell)\in \mathcal{M}_\ell} \rho_{\eta}(\hat{z}_{i,\ell}-z_{i,\ell}),\] where \[\rho_{\eta}(e)= \begin{cases} \frac{1}{2}e^2, & |e|\le \eta,\\ \eta\left(|e|-\frac{1}{2}\eta\right), & |e|>\eta. \end{cases}\] The final training objective is \[\mathcal{L} = \mathcal{L}_{\mathrm{target}} + \lambda \mathcal{L}_{\mathrm{aux}}.\]

3.3 Conformal Selection and FDR Control↩︎

In clinical settings, imputed laboratory values may directly influence diagnosis, prognosis assessment, and treatment planning. We therefore apply conformal selection with false discovery rate (FDR) control to retain only reliable imputations: among the released imputations, the expected fraction of clinically unacceptable errors is controlled at a user-specified level.

3.3.0.1 Risk hypothesis.

Let \(\hat{y}_i\) be the model prediction at node \(i\) and \(y_i\) be the ground-truth label (available only on calibration). We define the true error on labeled points as \[\kappa(i) = |y_i-\hat{y}_i|.\] Given a user-specified tolerance \(\delta>0\) for the target variable, we call node \(i\) risky if \(\kappa(i)\ge \delta\). For each test-time node \(j\) (with unknown \(y_j\)), we consider the null hypothesis \[H_j:\;\kappa(j)\ge \delta \qquad \text{(the imputation at j is risky)}. \label{eq:hypothesis-risky}\tag{2}\]

3.3.0.2 Proxy risk score.

Since \(\kappa(j)\) is unobservable at test time, conformal selection requires a label-free proxy score that tends to be larger for risky imputations. We therefore define a proxy risk score by combining two complementary signals: prediction instability under structure-preserving perturbations, capturing sensitivity to small changes in relational evidence; and an evidence penalty, capturing the scarcity of relational support even when predictions appear stable.

To compute prediction instability, we perform margin-weighted edge perturbations that reflect how strongly each edge is supported by the edge construction rules. For each edge \(e\), we compute a normalized margin \(m(e)\in[0,1]\) to the threshold and convert it into an edge-specific keep probability \[\pi(e) \;=\; \pi_{\min} + (\pi_{\max}-\pi_{\min})\cdot m(e)^{\gamma}, \label{eq:keep95prob}\tag{3}\] where \(\pi_{\min},\pi_{\max}\in(0,1)\) and \(\gamma>0\). Edges that barely satisfy the threshold have small \(m(e)\) and are dropped more often, while strongly supported edges have large \(m(e)\) and are kept with higher probability.

For a temporal edge \(e=(i,j)\in\mathcal{E}_t\): \[m_t(e)\;=\;1-\min\!\left\{ \frac{\Delta t_{ij}}{\Delta_t},\,1\right\}. \label{eq:temporal95margin}\tag{4}\] and for a value edge \(e=(i,j)\in\mathcal{E}_v\),

\[s_v(e)\;=\;\max\!\left\{\frac{d^{v}_{ij}}{\tau_{v}},\,\frac{d^{\delta}_{ij}}{\tau_{\delta}}\right\}, \quad m_v(e)=1-\min\{s_v(e),1\} \label{eq:value95margin}\tag{5}\] If the trend is unavailable for at least one endpoint, we use value-only strength \(s_v(e)=d^v_{ij}/\tau_v\).

Let \(\mathcal{G}^{(1)},\ldots,\mathcal{G}^{(K)}\) be \(K\) independent perturbations obtained by sampling each edge \(e\) according to \(\mathrm{Bernoulli}(\pi(e))\). Let \(\hat{y}_i^{(k)}\) be the model prediction for node \(i\) when running inference on \(\mathcal{G}^{(k)}\). We define the prediction-instability score as the dispersion of these predictions: \[S_{\mathrm{pred}}(i) =\mathrm{Std}\Big(\{\hat{y}_i^{(k)}\}_{k=1}^{K}\Big), \label{eq:spred}\tag{6}\] where \(\mathrm{Std}(\cdot)\) denotes the standard deviation across perturbations.

Beyond perturbation sensitivity, reliability also depends on the amount of relational evidence supporting a node. When the constructed relations are sparse for a node (hence small degree), there is limited information propagation from other events, and the imputation is driven by a weak neighborhood signal. To reflect this evidence scarcity, we incorporate a degree-based penalty that downweights nodes with insufficient temporal/value support, independent of the instability term.

Concretely, let \(\deg_t(i)\) and \(\deg_v(i)\) denote the degrees of node \(i\) in the temporal and value graphs, respectively. We define the evidence penalty as \[S_{\mathrm{evid}}(i) = \frac{1}{\sqrt{\deg_t(i)+1}} + \frac{1}{\sqrt{\deg_v(i)+1}}, \label{eq:sevid}\tag{7}\] so that nodes with weaker neighborhood evidence receive larger penalties.

Finally, we define the proxy risk score used for conformal testing as \[\hat{\kappa}(i) = S_{\mathrm{pred}}(i)+\beta\,S_{\mathrm{evid}}(i), \label{eq:kappa95hat}\tag{8}\] where \(\beta\ge 0\) balances instability and evidence. Intuitively, \(\hat{\kappa}(i)\) becomes large when predictions are sensitive to plausible perturbations or when the node is weakly supported by the constructed relations.

3.3.0.3 Conformal p-values.

Given the proxy risk score \(\hat{\kappa}(i)\), we test the risk hypothesis in 2 by constructing conformal p-values using the calibration set. Concretely, we partition nodes into three disjoint subsets, \(\Omega_{\mathrm{train}}\), \(\Omega_{\mathrm{cal}}\), and \(\Omega_{\mathrm{test}}\). We first define the calibration “bad” subset \[\mathcal{B}=\{i\in\Omega_{\mathrm{cal}}:\;|y_i-\hat{y}(i)|\ge \delta\}, \label{eq:bad95set}\tag{9}\] which provides an empirical reference set for the null population. A common concern for applying conformal prediction on graphs is that node dependencies may violate exchangeability. Recent studies show that conformal validity can still hold for node-level tasks on static graphs when the nonconformity score is invariant to permutations of the calibration/test nodes [23]. In our setting, calibration and test nodes are treated identically during graph construction: their features and edges are determined solely by observed covariates, with targets masked. Under this setting, we give the following exchangeability assumption between \(\Omega_{\mathrm{cal}}\) and \(\Omega_{\mathrm{test}}\).

Assumption 1 (Exchangeability of calibration and test nodes). Conditioned on the observed covariates used and the trained model parameters, the collection of node-level examples in \(\Omega_{\mathrm{cal}}\cup\Omega_{\mathrm{test}}\) is exchangeable under permutations of indices.

For each node \(j\), we compute a conformal p-value [21] against \(\mathcal{B}\) as \[p_j = \frac{ 1+\sum_{i\in\mathcal{B}}\mathbb{1}\{\hat{\kappa}(i)<\hat{\kappa}(j)\} +U_j\sum_{i\in\mathcal{B}}\mathbb{1}\{\hat{\kappa}(i)=\hat{\kappa}(j)\} }{ |\Omega_{\mathrm{cal}}|+1 }, \label{eq:conformal95p}\tag{10}\] where \(U_j\sim\mathrm{Unif}[0,1]\) is used for random tie-breaking. Intuitively, a smaller \(p_j\) means that the current imputation has unusually low proxy risk compared with the calibration bad set \(\mathcal{B}\), and is therefore less likely to be risky.

Proposition 1 (Valid p-values under the risk null). Under Assumption 1 and the validity conditions of conformal selection for the proxy-risk score, for any test node \(j\) satisfying the null \(H_j\) in 2 , the p-value in 10 is super-uniform: \[\mathbb{P}(p_j \le \alpha)\le \alpha,\qquad \forall \alpha\in[0,1].\]

3.3.0.4 FDR-controlled selection via Benjamini–Hochberg.

In clinical deployment, it is more meaningful to control the overall error burden among the imputed values that are actually presented to clinicians or downstream decision models. We therefore target control of the false discovery rate (FDR) [22], defined as the expected proportion of truly risky imputations among those we accept for deployment. To this end, we apply the Benjamini–Hochberg (BH) procedure [21], [22] to the collection of p-values \(\{p_j\}_{j\in\Omega_{\mathrm{test}}}\) at a target level \(\alpha\in(0,1)\). Let \(p_{(1)}\le \cdots \le p_{(m)}\) be the sorted p-values over the \(m=|\Omega_{\mathrm{test}}|\) test nodes, and let \[k^\star=\max\Big\{k:\;p_{(k)}\le \frac{k}{m}\,\alpha\Big\}, \label{eq:bh95cutoff}\tag{11}\] with the convention that \(k^\star=0\) if the set is empty. We then select the nodes \[\mathcal{S}(\alpha)=\{j\in\Omega_{\mathrm{test}}:\;p_j\le p_{(k^\star)}\}. \label{eq:bh95select}\tag{12}\] Since the null hypothesis \(H_j\) corresponds to “the imputation at \(j\) is risky”, rejecting \(H_j\) means selecting node \(j\) as sufficiently reliable for release. Therefore, \(\mathcal{S}(\alpha)\) is the deployed subset with a user-specified FDR control level.

Proposition 2 (FDR control via BH). Assume the null p-values are independent or satisfy the standard positive regression dependence on a subset (PRDS) condition [24]. Then applying BH at level \(\alpha\) to \(\{p_j\}_{j\in\Omega_{\mathrm{test}}}\) yields \[\mathrm{FDR} = \mathbb{E}\!\left[ \frac{ \big|\{j\in\mathcal{S}(\alpha):\, |y_j-\hat{y}(j)|\ge \delta\}\big| }{ \max\{|\mathcal{S}(\alpha)|,1\} } \right] \le \alpha,\] i.e., among the selected imputations, the expected fraction of truly risky ones is controlled by \(\alpha\).

The proof follows the conformal testing used in [19], [21]; for completeness we provide it in Appendix 7.

4 Results↩︎

In this section, we analyze four key aspects to demonstrate the effectiveness of SafeImpute: (i) overall imputation accuracy and reliability control of the proposed method compared with various baselines; (ii) the performance of the pure event-graph imputer without FDR control; (iii) an ablation study that quantifies the impact of major design components; and (iv) a detailed analysis of FDR-controlled selection.

Table 1: Overall performance comparison. Best results are in bold and second-best are underlined.
Method Dataset Mayo Clinic MIMIC-III MIMIC-IV
3-5(lr)6-8(lr)9-11 Metric MAE \(\downarrow\) RMSE \(\downarrow\) Prec. \(\uparrow\) MAE \(\downarrow\) RMSE \(\downarrow\) Prec. \(\uparrow\) MAE \(\downarrow\) RMSE \(\downarrow\) Prec. \(\uparrow\)
Statistical Mean 0.4311 0.5086 0.8333 1.2528 1.4844 0.3970 1.1601 1.4991 0.5044
KNN 0.4983 0.5776 0.5000 1.2758 1.5844 0.4879 1.2962 1.6638 0.4557
MICE 0.3889 0.4589 0.8333 1.0382 1.2747 0.5394 0.9960 1.3906 0.6346
Missforest 0.3419 0.4416 0.8333 1.1409 1.3614 0.4697 0.9864 1.3351 0.6185
Hyperimpute 0.3833 0.4819 0.8333 0.9844 1.2409 0.5758 0.9872 1.3693 0.6185
Deep Learning GAIN 0.3635 0.4360 0.8333 1.0613 1.3510 0.5394 1.0148 1.4378 0.6275
GRAPE 0.2494 0.3688 0.8333 0.9724 1.2526 0.6333 1.0057 1.6450 0.6487
TDM 0.4191 0.4832 0.6667 0.9934 1.2543 0.6091 1.1313 1.4749 0.5143
MIWAE 0.5040 0.6054 0.6667 1.1782 1.5031 0.5182 1.0124 1.4118 0.6232
Remasker 0.5250 0.6475 0.8333 1.1112 1.3463 0.5061 1.2324 1.5260 0.4431
DIFFIMPUTER 0.3060 0.4026 1.0000 1.0771 1.3122 0.5212 0.9791 1.2305 0.6400
Sequential LSTM 0.6620 0.7771 0.8333 1.1633 1.4025 0.4455 0.9934 1.4242 0.6293
TRANS 0.2649 0.3129 1.0000 2.1025 2.4062 0.1939 1.1627 1.9186 0.6052
SafeImpute 0.2464 0.3125 1.0000 0.9662 1.2351 0.6333 0.9715 1.3820 0.6555

4.1 Experimental Settings↩︎

4.1.1 Datasets↩︎

We evaluate SafeImpute  on HbA1c (A1c) imputation for diabetes patients, where HbA1c is a key indicator for long-term glycemic control and diabetes management, using three datasets: Mayo Clinic, MIMIC-III [25], and MIMIC-IV [26]. Mayo Clinic dataset contains real-world records collected in 2022–2023 from patients diagnosed with type 1 diabetes, where each patient has multiple visits; for each visit, we extract {A1c, glucose, cholesterol, gender} as features, and the lab variables exhibit naturally occurring missingness because tests are not ordered at every visit. To create a test set for evaluation, we additionally mask 10% of observed A1c values as held-out targets. For MIMIC-III and MIMIC-IV, we construct diabetes cohorts by filtering patients with diabetes diagnoses and treat each A1c measurement as an anchor visit; for each anchor, we retrieve the most recent glucose and cholesterol measurements recorded at or before the A1c timestamp (within 7 days for glucose and 90 days for cholesterol), and use gender as the demographic feature, yielding irregular longitudinal event sequences with naturally occurring missingness across patients. We randomly mask 40% of observed A1c values as held-out targets. Apart from the held-out test nodes, we split the remaining nodes into training/validation/calibration sets with a 70%/15%/15% ratio. Statistics of processed datasets and detailed analysis of Mayo Clinic data are provided in the appendix 8. Definitions of the evaluation metrics are provided in Appendix 9.

4.1.2 Baselines↩︎

Existing imputation baselines generally do not provide native uncertainty estimation or selective-release mechanisms. Since prior work on uncertainty estimation for imputation [27] suggests that methods such as MICE [28] and MIWAE [29] can reflect both calibration and accuracy, we include a diverse set of baselines spanning statistical, deep learning, and sequential methods. Statistical methods: Mean imputes each feature by the training-set mean. KNN imputes from the k nearest samples based on similarity over observed dimensions. MICE [28] iteratively fits feature-wise conditional regressors to update missing entries. MissForest [30] performs iterative imputation using random-forest predictors. HyperImpute [31] selects a strong imputer via automated model and hyperparameter search. Deep learning methods: GAIN [32] uses adversarial training to generate realistic imputations. GRAPE [6] leverages graph neural message passing to propagate information for missing values. MIWAE [29] performs imputation under a variational generative framework. TDM [33] models complex tabular dependencies with a deep imputation architecture. ReMasker [7] learns masked reconstruction with a denoising objective. DiffImputer [8] uses diffusion-based denoising to generate completed samples. Sequential methods: LSTM [34] imputes using recurrent hidden states over irregular event sequences. TRANS [35] is a transformer-based sequential model for electronic health records data prediction; we adapt it for imputation by casting missing-value recovery as a prediction problem over masked targets. We evaluate all methods on the same set of predictions selected by the proxy risk score and report each method’s empirical Precision based on its own imputation outputs.

4.1.3 Implementation↩︎

We choose the target FDR level \(\alpha\) according to the empirical FDR–acceptance trade-off on each dataset. Specifically, we set \(\alpha{=}0.15\) for Mayo Clinic and \(\alpha{=}0.35\) for MIMIC-III/IV. Very strict target levels can yield an extremely small or empty accepted set, making the selective results unstable and less practically useful. We set the clinically interpretable threshold \(\delta\) to \(0.6\) percentage points for Mayo Clinic and \(1.0\) percentage point for MIMIC-III/IV. For all datasets, we use an auxiliary loss weight \(\lambda{=}0.1\) and set \(\beta{=}0.1\) when computing the proxy risk score. All experiments are run on a single NVIDIA H200 GPU. For baselines, we use the default PyPI implementation for MICE; for HyperImpute and MissForest, we use their official packages; and for KNN, we set \(k{=}10\). For other baselines, we adopt the original implementations and follow the hyperparameter recommendations in the corresponding papers, with minor tuning for each dataset, and report the best-performing configuration. Each experiment is repeated with five random seeds, and we report the mean performance.

4.2 Overall Performance↩︎

Table 1 shows the overall performance of SafeImpute against a broad set of baselines on Mayo Clinic, MIMIC-III, and MIMIC-IV. Overall, SafeImpute is consistently top-performing across datasets, demonstrating strong performance with FDR control and robustness under irregular and sparse missing data. Beyond the overall gains, comparing baseline behaviors to our method yields several findings. (i) Among non-neural baselines that are still commonly used in practice, MissForest and HyperImpute are relatively strong competitors, but they become less competitive in more challenging settings (e.g., when missingness is severe); notably, after applying our FDR-controlled selection, these simple methods also improve compared to their uncontrolled results (Table 2), suggesting that risk-aware selection can be a broadly useful add-on for simple imputers. (ii) LSTM becomes less competitive, indicating that when sufficient temporal context is not available, classic time-series models remain sensitive to irregular long gaps and sparse supervision. (iii) GRAPE, as a purely graph-based method, performs strongly, reinforcing the effectiveness of capturing intra-patient and inter-patient relations via the graph. (iv) TRANS achieves comparable performance on Mayo Clinic, implying that combining a temporal Transformer with graph modeling can be effective when sequences are short and irregular; at the same time, our comparison suggests that high-quality error control often requires method-aware design to support more reliable selection.

Table 2: Event graph imputation without FDR control.
Method Mayo Clinic MIMIC-III MIMIC-IV
2-3(lr)4-5(lr)6-7 MAE RMSE MAE RMSE MAE RMSE
Mean 0.6612 0.8198 1.3455 1.8495 1.3016 1.7386
KNN 0.7479 0.9239 1.3785 1.9068 1.1507 1.6223
MICE 0.6369 0.8045 1.1787 1.6490 1.1056 1.5231
Missforest 0.6300 0.8010 1.1523 1.6148 1.1233 1.5490
Hyperimpute 0.6640 0.8263 1.1664 1.6396 1.1441 1.5725
GAIN 0.7200 0.8564 1.4251 1.8650 1.2270 1.7497
GRAPE 0.5655 0.7743 1.2072 1.8092 1.1509 1.8945
TDM 0.6213 0.7946 1.1816 1.7180 1.2578 1.7052
Remasker 0.6654 0.8329 1.2120 1.7055 1.3179 1.6859
DIFFIMPUTER 0.6227 0.7988 1.1411 1.7129 1.0467 1.4541
LSTM 0.9289 1.1666 1.3377 1.8428 1.1449 1.7672
TRANS 0.5991 0.7696 1.5403 1.8801 1.4214 2.2184
SafeImpute 0.4142 0.5253 1.0621 1.6002 0.9642 1.5181

3.0pt

4.3 Event Graph Evaluation↩︎

We then evaluate the pure imputation performance on the event graph without any error control. In this setting, we construct edges only using the proposed temporal and trend-aware value criteria, and we do not add extra value-only edges when no eligible trend-based neighbor exists, to avoid noisy connections. Table 2 reports results on Mayo Clinic, MIMIC-III, and MIMIC-IV. The proposed event-graph imputer achieves the best or second best performance across all three datasets, highlighting the benefit of event-graph construction and a two-relation GNN that combines intra-patient temporal continuity with inter-patient value-based similarity under irregular and sparse visit patterns. Sequential baselines are less competitive, suggesting that irregular visits and sparse observations limit sequence-only modeling, while classical imputers remain behind because feature-conditional modeling cannot fully capture latent relational signals under severe missingness. Additionally, the pure event-graph imputer sometimes slightly outperforms the FDR-controlled version because the latter adds value-only fallback edges to support reliability estimation, which may introduce noisy cross-patient connections. This reflects a small accuracy and reliability trade-off for selective release.

4.4 Ablation Study↩︎

We conduct ablation studies on Mayo Clinic and MIMIC-III to assess both the event-graph imputer and the reliability-control module. Removing temporal edges or trend-aware value edges degrades performance, showing that intra-patient temporal continuity and inter-patient clinical similarity provide complementary signals. Removing the adaptive fusion gate causes a substantial drop, highlighting the importance of dynamically balancing the two relations. The auxiliary reconstruction loss improves performance on Mayo Clinic and serves as an additional regularizer for learning event representations from sparse non-target labs.

We also ablate the proxy risk score for FDR-controlled selection. Using prediction instability alone leads to much higher FDR than the full proxy score, increasing FDR from 0.0000 to 0.3575 on Mayo Clinic and from 0.3667 to 0.6304 on MIMIC-III. This confirms that the evidence penalty is important for reliable release under sparse relational support.

Table 3: Ablation study of the event-graph imputer without FDR-controlled selection.
Variant Mayo MIMIC-III
2-3(lr)4-5 MAE RMSE MAE RMSE
w/o temporal edges 0.9669 1.2231 1.2889 1.8091
w/o trend-aware value edges 0.4213 0.5141 1.0902 1.7683
w/o adaptive fusion gate 0.9773 1.2373 1.1192 1.7312
w/o auxiliary reconstruction 0.4434 0.5485 1.0355 1.5724
SafeImpute 0.4142 0.5253 1.0621 1.6002
Table 4: Ablation study of the proxy risk score under FDR-controlled selection.
Dataset Variant MAE RMSE FDR
Mayo Instability-only score 0.3150 0.3675 0.3575
Proxy risk score 0.2464 0.3125 0.0000
MIMIC-III Instability-only score 1.1468 1.6246 0.6304
Proxy risk score 0.9662 1.2351 0.3667

a

b

c

d

Figure 2: FDR–power trade-off of conformal selection on Mayo Clinic dataset.Each panel fixes the clinical tolerance \(\delta\) and sweeps the target FDR level \(\alpha\).The dashed gray line indicates perfect calibration (FDR\(=\alpha\))..

4.5 A Close Look at FDR Control↩︎

4.5.0.1 FDR and Power.

Recall that our test-time null hypothesis is \(H_j:\;|y_j-\hat{y}(j)|\ge \delta\), i.e., node \(j\) has a risky imputation. Our goal is to reject these risky-imputation nulls and retain nodes whose imputations are sufficiently reliable for release. Figure 2 sweeps the BH target level \(\alpha\) and reports the FDR among the selected set, defined as the fraction of selected nodes that are in fact risk points (with \(|y_j-\hat{y}(j)|\ge\delta\)). We also report power, measured as the fraction of non-risk nodes (with \(|y_j-\hat{y}(j)|<\delta\)) that are successfully retained. Across \(\delta\in\{0.5,0.6,0.7,0.8\}\), the achieved FDR closely follows the target, indicating conservative control. As \(\alpha\) increases, more hypotheses are rejected and more nodes are selected, leading to higher power and eventual saturation when the BH cutoff becomes non-restrictive. Larger tolerances \(\delta\) make the risky-imputation null less likely to hold, resulting in fewer true risk points; consequently, the retained set attains higher power and lower FDR, consistent with the intended screening behavior. FDR curves on MIMIC-III and MIMIC-IV are provided in Appendix 10.

a
b

Figure 3: Alignment between the proxy risk score \(\hat{\kappa}\) and the real imputation error.. a — Mayo Clinic, b — MIMIC-III

4.5.0.2 Selective Release Summary

Table 5 summarizes the selective release results under the chosen operating point for each dataset. The retained subset is selected by the pre-specified proxy risk score, conformal calibration, and the Benjamini–Hochberg procedure, without access to test labels during selection. The results show that SafeImpute retains a nontrivial fraction of imputations under the target FDR constraint, rather than achieving error control by selecting only a very small subset. The acceptance fraction reflects the coverage of released imputations under the target FDR constraint, while power measures how many truly reliable imputations are successfully retained. Across datasets, the selected operating points illustrate the trade-off between empirical FDR and retained coverage: stricter selection yields lower FDR but smaller acceptance fractions, while more permissive target levels retain more imputations at the cost of higher empirical FDR.

Table 5: Selective release results under the chosen target FDR levels.FDR measures the fraction of clinically unacceptable errors among retained imputations, while power measures the fraction of truly reliable imputations that are retained.
Dataset FDR \(\downarrow\) Power \(\uparrow\) Acceptance Fraction \(\uparrow\) Precision \(\uparrow\)
Mayo Clinic 0.000 0.1818 0.1132 1.000
MIMIC-III 0.3667 0.0982 0.0883 0.6333
MIMIC-IV 0.3437 0.2163 0.1822 0.6563

4.5.0.3 Quality of the Proxy Risk Score.

Our FDR-controlled selection relies on conformal p-values constructed from the proxy risk score \(\hat{\kappa}\), which in turn determines the BH rejection set. A well-behaved proxy should ideally exhibit a monotonic relationship with the realized imputation error: nodes with larger \(\hat{\kappa}\) should, on average, have larger realized errors \(|y-\hat{y}|\). Such alignment is crucial because it makes the ranking induced by \(\hat{\kappa}\) informative for separating high-error nodes from low-error ones. Here, we evaluate this property on both the Mayo Clinic and MIMIC-III datasets. For each dataset, we partition evaluation nodes into quantile groups (5 for Mayo Clinic and 10 for MIMIC-III) according to \(\hat{\kappa}\) and plot the mean absolute error within each group against the mean proxy score. Figure 3 shows a clear increasing trend on both datasets: groups with higher average \(\hat{\kappa}\) consistently have higher mean absolute residuals. This indicates that \(\hat{\kappa}\) is a meaningful surrogate of the unobserved error and is suitable for conformal selection when test labels are unavailable.

5 Related Work↩︎

5.1 Data Imputation↩︎

Missing data is a pervasive challenge in many applications [36]. Classical methods, e.g., simple heuristics (mean/median substitution) and machine learning methods such as KNN imputation [4] offer straightforward solutions but rely on restrictive assumptions and ignore feature relationships. Deep learning approaches leverage various techniques and training paradigms [37][40] (e.g., GANs, GNNs, and diffusion models). Representative examples include GAIN [32], which trains a generator to impute missing entries conditioned on observed entries while a discriminator distinguishes observed entries from imputed ones; GRAPE [6], which represents tabular data [41] as a bipartite graph with observed values treated as edges and formulates imputation as an edge-level prediction task; and DiffPuter [8], which combines diffusion models with an EM-style training procedure to learn the joint distribution of complete data and perform conditional sampling for missing entries. Autoencoder-based methods [42], [43], such as ReMasker [7], adapt masked autoencoding to tabular imputation by masking entries and training a deep learning-based model to reconstruct entries from context. Data imputation is particularly important in healthcare settings, where missing data is common due to irregular measurements and clinical workflows. Many of these ideas have also been adapted to clinical records. For example, GRU-D [44] and BRITS [45] leverage RNNs to model temporal dynamics. Attention-based models such as SAITS [46] use self-attention with self-supervised masking to better capture long-range dependencies of clinical variables. GRIN [47] exploits GNNs [48], [49] and performs message passing across variables and time. More recently, diffusion-based approaches such as CSDI [50] perform conditional denoising to iteratively refine missing values and have shown strong performance on ICU benchmarks. Although these methods are effective, they primarily optimize the reconstruction error and overlook the reliability of imputations.

5.2 Uncertainty Quantification in Healthcare Models↩︎

Given the high stakes of the domain, modern healthcare machine learning models increasingly incorporate uncertainty quantification (UQ) techniques to improve trustworthiness and safety [51], [52]. Bayesian approaches [53], [54] place probabilistic priors on model parameters to capture epistemic uncertainty and have been used in medical applications [55], [56] to indicate low-confidence predictions. For example, Qiu et al. [57] applied a Bayesian neural network to clinical records and found that instances with high predictive uncertainty were harmful to overall model performance. Related approximations include Monte Carlo dropout [58], which performs stochastic inference by enabling dropout at test time; TrUE-Net [59] applies this strategy to AD genomic variant classification. Deep ensembles are another empirical way to improve predictive performance and quantify the uncertainty via inter-model variability. DEGU [60] integrates ensemble learning to improve the robustness and explainability of genomic DNNs. Another complementary direction is conformal prediction (CP), which offers distribution-free uncertainty quantification with formal coverage guarantees through calibrated prediction sets. Building on CP, conformal selection [21] accepts predictions only when the conformal prediction set is sufficiently informative, yielding an explicit and risk-controllable mechanism for accepting a prediction [61]. This paradigm has been increasingly adopted in recent clinical studies [18], [21], [62]. SAFER [19] uses conformal inference to provide statistical guarantees while filtering out uncertain treatment recommendations. Together, these advances motivate the integration of uncertainty quantification to support more reliable and risk-aware clinical AI.

6 Conclusion↩︎

We propose SafeImpute, a framework for reliable clinical data imputation that models irregular and sparse longitudinal records by constructing an event graph capturing both intra-patient temporal structure and inter-patient clinical similarity. For reliability control, SafeImpute calibrates a proxy risk score into conformal p-values and applies the Benjamini–Hochberg procedure to control the false discovery rate of clinically unacceptable imputation errors. Extensive experiments demonstrate that SafeImpute achieves strong imputation performance while providing meaningful reliability guarantees, outperforming selected baselines in both standard and FDR-controlled imputation evaluation. Future work includes: (i) incorporating multi-modal information and multi-source clinical data; and (ii) moving beyond imputation metrics to evaluate the effect of reliable imputations on downstream tasks, such as risk prediction and treatment recommendation.

Ethical Use of Data↩︎

To protect patient privacy, all data were anonymized during collection and processing. The use of this dataset has been reviewed and approved by the Institutional Review Board (IRB) to ensure compliance with ethical standards and participant protections. We strictly adhere to relevant laws and regulations regarding data use and protection to ensure the legal and compliant use of the data.

Acknowledgments↩︎

This work is supported by National Science Foundation under Award No. IIS-2117902. The views and conclusions are those of the authors and should not be interpreted as representing the official policies of the funding agencies or the government.

7 Proof of FDR Control↩︎

7.0.0.1 Goal.

Let \(\kappa(i)=|y_i-\hat{y}(i)|\) be the true imputation error on labeled nodes, and fix a clinical tolerance \(\delta>0\). For each test node \(j\in\Omega_{\mathrm{test}}\) we test the null \[H_j:\;\kappa(j)\ge \delta,\] i.e., the imputation at \(j\) is risky.

Let \(\hat{\kappa}(x)\) be our label-free proxy risk score in 8 . To apply the selective conformal testing argument in [21], we define a nonconformity score that is monotone in the binary label \(\mathbb{1}\{\kappa(i)\ge \delta\}\). Let \(M\ge \sup_i \hat{\kappa}(i)\) (finite since \(\hat{\kappa}\) is bounded in practice). Define, for any node \(i\) and candidate risk label \(b\in\{0,1\}\), \[J(x,b)\;=\;\hat{\kappa}(x)\;+\;2M\cdot \mathbb{1}\{b=1\}. \label{eq:J95def}\tag{13}\] Thus, if the node is not risky (\(b=0\)), then \(J(x,b)=\hat{\kappa}(x)\); if it is risky (\(b=1\)), then \(J(x,1)=\hat{\kappa}(x)+2M\). The score \(J(i,b)\) is monotone in terms of the risk label \(b\).

For each calibration node \(i\in\Omega_{\mathrm{cal}}\), define its observed risk label \[B_i=\mathbb{1}\{\kappa(i)\ge \delta\},\] and for each test node \(j\in\Omega_{\mathrm{test}}\), under the null \(H_j\) we have \(B_j=1\). Let \[J_i = J(i,B_i)\quad (i\in\Omega_{\mathrm{cal}}), \qquad \widehat{J}_j = J(j,1)\quad (j\in\Omega_{\mathrm{test}}),\] i.e., we evaluate the test score at the null label \(b=1\).

7.0.0.2 Conformal p-values.

Let \(n=|\Omega_{\mathrm{cal}}|\) and index calibration nodes as \(\{1,\ldots,n\}\), and test nodes as \(\{n+1,\ldots,n+m\}\) with \(m=|\Omega_{\mathrm{test}}|\). Using the standard conformal rank with random tie-breaking, define for each test node \(j\in\{1,\ldots,m\}\), \[p_j = \frac{ \sum_{i=1}^{n}\mathbb{1}\{J_i<\widehat{J}_{n+j}\} \;+\; U_j\Big(1+\sum_{i=1}^{n}\mathbb{1}\{J_i=\widehat{J}_{n+j}\}\Big) }{ n+1 } \label{eq:p95def}\tag{14}\] where \(U_j\sim\mathrm{Unif}[0,1]\). This is exactly the conformal p-value construction, as defined in [21], for testing the null label \(b=1\), with a nonconformity score monotone in \(b\).

7.0.0.3 Super-uniformity.

By exchangeability of calibration and test nodes (Assumption 1) and monotonicity of \(J\) in 13 , the p-values in 14 are selectively super-uniform with respect to the nulls \(H_j\): for every \(\alpha\in[0,1]\), \[\mathbb{P}\big(\,(j\in S)\;\wedge\;(p_j\le \alpha)\,\big)\;\le\;\alpha, \label{eq:selective95superuniform}\tag{15}\] where \(S\) denotes the set of tested hypotheses produced by the procedure [21].

7.0.0.4 BH step and FDR control.

Apply Benjamini–Hochberg (BH) [22] at level \(\alpha\) to \(\{p_j\}_{j=1}^m\). Let \(p_{(1)}\le \cdots \le p_{(m)}\) and \[k^\star=\max\Big\{k:\;p_{(k)}\le \frac{\alpha k}{m}\Big\},\qquad \mathcal{R}=\{j:\;p_j\le p_{(k^\star)}\},\] where \(\mathcal{R}\) is the BH rejection set. In our setting, rejecting \(H_j\) means declaring node \(j\) reliable (i.e., deploying its imputation). Let \(R=|\mathcal{R}|\) and define the number of false discoveries (deployed but truly risky) as \[V=\sum_{j=1}^m \mathbb{1}\{j\in\mathcal{R},\;H_j\;\text{true}\}.\] The FDR is \(\mathrm{FDR}=\mathbb{E}\big[\frac{V}{\max\{R,1\}}\big]\).

To obtain FDR control after selecting a deployed subset via Benjamini–Hochberg, we further assume the null p-values are independent or satisfy PRDS [24] [20], [24]. Define indicator variables \(R_j=\mathbb{1}\{j\in\mathcal{R}\}\) and \(T_j=\mathbb{1}\{H_j\;\text{true}\}\). Then \[\mathrm{FDR} = \mathbb{E}\!\left[\frac{\sum_{j=1}^m T_j R_j}{\max\{1,\sum_{j=1}^m R_j\}}\right] = \mathbb{E}\!\left[\frac{1}{\max\{1,\sum_{j=1}^m R_j\}}\sum_{j=1}^m T_j R_j\right].\] From the classical BH guarantee under PRDS super-uniform p-values [19], [21], [22], [24], we have for each \(j\), \[\mathbb{E}[T_j R_j]\;\le\;\alpha\,\mathbb{E}[R_j].\] Summing over \(j\) and applying the standard BH bounding argument yields \[\mathrm{FDR} = \mathbb{E}\!\left[\frac{\sum_{j=1}^m T_j R_j}{\max\{1,\sum_{j=1}^m R_j\}}\right] \le \alpha.\] Therefore, among the deployed imputations (BH rejections), the expected fraction of truly risky ones is controlled at level \(\alpha\). This completes the proof.

8 Datasets Analysis↩︎

Table 6: Statistics of the preprocessed datasets.
Dataset #Patient #Avg Event.
Mayo Clinic 84 7.40
MIMIC-III 4243 2.20
MIMIC-IV 28880 4.95

8.0.0.1 Dataset statistics.

Table 6 reports the basic statistics of the three preprocessed datasets used in our study. The Mayo Clinic dataset was collected from patients diagnosed with type 1 diabetes who had multiple clinical visits at Mayo Clinic during 2022–2023. We focus on routinely used metabolic and anthropometric measurements, including HbA1c (A1C), glucose, cholesterol and lipid panel components, and basic body measurements (weight, height, BMI), together with basic demographics. MIMIC-III and MIMIC-IV are publicly available critical-care EHR datasets from the Beth Israel Deaconess Medical Center. MIMIC-III covers ICU stays between 2001 and 2012, while MIMIC-IV contains more recent ICU and emergency department records from 2008 to 2019.

Figure 4: Rows are visits sorted by patient and time; columns are lab measurements. Darker cells indicate observed values, and lighter cells indicate missing values.

a

b

Figure 5: Left: distribution of the number of visits per patient. Right: distribution of inter-visit intervals between consecutive visits within each patient..

Figure 6: Visit-wise missingness for 10 randomly sampled Mayo Clinic patients. Stacked segments show missing ratios at each specific visit index, with total bar height indicating cumulative missingness.

8.0.0.2 Missingness patterns across measurements.

Figure 4 visualizes missingness across visits and lab measurements in the Mayo Clinic data. Rows correspond to visits sorted by patient and time, and columns correspond to measurements. Missingness is highly heterogeneous: some measurements are recorded consistently, whereas lipid panel components such as LDL, HDL, and triglycerides show substantially higher missing rates. This pattern reflects opportunistic test ordering in routine care.

8.0.0.3 Heterogeneous longitudinal follow-up.

Figure 5 (left) shows the distribution of the number of visits per patient in Mayo Clinic data. Most patients have a moderate number of visits, while a small fraction have substantially fewer or more visits. This heterogeneity means that some patients provide limited intra-patient history, motivating the use of cross-patient information when individual trajectories are short.

8.0.0.4 Irregular inter-visit intervals.

Figure 5 (right) reports inter-visit time gaps, in days, between consecutive visits within each patient in Mayo Clinic data. The distribution is highly non-uniform and is consistent with periodic diabetes monitoring, while also showing substantial irregularity across patients.

8.0.0.5 Visit-wise missingness dynamics.

Figure 6 summarizes visit-wise missing ratios for 10 randomly sampled patients in Mayo Clinic data. Missingness varies both across visits within the same patient and across patients at the same visit index, further highlighting the irregular and opportunistic nature of measurement collection in real-world clinical practice.

9 Evaluation Metrics↩︎

Let \(\hat{y}_i\) denote the imputed value and \(y_i\) denote the ground-truth value for an evaluated node \(i\). The mean absolute error (MAE) is defined as \[\mathrm{MAE} = \frac{1}{|\Omega_{\mathrm{test}}|} \sum_{i \in \Omega_{\mathrm{test}}} |\hat{y}_i - y_i| .\] The root mean squared error (RMSE) is \[\mathrm{RMSE} = \sqrt{ \frac{1}{|\Omega_{\mathrm{test}}|} \sum_{i \in \Omega_{\mathrm{test}}} (\hat{y}_i - y_i)^2 }.\]

For selective-release evaluation, let \(\mathcal{S}\) denote the set of released imputations selected by the FDR-control procedure. Given the clinically meaningful error threshold \(\delta\), an imputation is considered reliable if \(|\hat{y}_i-y_i| < \delta\) and risky otherwise. We define precision as the fraction of released imputations that are truly reliable: \[\mathrm{Precision} = \frac{ |\{i \in \mathcal{S}: |\hat{y}_i-y_i| < \delta\}| }{ \max\{|\mathcal{S}|,1\} }.\] Equivalently, since empirical FDR measures the fraction of risky imputations among the released set, precision corresponds to \(1-\mathrm{FDR}\). Higher precision indicates that a larger fraction of released imputations are within the clinically acceptable error range.

a
b

Figure 7: Additional FDR–power trade-off curves on MIMIC-III and MIMIC-IV with \(\delta=1.0\).. a — MIMIC-III, b — MIMIC-IV

10 FDR Curves on MIMIC-III and MIMIC-IV↩︎

Figure 7 provides additional FDR–power trade-off curves on MIMIC-III and MIMIC-IV. We fix the clinically interpretable tolerance to \(\delta=1.0\) and sweep the target FDR level \(\alpha\). These results show how the BH target level controls the selective release behavior on public clinical datasets: increasing \(\alpha\) makes the selection rule less restrictive and generally increases power, while the achieved FDR remains interpretable relative to the target level.

References↩︎

[1]
Y. Ban, X. He, P. M. Verona, C. B. Cook, and J. He, PMID: 41215678“GLM-DM: Language model boosted neural networks for HbA1c trend prediction in diabetes mellitus,” Future Science OA, vol. 11, no. 1, p. 2567166, 2025, doi: 10.1080/20565623.2025.2567166.
[2]
S. I. Sherwani, H. A. Khan, A. Ekhzaimy, A. Masood, and M. K. Sakharkar, “Significance of HbA1c test in diagnosis and prognosis of diabetic patients,” Biomarker insights, vol. 11, pp. BMI–S38440, 2016.
[3]
K.-Y. Kim, B.-J. Kim, and G.-S. Yi, “Reuse of imputed data in microarray analysis increases imputation efficiency,” BMC bioinformatics, vol. 5, no. 1, p. 160, 2004.
[4]
O. Troyanskaya et al., “Missing value estimation methods for DNA microarrays,” Bioinformatics, vol. 17, no. 6, pp. 520–525, 2001.
[5]
A. Vafaei Sadr et al., “Flexible imputation toolkit for electronic health records,” Scientific reports, vol. 15, no. 1, p. 17176, 2025.
[6]
J. You, X. Ma, Y. Ding, M. J. Kochenderfer, and J. Leskovec, “Handling missing data with graph representation learning,” in Advances in neural information processing systems, 2020, vol. 33, pp. 19075–19087, [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2020/file/dc36f18a9a0a776671d4879cae69b551-Paper.pdf.
[7]
T. Du, L. Melis, and T. Wang, “ReMasker: Imputing tabular data with masked autoencoding,” in The twelfth international conference on learning representations, 2024, [Online]. Available: https://openreview.net/forum?id=KI9NqjLVDT.
[8]
H. Zhang, L. Fang, Q. Wu, and P. S. Yu, “Diffputer: Empowering diffusion models for missing data imputation,” in The thirteenth international conference on learning representations, 2025.
[9]
B. K. Beaulieu-Jones, J. H. Moore, and P. R. O.-A. A. C. T. Consortium, “Missing data imputation in the electronic health record using deeply learned autoencoders,” in Pacific symposium on biocomputing 2017, 2017, pp. 207–218.
[10]
D. M. Blei, A. Kucukelbir, and J. D. McAuliffe, “Variational inference: A review for statisticians,” Journal of the American statistical Association, vol. 112, no. 518, pp. 859–877, 2017.
[11]
D. Wu et al., “Quantifying uncertainty in deep spatiotemporal forecasting,” in Proceedings of the 27th ACM SIGKDD conference on knowledge discovery & data mining, 2021, pp. 1841–1851.
[12]
T. Augustin, F. P. Coolen, G. De Cooman, and M. C. Troffaes, Introduction to imprecise probabilities. John Wiley & Sons, 2014.
[13]
A. N. Angelopoulos, R. F. Barber, and S. Bates, “Theoretical foundations of conformal prediction,” arXiv preprint arXiv:2411.11824, 2024.
[14]
C. Lu, A. Lemay, K. Chang, K. Höbel, and J. Kalpathy-Cramer, “Fair conformal predictors for applications in medical imaging,” in Proceedings of the AAAI conference on artificial intelligence, 2022, vol. 36, pp. 12008–12016.
[15]
P. Giustinelli, C. F. Manski, and F. Molinari, “Precise or imprecise probabilities? Evidence from survey response related to late-onset dementia,” Journal of the European Economic Association, vol. 20, no. 1, pp. 187–221, 2022.
[16]
S. Kapuria, P. Minot, A. Kapusta, N. Ikoma, and F. Alambeigi, “A novel dual layer cascade reliability framework for an informed and intuitive clinician-ai interaction in diagnosis of colorectal cancer polyps,” IEEE Journal of Biomedical and Health Informatics, vol. 28, no. 4, pp. 2326–2337, 2024.
[17]
A. S. Millar, J. Arnn, S. Himes, and J. C. Facelli, “Uncertainty in breast cancer risk prediction: A conformal prediction study of race stratification,” in MEDINFO 2023—the future is accessible, IOS Press, 2024, pp. 991–995.
[18]
C. Papangelou, K. Kyriakidis, P. Natsiavas, I. Chouvarda, and A. Malousi, “Reliable machine learning models in genomic medicine using conformal prediction,” Frontiers in Bioinformatics, vol. Volume 5 - 2025, 2025, doi: 10.3389/fbinf.2025.1507448.
[19]
Y. Shen, Y. Ye, H. Xiong, and Y. Chen, SAFER: A calibrated risk-aware multimodal recommendation model for dynamic treatment regimes,” in Forty-second international conference on machine learning, 2025, [Online]. Available: https://openreview.net/forum?id=7UqNM85dD6.
[20]
S. Bates, E. Candès, L. Lei, Y. Romano, and M. Sesia, “Testing for outliers with conformal p-values,” The Annals of Statistics, vol. 51, no. 1, pp. 149–178, 2023.
[21]
Y. Jin and E. J. Candès, “Selection by prediction with conformal p-values,” Journal of Machine Learning Research, vol. 24, no. 244, pp. 1–41, 2023.
[22]
Y. Benjamini and Y. Hochberg, “Controlling the false discovery rate: A practical and powerful approach to multiple testing,” Journal of the Royal statistical society: series B (Methodological), vol. 57, no. 1, pp. 289–300, 1995.
[23]
S. H. Zargarbashi, S. Antonelli, and A. Bojchevski, “Conformal prediction sets for graph neural networks,” in International conference on machine learning, 2023, pp. 12292–12318.
[24]
Y. Benjamini and D. Yekutieli, “The control of the false discovery rate in multiple testing under dependency,” Annals of statistics, pp. 1165–1188, 2001.
[25]
A. E. Johnson et al., “MIMIC-III, a freely accessible critical care database,” Scientific data, vol. 3, no. 1, pp. 1–9, 2016.
[26]
A. E. Johnson et al., “MIMIC-IV, a freely accessible electronic health record dataset,” Scientific data, vol. 10, no. 1, p. 1, 2023.
[27]
Z. T. Hossain and M. Milani, “Beyond accuracy: An empirical study of uncertainty estimation in imputation,” arXiv preprint arXiv:2511.21607, 2025.
[28]
R. J. Little and D. B. Rubin, Statistical analysis with missing data, vol. 793. John Wiley & Sons, 2019.
[29]
P.-A. Mattei and J. Frellsen, “MIWAE: Deep generative modelling and imputation of incomplete data sets,” in International conference on machine learning, 2019, pp. 4413–4423.
[30]
D. J. Stekhoven and P. Bühlmann, “MissForest—non-parametric missing value imputation for mixed-type data,” Bioinformatics, vol. 28, no. 1, pp. 112–118, 2012.
[31]
D. Jarrett, B. C. Cebere, T. Liu, A. Curth, and M. van der Schaar, “Hyperimpute: Generalized iterative imputation with automatic model selection,” in International conference on machine learning, 2022, pp. 9916–9937.
[32]
J. Yoon, J. Jordon, and M. van der Schaar, GAIN: Missing data imputation using generative adversarial nets,” in Proceedings of the 35th international conference on machine learning, 2018, vol. 80, pp. 5689–5698, [Online]. Available: https://proceedings.mlr.press/v80/yoon18a.html.
[33]
H. Zhao, K. Sun, A. Dezfouli, and E. V. Bonilla, “Transformed distribution matching for missing value imputation,” in International conference on machine learning, 2023, pp. 42159–42186.
[34]
S. Hochreiter and J. Schmidhuber, “Long short-term memory,” Neural computation, vol. 9, no. 8, pp. 1735–1780, 1997.
[35]
Z. Yang, A. Mitra, W. Liu, D. Berlowitz, and H. Yu, “TransformEHR: Transformer-based encoder-decoder generative model to enhance prediction of disease outcomes using electronic health records,” Nature communications, vol. 14, no. 1, p. 7857, 2023.
[36]
X. He, Y. Ban, J. Zou, T. Wei, C. Cook, and J. He, LLM-forest: Ensemble learning of LLMs with graph-augmented prompts for data imputation,” in Findings of the association for computational linguistics: ACL 2025, Jul. 2025, pp. 6921–6936, doi: 10.18653/v1/2025.findings-acl.361.
[37]
A. Sankar, J. Wang, A. Krishnan, and H. Sundaram, “Self-supervised role learning for graph neural networks,” Knowledge and Information Systems, vol. 64, no. 8, pp. 2091–2121, 2022.
[38]
A. Sankar, J. Wang, A. Krishnan, and H. Sundaram, “Beyond localized graph neural networks: An attributed motif regularization framework,” in 2020 IEEE international conference on data mining (ICDM), 2020, pp. 472–481, doi: 10.1109/ICDM50108.2020.00056.
[39]
X. He, T. Wei, and J. He, “Robust basket recommendation via noise-tolerated graph contrastive learning,” in Proceedings of the 32nd ACM international conference on information and knowledge management, 2023, pp. 709–719, doi: 10.1145/3583780.3615039.
[40]
J. Wang, C. Guo, J. Yang, Y. Guo, Y. Gao, and H. Sundaram, “Multi-modal relational item representation learning for inferring substitutable and complementary items,” arXiv preprint arXiv:2507.22268, 2025.
[41]
J. Zou et al., RAG over tables: Hierarchical memory index, multi-stage retrieval, and benchmarking,” in ICLR 2026 workshop on logical reasoning of large language models, 2026, [Online]. Available: https://openreview.net/forum?id=LUW0zHCE2W.
[42]
P. Vincent, H. Larochelle, Y. Bengio, and P.-A. Manzagol, “Extracting and composing robust features with denoising autoencoders,” in Proceedings of the 25th international conference on machine learning, 2008, pp. 1096–1103.
[43]
L. Gondara and K. Wang, “Mida: Multiple imputation using denoising autoencoders,” in Pacific-asia conference on knowledge discovery and data mining, 2018, pp. 260–272.
[44]
Z. Che, S. Purushotham, K. Cho, D. Sontag, and Y. Liu, “Recurrent neural networks for multivariate time series with missing values,” Scientific reports, vol. 8, no. 1, p. 6085, 2018.
[45]
W. Cao, D. Wang, J. Li, H. Zhou, L. Li, and Y. Li, “Brits: Bidirectional recurrent imputation for time series,” Advances in neural information processing systems, vol. 31, 2018.
[46]
W. Du, D. Côté, and Y. Liu, “Saits: Self-attention-based imputation for time series,” Expert Systems with Applications, vol. 219, p. 119619, 2023.
[47]
A. Cini, I. Marisca, and C. Alippi, “Filling the g_ap_s: Multivariate time series imputation by graph neural networks,” arXiv preprint arXiv:2108.00298, 2021.
[48]
K. Narang, A. Krishnan, J. Wang, C. Yang, H. Sundaram, and C. Sutter, “Ranking user-generated content via multi-relational graph convolution,” in Proceedings of the 44th international ACM SIGIR conference on research and development in information retrieval, 2021, pp. 470–480, doi: 10.1145/3404835.3462857.
[49]
L. Zheng et al., “Pyg-ssl: A graph self-supervised learning toolkit,” in Proceedings of the 34th ACM international conference on information and knowledge management, 2025, pp. 6580–6586.
[50]
Y. Tashiro, J. Song, Y. Song, and S. Ermon, “CSDI: Conditional score-based diffusion models for probabilistic time series imputation.” 2021, [Online]. Available: https://arxiv.org/abs/2107.03502.
[51]
S. Jabbour et al., “On the limits of selective AI prediction: A case study in clinical decision making.” 2025, [Online]. Available: https://arxiv.org/abs/2508.07617.
[52]
A. Campagner, E. M. Biganzoli, C. Balsano, C. Cereda, and F. Cabitza, “Modeling unknowns: A vision for uncertainty-aware machine learning in healthcare,” International Journal of Medical Informatics, vol. 203, p. 106014, 2025, doi: https://doi.org/10.1016/j.ijmedinf.2025.106014.
[53]
C. Blundell, J. Cornebise, K. Kavukcuoglu, and D. Wierstra, “Weight uncertainty in neural network,” in International conference on machine learning, 2015, pp. 1613–1622.
[54]
L. López, S. Elsharief, D. A. Jorf, F. Darwish, C. Ma, and F. E. Shamout, “Uncertainty quantification for machine learning in healthcare: A survey,” arXiv preprint arXiv:2505.02874, 2025.
[55]
A. Mehrtash, W. M. Wells, C. M. Tempany, P. Abolmaesumi, and T. Kapur, “Confidence calibration and predictive uncertainty estimation for deep medical image segmentation,” IEEE transactions on medical imaging, vol. 39, no. 12, pp. 3868–3878, 2020.
[56]
Y. Zhao, C. Yang, A. Schweidtmann, and Q. Tao, “Efficient bayesian uncertainty estimation for nnu-net,” in International conference on medical image computing and computer-assisted intervention, 2022, pp. 535–544.
[57]
R. Qiu, Y. Jia, M. Hadzikadic, M. Dulin, X. Niu, and X. Wang, “Modeling the uncertainty in electronic health records: A bayesian deep learning approach,” arXiv preprint arXiv:1907.06162, 2019.
[58]
J. Hammersley, Monte carlo methods. Springer Science & Business Media, 2013.
[59]
T. Jo, E. H. Lee, A. D. N. I. (ADNI), and the Alzheimer’s Disease Sequencing Project (ADSP), “Uncertainty-aware genomic classification of alzheimer’s disease: A transformer-based ensemble approach with monte carlo dropout,” Briefings in Bioinformatics, vol. 26, no. 6, p. bbaf587, 2025.
[60]
J. Zhou, K. Rizzo, T. Christensen, Z. Tang, and P. K. Koo, “Uncertainty-aware genomic deep learning with knowledge distillation,” npj Artificial Intelligence, vol. 2, no. 1, p. 3, 2026.
[61]
J. Vazquez and J. C. Facelli, “Conformal prediction in clinical medical sciences,” Journal of Healthcare Informatics Research, vol. 6, no. 3, pp. 241–252, 2022.
[62]
A. N. Angelopoulos, S. Bates, A. Fisch, L. Lei, and T. Schuster, “Conformal risk control,” in The twelfth international conference on learning representations, 2024, [Online]. Available: https://openreview.net/forum?id=33XGfHLtZg.

  1. Accepted at the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD 2026). This is the authors’ accepted manuscript. The final version of record will appear in the ACM Digital Library with DOI: 10.1145/3770855.3817967.↩︎