SlideShare a Scribd company logo
1 of 40
Download to read offline
Forecasting emergency department patients
volumes with Machine Learning
An examination of ML techniques
Disclaimers
● Data come from Sant’Andrea Hospital of Rome.
● The analysis focuses on the emergency department patients volumes
prediction, not with optimization of emergencies management.
Outline
1. Introduction
2. Data
3. Time series theory
4. Prediction models
4.1. Basic forecasting models
4.2. ARIMA
4.3. Exponential Smoothing
4.4. Neural Networks
5. Conclusions
Outline
1. Introduction
2. Data
3. Time series theory
4. Prediction models
4.1. Basic forecasting models
4.2. ARIMA
4.3. Exponential Smoothing
4.4. Neural Networks
5. Conclusions
Introduction
● Examination of some ML techniques for time series
forecasting
● Case study: ED visits data from Roman hospital with the goal
to predict ED weekly visits
Outline
1. Introduction
2. Data
3. Time series theory
4. Prediction models
4.1. Basic forecasting models
4.2. ARIMA
4.3. Exponential Smoothing
4.4. Neural Networks
5. Conclusions
Data
● Dataset
○ 5 years of data: 2014 → 2018
● Year by year average number of weekly ER visits
2014 2015 2016 2017 2018
mean 136 150 146 152 132
Data
● Daily data
Data
● Weekly smoothing
Data visualization: seasonal plot
● 2014
○ plunge at ~ end of
August / September
Data visualization: seasonal plot
● 2014
○ plunge at ~ end of
August / September
● 2015
Data visualization: seasonal plot
● 2014
○ plunge at ~ end of
August / September
● 2015
● 2016
Data visualization: seasonal plot
● 2014
○ plunge at ~ end of
August / September
● 2015
● 2016
● 2017
Seasonality!
Data visualization: seasonal plot
● Polar representation
● Peak in the S-W
→ July 2018
Outline
1. Introduction
2. Data
3. Time series theory
4. Prediction models
4.1. Basic forecasting models
4.2. ARIMA
4.3. Exponential Smoothing
4.4. Neural Networks
5. Conclusions
Time series decomposition
Time series components:
1. Trend
2. Seasonality
3. Random
Time series decomposition
Time series components:
1. Trend
2. Seasonality
3. Random
❏ Additive
Time series decomposition
Time series components:
1. Trend
2. Seasonality
3. Remainder
❏ Additive
❏ Multiplicative
Time series decomposition
data
season
trend
remainder
Time series
components:
1. Trend
2. Seasonality
3. Remainder
Outline
1. Introduction
2. Data
3. Time series theory
4. Prediction models
4.1. Basic forecasting models
4.2. ARIMA
4.3. Exponential Smoothing
4.4. Neural Networks
5. Conclusions
Prediction models:
1) basic forecasting models
● Naive model:
● Seasonal Naive:
● Drift: allows increasing
● Mean
Outline
1. Introduction
2. Data
3. Time series theory
4. Prediction models
4.1. Basic forecasting models
4.2. ARIMA
4.3. Exponential Smoothing
4.4. Neural Networks
5. Conclusions
Prediction models: 2) ARIMA
● ARIMA methods rely on a linear forecasting model in which the independent variables (or
regressors) is the variable itself but at different times in the past → autoregressor (AR)
● As usual with LM collinearity (correlations among regressors) must be avoided
● Autocorrelation checks to establish if the time series is stationary
● If it is not: differencing
Prediction models: 2) ARIMA:
- Autocorrelation
● Autocorrelation measures the
linear relationship between lagged
values of a time series
● Trended time series tend to have
positive values that decrease as
the lags increase (small here)
Prediction models: 2) ARIMA
- Autocorrelation
● Autocorrelations will be larger for
the seasonal lags (at multiples of
the seasonal frequency)
● Here peaks at about every 25
weeks (~6 months)
Prediction models: 2) ARIMA
- Differencing
Differencing checks data
log
season
differenced
differenced
Prediction models: 2) ARIMA
Non seasonal ARIMA:
- differencing with
autoregression and a
moving average
model.
80% and 90% confidence
intervals shown in shaded
areas
Prediction models: 2) SARIMA
Seasonal ARIMA:
- differencing with
autoregression, a
moving average model
and a seasonal
component, D=n. of
seasonal differences.
Outline
1. Introduction
2. Data
3. Time series theory
4. Prediction models
4.1. Basic forecasting models
4.2. ARIMA
4.3. Exponential Smoothing
4.4. Neural Networks
5. Conclusions
Prediction models: 3) exponential
smoothing
● Forecasts = weighted averages of past observations.
● Weights decaying exponentially as the observations get older.
● The more recent the observation the higher the associated weight and so
the more similar the forecasted value will be to it.
If α is close to 1: more weight to the more recent observations.
Prediction models: 3) Holt method
● test
● Damped
Dampening the trend so that it
approaches a constant some
time in the future
● Holt’s method
Prediction models: 3) Holt - Winter
● H-W = seasonal Holt method
● Better results with seasonal
● Though it underestimates the
seasonality
Outline
1. Introduction
2. Data
3. Time series theory
4. Prediction models
4.1. Basic forecasting models
4.2. ARIMA
4.3. Exponential Smoothing
4.4. Neural Networks
5. Conclusions
Prediction models: 4) Neural Networks
A neural network can be thought of as a
network of neurons organized in layers.
● The first layer is the input layer
● The last one is output layer
● Intermediate layers are called hidden.
With time series data, lagged values of
the time series can be used as inputs:
neural network autoregression or NNAR.
Prediction models: 4) NNAR
● neural network
autoregression or NNAR
model.
Conclusions
● Limitation of the analysis:
○ weekly data is difficult to work with because the seasonal period (the number of weeks in a year) is both
large and non-integer. The average number of weeks in a year is 52.18. Most of the methods we have
considered require the seasonal period to be a not too large integer.
○ cyclics (mid of 2018 spike) unpredictable
● Future developments:
○ SARIMAX: X stand for exogenuous variables
Time series decomposition: STL
data
season
trend
remainder
● Seasonal and
Trend
decomposition
using Loess
● The seasonal
component is
allowed to
change over
time.

