key: cord-0992827-kj873dkm authors: Gonzatto, Oilson Alberto; Nascimento, Diego Carvalho; Russo, Cibele Maria; Henriques, Marcos Jardel; Tomazella, Caio Paziani; Santos, Maristela Oliveira; Neves, Denis; Assad, Diego; Guerra, Rafaela; Bertazo, Evelyn Keise; Cuminato, José Alberto; Louzada, Francisco title: Safety-Stock: Predicting the demand for supplies in Brazilian hospitals during the COVID-19 pandemic() date: 2022-04-20 journal: Knowl Based Syst DOI: 10.1016/j.knosys.2022.108753 sha: b30eba1c3ce519513739326e1a8fe9620996fcdd doc_id: 992827 cord_uid: kj873dkm Many challenges lie ahead when dealing with COVID-19, not only related to the acceleration of the pandemic, but also to the prediction of personal protective equipment sets consumption to accommodate the explosive demand. Due to this situation of uncertainty, hospital administration encourages the excess stock of these materials, over-stocking products in some hospitals, and provoking shortages in others. The number of available personal protective equipment sets is one of the three main factors that limit the number of patients at a hospital, as well as the number of available beds and the number of professionals per shift. In this scenario, we developed an easy-to-use expert system to predict the demand for personal protective equipment sets in hospitals during the COVID-19 pandemic, which can be updated in real-time for short term planning. For this system, we propose a naive statistical modeling which combines historical data of the consumption of personal protective equipment sets by hospitals, current protocols for their uses and epidemiological data related to the disease, to build predictive models for the demand for personal protective equipment in Brazilian hospitals during the pandemic. We then embed this modeling in the free Safety-Stock system, which provides useful information for the hospital, especially the safety-stock level and the prediction of consumption/demand for each personal protective equipment set over time. Considering our predictions, a hospital may have its needs related to specific personal protective equipment sets estimated, taking into account its historical stock levels and possible scheduled purchases. The tool allows for adopting strategies to control and keep the stock at safety levels to the demand, mitigating the risk of stock-out. As a direct consequence, it also enables the interchange and cooperation between hospitals, aiming to maximize the availability of equipment during the pandemic. As of June 6th, 2020, there were more than 6.6 million confirmed positive cases of COVID-19 worldwide, including 392,000 global deaths and more than 673,000 confirmed cases in Brazil (Johns Hopkins University, 2020). Hospital systems around the world have been overwhelmed by the volume of cases, shortages of personal protective equipment (PPE), critical medical supplies, and increasing costs (Grimm, 2020) . In this scenario of scarce hospital resources, a challenge is to build an easy-to-use expert system to predict the demand for PPE in hospitals during the COVID-19 pandemic. Indeed, due mostly to the increase in demand, technological solutions for process management that use historical data from hospital supplies are needed for the healthcare area. Factors such as price increases and difficulties in purchasing critical supplies without a long term demand prediction require intelligent maintenance of stock levels so that there is no shortage of supplies in hospitals. It is worth noting that the supply chain costs account for the second-largest category of expenses in a hospital, which are only lower than labor costs (Abdulsalam & Schneller, 2019) . Few initiatives that aim to meet the demand for critical medical supplies in the fight against Covid-19 may be found in the literature. For example, Furman et al. (2021) developed a tool to estimate PPE usage in hospitals using queue theory, which can applied to any hospital setting, not necessarily in the COVID-19 pandemic. The authors used PPE consumption data from a hospital in Toronto, spanning from 2010 to 2019 to validate the model, and a clustering mechanism in order to divide patients in groups according to the nature of interaction with the hospital. Bertsimas et al. (2021) proposed using analytical tools to aid decision-making systems during the pandemic. These tools include a descriptive analysis of clinical data, predictive models for mortality and infection rates, and a prescriptive optimization model for ventilator distribution in order to aid hospitals with equipment shortage. All tools were validated within the first months of the pandemic, and by the time of the publication, were already in use by hospitals and US government entities. Kamar et al. (2021) compared the estimate of PPE consumption obtained by three COVID-19 surge calculators: the CHIME PPE calculator (Luong, 2020) ; the WHO COVID-19 ESTF calculator (WHO, 2020) ; and the COVID-19 AUBMC calculator, developed by the authors. Using data from the Lebanon, the calculators achieved different results, but all followed the same trend, indicating a future shortage of PPE and highlighting the importance of social distancing measures in diminishing these shortages. Aiming to predict the demand for PPE in Brazilian hospitals during the pandemic, we propose naive statistical modeling, which combines historical data on the consumption of PPE, current protocols for their uses, and epidemiological data related to the disease. We then embed our modeling in a free expert system, hereafter called Safety-Stock, which presents predictions of consumption/demand for PPEs overtime in real-time. Safety-Stock indicates the time when the hospital reaches its maximum consumption, estimates how long it will work in this state and when it will leave it. The similarities and differences between the methodologies recently proposed are summarized in Table 1 , in which we show that the model proposed in this study takes into account two fundamental aspects not considered by the others, the limited capacity of hospitals (even with the increase in beds, professionals, among others) and the period of permanence in that situation. Considering our prediction, a hospital may estimate, based on its stock levels and future purchases, its need related to a specific PPE. This estimate allows for adopting strategies to keep stock levels that are adequate to the demand, mitigating the risk of stock-out. As a direct consequence, it also enables the interchange and cooperation between hospitals, aiming to maximize the availability of equipment during the pandemic situation. The paper is organized as follows: Section 2 presents the materials and methods, including data and statistical modeling. Section 3 describes the Safety-Stock system and the results of its application in several different Brazilian hospitals. Lastly, the final comments in Section 4 complete the paper. Our modeling develops a tool that adopts parametric models in order to predict the PPE demand for a given hospital based on the epidemic curve of its location and characteristics of the hospital such as: the admission rate, number of visits to the emergency department and total number of beds available. We propose a mathematical/statistical model that expresses the expected relationship of the consumption of a given PPE over time, with the epidemiological characteristics of the region and the internal features of a particular hospital. Three fundamental pieces of information are taken into account by the modeling process: the recent historical record of hospital consumption of their critical PPEs, the maximum possible level of PPE consumption, the magnitude of the persistence in a maximum consumption regime plateau. Each of these characteristics requires the observation of different sources of information and generates meaningful interpretations for the construction of the model , which is graphically summarized in Figure 1 . For the development of the proposed approach, the following characteristics related to a given hospital are considered: • List of PPE and other healthcare supplies, such as hand sanitizer, waterproof aprons, sterile gloves, procedure gloves, surgical masks, N95 masks, and caps. • Availability of these supplies in stock at the hospital, in the form of units in stock. • Forecast of weekly consumption, which can be calculated in two ways. The first is considering the expected number of hospitalizations of the particular hospital and the consumption of inputs per hospitalization. The second is considering the consumption according to the hospital's occupancy rate (offer as calculated, as we consider the curve). In addition to consumption, how these data are calculated needs to be known, and the hospital must check their calculation. • The number of beds available considering different classes (mild, severe and critical), regardless of the type of accommodation (shared or individual). The average length of stay for each type of bed is used for the simulation over longer periods. The hospital must provide both the number of beds and their average occupancy rates. • Value of the hospital safety stock, which represents the minimum stock of each equipment set as calculated by the hospital. • Initial conditions: current hospital occupancy rate and an estimate of the length of stay for critical and noncritical beds. The curves related to demand estimated by each city of Brazil were constructed using a growth curve model to meet demand from the worst-case situation. We also used information related to the hospital concerning PPE and its infra-structure for occupation. Moreover, we consider the prediction of the demand for hospitalizations and the number of health staff. The process adopted by the algorithm is to estimate the number of infected patients which will demand some kind of assistance and, combined with the hospital capacities and characteristics, predict the PPE consumption during the COVID-19 pandemic. The statistical model that parameterizes the gathered data simulates the consumption of resources, and aims at obtaining an indication of the safety stock for each PPE, considering the possibility of having a certain amount. Further details of the statistical modeling are discussed in the following subsection. Consumption/demand curve. In principle, we consider a random variable denoting the consumption of a given PPE over time , normally distributed with mean and variance 2 . The adopted statistical model aims to parameterize the growth behavior of the demand for a product, followed by a (possibly) period of constant high demand, then accompanied by a decline in demand. Thus, is assumed as a five parameter function given by where denotes the magnitude of basic consumption, here assumed to be constant, denotes the intensity of growth or decrease in consumption over time, denotes the point in that the maximum consumption is reached, denotes the magnitude of maximum consumption, denotes the point in that consumption begins to decrease. According to the variation of parameters , , , and , some possible behaviors for the mean of the proposed model can be observed in Figure 2 . The described proposal that relates model with the consumption curve with the regional epidemiological characteristics and interior features of a particular hospital takes into account three fundamental aspects: the recent historical record of hospital consumption of a given PPE; the maximum consumption level of the PPE; how long the hospital stays on the maximum consumption level. Each of these features requires the observation of distinct information sources and generate meaningful interpretations for the model building, as follows. 1. The recent historical record of hospital consumption of a given PPE provides information of the baseline demand before the COVID-19 pandemic (represented by the model parameter ) and evidence of changing in the consumption regime (represented by the model parameter ); 2. The maximum level of PPE consumption considers the maximum capacity and the totality of the hospital staff dedicated to COVID-19 patients care (this maximum level is represented by the parameter of the model and, as it is a fixed and particular characteristic of each hospital and PPE, it is set as a known parameter). This information is determined based on the procedure described in Subsection 2.2; 3. The time spent on the maximum consumption regime (whose endpoint in is represented by the parameter of the model) is determined using hospital information and the region around it. It is estimated indirectly and is subsequently used in the model for the consumption curve, , as a fixed parameter (just like the parameter ). The determination of the parameter, defined as known in the model for ), is done as described in 2.3. The combined use of information obtained from these three perspectives makes the theoretical model adopted to relate the epidemiological characteristics of the region and the demand features of the hospital's supply chain under study. Thus, the average growth ( ) will be defined by the parameters , and , and the parameters and will be determined indirectly according to one of the processes presented in Subsections 2.2 and 2.3. Estimation Process. We define the random structure, based on a set of observations from recent consumption history = ( 1 , … , ), = ( ; , , ) + , where ∼ N(0, 2 ), for = 1, … , . The parameters = ( , , ) e 2 are estimated by considering the log-likelihood function, given by where RSS( ) denotes the residual sum of squares. If we use non-informative or sufficiently vague a priori information for the parameters, estimates for and 2 can be obtained by maximizing (2), which occurs with the minimization of RSS( ) ( is independent of 2 ). In addition, ∕ 2 = 0 has a solution given bŷ 2 = RSS(̂ )∕ , whilê is the least squares estimator of (Migon, Gamerman, & Louzada, 2014) . The standard error of the estimates can be obtained based on the Fisher Information matrix and the prediction intervals are determined using the Delta Method (Casella & Berger, 2002) . Average values per professional in a 12-hour shift. In order to evaluate the proposed model, a simulated hospital environment was considered, based on ANVISA, the Brazilian Health Regulatory Agency (Anvisa, 2020) . This simulation serves as a general example for the hospitals where the model will be applied, and its characteristics (staff and material consumption) were defined using data provided by experts. The hospital allocates its patients into three categories: Inpatient Units (IU), Intensive Care Units (ICU), and Emergency Room (ER). IU patients are in a non-critical state, while UTI patients are in a critical state, demanding more human resources and materials. The number of hospital beds is divided between both units, and IU beds can be turned into ICU if needed. ER patients are on hold to be transferred to either IU or ICU. Therefore they are not considered to be occupying hospital beds. The allocation of doctors, nurses, and physiotherapists is shown in Table 2 . The number of IU and ICU needed staff is given based on the number of occupied beds, except for doctors for IU patients, which is given by the number of total hospital beds, regardless of their occupation. Column IU/RRT shows the staff allocated to IUs as Rapid Response Team (RRT). In these columns, the numbers represent the staff needed for 12-hour shifts, while numbers on the ER column represent the daily staff needed for a unit with an average of 10.000 treatments per month, which also work on 12-hour shifts. Table 3 shows the consumption of critical material per professional during a 12-hour shift. These values estimate what is used taken from a series of premises and observations on real hospitals. The consumption of other essential materials needs to be estimated by other means. The use of Hand Sanitizer varies from hospital to hospital since it can be replaced by regular soap. In this case, the daily use of 20mL for each IU and ICU patient and 5mL for each ER suspected patient is assumed (which is estimated as 50%). Doctors, nurses, and physiotherapists use N95 Masks, at a rate of 1 each 14-day period or ten shifts, thus depending on the staff rotation rather than hospital occupancy. Lastly, as a premise, the obtained values are increased by 40% to consider material usage from cleaning and technical staff, visitors, and incoming patients, as well as hospital waste. For the determination of a cut-line, from which the number of beds available in the hospital becomes higher again than the daily demand of patients in ICU (represented by the parameter in the model (1)), we used the information of the number of notified deaths accumulated over time (here denoted by the random variable ) and other hospital information as described below. The growth curve of can be estimated by a nonlinear growth curve model, such as the Logistic model (Pinheiro & The selection between the most appropriate model for each region can be made based on some statistical criteria such as AIC, AICc, BIC (Wong & Li, 1998) . The estimation process is analogous to what is described in Section 2.1. From the estimated curve for , we consider a brief simulation study to approach the hospital demand curve. We incorporate other sources of uncertainty, such as underreporting factors and lethality rates, among others. The characterization of such sources of uncertainty has theoretical support in studies already published, which support the average behavior defined here as a known premise. This approach may represent a current study limitation since we do not consider the joint analysis of all the factors involved, which can be incorporated into future studies, though such information has already been obtained and validated by other sources. Thus, the steps performed are the following: • The reported deaths curve ( ) is a fraction of the actual deaths ( * ), which means that = P RD × * , where P RD ∼ Beta( 1 , 1 ). The probability distribution of P RD (proportion of reported deaths) has been defined so that we consider the parameters 1 and 1 to be known, such that (P RD ) = 1 ∕( 1 + 1 ) = 0.4 and SD(P RD ) = √ 1 1 ∕[( 1 + 1 ) 2 ( 1 + 1 + 1)] = 0.05. Such assumptions take into account researchers such as Ruprecht (2020); Burn-Murdoch, Romei, & Giles (2020) who indicate that the number of real deaths is around 2.6 times the number of reported deaths. • We understand that the real deaths curve ( * ) is proportionally related to the infected curve ( ), as follows, * = P ID × , where P ID ∼ Beta( 2 , 2 ). The probability distribution of P ID (proportion of infected-to-death) was defined considering known 2 and 2 , such that (P ID ) = 2 ∕( 2 + 2 ) = 0.0037 and SD(P ID ) = √ 2 2 [( 2 + 2 ) 2 ( 2 + 2 + 1)] = 0.0001. The distribution parameter of the random variable P ID was set based on the results of Streeck, Hartmann, Exner, & Schmid (2020); Centers for Disease Control and Prevention (2020) which pointed out that the actual lethality rate of the disease is around 0.37%; • The hospitalized ( ) and hospitalized in ICU ( , ) curves are assumed to correspond to fractions of the curve of infected, as follows = P IH × , where P IH ∼ Beta( 3 , 3 ). and , = P H ICU × , where P H ICU ∼ Beta( 4 , 4 ). Similarly, the probability distribution of P IH (proportion of infected-to-hospital) and P H ICU (proportion of hospitalized-to-ICU) are defined as (P IH ) = (P H ICU ) = 0.25 and SD(P IH ) = SD(P H ICU ) = 0.05. This is justified since Guan et al. (2020) ; Centers for Disease Control and Prevention (2020) show that approximately 25% of the infected need some hospital care, and 25% of those need a ICU. • The recovered curve ( ), from ICU situation, was approximated by the translate of the difference between hospitalized in ICU curve ( , ) and the real deaths curve ( * ), as follows (Zhou et al., 2020 ) The probability distribution set to D ICU (days in ICU) takes into account that (D ICU ) = = 14, since World Health Organization (2020) indicated that the clinical recovery for patients in ICUs is approximately two weeks. • In addition, we understand that the difference between the hospitalized in ICU curve ( , ) and the recovered curve ( ) of the ICU situation approximates the regional demand curve ( ) for ICU beds. Therefore, • Finally, we assume that the hospital demand curve ( ) is a fraction of the regional demand curve ( ), weighted by market share (MS) associated with a particular hospital. Therefore, The multiplier MS was not considered as a random variable. Its value is determined by the number of beds in the hospital and the number of beds available in the region close to the hospital, whose information is collected directly from a Brazilian health database called DataSUS. Once we approximate the hospital demand curve ( ), we have established a cut-line for the hospital's service capacity. This procedure is made by considering the number of IU and ICU beds (named as IU B and ICU B , respectively) and their occupancy rates (named as OR IU and OR ICU , respectively). Since around 20% of IU beds can be upgraded to act like an ICU bed, the cut-line is given by = CL, we identify the cutoff point, (1) , which indicates that the ICU service capacity has been exceeded (if applicable) and the point at which it has returned to normal is (2) . The point (2) and all the uncertainty associated with it, via the variability of P RD , P ID , P IH , P H ICU , and D ICU , result in a range of possible time points, where the hospital situation is expected to return to normal. The average value of these estimates is set as the cut-line represented by the parameter of model (1) (assumed known in this stage of the modeling). To learn about the Safety-Stock we illustrate the flow of information that runs internally on the Safety-Stock system ( In the INPUT DATA panel, a categorization of the entries can be seen. The first one deals with the datasheet loaded by the user of the Safety-Stock and corresponds to the identification information (of the region, hospital, and PPE class), the historical consumption record, and the stock requirements. All other information is provided via the Safety-Stock screen. Some of them deal with empirical aspects about the disease's behavior in the region of the hospital (or the hospital itself), such as the average number of days that a patient remains in the ICU, or other epidemic information that is particularized in specific health centers. All the above information is defined by default (regarding recent medical literature) at the beginning of the user's section. However, it can (and should) be modified to meet the specific practical reality of that hospital. Other necessary entries deal with some small configurations about the forecast stage of the model, such as the forecast horizon and the safety percentage added. The second frame, END OF THE PLATEAU, links the flow of information used to determine the cut line represented by the parameter of the model (1). Considering the region selected by the user, a module of the Safety-Stock searches online for the death record in that region, updated daily. Besides, there is a query in the dataSUS database about the number of beds available in the given location. Another module adjusts a growth curve to the data collected for the cumulative death number. Some transformations will be made in order to obtain the hospital demand curve. The transformations are made with the aid of some multipliers (which weigh the death curve, P IH , P H ICU , P ID , among others), and a factor that translates the curve over time (D ICU ). The multipliers are obtained by a module via a random simulation, considering the exposed in Subsection 2.3. Having access to the hospital's demand curve in another block of code, we determined some possible dates for the plateau's end, considering the cut line obtained based on the entries associated with the number of beds and respective occupations. In the third panel, SIMULATED HOSPITAL DATA, the reference for maximum consumption level is obtained by a module that makes use of information on the number of total beds, and the product class. The dimension of this plateau takes into account all aspects listed in Subsection 2.2. The fourth table expresses the joint use of the information obtained in Tables 1 to 3. The maximum consumption stipulated by the user indicates which stage of the analysis he/she is in. If this entry is NULL, then the consumption curve adjustment model considers a range of plateaus based on the reference plateau (obtained in third 3). On the other hand, if the user has already defined the maximum consumption, the model fits a single curve, associated with that consumption, at the end of the analysis, this will be the curve used to make and save the predictions. Other modules are in charge of generating the prediction table and the graph that outlines the adjusted model compared to the observed data and other relevant information. The last panel summarizes the information that will be exported to the company's database responsible for an intermediate between hospitals that self-declared as potential helpers (for the loan or exchange of PPE) and those who declared that they need help. The proposed methodology was implemented in Safety-Stock, an easy-to-use expert system that combines different elements informed by the hospital under analysis. It is freely available in https://cemeai.shinyapps.io/ bionexo_covid19/ (in Portuguese). The pieces of information needed for feeding the platform are divided into three dimensions: consumption and stock information, which are hospital general information, such as, location (state and city), PPE general classes, weekly consumption, current stock level; disease behavior in the hospital under study, which are hospital pandemic dynamic data, such as percentage of hospitalized infected patients, percentage of ICU hospitalized patients, the average length of stay, number of beds and occupancy rate; forecast of scenarios related to demand, which are hospital demand prediction data, such as prediction horizon, security percentage, and maximum consumption. The first step is to estimate the death growth rate related to each region. A growth curve function is adopted to predict the number of deaths in the city where the hospital lies. Examples for these curve functions include the Three-Parameter Logistic (Pinheiro & Bates, 2006, chap. 6 ) and the Gompertz Function (Tjørve & Tjørve, 2017) , for instance. Figure Then, based on the process described in Subsection 2.3, we obtain the behavior for regional demand for each city (Figure 4b ), which expresses a particular behavior concerning the dynamics of the disease. The fraction of such curve that fits a specific hospital depends on the market share associated with it, and the cut-line that represents its current capacity (in terms of the number of free ICU beds) considers the total number of beds and the respective occupancy rates (Figure 4c ). With this step, we determine the cut-line that gives us an indication of when the hospital situation begins to regularize. Subsequently, a simulated hospital structure, which is focused exclusively on the COVID-19 pandemic, is considered. This simulated hospital's composition was an essential element for estimating the threshold that relates to the maximum consumption of PPE: the number of available beds, the size of medical staff, and the PPE consumption protocols. With this step, we defined a technically standardized level for maximum consumption, on which we established some variation in its surroundings to consider possible changes in the protocol due to the pandemic situation. A detailed description of the simulated hospital structure is presented in Subsection 2.2. The next step consists in adjusting the conditioned model to the information obtained in the previous steps. Thus, we established a forecast for the weekly PPE consumption of a hospital under analysis through models considering some possible scenarios. Figure 5 presents the estimate in which the pandemic presents a potential risk to the hospital situation as a result. The generated scenarios consider the historical consumption of a PPE in particular, the theoretical premises for the use of PPE based on the magnitude of the hospital, and the effects of the pandemic observed in its region. The gray margin presents the forecast horizon. In Figure 5 , each consumption limit line also indicates the security of the available stock in terms of the number of weeks that the current stock would last if there were no new entries. The red dashed lines represent upper limits for consumption, considering the growth trend of previous records and different total consumption levels, the transparent red margins represent the 2.5% and 97.5% limits for the predicted curve. The blue dot denotes the current stock position. The transparent blue margins represent the minimum and maximum stock limits. The yellow line showed the date when the first case of COVID-19 was identified in its municipality. The vertical line in light-blue represents a cut-line from which we believe that the hospital situation will return to normal. The transparent margin around it expresses the uncertainty involved in this expectation. This value for maximum consumption will be given as input to the model (submitted in the Maximum Consumption field), and it will be recalculated, making the specific analysis to hospital reality (5b). The red line is the upper limit for consumption, where growth occurs with the intensity outlined by the historical record and considering its consumption protocol. This growth ceases from the moment the hospital situation begins to regularize (in this example, this occurs by late August 2020). The construction of this cut-line takes into account the situation of the hospital while facing the pandemic. The board of the hospital under analysis, in the face of the pandemic, may use the cut-line as an aid in decision making, estimated by the considered approximations and assumptions, supporting the hospital's regularization situation by the following steps: 1. Based on the death count due to COVID-19. We obtain an estimate for this behavior. Then, we add other sources J o u r n a l P r e -p r o o f Journal Pre-proof Safety-Stock: Predicting the demand for supplies during the COVID-19 pandemic q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q Belo Horizonte ( of uncertainty, such as under-reporting factors. 2. Conditioning the real death curve, we consider the estimated relationship between the death and infected curve, added by a randomness factor. 3. Subsequently, via the infected curve, estimates of the fraction of hospitalized and, of those hospitalized, those who need ICU admission. 4. From the curve of intensive care unit inpatients, we considered the average number of days in the intensive care unit, and, given this consideration and the randomness involved, we took an approximation, even if gross, of the curve of recoveries. 5. The difference between the intensive care unit inpatients curve and the recoveries curve leads us to a hospital demand curve for intensive care unit beds. The fraction of the curve applied to the hospital under analysis is considered an estimate for market-share. The first panel (left) in Figure 6 shows an estimate of the death curve of Brazilian municipalities (extracted from the website brasil.io), later this growth curve helped in the corrected estimation bypassing the underreporting of COVID-19. The central panel is related to the region's demand curve, and finally, the right panel adds the daily demand of the hospital (fraction of the region answered by market share). The total sum will represent the Forecast Horizon that can be increased by a percentage defined in the % security field. The window of the considered forecast was 30 days, conditioned on the percentage of consumption of items individually. As an auxiliary tool, the expected demand for each group of commonly used items in the pandemic will be broken down into individual products (with different references). This table can be exported and aims to consider the different scenarios that relate to the maximum consumption. Perhaps an essential point of the Safety-Stock is the accumulated record of hospitals that need to be helped, and those that can help others. This initiative can be materialized with an indicator that tells us if the hospital can help, or needs help, after analyzing the situation of lack or over-stock for each general class of PPE or the need to purchase more supplies. Prediction modeling was developed by combining historical hospital data and the disease growth curve. The idea is to provide a safety stock, avoiding a possible lack of PPE during the COVID-19 pandemic. We developed the Safety-Stock system, which provides a prediction for the consumption of several PPEs to the hospital managers, taking into account the expected number of patients that arrive in the emergency room with COVID-19 symptoms, as well as the expected percentage of those that need intensive care. As a result, the safety stock of PPEs can be estimated. Consequently, it may be rearranged among geographically close hospitals, preventing attendance restrictions, and avoiding unnecessary expenses. The proposed approach is naive in different ways. For instance, we chose to assume a random structure based on a symmetric probability distribution for the errors, both in the adjustment of the consumption curve ( ) and the death curve ( ). The choice of such distributions may not be the most appropriate one, though entirely consistent results were found. In other words, the raw data directly accessed in the statistical estimation processes correspond to the recent history of the consumption of any PPE and the death record in a particular city. All other information carries subjectivities and uncertainties that we cannot quantify in light of the analyzed data even though the theoretical support of the studies, from where such information was extracted, allowed us to understand the observed average behaviors as premises in our modeling. Finally, the considered growth models are quite simple and describe the disease's mean behavior over time. All of these points can be refined and addressed in future studies. For instance, assigning a possibly asymmetric probability distribution for the errors, considering joint statistical modeling of the various information, with data directly accessed by us, and considering other growth models and then use statistical selection among different models. On the other hand, naivety also has some attractive advantages. Scalability is one of them since complex models commonly require computationally intensive methods, many of them need a more substantial amount of information to express good results and the computational processing time is considerably longer. Thus, our naive approach allows the use and diffusion of the proposed methodology on a broader spectrum of possibilities, such as using our expert system with updating in real-time. Another interesting point is that researchers from other areas can clearly understand the methodology, and its results can be effectively internalized. Besides, the integrated set of small independent solutions, such as the proposal presented here, can serve as a basis for more in-depth investigations by expressing insights that are difficult to perceive in individual analyses. Moreover, results obtained with the Safety-Stock were exposed to some PPE managers of some Brazilian hospitals. The degree of agreement with the reality of their practical activities encourages us the continuity of the development, maintenance, and dissemination of our research and free expert system. A similar system was adapted for Argentinian hospitals, with the information available in that country. The tool is freely available in https:// cemeai.shinyapps.io/BioNexo-Argentina/ (in Spanish). For future research, we suggest integrating the proposed system with optimization tools that support PPE inventory management between multiple hospitals, as in Göçmen (2020), alleviating shortages in situations similar to the COVID-19 pandemic. Hospital supply expenses: An important ingredient in health services research Orientações para serviços de saúde: Medidas de prevenção e controle que devem ser adotadas durante a assistência aos casos suspeitos ou confirmados de infecção pelo novo coronavírus (sars-cov-2) From predictions to prescriptions: A data-driven response to covid-19 Global coronavirus death toll could be 60% higher than reported Interim clinical guidance for management of patients with Estimation of the von bertalanffy growth model when ages are measured with error Prediction of personal protective equipment use in hospitals during covid-19 Hospital experiences responding to the covid-19 pandemic: Results of a national pulse survey Clinical characteristics of coronavirus disease 2019 in china Linear programming with fuzzy parameters for inventory routing problem in effective management of personal protective equipment: a case study of corona virus disease 2019. Energy Sources, Part A: Recovery, Utilization Predicting the demand for supplies during the COVID-19 pandemic Covid-19 dashboard by the center for systems science and engineering at johns hopkins university Challenge of forecasting demand of medical resources and supplies during a pandemic: A comparative evaluation of three surge calculators for covid-19 Introducing a ppe calculator for use with chime Statistical inference: an integrated approach Mixed-effects models in s and s-plus Entrevista: por que o número de mortes por coronavírus está subestimado Vorläufiges ergebnis und schlussfolgerungen der covid-19 case-cluster-study (gemeinde gangelt) The use of gompertz models in growth analyses, and new gompertz-model approach: An addition to the unified-richards family Who covid-19 essential suppliesforecasting tool (covid-esft) v1.1 A note on the corrected akaike information criterion for threshold autoregressive models Report of the who-china joint mission on coronavirus disease Clinical course and risk factors for mortality of adult inpatients with covid-19 in wuhan, china: a retrospective cohort study J o u r n a l P r e -p r o o f Journal Pre-proof