1 of 37

Queueing Analytics: Machine Learning, Causal Queueing, and SiMLQ for Data Driven Simulation

Berkely, Sept 2025

Presenter: Opher Baron1

Joint work with Shany Azaria1, Dmitry Krass1, Mark J. van der Laan2, Eliran Scherzer1, Arik Senderovich3, Yehezkel Reshef1, Zhenghang Xu1

1Rotman School of Management, University of Toronto and SiMLQ, HUIJ

2Department of Statistics, University of California, Berkeley

3School of Information Technology, York University and SiMLQ

1

2 of 37

Research Team

Opher Baron Distinguished Professor of Operations Management�University of Toronto

Prev.: Consulting

Dmitry Krass Sydney Cooper Chair in Business & Technology

University of Toronto

Prev.: Consulting, Custometrics Inc. (co- founder)

Arik SenderovichAst. Professor School of Information Technologies �York University

Prev.: Mindzie (academic advisor)

Dr. Shany Azaria

Dr. Yehezkel Reshef

SiMLQ // From Data to Action!

Dr. Eliran Sherzer

Mr. Zhengheng Xu

Prof. Mark J. Van der Laan

3 of 37

Spheres of Business Analytics: �Two Dimensions (Extending Baron, 2021)

3

 

Future

 

Past

  Existing System Alternative Systems Better Systems

Predictive analytics

Prescriptive

Analytics

Descriptive analytics

Comp-

arative

Analytics

How long would customers wait if we adopt policies that we have not observed?

4 of 37

How Should We Study & Teach Queueing?

  1. They are everywhere:
      • Service: banks, buses
      • Manufacturing: WIP is inventory in a queue
      • Traffic jams…
  2. After analysis their performances can be improved

But:

  1. Can we develop analytics to improve congested systems?
  2. Would today’s simulations suffice?
  3. From Process Mining to QueueMiner

Queueing: why do I care?

5 of 37

Queueing: What do we need to learn?

5

A/B/C/X/Y/Z:

  • A - Arrivals (Poisson/appointment based/empirical …)
  • B - Service times (Exponential/lognormal/empirical/ML…)
  • C - Servers’ capacity (static/dynamic/∞/ML)
  • X - Queue capacity (finite/infinite)
  • Y - Service policy (FCFS, LCFS, Processor Sharing/…)
  • Z - Routing scheme in queueing networks (Markovian/empirical…)

All of these may be state dependent

6 of 37

Management Analytics in Queueing

  • Descriptive analytics: How long did customers wait at 11:00am?
  • Predictive analytics: How long will customers wait at 1:00pm?
  • Comparative analytics: How long would customers wait if service speed changed at 11:00am (by changing staff, etc.)?
  • Prescriptive analytics: What is the optimal staffing level?

6

7 of 37

Topics of the day ☺

  • Management Analytics
  • Causal Queueing Models
  • SiMLQ From Data to Action! www.SiMLQ.com

7

SiMLQ // From Data to Action!

8 of 37

Use Data for Comparative Analytics of Queues

  • Queueing theorist:
    • Known arrival / service process and queueing dynamics
    • Exact analysis (or approximations)
    • Parameters Estimation
    • E.g., Pollaczek-Khinchine formula for E(wait) in M/G/1

8

  • Data scientist:
    • Unknown arrival / service process / queueing dynamics
    • Causal models
    • Statistics and ML

Can data be used for comparative analytics of queues �– with limited domain and queueing knowledge?

9 of 37

Structural Causal Queueing Models (SCQM)

  1. Develop structural causal queueing models (SCQM)
  2. Establish a data-driven estimation roadmap for using SCQM
  3. Numerically test performance

9

Knowledge of system and queueing theory does not help much in performing data-driven comparative analytics

 

10 of 37

Using Data (Event Logs) in Queueing

10

Queueing �Theorist

Data �Scientist

General solution

  1. Estimate queueing primitives
  2. Use the estimation with QT solution methods
  1. Define the default parent set
  2. Refine the parent set
  3. Estimate structural assignment functions
  4. Monte-Carlo simulation

Example

(M/M/1 with speed-ups)

  1. Estimate arrival rates, service rates
  2. Use Pollaczek-Khinchine

  1. Define the default parent set
  2. Refine the parent set
  3. Estimate structural assignment functions:
    1. Estimate likelihood functions
    2. Estimate Lindely’s recursion
  4. Monte-Carlo simulation

11 of 37