More Related Content

Similar to Forecasting emergency department patients volumes with ML (Giammarco Quaglia, Ospedale Pediatrico Bambino Gesù)

Presentation for lama.pptx
Presentation for lama.pptxPresentation for lama.pptx
Presentation for lama.pptxAdityaNath38
 
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...Databricks
 
Unit 6 input modeling
Unit 6 input modeling Unit 6 input modeling
Unit 6 input modeling raksharao
 
ARIMA Model for analysis of time series data.ppt
ARIMA Model for analysis of time series data.pptARIMA Model for analysis of time series data.ppt
ARIMA Model for analysis of time series data.pptREFOTDEBuea
 
Anthill Talk Aditya
Anthill Talk AdityaAnthill Talk Aditya
Anthill Talk AdityaAditya Patel
 
Different Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIMLDifferent Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIMLVijaySharma802
 
Cross-validation aggregation for forecasting
Cross-validation aggregation for forecastingCross-validation aggregation for forecasting
Cross-validation aggregation for forecastingDevon Barrow
 
TIME SERIES & CROSS ‎SECTIONAL ANALYSIS
TIME SERIES & CROSS ‎SECTIONAL ANALYSISTIME SERIES & CROSS ‎SECTIONAL ANALYSIS
TIME SERIES & CROSS ‎SECTIONAL ANALYSISLibcorpio
 
Deep Recurrent Neural Network for Multi-target Filtering
Deep Recurrent Neural Network for Multi-target FilteringDeep Recurrent Neural Network for Multi-target Filtering
Deep Recurrent Neural Network for Multi-target FilteringMehryar (Mike) E., Ph.D.
 
Algorithms for detecting periodic patterns in millions of time series
Algorithms for detecting periodic patterns in millions of time seriesAlgorithms for detecting periodic patterns in millions of time series
Algorithms for detecting periodic patterns in millions of time seriesMeir TOLEDANO
 
a deep reinforced model for abstractive summarization
a deep reinforced model for abstractive summarizationa deep reinforced model for abstractive summarization
a deep reinforced model for abstractive summarizationJEE HYUN PARK
 
Instantaneous Frequency Estimation Based On Time-Varying Auto Regressive Mode...
Instantaneous Frequency Estimation Based On Time-Varying Auto Regressive Mode...Instantaneous Frequency Estimation Based On Time-Varying Auto Regressive Mode...
Instantaneous Frequency Estimation Based On Time-Varying Auto Regressive Mode...CSCJournals
 
