Research Article

Machine Learning Approaches to Predict Patient’s Length of Stay in Emergency Department

Table 3

Descriptive statistical results of categorical variables.

Categorical attributeAttribute typeDetailsOccurrence (%)Number of records

Day of the monthInput1, 2, 9, 12, 13, 15, 18, 22, 23, 2810.0 each40 each

MonthInput1, 2, 3, 4, 5, 6, 7, 8, 9, 1010.0 each40 each

DayInput1: Friday13.052
2: Saturday15.060
3: Sunday13.554
4: Monday13.554
5: Tuesday15.060
6: Wednesday15.562
7: Thursday14.558

YearInput201950.0200
202050.0200

GenderInput1: female46.5186
2: male53.5214

InsuranceInput1: insured74.0296
0: cash26.0104

Mode of arrivalInput1: ambulatory53.5214
2: ambulance46.5186

Immediate treatmentInput0: not taken99.5398
1: taken0.52

Triage levelInput1: level 10.52
2: level 22.08
3: level 320.582
4: level 457.3229
5: level 519.779

MedicationInput1: taken54.0216
0: not taken46.0184

ConsultationInput1: taken75.0300
0: not taken25.0100

CBCInput1: taken25.7103
0: not taken74.3297

KFTInput1: taken17.570
0: not taken82.5330

LFTInput1: taken4.719
0: not taken95.3381

Cardiac enzymesInput1: taken6.827
0: not taken93.2373

RBSInput1: taken3.012
0: not taken97.0388

CRBInput1: taken4.518
0: not taken95.5382

AmylaseInput1: taken1.04
0: not taken99.0396

LipaseInput1: taken2.39
0: not taken97.7391

Urine analysisInput1: taken6.024
0: not taken94.0376

Stool analysisInput1: taken1.35
0: not taken98.7395

ABGSInput1: taken0.52
0: not taken99.5398

PT, INRInput1: taken1.87
0: not taken98.2393

PTTInput1: taken0.31
0: not taken99.7399

Urine cultureInput1: taken0.31
0: not taken99.7399

UreaInput1: taken0.52
0: not taken99.5398

CreatinineInput1: taken1.04
0: not taken99.0396

TroponinInput1: taken1.04
0: not taken99.0396

XrayInput1: taken15.863
0: not taken84.2337

UltrasoundInput1: taken1.87
0: not taken98.2393

CT scanInput1: taken2.811
0: not taken97.2389

MRIInput1: taken0.83
0: not taken99.2397

OthersInput1: taken23.393
0: not taken76.7307

BMPInput1: taken2.811
0: not taken97.2389

LockdownInput0: no lockdown63.0252
1: lockdown6.024
2: partial ban from 6 pm to 10 am, walking on foot1.56
3: part-time and work permits granted4.016
4: odd, even cars from 8 am to 7 pm3.514
5: partial ban 11 pm–6 am0.52
6: partial ban 1 pm–6 am2.510
7: partial ban 12 pm–6 am19.076

CATOutput3 categories:
1: 0–10083.0332
2: 101–20014.357
3: 201–3002.711
5 categories:
1: 0–6053.0212
2: 61–12034.5138
3: 121–1808.032
4: 181–2402.811
5: 241–3001.77