Related Works

  • Queueing theoryPollaczek (1930), Khinchin(1967), Wang et al. (2015), Yom-Tov and Mandelbaum (2014)
  • Learning in queuesPalomo and Pender (2020, 2021), Baron et al. (2022), Pender and Zhang (2021)

11

  • Granger Causality�Maziarz (2015), Shojaie and Fox (2022), Tank et al. (2021), Song et al. (2023)
  • Causal inference under interference�Tchetgen and Van der Weele (2012), Farias et al. (2022), Li et al. (2023), Ding (2024)
  • G-computation, causal inference with longitudinal dataRobins (1986), Neugebauer and van der Laan (2007), Stitelman and van der Laan (2010), Rytgaard et al. (2022)

12 of 37

Event Log from an M/M/1 w. Speed-up

  •  

12

Arrival

Last Arrival

 

 

 

Service End

time

 

 

13 of 37

Queueing Theorist Approach

  •  

13

This is the gold standard

14 of 37

Using Data (Event Logs) in Queueing

14

Queueing �Theorist

Data �Scientist

General solution

  1. Define the default parent set
  2. Refine the parent set
  3. Estimate structural assignment functions
  4. Monte-Carlo simulation

Example

(M/M/1 with speed-ups)

15 of 37

SCQM: Event Logs

  •  

15

Arrival

Last Arrival

Service End

time

 

Observed variables (so far):

Service Start

 

 

 

 

 

16 of 37

SCQM: Parents Set and Its Refinement

  •  

16

 

 

 

17 of 37

SCQM: Assignment Function

  •  

17

 

 

18 of 37

Using Data (Event Logs) in Queueing

18

Queueing �Theorist

Data �Scientist

General solution

Example

(M/M/1 with speed-ups)

  1. Define the default parent set
  2. Refine the parent set
  3. Estimate structural assignment functions:
    1. Estimate likelihood functions
    2. Estimate Lindely’s recursion
  4. Monte-Carlo simulation

19 of 37

SCQM in M/M/1 with Speed-ups

  • Parent set: Causal graph
  • Assignment functions: Known
  • Evaluate:
    • Likelihood function
    • Lindley’s recursion
    • W. intervention: G-comp.

19

Lindley’s recursion:

 

This is the �gold standard

20 of 37

Causal Model Learning

  •  

20

 

 

21 of 37

Numerical Results: M/M/1 with speed-ups

  •  

21

22 of 37

Numerical Results: G/M/1 with speed-ups

  • Uniform inter-arrival time
  • Queueing theorists: no exact solution -> use approximations

22

No-closed form => ML solution

23 of 37

Generalizing the SCQM

  •  

23

24 of 37

Structural Causal Queueing Models (SCQM)

  1. Develop structural causal queueing models (SCQM)
  2. Establish a data-driven estimation roadmap for using SCQM
  3. Numerically test performance (G/G/k, Tandem…)
  4. An important tool for modern QT!

24

Knowledge of system and queueing theory does not help much in performing data-driven comparative analytics

 

25 of 37

Topics of the day ☺

  • Management Analytics
  • ML for queueing
    • Can machines solve general queueing systems? (GI/G/1)
    • Approximating G(t)/G/1 queues with deep learning
  • Causal Queueing Models
  • SiMLQ From Data to Action! www.SiMLQ.com

25

SiMLQ // From Data to Action!

26 of 37

From Data to Action!

Automating data-driven

process management using:

Simulation and

Machine

Learning for

Queues

www.SiMLQ-emrgency.com

27 of 37

Digital Twin Processes

27

07

06

04

02

03

01

05

1. Data collection (IT)

5. What if analysis

6. Action Selection

7. Action!

4. Simulation & ML

3. Process map and dashboard

2. Event Log

#

Activity

Time

1

A

8:00

2

A

8:10

1

B

8:11

www.SiMLQ-emrgency.com

www.SiMLQ.com

// From Data to Action!

28 of 37

A More ‘Real’ Process

Shift Effect and Its Impact in Emergency Departments

28

Malekzadeh, Parvin

RAZ

NON RAZ

29 of 37

The SiMLQ team

29

Vladislav Nagovitsyn

Ali Jandaghi Alaee

Dr. Shany Azaria

Dr. Parvin Malekzadeh

Arik Senderovich, CTO�

Dmitry Krass, CSO

Opher Baron, CEO

Amirmohammad Naeini

www.SiMLQ-emrgency.com