EDA and Preprocessing in Tabular and Text data .pptx
EDA and Preprocessing in Tabular and Text data .pptxEDA and Preprocessing in Tabular and Text data .pptx
EDA and Preprocessing in Tabular and Text data .pptxBrajkishore23
 
Lesson 2 stationary_time_series
Lesson 2 stationary_time_seriesLesson 2 stationary_time_series
Lesson 2 stationary_time_seriesankit_ppt
 
UG_B.Sc._Psycology_11933 –PSYCHOLOGICAL STATISTICS.pdf
UG_B.Sc._Psycology_11933 –PSYCHOLOGICAL STATISTICS.pdfUG_B.Sc._Psycology_11933 –PSYCHOLOGICAL STATISTICS.pdf
UG_B.Sc._Psycology_11933 –PSYCHOLOGICAL STATISTICS.pdfManjariPalani1
 

Similar to Forecasting emergency department patients volumes with ML (Giammarco Quaglia, Ospedale Pediatrico Bambino Gesù) (20)

Deep Learning for EHR Data
Deep Learning for EHR DataDeep Learning for EHR Data
Deep Learning for EHR Data
 
Presentation for lama.pptx
Presentation for lama.pptxPresentation for lama.pptx
Presentation for lama.pptx
 
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...
 
Unit 6 input modeling
Unit 6 input modeling Unit 6 input modeling
Unit 6 input modeling
 
ARIMA Model.ppt
ARIMA Model.pptARIMA Model.ppt
ARIMA Model.ppt
 
ARIMA Model for analysis of time series data.ppt
ARIMA Model for analysis of time series data.pptARIMA Model for analysis of time series data.ppt
ARIMA Model for analysis of time series data.ppt
 
ARIMA Model.ppt
ARIMA Model.pptARIMA Model.ppt
ARIMA Model.ppt
 
Anthill Talk Aditya
Anthill Talk AdityaAnthill Talk Aditya
Anthill Talk Aditya
 
IDS for IoT.pptx
IDS for IoT.pptxIDS for IoT.pptx
IDS for IoT.pptx
 
Different Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIMLDifferent Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIML
 
Cross-validation aggregation for forecasting
Cross-validation aggregation for forecastingCross-validation aggregation for forecasting
Cross-validation aggregation for forecasting
 
TIME SERIES & CROSS ‎SECTIONAL ANALYSIS
TIME SERIES & CROSS ‎SECTIONAL ANALYSISTIME SERIES & CROSS ‎SECTIONAL ANALYSIS
TIME SERIES & CROSS ‎SECTIONAL ANALYSIS
 
Deep Recurrent Neural Network for Multi-target Filtering
Deep Recurrent Neural Network for Multi-target FilteringDeep Recurrent Neural Network for Multi-target Filtering
Deep Recurrent Neural Network for Multi-target Filtering
 
Algorithms for detecting periodic patterns in millions of time series
Algorithms for detecting periodic patterns in millions of time seriesAlgorithms for detecting periodic patterns in millions of time series
Algorithms for detecting periodic patterns in millions of time series
 
a deep reinforced model for abstractive summarization
a deep reinforced model for abstractive summarizationa deep reinforced model for abstractive summarization
a deep reinforced model for abstractive summarization
 
Instantaneous Frequency Estimation Based On Time-Varying Auto Regressive Mode...
Instantaneous Frequency Estimation Based On Time-Varying Auto Regressive Mode...Instantaneous Frequency Estimation Based On Time-Varying Auto Regressive Mode...
Instantaneous Frequency Estimation Based On Time-Varying Auto Regressive Mode...
 
EDA and Preprocessing in Tabular and Text data .pptx
EDA and Preprocessing in Tabular and Text data .pptxEDA and Preprocessing in Tabular and Text data .pptx
EDA and Preprocessing in Tabular and Text data .pptx
 
Lesson 2 stationary_time_series
Lesson 2 stationary_time_seriesLesson 2 stationary_time_series
Lesson 2 stationary_time_series
 
Time series analysis
Time series analysisTime series analysis
Time series analysis
 
