<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Time-Aware Subgroup Matrix Decomposition: Imputing Missing Data Using Forecasting Events</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2018</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10136459</idno>
					<idno type="doi"></idno>
					<title level='j'>IEEE International Conference on Big Data</title>
<idno>2639-1589</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>X. Yuan Yang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Deep neural network models, especially Long Short Term Memory (LSTM), have shown great success in analyzing Electronic Health Records (EHRs) due to their ability to capture temporal dependencies in time series data. When applying the deep learning models to EHRs, we are generally confronted with two major challenges: high rate of missingness and time irregularity. Motivated by the original PACIFIER framework which utilized matrix decomposition for data imputation, we applied and further extended it by including three components: forecasting future events, a time-aware mechanism, and a subgroup basis approach. We evaluated the proposed framework with real-world EHRs which consists of 52,919 visits and 4,224,567 events on a task of early prediction of septic shock. We compared our work against multiple baselines including the original PACIFIER using both LSTM and Time-aware LSTM (T-LSTM). Experimental results showed that our proposed framework significantly outperformed all competitive baseline approaches. More importantly, the extracted interpretative latent patterns from subgroups could shed some lights for clinicians to discover the progression of septic shock patients.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>Electronic Health Records (EHRs) are large-scale systematic collections of sequential data which include both static and dynamic information for each patient's visit <ref type="bibr">[1]</ref>. The static information, such as age and sex, is often collected once per visit and remains unchanged for the whole duration of the visit; whereas dynamic information is generally collected with different frequencies. For example, the body temperature is often measured several times a day, while the white blood cells are measured every other day. As a result of merging such irregular dynamic information, real-world EHRs are often plagued by missing data problem. To tackle this issue, various imputation strategies have been explored. Some common approaches include mean-or median-filling, carrying forward, hot-deck, resampling <ref type="bibr">[2]</ref>, multiple imputation <ref type="bibr">[3]</ref>, and so on. Recently, Lipton et al. indicated using missing indicators <ref type="bibr">[4]</ref> is highly effective for handling temporal missing data <ref type="bibr">[5]</ref>. <ref type="bibr">Kim et al.</ref> proposed a bio-inspired approach named Temporal Belief Memory for handling the missingness in sequential data with irregular intervals <ref type="bibr">[6]</ref>. Some other approaches focused on reconstructing missing entries using latent patterns extracted from the original data, such as EM imputation <ref type="bibr">[7]</ref>, Autoencoder <ref type="bibr">[8]</ref>, and matrix decomposition based imputation methods including SVDImpute <ref type="bibr">[9]</ref>, softImpute <ref type="bibr">[10]</ref>, Individual Basis Approach (IBA) and Shared Basis Approach (SBA) <ref type="bibr">[11]</ref>. In this work, we focused on matrix decomposition based imputation methods because of their robustness yet interpretability, which are well-suited for EHRs. Specifically, the assumption is that the observed features in EHRs can be mapped to some latent medical condition, thus the matrix decomposition based methods could impute the missing entries by exploring the latent structures on both feature and time dimensions.</p><p>In our work, we extended the original PACIFIER framework <ref type="bibr">[11]</ref> by forecasting future events, incorporating a time-aware mechanism, and employing a subgroups based approach. For forecasting future events, we explored the potentials of applying the extracted latent patterns to forecast future events, and then use these forecasted future events to further improve the effectiveness of our model. The time-aware mechanism would take the time irregularity into consideration and capture latent patterns constrained by the irregular time intervals of inputs to handle the missing data. The subgroups basis approach would cluster patients into subgroups by static information and learn latent patterns for each subgroup, since it is shown that static information such as comorbidities, age <ref type="bibr">[12]</ref>, and gender <ref type="bibr">[13]</ref> are important predictors for many diseases such as Parkinson's disease. The subgroup basis approach can be considered as a trade-off between either IBA that learns latent patterns for each individual patient or SBA that learned latent patterns for the entire population explored in <ref type="bibr">[11]</ref>. We evaluated our extended framework by comparing it to five competitive missing data handling methods: carrying forward, mean imputation, and three matrix decomposition based methods, i.e., SVDImpute <ref type="bibr">[9]</ref>, IBA <ref type="bibr">[11]</ref>, and SBA <ref type="bibr">[11]</ref>. The experimental results showed that our proposed framework can effectively handle the EHRs with high missing rate, and it outperformed all five baseline methods including IBA and SBA. Consider the three extended components in our framework, it is referred as Time-aware subGroup Basis Approach with Forecasted events (TGBA-F) hereinafter. Note that the forecasting future events, time-aware mechanism, and subgroups basis approach tackle missing data from three different perspectives in that the best performance is obtained when we combine all three.</p><p>In recent years, Recurrent Neural Networks (RNNs) and its variations such as Long Short-Term Memory (LSTM) <ref type="bibr">[14]</ref>, Gated Recurrent Unit (GRU) <ref type="bibr">[15]</ref>, and Time-aware LSTM (T-LSTM) <ref type="bibr">[16]</ref>, have achieved state-of-the-art results in many real-word applications with multivariate temporal data through deep hierarchical feature construction. Moreover, these variations are capable of capturing long-range dependencies in time series data in an effective manner. Missing data imputation has been widely studied in previous RNN-based works <ref type="bibr">[17]</ref> and applied for speech recognition and blood-glucose prediction <ref type="bibr">[18]</ref>. Recently, researchers tried to handle the missing data problem in RNNs by concatenating missing entries, incorporating a time based decay function, and synchronizing different sampling frequencies <ref type="bibr">[5]</ref>, <ref type="bibr">[19]</ref>, <ref type="bibr">[20]</ref>. To our best knowledge, no prior work has explored applying matrix decomposition based imputation methods with RNN-based models, such as LSTM and T-LSTM, to temporal data.</p><p>Herein, our task is early prediction of septic shock. Sepsis is a life-threatening organ dysfunction caused by deregulated host response to infection <ref type="bibr">[21]</ref>. As the most severe stage of sepsis, septic shock reaches a mortality rate as high as 50% and the annualized incidence keeps rising <ref type="bibr">[22]</ref>. Prior studies have indicated that the early diagnosis and treatment of septic shock can prevent about 80% of sepsis death. Besides, over the first 6 hours after the onset of recurrent or persistent hypotension, every hour delay in antibiotic treatment leads to a 7.6% decrease in survival of septic patients <ref type="bibr">[23]</ref>. One major challenge associated with early prediction of sepsis/septic shock is its subtle but fast progression at early stages. Sepsis has a wide range of potential symptoms, and its common indicators such as infection, fast heart rate, high/low body temperature, and low blood pressure <ref type="bibr">[24]</ref> are highly likely to progress to other disease. Because of such delicate progression, variables in the before-shock stage may either be measured infrequently or not measured at all. As a result, the duration between two clinical events in EHRs can be long and the missing rate can be very high. For example, for the EHRs utilized in this work, the missing rate is higher than 80% on average and several variables' missing rates are above 99.9%. Thus, missing data handling is a key factor in our early prediction of septic shock.</p><p>The remaining parts of this paper are organized as follows. In Section II, related works are reviewed. Section III presents matrix decomposition, the three components in TGBA-F, and two classifiers: LSTM and T-LSTM. In Section IV, we discuss experimental setup and introduce early prediction models and baselines. Section V presents the experimental results. Finally, Section VI concludes the paper.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. BACKGROUND</head><p>A variety of approaches have been proposed to cope with the missing data in EHRs, including carrying forward, mean imputation, k-nearest neighbors <ref type="bibr">[25]</ref>, autoencoder <ref type="bibr">[8]</ref>, and several matrix decomposition based imputation methods, such as SVDImpute <ref type="bibr">[9]</ref> and softImpute <ref type="bibr">[10]</ref>, which are both Singular Vector Decomposition (SVD)-based methods. Closely related to this work, Zhou et al. proposed a matrix decomposition based imputation framework named PACIFIER (PAtient reCord densIFIER) <ref type="bibr">[11]</ref>. Their results showed that PACIFIER can not only impute the missing data, but also imply some macro phenotypes through decomposed latent patterns. In their work, the imputed data would be fed into a logistic regression classifier for early prediction.</p><p>In recent years, deep neural network models, especially the RNN-based models, have shown great success in analyzing EHRs due to their ability of capturing temporal dependencies in time series data. Although RNNs are theoretically capable of finding the long-term dependencies underlying the temporal data, classical RNNs often cannot effectively capture the longterm dependencies due to the vanishing and exploding gradient problem <ref type="bibr">[26]</ref>. As variations of RNNs, LSTM and GRU can overcome these issues by incorporating multiple gating units into RNN structure. The gating mechanism allows for explicit memory delete and update, and controls flow of information in hidden states. In standard LSTM, it is assumed that intervals between consecutive events are uniform. To consider the time irregularity, several previous works have been proposed with RNN-based models <ref type="bibr">[16]</ref>, <ref type="bibr">[27]</ref>, <ref type="bibr">[28]</ref>. Among them, Time-aware LSTM (T-LSTM) <ref type="bibr">[16]</ref> transforms time intervals into weights to adjust the memory passed from the previous memory cell.</p><p>Standard imputation methods have been widely used when applying RNN-based models. For instance, in <ref type="bibr">[16]</ref>, Baytas et al. employed carrying forward for imputation when evaluating the T-LSTM. As a frontier work of the missing data handling in RNN-based models, <ref type="bibr">[17]</ref> proposed an RNN structure for both missing inputs and asynchronous data, which randomly initialized missing values and optimized the imputed values by backpropagation. In <ref type="bibr">[18]</ref>, they demonstrated a modified RNN for missing data handling, which is combined with a linear error model and trained by expectation-maximization technique. The experimental results showed that their method improved the performance in glucose/insulin metabolism prediction with respect to both conventional RNNs and various linear models. Recently, <ref type="bibr">[5]</ref> showed the effectiveness of Missing Indicators (MI) with LSTM for a phenotype prediction task using EHRs. In their work, they gave an insight that LSTM could implicitly impute missing values based on its memory. About the same period, a Phased LSTM <ref type="bibr">[20]</ref> was proposed to extend LSTM unit by adding a time gate to align asynchronous streams, which allowed the feature learning only when the time gate is open. Besides, <ref type="bibr">[29]</ref> incorporated a carrying forward operation for missing data in RNN and LSTM, and then tested it with a clinical variable prediction task. More recently, GRU-D <ref type="bibr">[19]</ref> imputed missing values using a modified GRU, regulated by a temporal decay function with trainable weights, and on a wide range of tasks, the authors showed that GRU-D often demonstrated performance comparable to MI. Furthermore, Temporal Belief Memory (TBM) <ref type="bibr">[6]</ref> could systematically impute missing values in both forward and backward directions within a reliable time window, and their results showed that TBM outperformed a wide range of baseline methods.</p><p>In short, both matrix decomposition based and RNN-based imputation methods have been widely explored in prior work. However, as far as we know, no previous work has investigated on applying matrix decomposition based imputation methods with RNN-based models. On one hand, matrix decomposition based imputation methods can extract meaningful and interpretable latent patterns represented by the mappings from features (symptoms) to latent patterns (medical conditions) from the original data; on the other hand, RNN-based models can capture temporal dependencies in time series data. Therefore, we expect that by combining them two, we can not only learn more interpretable latent patterns, but also achieve better early prediction performance.</p><p>Our work in this paper is highly motivated by Zhou et al.'s PACIFIER framework. Both their work and ours are conducted on so-called event level early prediction task, that is, to predict whether a patient will develop to a target medical disease &#964; hours later. To do so, all sequences are right aligned by their endpoint and only the truncated EHRs happened &#964; -hour before the endpoint, referred as observation data, are used for early prediction. Our work differs from the original PACIFIER in the following four aspects. First, we applied the extracted latent patterns to forecast future events. As a result, rather than only using the observation data, we integrated the forecasted future events with our observation data for early prediction. To forecast future events, we explored using truncated EHRs or using the entire sequences to induce the latent patterns while original PACIFIER used truncated EHRs only. Second, while original PACIFIER treated all time intervals equally, we proposed a time-aware mechanism for the smoothness regularization when doing matrix decomposition. It is done by using time intervals as weights to control the smoothness of imputed data. Since the events in EHRs were unevenly collected with irregular time intervals, the time-aware constraints enabled the imputed data to reflect the progression of sequence more accurately. Third, we proposed a subgroup basis approach using static information such as age and sex to partition patients into some subgroups and learned latent patterns for each subgroup while original PACIFIER framework investigated on either learning latent patterns for each individual patient (IBA) or learning latent patterns for the entire population (SBA). Last, original PACIFIER framework was evaluated using logistic regression while we evaluated our framework using two state-of-the-art deep learning models: LSTM and T-LSTM.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. METHOD</head><p>In a nutshell, our framework contains two stages: data imputation stage using our proposed Time-aware sub-Group Basis Approach with Forecasted events (TGBA-F) and classification stage using LSTM and T-LSTM.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Data Imputation Stage</head><p>We have X i &#8712; R m&#215;e i denoting the sequence of a patient's visit i, with m features and e i events, and the total number of visits (sequences) is N . &#8486; i is a location indicator vector for accessing the observable entries in X i . A projection operator P &#8486; i (X i ) is employed to reserve the observable entries and to convert the missing entries to 0, i.e., if (p, q) &#8712; &#8486; i , then</p><p>The core idea of matrix decomposition approach is to decompose the original matrix X i into &#219;V i , where &#219; &#8712; R m&#215;k and V i &#8712; R k&#215;e i indicate the mappings from m features to k latent patterns, and from these latent patterns to e i events, respectively. The decomposition result &#219;V i is expected to keep the same entries as X i at the locations of &#8486; i , i.e., P &#8486; i (X i ) -</p><p>In the original PACIFIER framework, the optimization procedure is done by introducing an intermediate matrix S i , which is taken as a delegation for X i , where</p><p>More specifically, the objective function is:</p><p>The effects of each term in Eq.( <ref type="formula">1</ref>) are as follows:</p><p>&#8226; D(S i , &#219;, V i ): Data fitting term which ensures the decomposed result &#219;V i to be close to the intermediate matrix S i ; &#8226; R 1 ( &#219;): Sparseness term which controls the sparseness of &#219; via a l 1 -norm, therefore only the most significant features are involved in mapping to each latent pattern; &#8226; R 2 (V i ): Overfitting term which prevents the decomposition from overfitting through an F-norm. It can circumvent large variances in V i , thereby controls the model complexity; &#8226; R 3 (V i , Z i ): Smoothness term which enables temporal latent patterns in V i to develop smoothly. Herein,</p><p>is defined in Eq.( <ref type="formula">2</ref>), so that V i Z i indicates pairwise differences between consecutive events in V i along the trajectory.</p><p>Otherwise.</p><p>(</p><p>Since features collected in EHRs are generally positive and latent patterns represented by these features are also supposed to be positive, &#219; is imposed to be larger than 0 in Eqs. <ref type="bibr">(1)</ref>. To solve for the non-convex objective function in Eqs.(1), a block coordinate descent (BCD) algorithm is used <ref type="bibr">[11]</ref>. It follows a turn-taking manner to solve the multiple variables one by one. Specifically, for the three variables, i.e., S i , &#219; and V i , in each iteration, one of them is updated with remaining two fixed. Each sub-problem can be solved by the existing optimization solvers. Here, we used a MALSAR package <ref type="bibr">[30]</ref>.</p><p>Built upon the original PACIFIER, our TGBA-F extended it with three components by forecasting future events, incorporating a time-aware mechanism, and exploring a subgroups basis approach. In the following sections, each component will be described in more details.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>1) Forecasting Future Events:</head><p>In this work, we focus on early prediction for septic shock. To do so, we are given EHRs of a patient's visit until &#964; hours before an endpoint to predict whether or not this patient will develop to septic shock &#964; hours later. For septic shock patients, the endpoint is the onset time of septic shock; whereas for nonseptic shock patients, the endpoint is the end of sequences. As shown in Figure <ref type="figure">1</ref> (a), from the start of a visit until &#964; hours before the endpoint is denoted as observation window (OW), while the &#964; -hour leading up to the endpoint is denoted as hold-off window (HW).</p><p>In previous work, only EHRs in the OW were used to predict what would happen &#964; hours later, as shown in Figure <ref type="figure">1 (a)</ref>; while in this work, we inferred events in a Forecasting Window (FW) and applied it together with the actual EHRs from OW for early prediction, as shown in Figure <ref type="figure">1 (b)</ref>. Specifically, we extracted the mapping &#219; in Eq.( <ref type="formula">1</ref>) and employed it to forecast future events for the next &#964; hours in FW. The forecasted events can reflect the trend of septic progression and capture more distinct latent patterns approaching the endpoint, thus they are helpful for the early prediction task.</p><p>To forecast future events in FW, we firstly need to determine the number of future events e F W . To do so, we defined e OW as the number of events in OW and &#964; OW as the duration of OW in hours. Our assumption here is that the ratio of e F W to the duration of &#964; is the same as the ratio of e OW to &#964; OW , thus we have e F W &#964; = e OW &#964; OW and then e F W = e OW &#964; OW &#215; &#964; . Once the number of forecasted future events was determined, their time stamps were randomly set within the &#964; hours. Then we applied Eq.( <ref type="formula">1</ref>) to impute all missing entries in OW and to forecast the events in FW simultaneously.</p><p>2) Time-aware Mechanism:</p><p>For a patient's visit X i = {x i 1 , ..., x i e i }, the time intervals between consecutive events in X i are denoted as:</p><p>]. In EHRs, these &#8710;t i j , j &#8712; [1, e i -1] can vary greatly from minutes to days. To incorporate these irregular time intervals into the original Eq.( <ref type="formula">1</ref>), we rewritten the original smoothness term R 3 (V i , Z i ) as R 3 (V i , Z i , I), where I is an unit matrix. Then rather than using the unit matrix I which assumes equal time intervals, we introduced a diagonal matrix &#8710;T i . The entries of &#8710;T i were determined by the time intervals between two consecutive events and thus we modified the R 3 (V i , Z i ) to be R 3 (V i , Z i , &#8710;T i ). In other words, the original R 3 (V i , Z i , I) controlled the variations among consecutive latent patterns equally; while in EHRs, we expected that the variation between two consecutive events with smaller time intervals should be smaller than the variation between two consecutive events with larger time intervals. As a result, time-aware mechanism could promote the robustness of data imputation to fit more general and practical situations.</p><p>More specifically, the &#8710;T i was converted into weights via an irregular interval transformation f unction iif (.) to constrain a more smooth longitudinal transition of latent patterns. Then the original R 3 (V i , Z i ) can be rewritten as:</p><p>Figure <ref type="figure">2</ref> shows the difference between original smoothness term and our proposed time-aware smoothness term. In this work, we had iif (&#8710;T i ) = exp(-&#945;&#8710;T i ), with &#945; being a parameter to regulate the impact of iif (.). By using if f (&#8710;T i ) as diagonal, R 3 (V i , Z i ) could pose smoothness constraints to the corresponding variations between consecutive latent patterns. Specifically, when a time interval is small, we expected the consecutive latent patterns should be more similar; while when a time interval is large, the model should not punish much even if the consecutive latent patterns are very different. Consider the following two extreme cases: a) When an interval &#8710;t i j , j &#8712; [1, e i -1] approaches 0, i.e. two consecutive events happen simultaneously, and the function if f (&#8710;t i j ) tends to be 1. In this case, the smoothness regularization term poses the largest impact, and thus the missingness in latter event will be primarily inferred from its previous event; b) when the interval is large, the if f (&#8710;t i j ) will be close to 0. In this case, impact of the smoothness regularization term is omitted and the sparseness term R 1 ( &#219;) and overfitting term R 2 (V i ) contribute more to constrain the decomposition, therefore missing entries in latter event are mainly inferred from latent patterns that generally exist among all other events.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>3) Subgroup Basis Approach:</head><p>Original PACIFIER explored two approaches: the Individual Basis Approach (IBA) assumed latent patterns to be heterogeneous, therefore each patient possesses a specific mapping between features and latent patterns, i.e. &#219; = U i ; while the Shared Basis Approach (SBA) assumed latent patterns to be homogeneous for overall patients, i.e. &#219; = U.</p><p>In our proposed TGBA-F framework, the mapping between features and latent patterns are shared within subgroups, i.e. &#219; = U (l) , l &#8712; [1, L], where L is the number of subgroups. Denote the size of patients' visits in subgroups as N (l) , l &#8712; [1, L], the objective function Eq.( <ref type="formula">1</ref>) can be rewritten for TGBA-F as shown in Eq.( <ref type="formula">4</ref>). min</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Two Classifiers: LSTM and T-LSTM</head><p>As a variation of RNN, LSTM can retain the long-term dependencies through a gating mechanism <ref type="bibr">[31]</ref>. Recently, LSTM gained popularity in biomedical domain, as it can effectively model temporal data and capture long range dependencies in sequences. LSTM has a chain-like structure, which enables the information to flow among different blocks at different time stamps. Each block in LSTM consists of a memory cell state and three gates: forget gate, input gate, and output gate. The three gates interact with each other to control the flow of information. More specifically, the forget gate determines what information from previous memory cell state is expired and should be removed; the input gate selects information from the candidate memory cell state to update the current cell state; the output gate filters the information from the memory cell so that the model only considers information relevant to the prediction task. Therefore, the memory cell plays a crucial role in memorizing previous experiences.</p><p>Comparing to the architecture of LSTM, T-LSTM divides the previous memory into short-term and long-term; then it reserves the long-term memory and introduces a time-aware mechanism to adjust the short-term memory to hold. One main difference between LSTM and T-LSTM is how the memory is controlled by forget gate. In LSTM, forget gate is directly applied to the previous memory; while in T-LSTM, it acts on the previous memory with short-term memory being adjusted by the weights derived from time intervals. Both LSTM and T-LSTM were employed in this work, with the input being multivariate temporal sequence of patients, and output from the last step being used to make prediction.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. EXPERIMENTAL SETUP</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Dataset Description</head><p>This study used de-identified EHRs obtained from adult patients (age 18 years) hospitalized within the Christiana Care Health System from July 2013 to December 2015, corresponding to 119,968 unique patients and 210,289 hospitalizations. The EHRs contain both static and dynamic information. Static information contains patient background such as age, sex, race, etc. Dynamic information is collected multiple times at irregular intervals during the patients' entire hospitalization and has a time stamp associated with each record. Along with time stamps, identifiers, locations, and description, there are four categories of main attributes as follows:</p><p>&#8226; Vital signs: mean arterial pressure (MAP), systolic blood pressure (SBP), etc. &#8226; Lab results: white blood cell count (WBC), Bands, BUN, Creatinine, Bilirubin, sedimentation rate, etc. &#8226; Intervention: oxygen source, change of oxygen source, FiO2, drug administration, intravenous therapy, etc. &#8226; Location: location type (emergency department, nurse, step down, intensive care unit), code.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>1) Target Population &amp; Labeling:</head><p>The study population are patients with suspected infection identified by the presence of any type of antibiotic, antiviral, or antifungal administration, or a positive test result of Point of Care Rapid, and it consists of 52,919 visits with 4,224,567 medical events. Note that the study population, the aforementioned rules for identifying suspected infection, and the rules for septic shock labeling in next paragraph were determined by two leading clinicians with extensive experience on this subject from Mayo Clinic and Christiana Care Health System.</p><p>Supervised models depend heavily on the accurate label of the training set. However, acquiring the true label (i.e., septic shock and non-shock) can be challenging. Although diagnosis codes, such as International Classification of Diseases, Ninth Revision (ICD-9), are widely used for clinical labeling, solely relying on ICD-9 can be problematic as it has been proven to have limited reliability due to the fact that its coding practice is used mainly for administrative and billing purpose. Indeed, it has been widely argued that ICD-9 cannot be used for establishing reliable gold standards for various clinical conditions <ref type="bibr">[32]</ref>, <ref type="bibr">[33]</ref>. More importantly, ICD-9 cannot tell when septic shock occurs at event level, which is essential for our task. On the basis of the Third International Consensus Definitions for Sepsis and Septic Shock <ref type="bibr">[21]</ref>, our domain experts identified septic shock as any of the following conditions are met:</p><p>&#8226; Persistent hypertension as shown through two consecutive readings (&#8804; 30 minutes apart).</p><p>-Systolic Blood Pressure (SBP) &lt; 90 mmHg -Mean Arterial Pressure (MAP) &lt; 65mmHg -Decrease in SBP &#8805; 40 mmHg with an 8-hour period &#8226; Any vasopressor administration.</p><p>When combing both ICD-9 and the domain experts' rules, we identified 1,869 shock positive visits and 23,901 negative visits. Consider the highly imbalanced ratio between positive and negative visits, we further conducted a stratified random sampling on negative visits while keeping the same underlying distribution of: age, sex, ethnicity, duration of stay and the number of events. Finally, the dataset contains 3,738 visits (1,869 positives and 1,869 negatives) with 145,421 events.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>2) Time Irregularity &amp; Missing Data Analysis:</head><p>Each patient's visit in EHRs consists of multivariate events with irregular time intervals. The time intervals between two consecutive events in our data range from 0.94 seconds to 28.19 hours. Since different features are measured at different events, plenty of missing entries exist in EHRs. For instance, vital signs are generally measured every 8 hours, while lab values are measured every 24 hours. Hence there may not be available readings for lab results when a new event is created for vital signs. Table <ref type="table">I</ref> shows the missing rates of 14 structured features selected from the dataset in our analysis. On average, the missing rate is 80.37%.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Forecasting Future Events Settings: truncated vs. entire</head><p>Prior research on applying the matrix decomposition based methods for disease prediction all utilized truncated EHRs sequences, i.e., all events in OW shown in Figure <ref type="figure">1 (a)</ref>, to extract meaningful latent patterns &#219;. However, when applying such methods to forecast future events, we have the choices of either using the entire training sequences or using the truncated training sequences to learn &#219;. Entire means benefiting from the whole sequences of septic shock and non-septic shock visits for latent pattern extraction; while truncated is referring to adoption of the part of sequence included only in OW to find latent patterns. The advantage of using entire sequences is that the longer the sequences are, the more latent patterns can be considered and discovered; while the advantage of using truncated sequences is that the training data used in learning &#219; and classification stage are the same as the testing data for the classification task, thus the discovered patterns are more likely to emerge and be representative for the early diagnosis task. Thus, for learning &#219;, we explored using both the entire (en) and the truncated (tr) sequences and named them as &#219;en and &#219;tr , respectively. In both settings, we then applied the learned mapping &#219;en or &#219;tr to forecast future events for both training and testing data for the classification stage.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Subgroups</head><p>We explored different ways to partition patients into subgroups, including clustering <ref type="bibr">[34]</ref> and dynamic time warping <ref type="bibr">[35]</ref>, etc. Much to our surprise, the best results was achieved when we using two basic demographic properties, i.e., age and sex. Moreover, some prior literature has shown that age and sex are often closely related to septic progression <ref type="bibr">[36] [37]</ref>. Indeed, our preliminary analysis showed that age and sex are both highly dependent with the septic shock. Specifically, we discretetized age into 4 subintervals with the breakpoints of {30, 50, 70} and &#967; 2 tests were performed to examine the relationship between age and septic shock. We found that there is a significant difference on the ratio of sepsis shock among the four age groups: &#967; 2 (3, N = 3, 738) = 307.38, p &#8776; 0 0.01, in that older patients are more likely to develop septic shock than younger ones. Similarly, there is a significant difference on the ratio of septic shock between Female and Male: &#967; 2 (1, N = 3, 738) = 7.58, p = 0.0059 &lt; 0.01 in that Male is more likely to develop septic shock. Combining the age with sex, we got a total of 8 subgroups.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Setups</head><p>We conducted a series of experiments to evaluate the effectiveness of proposed TGBA-F for septic shock early prediction task using two classifiers: LSTM first and then T-LSTM.</p><p>For LSTM, we first explored the effectiveness of the original IBA and SBA with forecasted future events induced by either &#219;tr or &#219;en , and compared them against five baseline methods without forecasted events: CF and MEAN, SVDImpute, and the original IBA and SBA.</p><p>&#8226; Carrying forward (CF): fills the missing values with the last observation until the next value is observed; &#8226; Mean imputation (MEAN): fills all missing values with the mean value of the corresponding feature; &#8226; SVDImpute: independently treats all events from different visits, stacks them into one matrix and then runs SVD <ref type="bibr">[9]</ref>; &#8226; IBA: is Individual Basis PACIFIER Approach that learns latent patterns for each individual patient <ref type="bibr">[11]</ref>; &#8226; SBA: is Shared Basis PACIFIER Approach that learns latent patterns for the entire population <ref type="bibr">[11]</ref>.</p><p>Note that &#219;en is not applicable for IBA because IBA is implemented individually for each patient, thus we can only learn &#219;tr for IBA. Our results showed that using Forecasted future events could improve the effectiveness of IBA and SBA in that IBA-F tr and SBA-F en achieved better overall performance. As a result, we employed truncated sequences for IBA and entire sequences for SBA hereinafter. Next, with time-aware mechanism, our results showed that Timeaware IBA-F (TIBA-F) using truncated sequences and Timeaware SBA-F (TSBA-F) using entire sequences were indeed more effective than IBA-F tr and SBA-F en without time-aware mechanism. Finally, we explored the effectiveness of subgroup basis approach with different ways of grouping patients according to their age (a) and sex (s). The results showed that the best performance was achieved by our proposed TGBA-F, which combines all three components: forecasting future events with &#219;en learned from entire training sequences, incorporating time-aware mechanism, and taking subgroup basis approach based on both age and sex (a&amp;s).</p><p>To further evaluate the effectiveness of time-aware mechanism, we compared GBA-F (TGBA-F without time-aware) and TGBA-F with LSTM vs. GBA-F and TGBA-F with T-LSTM. Herein, our motivation is to investigate whether the latent patterns extracted by TGBA-F can be used to further improve the performance of T-LSTM. In this experiment, we forecasted future events using entire training sequences and took subgroup basis approach based on (a&amp;s).</p><p>To determine the optimal number of latent patterns in all matrix decomposition based methods (i.e., TGBA-F, TIBA-F, TSBA-F, etc.), we ran grid search and determined the optimal number as 8 for all methods. For time-aware mechanism, we used grid search to investigate the optimum value for the parameter &#945; in the function iif (&#8710;T i ) = exp(-&#945;&#8710;T i ) and our results showed that the optimum value was 0.2, which enabled the iif (&#8710;T i ) to have a nearly full distribution over the range of [0,1]. For both LSTM and T-LSTM, we used one hidden layer with 50 hidden neurons and 514 maximum sequence length. We adopted the Adam optimizer <ref type="bibr">[38]</ref> with the batch size 50 and 30 epochs, and early stopping was employed with 5 patience after minimum 10 epochs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E. Evaluation Metrics</head><p>Metrics of accuracy (Acc), recall, precision (Prec), F-score (F1) and area under the ROC curve (AUC) were employed for evaluating our models. Accuracy is the proportion of patients whose labels are correctly identified. Recall indicates what proportion of patients that actually have septic shock can be correctly diagnosed by the model as septic shock. Precision tells what proportion of patients who are diagnosed as septic shock actually have septic shock. F1 is the harmonic mean of precision and recall that sets their trade-off. AUC calculates the tradeoff between recall and specificity. Therefore, in the following we will mainly use F1 and AUC to compare different models. All models were evaluated by 5-fold cross validation. Based on the three components in TGBA-F, we divided experiments into Baseline and three sub-sessions: 1) Forecasting future events (F); 2) appending the Time-aware mechanism to (F), i.e., (FT); and 3) appending the subGroup basis approach to (FT), i.e., (FTG). Table <ref type="table">II</ref> shows the performance on two prediction tasks: prediction Task I (4-hour-before shock prediction) and Task II (1-to-8-hour-before shock prediction when the hold-off window varying from 1 hour to 8 hours by 1 hour increment). Specifically, the first column indicates the sub-session; the second column is the missing data handling method; columns 3 to 7 present our evaluation metrics for the prediction Task I; and columns 8 to 12 present average (mean &#177; std) performance for the prediction Task II. For each subsession, the best results are marked in bold; in sub-session (F), the best results are underlined; in sub-session (FT), the best results are labeled with * ; and the best performance in subsession (FTG) are labeled with both underline and * . Finally, the best model across all sub-sessions are shaded. In the following, we will report the performance in each sub-session and then compare across them. Table <ref type="table">II</ref> (Baseline) shows that both IBA and SBA outperformed other three baseline methods except that SVDImpute had the best precision among them. IBA had slightly better performance than SBA.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. RESULTS</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Effectiveness of Three Components in Early Prediction</head><p>(F) with Forecasted Future Events:</p><p>We explored whether the performance of IBA and SBA could be improved with Forecasted future events using truncated sequences, denoted as IBA-F tr and SBA-F tr respectively, and using entire sequence for SBA only, denoted as SBA-F en . As discussed previously, entire sequence is not applicable for IBA. Table II (F) shows that all three forecasted models outperformed the five baseline methods for both Task I  (except precision) and Task II. Among the three models, SBA-F en has the best F1 and AUC performance for the prediction Task I, and IBA-F tr have the best F1 and AUC performance for the prediction Task II. Note that SBA-F en outperformed SBA-F tr for both prediction tasks, thus we only considered entire sequences for SBA in the following experiments.</p><p>(FT) with Time-aware Mechanism:</p><p>We evaluated the effectiveness of the time-aware mechanism on the best models so far, i.e., IBA-F tr and SBA-F en , denoted as TIBA-F and TSBA-F respectively. The results in Table <ref type="table">II</ref> (FT) shows that both TIBA-F and TSBA-F outperformed IBA-F tr and SBA-F en on Task I and Task II. Additionally, there is no clear winner between TIBA-F and TSBA-F in that TIBA-F has better F1, while TSBA-F has better AUC for both prediction tasks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>(FTG) with Subgroup Basis Approach:</head><p>To evaluate our subgroup basis approach, we compared it against the best IBA model, i.e. TIBA-F, and the best SBA model, i.e. TSBA-F, so far. To do so, we used entire sequence setting and explored subgroup basis approach using three different ways of partitioning the patients: (a) 4 groups by age; (s) 2 groups by sex; and (a&amp;s) 8 groups by age and sex  collectively. Table <ref type="table">II</ref> (FTG) shows all three subgroup basis approaches outperformed TSBA-F and TIBA-F in terms of F1 and AUC on both prediction tasks. Additionally, grouping patients by either age or sex achieved similar results. When combining age and sex the performance could be further improved. Our results suggest that different age and sex subgroups possess different latent patterns, therefore group basis approach can not only achieve more specific latent patterns for each group, but also provide more exact clues for data imputation from patients with similar properties.</p><p>2) Performance of &#964; &#8712; <ref type="bibr">[1,</ref><ref type="bibr">24]</ref>:</p><p>In order to fully evaluate the performance of TGBA-F which achieved the best performance so far, using entire sequences for forecasting, incorporating the time-aware mechanism, and grouping patients by (a&amp;s), it is further compared with the two original PACIFIER approaches without any extensions: i.e., IBA and SBA. Figure <ref type="figure">3</ref> shows that TGBA-F consistently outperformed the original IBA and SBA on a 1-to-24-hourbefore shock prediction task. When &#964; becomes larger, it is more challenging to early predict the septic shock. In this case, the two baseline methods fluctuated heavily, while our TGBA-F stays much more stable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. GBA-F vs. TGBA-F &amp; LSTM vs. T-LSTM</head><p>To further evaluate the effectiveness of time-aware mechanism, we compared GBA-F (TGBA-F without time-aware) and TGBA-F with LSTM vs. GBA-F and TGBA-F with T-LSTM.</p><p>Both GBA-F and TGBA-F use entire sequences and group patients by (a&amp;s). Table <ref type="table">III</ref> shows the predictive performance on Task I (4-hour-before) &amp; Task II (1-to-8-hour-before shock prediction). Overall, for both GBA-F and TGBA-F, T-LSTM outperformed LSTM and thus T-LSTM is indeed more suitable for modeling EHRs. On the other hand, for both LSTM and T-LSTM, TGBA-F outperformed GBA-F, thus our time-aware mechanism is indeed more effective for imputing missing data. As a result, we assumed that our time-aware mechanism and T-LSTM could tackle irregular time intervals from two different perspectives so that the best performance was generated by combining the two approaches: TGBA-F and T-LSTM.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Visualization of Decomposed Latent Patterns</head><p>In Figure <ref type="figure">4</ref>, we visualized the mapping &#219;en that extracted from TSBA-F for overall patients (Figure <ref type="figure">4</ref> (a)) and TGBA-F for each subgroup (Figure <ref type="figure">4 (b)</ref>). Herein, the rows indicate features and columns are latent patterns. Features are sorted by their summing of weights to all latent patterns, and ordered from the largest (top) to the smallest (bottom). The darker the color, the more contribution for the feature in representing the corresponding latent pattern. Figure <ref type="figure">4</ref> shows overall shared mapping is different from subgroups, and also different subgroups have heterogeneous mappings.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VI. CONCLUSION</head><p>In this paper, based on matrix decomposition, we proposed a TGBA-F method which consists of three components in-cluding: forecasting future events, time-aware mechanism, and subgroup basis approach. The imputed data with forecasted future events can be fed into deep learning classifiers, LSTM and T-LSTM, for septic shock early prediction. Through experiments, we demonstrated that our proposed TGBA-F approach can significantly improve the performance of early prediction comparing to the baseline methods. In future works, we will explore other applicable approaches to partition subgroups. We will also analyze the implications for the decomposed latent patterns to find out their clinical meanings. Besides, a larger set of features will be introduced in future to explore more sophisticated latent patterns.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VII. ACKNOWLEDGEMENT</head><p>This paper was supported by the following NSF Grants: 1) S.E.P.S.I.S.: Sepsis Early Prediction Support Implementation System (1522107); 2) MetaDash: A Teacher Dashboard Informed by Real-Time Multichannel Self-Regulated Learning Data (1660878); and 3) CAREER: Improving Adaptive Decision Making in Interactive Learning Environments (1651909).</p></div></body>
		</text>
</TEI>