www.SiMLQ.com

// From Data to Action!

30 of 37

RESEARCH AGENDA ON COURT CONGESTION

30

July 2024

31 of 37

Main takeaways:

  • Management Analytics
    1. Comparative and prescriptive analytics
  • ML for queueing
    • Quick accurate solutions for single server queues
  • Causal Queueing Models
    • Introduced SCQM that uses data to express PI without domain and queueing knowledge
  • SiMLQ From Data to Action! www.SiMLQ.com
    • Scalable Software from Data to Action!

31

SiMLQ // From Data to Action!

32 of 37

Thanks!�QNA?

32

  • Presenter: Opher Baron1
  • Joint work with Shany Azaria1, Dmitry Krass1, Mark J. van der Laan2, Eliran Scherzer1, Arik Senderovich3, Yehezkel Reshef1, Zhenghang Xu1

  • 1Rotman School of Management, University of Toronto and SiMLQ
  • 2Department of Statistics, University of California, Berkeley
  • 3School of Information Technology, York University and SiMLQ

SiMLQ // From Data to Action!

33 of 37

Special Issue on Service Engineering: Data Driven Service Design and Optimization Guest Editors: Opher Baron, Arik Senderovich, Desheng (Dash) Wu

  • Submission deadline: October 1, 2025
  • Service design: Data and its processing facilitate modern business models such as sharing or platform operations. How can data improve resource usage and welfare in these businesses?
  • Service optimization: Using data to set optimal capacity or design systems that maximize efficiency, reduce wait times, and improve resource allocation across various service industries. How can data be used to set optimal service capacity and design systems that maximize efficiency, reduce wait times, and improve resource allocation across various touchpoints?
  • Enhanced customer experience: Analytics can help service businesses to better understand their customers’ needs and preferences, leading to more personalized and effective ongoing and new services and improved tailored service recommendations.
  • Information technology in support of service: Data can support the automatic creation, monitoring, and management of business processes, for example, via highlighting automation opportunities or enhancing the usage of digital twins.
  • Adoption of advanced information technology in services: Modern information technology and algorithms can support services, for example, in high-frequency trading, and AI in support of diagnostics in healthcare, but their adoption often faces difficulties. How can these difficulties be overcome?
  • Usage of on-line data: Access to real-time data provides businesses with insights into their performance, allowing them to make informed decisions on their operational, tactical, and strategic initiatives.
  • Applications of AI&ML: Recent algorithms, such as LLM, can overhaul business management, for example, by improving customer support. How could service business use AI&ML to improve productivity?
  • Improved risk management in services: By analyzing historical data and identifying potential risks, service businesses can make informed decisions about lending, investing, credit rating, and other financial activities.

// From Data to Action!

34 of 37

Related Works

  • Queueing theoryPollaczek (1930), Khinchin(1967), Wang et al. (2015), Yom-Tov and Mandelbaum (2014)
  • Learning in queuesPalomo and Pender (2020, 2021), Baron et al. (2022), Pender and Zhang (2021)
  • Granger Causality�Maziarz (2015), Shojaie and Fox (2022), Tank et al. (2021), Song et al. (2023),
  • Causal inference under interference�Hudgens and Halloran (2008), Tchetgen and VanderWeele (2012), Farias et al. (2022), Li et al. (2023), Ding (2024)
  • G-computation, causal inference with longitudinal dataRobins (1986), Neugebauer and van der Laan (2007), Stitelman and van der Laan (2010), Petersen et al. (2014), Rytgaard et al. (2022)

34

35 of 37

Parent Set Refinement

  •  

35

L1 regularization

 

36 of 37

 

36

37 of 37

Team

Software development and implementation

Opher Baron Distinguished Professor of Operations Management�University of Toronto

Prev.: Consulting

Dmitry Krass Sydney Cooper Chair in Business & Technology

University of Toronto

Prev.: Consulting, Custometrics Inc. (co- founder)

Arik SenderovichAst. Professor School of Information Technologies �York University

Prev.: Mindzie (academic advisor)

Dev. Team

Research Team

Vladislav Nagovitsyn

Seyedsepehr Fazely Petrodi

Dr. Shany Azaria

Dr. Yehezkel Reshef

Data Sci.

Ali Jandaghi Alaee

75+ years of innovative research, teaching, and consulting

Data + AI, simulation, optimization, queueing, process management, business analytics for strategic decisions

SiMLQ // From Data to Action!