UG_B.Sc._Psycology_11933 –PSYCHOLOGICAL STATISTICS.pdf
UG_B.Sc._Psycology_11933 –PSYCHOLOGICAL STATISTICS.pdfUG_B.Sc._Psycology_11933 –PSYCHOLOGICAL STATISTICS.pdf
UG_B.Sc._Psycology_11933 –PSYCHOLOGICAL STATISTICS.pdf
 

More from Data Driven Innovation

Integrazione della mobilità elettrica nei sistemi urbani (Stefano Carrese, Un...
Integrazione della mobilità elettrica nei sistemi urbani (Stefano Carrese, Un...Integrazione della mobilità elettrica nei sistemi urbani (Stefano Carrese, Un...
Integrazione della mobilità elettrica nei sistemi urbani (Stefano Carrese, Un...Data Driven Innovation
 
La statistica ufficiale e i trasporti marittimi nell'era dei big data (Vincen...
La statistica ufficiale e i trasporti marittimi nell'era dei big data (Vincen...La statistica ufficiale e i trasporti marittimi nell'era dei big data (Vincen...
La statistica ufficiale e i trasporti marittimi nell'era dei big data (Vincen...Data Driven Innovation
 
How can we realize the Mobility as a Service (Maas) (Andrea Paletti, London S...
How can we realize the Mobility as a Service (Maas) (Andrea Paletti, London S...How can we realize the Mobility as a Service (Maas) (Andrea Paletti, London S...
How can we realize the Mobility as a Service (Maas) (Andrea Paletti, London S...Data Driven Innovation
 
Il DTC-Lazio e i dati del patrimonio culturale (Maria Prezioso, Università To...
Il DTC-Lazio e i dati del patrimonio culturale (Maria Prezioso, Università To...Il DTC-Lazio e i dati del patrimonio culturale (Maria Prezioso, Università To...
Il DTC-Lazio e i dati del patrimonio culturale (Maria Prezioso, Università To...Data Driven Innovation
 
CHNet-DHLab: Servizi Cloud a supporto dei beni culturali (Fabio Proietti, INF...
CHNet-DHLab: Servizi Cloud a supporto dei beni culturali (Fabio Proietti, INF...CHNet-DHLab: Servizi Cloud a supporto dei beni culturali (Fabio Proietti, INF...
CHNet-DHLab: Servizi Cloud a supporto dei beni culturali (Fabio Proietti, INF...Data Driven Innovation
 
Progetto EOSC-Pillar (Fulvio Galeazzi, GARR)
Progetto EOSC-Pillar (Fulvio Galeazzi, GARR)Progetto EOSC-Pillar (Fulvio Galeazzi, GARR)
Progetto EOSC-Pillar (Fulvio Galeazzi, GARR)Data Driven Innovation
 
Una infrastruttura per l’accesso al patrimonio culturale: il Progetto del Por...
Una infrastruttura per l’accesso al patrimonio culturale: il Progetto del Por...Una infrastruttura per l’accesso al patrimonio culturale: il Progetto del Por...
Una infrastruttura per l’accesso al patrimonio culturale: il Progetto del Por...Data Driven Innovation
 
Utilizzo dei Big data per l’analisi dei flussi veicolari e della mobilità (Ma...
Utilizzo dei Big data per l’analisi dei flussi veicolari e della mobilità (Ma...Utilizzo dei Big data per l’analisi dei flussi veicolari e della mobilità (Ma...
Utilizzo dei Big data per l’analisi dei flussi veicolari e della mobilità (Ma...Data Driven Innovation
 
I dati personali nell'analisi comportamentale della mobilità di dipendenti e ...
I dati personali nell'analisi comportamentale della mobilità di dipendenti e ...I dati personali nell'analisi comportamentale della mobilità di dipendenti e ...
I dati personali nell'analisi comportamentale della mobilità di dipendenti e ...Data Driven Innovation
 
Estrarre valore dai dati: tecnologie per ottimizzare la mobilità del futuro (...
Estrarre valore dai dati: tecnologie per ottimizzare la mobilità del futuro (...Estrarre valore dai dati: tecnologie per ottimizzare la mobilità del futuro (...
Estrarre valore dai dati: tecnologie per ottimizzare la mobilità del futuro (...Data Driven Innovation
 
Le piattaforme dati per la mobilità nelle città italiane (Marco Mena, EY)
Le piattaforme dati per la mobilità nelle città italiane (Marco Mena, EY)Le piattaforme dati per la mobilità nelle città italiane (Marco Mena, EY)
Le piattaforme dati per la mobilità nelle città italiane (Marco Mena, EY)Data Driven Innovation
 
WiseTown, un ecosistema di applicazioni e strumenti per migliorare la qualità...
WiseTown, un ecosistema di applicazioni e strumenti per migliorare la qualità...WiseTown, un ecosistema di applicazioni e strumenti per migliorare la qualità...
WiseTown, un ecosistema di applicazioni e strumenti per migliorare la qualità...Data Driven Innovation
 
CityOpenSource as a civic tech tool (Ilaria Vitellio, CityOpenSource)
CityOpenSource as a civic tech tool (Ilaria Vitellio, CityOpenSource)CityOpenSource as a civic tech tool (Ilaria Vitellio, CityOpenSource)
CityOpenSource as a civic tech tool (Ilaria Vitellio, CityOpenSource)Data Driven Innovation
 
Big Data Confederation: toward the local urban data market place (Renzo Taffa...
Big Data Confederation: toward the local urban data market place (Renzo Taffa...Big Data Confederation: toward the local urban data market place (Renzo Taffa...
Big Data Confederation: toward the local urban data market place (Renzo Taffa...Data Driven Innovation
 
Making citizens the eyes of policy makers: a sweet spot for hybrid AI? (Danie...
Making citizens the eyes of policy makers: a sweet spot for hybrid AI? (Danie...Making citizens the eyes of policy makers: a sweet spot for hybrid AI? (Danie...
Making citizens the eyes of policy makers: a sweet spot for hybrid AI? (Danie...Data Driven Innovation
 
Dall'Agenda Digitale alla Smart City: il percorso di Roma Capitale verso il D...
Dall'Agenda Digitale alla Smart City: il percorso di Roma Capitale verso il D...Dall'Agenda Digitale alla Smart City: il percorso di Roma Capitale verso il D...
Dall'Agenda Digitale alla Smart City: il percorso di Roma Capitale verso il D...Data Driven Innovation
 
Reusing open data: how to make a difference (Vittorio Scarano, Università di ...
Reusing open data: how to make a difference (Vittorio Scarano, Università di ...Reusing open data: how to make a difference (Vittorio Scarano, Università di ...
Reusing open data: how to make a difference (Vittorio Scarano, Università di ...Data Driven Innovation
 
Gestire i beni culturali con i big data (Sandro Stancampiano, Istat)
Gestire i beni culturali con i big data (Sandro Stancampiano, Istat)Gestire i beni culturali con i big data (Sandro Stancampiano, Istat)
Gestire i beni culturali con i big data (Sandro Stancampiano, Istat)Data Driven Innovation
 
Data Governance: cos’è e perché è importante? (Elena Arista, Erwin)
Data Governance: cos’è e perché è importante? (Elena Arista, Erwin)Data Governance: cos’è e perché è importante? (Elena Arista, Erwin)
Data Governance: cos’è e perché è importante? (Elena Arista, Erwin)Data Driven Innovation
 
Data driven economy: bastano i dati per avviare una start up? (Gabriele Anton...
Data driven economy: bastano i dati per avviare una start up? (Gabriele Anton...Data driven economy: bastano i dati per avviare una start up? (Gabriele Anton...
Data driven economy: bastano i dati per avviare una start up? (Gabriele Anton...Data Driven Innovation
 

More from Data Driven Innovation (20)

Integrazione della mobilità elettrica nei sistemi urbani (Stefano Carrese, Un...
Integrazione della mobilità elettrica nei sistemi urbani (Stefano Carrese, Un...Integrazione della mobilità elettrica nei sistemi urbani (Stefano Carrese, Un...
Integrazione della mobilità elettrica nei sistemi urbani (Stefano Carrese, Un...
 
La statistica ufficiale e i trasporti marittimi nell'era dei big data (Vincen...
La statistica ufficiale e i trasporti marittimi nell'era dei big data (Vincen...La statistica ufficiale e i trasporti marittimi nell'era dei big data (Vincen...
La statistica ufficiale e i trasporti marittimi nell'era dei big data (Vincen...
 
How can we realize the Mobility as a Service (Maas) (Andrea Paletti, London S...
How can we realize the Mobility as a Service (Maas) (Andrea Paletti, London S...How can we realize the Mobility as a Service (Maas) (Andrea Paletti, London S...
How can we realize the Mobility as a Service (Maas) (Andrea Paletti, London S...
 
Il DTC-Lazio e i dati del patrimonio culturale (Maria Prezioso, Università To...
Il DTC-Lazio e i dati del patrimonio culturale (Maria Prezioso, Università To...Il DTC-Lazio e i dati del patrimonio culturale (Maria Prezioso, Università To...
Il DTC-Lazio e i dati del patrimonio culturale (Maria Prezioso, Università To...
 
CHNet-DHLab: Servizi Cloud a supporto dei beni culturali (Fabio Proietti, INF...
CHNet-DHLab: Servizi Cloud a supporto dei beni culturali (Fabio Proietti, INF...CHNet-DHLab: Servizi Cloud a supporto dei beni culturali (Fabio Proietti, INF...
CHNet-DHLab: Servizi Cloud a supporto dei beni culturali (Fabio Proietti, INF...
 
Progetto EOSC-Pillar (Fulvio Galeazzi, GARR)
Progetto EOSC-Pillar (Fulvio Galeazzi, GARR)Progetto EOSC-Pillar (Fulvio Galeazzi, GARR)
Progetto EOSC-Pillar (Fulvio Galeazzi, GARR)
 
Una infrastruttura per l’accesso al patrimonio culturale: il Progetto del Por...
Una infrastruttura per l’accesso al patrimonio culturale: il Progetto del Por...Una infrastruttura per l’accesso al patrimonio culturale: il Progetto del Por...
Una infrastruttura per l’accesso al patrimonio culturale: il Progetto del Por...
 
Utilizzo dei Big data per l’analisi dei flussi veicolari e della mobilità (Ma...
Utilizzo dei Big data per l’analisi dei flussi veicolari e della mobilità (Ma...Utilizzo dei Big data per l’analisi dei flussi veicolari e della mobilità (Ma...
Utilizzo dei Big data per l’analisi dei flussi veicolari e della mobilità (Ma...
 
I dati personali nell'analisi comportamentale della mobilità di dipendenti e ...
I dati personali nell'analisi comportamentale della mobilità di dipendenti e ...I dati personali nell'analisi comportamentale della mobilità di dipendenti e ...
I dati personali nell'analisi comportamentale della mobilità di dipendenti e ...
 
Estrarre valore dai dati: tecnologie per ottimizzare la mobilità del futuro (...
Estrarre valore dai dati: tecnologie per ottimizzare la mobilità del futuro (...Estrarre valore dai dati: tecnologie per ottimizzare la mobilità del futuro (...
Estrarre valore dai dati: tecnologie per ottimizzare la mobilità del futuro (...
 
Le piattaforme dati per la mobilità nelle città italiane (Marco Mena, EY)
Le piattaforme dati per la mobilità nelle città italiane (Marco Mena, EY)Le piattaforme dati per la mobilità nelle città italiane (Marco Mena, EY)
Le piattaforme dati per la mobilità nelle città italiane (Marco Mena, EY)
 
WiseTown, un ecosistema di applicazioni e strumenti per migliorare la qualità...
WiseTown, un ecosistema di applicazioni e strumenti per migliorare la qualità...WiseTown, un ecosistema di applicazioni e strumenti per migliorare la qualità...
WiseTown, un ecosistema di applicazioni e strumenti per migliorare la qualità...
 
CityOpenSource as a civic tech tool (Ilaria Vitellio, CityOpenSource)
CityOpenSource as a civic tech tool (Ilaria Vitellio, CityOpenSource)CityOpenSource as a civic tech tool (Ilaria Vitellio, CityOpenSource)
CityOpenSource as a civic tech tool (Ilaria Vitellio, CityOpenSource)
 
Big Data Confederation: toward the local urban data market place (Renzo Taffa...
Big Data Confederation: toward the local urban data market place (Renzo Taffa...Big Data Confederation: toward the local urban data market place (Renzo Taffa...
Big Data Confederation: toward the local urban data market place (Renzo Taffa...
 
Making citizens the eyes of policy makers: a sweet spot for hybrid AI? (Danie...
Making citizens the eyes of policy makers: a sweet spot for hybrid AI? (Danie...Making citizens the eyes of policy makers: a sweet spot for hybrid AI? (Danie...
Making citizens the eyes of policy makers: a sweet spot for hybrid AI? (Danie...
 
Dall'Agenda Digitale alla Smart City: il percorso di Roma Capitale verso il D...
Dall'Agenda Digitale alla Smart City: il percorso di Roma Capitale verso il D...Dall'Agenda Digitale alla Smart City: il percorso di Roma Capitale verso il D...
Dall'Agenda Digitale alla Smart City: il percorso di Roma Capitale verso il D...
 
Reusing open data: how to make a difference (Vittorio Scarano, Università di ...
Reusing open data: how to make a difference (Vittorio Scarano, Università di ...Reusing open data: how to make a difference (Vittorio Scarano, Università di ...
Reusing open data: how to make a difference (Vittorio Scarano, Università di ...
 
Gestire i beni culturali con i big data (Sandro Stancampiano, Istat)
Gestire i beni culturali con i big data (Sandro Stancampiano, Istat)Gestire i beni culturali con i big data (Sandro Stancampiano, Istat)
Gestire i beni culturali con i big data (Sandro Stancampiano, Istat)
 
Data Governance: cos’è e perché è importante? (Elena Arista, Erwin)
Data Governance: cos’è e perché è importante? (Elena Arista, Erwin)Data Governance: cos’è e perché è importante? (Elena Arista, Erwin)
Data Governance: cos’è e perché è importante? (Elena Arista, Erwin)
 
Data driven economy: bastano i dati per avviare una start up? (Gabriele Anton...
Data driven economy: bastano i dati per avviare una start up? (Gabriele Anton...Data driven economy: bastano i dati per avviare una start up? (Gabriele Anton...
Data driven economy: bastano i dati per avviare una start up? (Gabriele Anton...
 

Recently uploaded

Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...karishmasinghjnh
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...amitlee9823
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceDelhi Call girls
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNKTimothy Spann
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...amitlee9823
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...amitlee9823
 

Recently uploaded (20)

Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Hsr Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Hsr Layout ☎ 7737669865 🥵 Book Your One night Stand
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 

Forecasting emergency department patients volumes with ML (Giammarco Quaglia, Ospedale Pediatrico Bambino Gesù)

  • 1. Forecasting emergency department patients volumes with Machine Learning An examination of ML techniques
  • 2. Disclaimers ● Data come from Sant’Andrea Hospital of Rome. ● The analysis focuses on the emergency department patients volumes prediction, not with optimization of emergencies management.
  • 3. Outline 1. Introduction 2. Data 3. Time series theory 4. Prediction models 4.1. Basic forecasting models 4.2. ARIMA 4.3. Exponential Smoothing 4.4. Neural Networks 5. Conclusions
  • 4. Outline 1. Introduction 2. Data 3. Time series theory 4. Prediction models 4.1. Basic forecasting models 4.2. ARIMA 4.3. Exponential Smoothing 4.4. Neural Networks 5. Conclusions
  • 5. Introduction ● Examination of some ML techniques for time series forecasting ● Case study: ED visits data from Roman hospital with the goal to predict ED weekly visits
  • 6. Outline 1. Introduction 2. Data 3. Time series theory 4. Prediction models 4.1. Basic forecasting models 4.2. ARIMA 4.3. Exponential Smoothing 4.4. Neural Networks 5. Conclusions
  • 7. Data ● Dataset ○ 5 years of data: 2014 → 2018 ● Year by year average number of weekly ER visits 2014 2015 2016 2017 2018 mean 136 150 146 152 132
  • 10. Data visualization: seasonal plot ● 2014 ○ plunge at ~ end of August / September
  • 11. Data visualization: seasonal plot ● 2014 ○ plunge at ~ end of August / September ● 2015
  • 12. Data visualization: seasonal plot ● 2014 ○ plunge at ~ end of August / September ● 2015 ● 2016
  • 13. Data visualization: seasonal plot ● 2014 ○ plunge at ~ end of August / September ● 2015 ● 2016 ● 2017 Seasonality!
  • 14. Data visualization: seasonal plot ● Polar representation ● Peak in the S-W → July 2018
  • 15. Outline 1. Introduction 2. Data 3. Time series theory 4. Prediction models 4.1. Basic forecasting models 4.2. ARIMA 4.3. Exponential Smoothing 4.4. Neural Networks 5. Conclusions
  • 16. Time series decomposition Time series components: 1. Trend 2. Seasonality 3. Random
  • 17. Time series decomposition Time series components: 1. Trend 2. Seasonality 3. Random ❏ Additive
  • 18. Time series decomposition Time series components: 1. Trend 2. Seasonality 3. Remainder ❏ Additive ❏ Multiplicative
  • 19. Time series decomposition data season trend remainder Time series components: 1. Trend 2. Seasonality 3. Remainder
  • 20. Outline 1. Introduction 2. Data 3. Time series theory 4. Prediction models 4.1. Basic forecasting models 4.2. ARIMA 4.3. Exponential Smoothing 4.4. Neural Networks 5. Conclusions
  • 21. Prediction models: 1) basic forecasting models ● Naive model: ● Seasonal Naive: ● Drift: allows increasing ● Mean
  • 22. Outline 1. Introduction 2. Data 3. Time series theory 4. Prediction models 4.1. Basic forecasting models 4.2. ARIMA 4.3. Exponential Smoothing 4.4. Neural Networks 5. Conclusions
  • 23. Prediction models: 2) ARIMA ● ARIMA methods rely on a linear forecasting model in which the independent variables (or regressors) is the variable itself but at different times in the past → autoregressor (AR) ● As usual with LM collinearity (correlations among regressors) must be avoided ● Autocorrelation checks to establish if the time series is stationary ● If it is not: differencing
  • 24. Prediction models: 2) ARIMA: - Autocorrelation ● Autocorrelation measures the linear relationship between lagged values of a time series ● Trended time series tend to have positive values that decrease as the lags increase (small here)
  • 25. Prediction models: 2) ARIMA - Autocorrelation ● Autocorrelations will be larger for the seasonal lags (at multiples of the seasonal frequency) ● Here peaks at about every 25 weeks (~6 months)
  • 26. Prediction models: 2) ARIMA - Differencing Differencing checks data log season differenced differenced
  • 27. Prediction models: 2) ARIMA Non seasonal ARIMA: - differencing with autoregression and a moving average model. 80% and 90% confidence intervals shown in shaded areas
  • 28. Prediction models: 2) SARIMA Seasonal ARIMA: - differencing with autoregression, a moving average model and a seasonal component, D=n. of seasonal differences.
  • 29. Outline 1. Introduction 2. Data 3. Time series theory 4. Prediction models 4.1. Basic forecasting models 4.2. ARIMA 4.3. Exponential Smoothing 4.4. Neural Networks 5. Conclusions
  • 30. Prediction models: 3) exponential smoothing ● Forecasts = weighted averages of past observations. ● Weights decaying exponentially as the observations get older. ● The more recent the observation the higher the associated weight and so the more similar the forecasted value will be to it. If α is close to 1: more weight to the more recent observations.
  • 31. Prediction models: 3) Holt method ● test ● Damped Dampening the trend so that it approaches a constant some time in the future ● Holt’s method
  • 32. Prediction models: 3) Holt - Winter ● H-W = seasonal Holt method ● Better results with seasonal ● Though it underestimates the seasonality
  • 33. Outline 1. Introduction 2. Data 3. Time series theory 4. Prediction models 4.1. Basic forecasting models 4.2. ARIMA 4.3. Exponential Smoothing 4.4. Neural Networks 5. Conclusions
  • 34. Prediction models: 4) Neural Networks A neural network can be thought of as a network of neurons organized in layers. ● The first layer is the input layer ● The last one is output layer ● Intermediate layers are called hidden. With time series data, lagged values of the time series can be used as inputs: neural network autoregression or NNAR.
  • 35. Prediction models: 4) NNAR ● neural network autoregression or NNAR model.
  • 36. Conclusions ● Limitation of the analysis: ○ weekly data is difficult to work with because the seasonal period (the number of weeks in a year) is both large and non-integer. The average number of weeks in a year is 52.18. Most of the methods we have considered require the seasonal period to be a not too large integer. ○ cyclics (mid of 2018 spike) unpredictable ● Future developments: ○ SARIMAX: X stand for exogenuous variables
  • 37.
  • 38.
  • 39.
  • 40. Time series decomposition: STL data season trend remainder ● Seasonal and Trend decomposition using Loess ● The seasonal component is allowed to change over time.