北北基都會急診與加護病房壅塞之區域溢出效應:整合開源資料與人工智慧之分析
Regional Spillover Effects of Emergency Department and Intensive Care Unit Crowding in the Taipei Metropolitan Area: An Integrated Analysis Using Open Data and Machine Learning Methods
摘要
急診壅塞為全球醫療體系之共同挑戰,然既有研究多聚焦單一醫院,對都會區內醫院間之區域溢出效應缺乏系統性實證。本研究以全數納入北北基(臺北市、新北市、基隆市)19 家重度級急救責任醫院及鄰接之林口長庚紀念醫院(合稱北北基暨林口走廊,共 20 家;週期性分析之 RQ3 另納入宜蘭 2 家,共 22 家)為對象,利用自建之 NERD-Monitor 即時監控資料庫擷取 2026 年 2 月 10 日至 4 月 6 日共 56 天之急診即時訊息快照(聚合為 1,043 個有效小時觀測)進行研究,輔以衛生福利部台北區緊急醫療應變中心(EOC)之長期逐日彙整報表作為長期背景描述。
本研究從空間、時間與院內結構三個維度設定八項研究問題:研究問題一(RQ1):北北基都會區急診壅塞是否具有空間聚集性?研究問題二(RQ2):台北市與基隆市急診壅塞之間是否存在時間領先-滯後關係?研究問題三(RQ3):急診壅塞是否具有日內、週內或假日效應等時間週期性?研究問題四(RQ4):各醫院急診壅塞之間的相互影響係數為何?哪些醫院之相對空間乘數位置最為突出?研究問題五(RQ5):ICU 壅塞與急診壅塞之間是否存在雙向的時序領先關係?研究問題六(RQ6):北北基都會區醫院之間的壅塞溢出效應有多大?其傳導網路結構為何?研究問題七(RQ7):春節醫療量能整備方案是否有效緩解了急診壅塞?研究問題八(RQ8):機器學習能否基於時間特徵與空間鄰居資訊預測個別醫院的急診壅塞?
對應方法包括空間統計(RQ1、RQ4),Granger 聯合排除檢定、VAR 與 IRF(RQ2、RQ5),交叉相關函數(RQ2),STL 分解與 K-means 分群(RQ3),成對 Granger 溢出網路與預測誤差變異數分解(FEVD;RQ6),中斷時間序列分析(ITSA;RQ7),以及持續性基線(persistence baseline)與機器學習(梯度提升樹)模型之預測比較(RQ8)。RQ2、RQ5、RQ6 之落後結構分析與 RQ8 之預測網格均以日曆時間正確對位之樣本執行,並以多重比較校正(BH-FDR、Bonferroni)與多重敏感度設定檢驗穩健性。
研究結果顯示,急診壅塞之空間關聯主要以時間滯後形式呈現,而非同時刻之截面聚集:截面空間自相關未偵測到聚集(Moran's I = 0.019,p = 0.887)、空間滯後效果微弱(ρ = 0.05,信賴區間含零),但面板時空分析(採 Z/C 規模校正指標)顯示一致之正向動態關聯(各滯後 p = 0.001,999 次排列之可報下限;探索性面板檢定),且成對 Granger 網路中 267/380(70.3%)之配對存在顯著時序預測關係(依原設計之探索性主分析),此廣泛顯著之型態於嚴格門檻(q < 0.01)、固定落後階數(67.6%–68.2%)、更保守校正(BY 53.4%、Bonferroni 34.7%)與排除春節之檢驗下均一致。惟上述 RQ2、RQ5、RQ6 之時序預測結構對共同日內節律之控制方式敏感——固定比較落後階數後,加入小時與星期類別控制下台北→基隆(p = 0.067)與 ICI→ACI(p = 0.598)均未達顯著、RQ6 顯著配對由 259 降為 46,低維 harmonic 控制下部分關係仍在;此為事後探索性敏感度,故 RQ2、RQ5、RQ6 宜定位為未條件化之時序同步與預測結構,不作直接病人傳遞或獨立因果機制之證據。台北—基隆之跨次都會分析顯示,台北至基隆方向之時序預測性於原設計之未條件化落後階數與子時窗設定中較一致(F = 4.658,p < 0.001),反向則對設定敏感。院內結構方面,加護病房壅塞指數(ICI)對急診住院壅塞指數(ACI)之時序領先於落後階數 3 至 6 小時達顯著(選定階數 4:F = 7.98,p < 0.001),且於差分、排除春節等設定下維持,反向關係則設定敏感;個別醫院層級 10/20 家通過 BH-FDR 校正(各院最佳落後階數下之探索性名單;若改以全網固定落後階數 4 則僅 1/20 家達顯著,顯示此一院級名單對落後階數設定高度敏感)。週期分析顯示壅塞以星期二最高(29.07 人)、每日 12:00 前後出現描述性轉折,與住院端決策節奏之解讀相容。春節政策評估顯示壅塞於春節期間顯著下降(層級變化 β₂ = −14.40 人,原始 p < 0.001;探索性 ITSA,政策與假期效應無法分離),惟整體回補率對反事實基準高度敏感(主設定 38.1%、替代設定 2.2%–5.1%),整體序列於觀測窗內未見完整回補;子群結果差異甚大(晨間高原型 26.94%、午後尖峰型 144.84%),僅作探索性描述。機器學習比較顯示,於本資料規模下持續性基線(persistence baseline)相對梯度提升樹具方向優勢(20 家中 19 家 persistence 平均誤差較低;院級主要比較經 Bonferroni 校正後 p = 0.0566、未達 .05 顯著門檻),複雜模型之邊際貢獻有限。
綜合而言,北北基暨林口走廊之急診壅塞在同時刻未呈現明顯空間聚集,但在原設計分析中呈現廣泛的時序同步與預測關係;院內分析則顯示,加護病房壅塞指數(ICI)在時序上領先急診住院壅塞指數(ACI)。惟上述結果對共同日內節律之控制方式與模型設定敏感,應視為探索性的預測結構,而非直接病人傳遞或獨立因果機制之證據;在本研究之資料規模與預測設計下,持續性基線之表現亦不遜於梯度提升樹,顯示複雜模型的額外效益有限。實務上,急診壅塞治理可由急診端延伸至區域動態監測、住院床位流動與加護病房出口管理,並以前瞻資料驗證結合簡單預測基線與區域滯後資訊之預警系統。
本研究從空間、時間與院內結構三個維度設定八項研究問題:研究問題一(RQ1):北北基都會區急診壅塞是否具有空間聚集性?研究問題二(RQ2):台北市與基隆市急診壅塞之間是否存在時間領先-滯後關係?研究問題三(RQ3):急診壅塞是否具有日內、週內或假日效應等時間週期性?研究問題四(RQ4):各醫院急診壅塞之間的相互影響係數為何?哪些醫院之相對空間乘數位置最為突出?研究問題五(RQ5):ICU 壅塞與急診壅塞之間是否存在雙向的時序領先關係?研究問題六(RQ6):北北基都會區醫院之間的壅塞溢出效應有多大?其傳導網路結構為何?研究問題七(RQ7):春節醫療量能整備方案是否有效緩解了急診壅塞?研究問題八(RQ8):機器學習能否基於時間特徵與空間鄰居資訊預測個別醫院的急診壅塞?
對應方法包括空間統計(RQ1、RQ4),Granger 聯合排除檢定、VAR 與 IRF(RQ2、RQ5),交叉相關函數(RQ2),STL 分解與 K-means 分群(RQ3),成對 Granger 溢出網路與預測誤差變異數分解(FEVD;RQ6),中斷時間序列分析(ITSA;RQ7),以及持續性基線(persistence baseline)與機器學習(梯度提升樹)模型之預測比較(RQ8)。RQ2、RQ5、RQ6 之落後結構分析與 RQ8 之預測網格均以日曆時間正確對位之樣本執行,並以多重比較校正(BH-FDR、Bonferroni)與多重敏感度設定檢驗穩健性。
研究結果顯示,急診壅塞之空間關聯主要以時間滯後形式呈現,而非同時刻之截面聚集:截面空間自相關未偵測到聚集(Moran's I = 0.019,p = 0.887)、空間滯後效果微弱(ρ = 0.05,信賴區間含零),但面板時空分析(採 Z/C 規模校正指標)顯示一致之正向動態關聯(各滯後 p = 0.001,999 次排列之可報下限;探索性面板檢定),且成對 Granger 網路中 267/380(70.3%)之配對存在顯著時序預測關係(依原設計之探索性主分析),此廣泛顯著之型態於嚴格門檻(q < 0.01)、固定落後階數(67.6%–68.2%)、更保守校正(BY 53.4%、Bonferroni 34.7%)與排除春節之檢驗下均一致。惟上述 RQ2、RQ5、RQ6 之時序預測結構對共同日內節律之控制方式敏感——固定比較落後階數後,加入小時與星期類別控制下台北→基隆(p = 0.067)與 ICI→ACI(p = 0.598)均未達顯著、RQ6 顯著配對由 259 降為 46,低維 harmonic 控制下部分關係仍在;此為事後探索性敏感度,故 RQ2、RQ5、RQ6 宜定位為未條件化之時序同步與預測結構,不作直接病人傳遞或獨立因果機制之證據。台北—基隆之跨次都會分析顯示,台北至基隆方向之時序預測性於原設計之未條件化落後階數與子時窗設定中較一致(F = 4.658,p < 0.001),反向則對設定敏感。院內結構方面,加護病房壅塞指數(ICI)對急診住院壅塞指數(ACI)之時序領先於落後階數 3 至 6 小時達顯著(選定階數 4:F = 7.98,p < 0.001),且於差分、排除春節等設定下維持,反向關係則設定敏感;個別醫院層級 10/20 家通過 BH-FDR 校正(各院最佳落後階數下之探索性名單;若改以全網固定落後階數 4 則僅 1/20 家達顯著,顯示此一院級名單對落後階數設定高度敏感)。週期分析顯示壅塞以星期二最高(29.07 人)、每日 12:00 前後出現描述性轉折,與住院端決策節奏之解讀相容。春節政策評估顯示壅塞於春節期間顯著下降(層級變化 β₂ = −14.40 人,原始 p < 0.001;探索性 ITSA,政策與假期效應無法分離),惟整體回補率對反事實基準高度敏感(主設定 38.1%、替代設定 2.2%–5.1%),整體序列於觀測窗內未見完整回補;子群結果差異甚大(晨間高原型 26.94%、午後尖峰型 144.84%),僅作探索性描述。機器學習比較顯示,於本資料規模下持續性基線(persistence baseline)相對梯度提升樹具方向優勢(20 家中 19 家 persistence 平均誤差較低;院級主要比較經 Bonferroni 校正後 p = 0.0566、未達 .05 顯著門檻),複雜模型之邊際貢獻有限。
綜合而言,北北基暨林口走廊之急診壅塞在同時刻未呈現明顯空間聚集,但在原設計分析中呈現廣泛的時序同步與預測關係;院內分析則顯示,加護病房壅塞指數(ICI)在時序上領先急診住院壅塞指數(ACI)。惟上述結果對共同日內節律之控制方式與模型設定敏感,應視為探索性的預測結構,而非直接病人傳遞或獨立因果機制之證據;在本研究之資料規模與預測設計下,持續性基線之表現亦不遜於梯度提升樹,顯示複雜模型的額外效益有限。實務上,急診壅塞治理可由急診端延伸至區域動態監測、住院床位流動與加護病房出口管理,並以前瞻資料驗證結合簡單預測基線與區域滯後資訊之預警系統。
Emergency department (ED) crowding is a global challenge, yet most studies focus on single hospitals, leaving regional spillover effects across metropolitan hospitals without systematic empirical analysis. This study examined 19 critical-level emergency responsibility hospitals in the Taipei–New Taipei–Keelung metropolitan area plus the adjacent Linkou Chang Gung Memorial Hospital (20 hospitals in total, the TNK–Linkou corridor; the periodicity analysis in RQ3 additionally included two Yilan hospitals, 22 in total). We used the self-built NERD-Monitor database of real-time ED status snapshots over 56 days (February 10 to April 6, 2026; 1,043 valid hourly observations), supplemented, for descriptive background only, by the long-term daily compilation records of the Ministry of Health and Welfare's Emergency Operations Center.
The eight research questions were as follows: (RQ1) Does ED crowding exhibit spatial clustering across the Taipei–New Taipei–Keelung metropolitan area? (RQ2) Is there a temporal lead–lag relationship between ED crowding in Taipei City and Keelung City? (RQ3) Does ED crowding exhibit temporal periodicity, including intraday, intraweek, or holiday effects? (RQ4) What are the interhospital influence coefficients for ED crowding, and which hospitals occupy the most prominent relative spatial-multiplier positions? (RQ5) Is there a bidirectional temporal lead–lag relationship between ICU and ED crowding? (RQ6) How large are the crowding spillover effects among hospitals in the Taipei–New Taipei–Keelung metropolitan area, and what is the structure of the associated transmission network? (RQ7) Did the Lunar New Year medical capacity preparedness program effectively alleviate ED crowding? (RQ8) Can machine-learning models predict hospital-specific ED crowding from temporal features and information on neighboring hospitals?
The corresponding methods included spatial statistics (RQ1 and RQ4); Granger joint-exclusion tests, VAR, and impulse response functions (RQ2 and RQ5), with cross-correlation analysis for RQ2; STL decomposition and K-means clustering (RQ3); pairwise Granger spillover networks and forecast error variance decomposition (FEVD; RQ6); interrupted time series analysis (ITSA; RQ7); and comparison of the persistence baseline with a machine-learning (gradient-boosting) model (RQ8). Lag-based analyses in RQ2, RQ5, and RQ6 and the forecasting grid in RQ8 used calendar-time-aligned samples, with multiple-comparison corrections (BH-FDR and Bonferroni) and multiple sensitivity analyses.
Results showed that the spatial association of ED crowding manifests primarily as temporal lags rather than contemporaneous cross-sectional clustering: no cross-sectional spatial clustering was detected (Moran's I = 0.019, p = 0.887) and the spatial lag effect was weak (ρ = 0.05, CI including zero), whereas panel spatiotemporal analysis (using the scale-adjusted Z/C index) revealed stable positive dynamic associations (p = 0.001 at each lag, the lower bound reportable with 999 permutations; an exploratory panel test), and 267 of 380 hospital pairs (70.3%) exhibited significant temporal predictive relationships in the pairwise Granger network (an exploratory primary analysis under the original design), with the pattern of widespread significance consistent under stricter thresholds (q < 0.01), fixed lag orders (67.6%–68.2%), more conservative corrections (BY 53.4%; Bonferroni 34.7%), and exclusion of the Lunar New Year period. In the Taipei–Keelung analysis, temporal predictability from Taipei to Keelung was relatively consistent across the original, unconditioned lag and subwindow settings (F = 4.658, p < 0.001), while the reverse direction was setting-sensitive. Within hospitals, the ICU crowding index temporally led the ED boarding index at lag orders 3–6 hours (selected order 4: F = 7.98, p < 0.001), robust across differencing and holiday-exclusion settings, with the reverse direction setting-sensitive; 10 of 20 hospitals passed BH-FDR correction individually (an exploratory list under per-hospital best lag orders; only 1 of 20 under a network-wide fixed lag order of 4, indicating high sensitivity of this list to lag-order specification). However, these temporal predictive structures (RQ2, RQ5, RQ6) were sensitive to how shared within-day rhythms were handled: after fixing the comparison lag order and conditioning on time-of-day and day-of-week categories, the Taipei-to-Keelung (p = .067) and ICI-to-ACI (p = .598) directions were no longer significant and the RQ6 significant-pair count fell from 259 to 46, while some relationships persisted under low-dimensional harmonic controls. These post-hoc sensitivity analyses lead us to interpret RQ2, RQ5, and RQ6 as exploratory synchronization and predictive structures rather than evidence of direct patient transfer or an independently identified causal mechanism. Periodicity analysis identified Tuesday as the peak crowding day (29.07 patients) with a descriptive turning point around 12:00, consistent with inpatient-side decision rhythms. The Lunar New Year policy evaluation showed a significant crowding drop during the holiday (level change β₂ = −14.40, unadjusted p < 0.001; an exploratory ITSA in which policy and holiday effects are inseparable); the overall rebound ratio was highly sensitive to the counterfactual baseline (38.1% under the primary setting; 2.2%–5.1% under alternatives), and the aggregate series showed no complete rebound within the observation window. Subgroup estimates were highly heterogeneous (26.94% for the morning-plateau subgroup and 144.84% for the afternoon-peak subgroup) and were treated as exploratory. The machine-learning comparison showed a directional advantage of the persistence baseline over gradient boosting at this data scale (lower mean error in 19 of 20 hospitals; the primary hospital-level comparison did not reach significance after Bonferroni correction, p = 0.0566), indicating limited marginal benefit of complex models.
In sum, ED crowding across the Taipei–New Taipei–Keelung–Linkou corridor showed little contemporaneous spatial clustering but widespread temporal synchronization and predictive relationships under the original analytic design; within hospitals, the ICU crowding index (ICI) temporally preceded the ED boarding index (ACI). Because these findings were sensitive to controls for shared within-day rhythms and to model specifications, they should be interpreted as exploratory predictive structures rather than evidence of direct patient transfer or independent causal mechanisms; under the present sample size and forecasting design, the persistence baseline performed no worse than gradient boosting, indicating limited added value from the more complex model. In practice, policies addressing ED crowding could extend beyond the ED itself to consider regional dynamic monitoring, inpatient bed flow, and ICU discharge management, while prospectively validating early-warning systems that combine simple forecasting baselines with regional lag information.
The eight research questions were as follows: (RQ1) Does ED crowding exhibit spatial clustering across the Taipei–New Taipei–Keelung metropolitan area? (RQ2) Is there a temporal lead–lag relationship between ED crowding in Taipei City and Keelung City? (RQ3) Does ED crowding exhibit temporal periodicity, including intraday, intraweek, or holiday effects? (RQ4) What are the interhospital influence coefficients for ED crowding, and which hospitals occupy the most prominent relative spatial-multiplier positions? (RQ5) Is there a bidirectional temporal lead–lag relationship between ICU and ED crowding? (RQ6) How large are the crowding spillover effects among hospitals in the Taipei–New Taipei–Keelung metropolitan area, and what is the structure of the associated transmission network? (RQ7) Did the Lunar New Year medical capacity preparedness program effectively alleviate ED crowding? (RQ8) Can machine-learning models predict hospital-specific ED crowding from temporal features and information on neighboring hospitals?
The corresponding methods included spatial statistics (RQ1 and RQ4); Granger joint-exclusion tests, VAR, and impulse response functions (RQ2 and RQ5), with cross-correlation analysis for RQ2; STL decomposition and K-means clustering (RQ3); pairwise Granger spillover networks and forecast error variance decomposition (FEVD; RQ6); interrupted time series analysis (ITSA; RQ7); and comparison of the persistence baseline with a machine-learning (gradient-boosting) model (RQ8). Lag-based analyses in RQ2, RQ5, and RQ6 and the forecasting grid in RQ8 used calendar-time-aligned samples, with multiple-comparison corrections (BH-FDR and Bonferroni) and multiple sensitivity analyses.
Results showed that the spatial association of ED crowding manifests primarily as temporal lags rather than contemporaneous cross-sectional clustering: no cross-sectional spatial clustering was detected (Moran's I = 0.019, p = 0.887) and the spatial lag effect was weak (ρ = 0.05, CI including zero), whereas panel spatiotemporal analysis (using the scale-adjusted Z/C index) revealed stable positive dynamic associations (p = 0.001 at each lag, the lower bound reportable with 999 permutations; an exploratory panel test), and 267 of 380 hospital pairs (70.3%) exhibited significant temporal predictive relationships in the pairwise Granger network (an exploratory primary analysis under the original design), with the pattern of widespread significance consistent under stricter thresholds (q < 0.01), fixed lag orders (67.6%–68.2%), more conservative corrections (BY 53.4%; Bonferroni 34.7%), and exclusion of the Lunar New Year period. In the Taipei–Keelung analysis, temporal predictability from Taipei to Keelung was relatively consistent across the original, unconditioned lag and subwindow settings (F = 4.658, p < 0.001), while the reverse direction was setting-sensitive. Within hospitals, the ICU crowding index temporally led the ED boarding index at lag orders 3–6 hours (selected order 4: F = 7.98, p < 0.001), robust across differencing and holiday-exclusion settings, with the reverse direction setting-sensitive; 10 of 20 hospitals passed BH-FDR correction individually (an exploratory list under per-hospital best lag orders; only 1 of 20 under a network-wide fixed lag order of 4, indicating high sensitivity of this list to lag-order specification). However, these temporal predictive structures (RQ2, RQ5, RQ6) were sensitive to how shared within-day rhythms were handled: after fixing the comparison lag order and conditioning on time-of-day and day-of-week categories, the Taipei-to-Keelung (p = .067) and ICI-to-ACI (p = .598) directions were no longer significant and the RQ6 significant-pair count fell from 259 to 46, while some relationships persisted under low-dimensional harmonic controls. These post-hoc sensitivity analyses lead us to interpret RQ2, RQ5, and RQ6 as exploratory synchronization and predictive structures rather than evidence of direct patient transfer or an independently identified causal mechanism. Periodicity analysis identified Tuesday as the peak crowding day (29.07 patients) with a descriptive turning point around 12:00, consistent with inpatient-side decision rhythms. The Lunar New Year policy evaluation showed a significant crowding drop during the holiday (level change β₂ = −14.40, unadjusted p < 0.001; an exploratory ITSA in which policy and holiday effects are inseparable); the overall rebound ratio was highly sensitive to the counterfactual baseline (38.1% under the primary setting; 2.2%–5.1% under alternatives), and the aggregate series showed no complete rebound within the observation window. Subgroup estimates were highly heterogeneous (26.94% for the morning-plateau subgroup and 144.84% for the afternoon-peak subgroup) and were treated as exploratory. The machine-learning comparison showed a directional advantage of the persistence baseline over gradient boosting at this data scale (lower mean error in 19 of 20 hospitals; the primary hospital-level comparison did not reach significance after Bonferroni correction, p = 0.0566), indicating limited marginal benefit of complex models.
In sum, ED crowding across the Taipei–New Taipei–Keelung–Linkou corridor showed little contemporaneous spatial clustering but widespread temporal synchronization and predictive relationships under the original analytic design; within hospitals, the ICU crowding index (ICI) temporally preceded the ED boarding index (ACI). Because these findings were sensitive to controls for shared within-day rhythms and to model specifications, they should be interpreted as exploratory predictive structures rather than evidence of direct patient transfer or independent causal mechanisms; under the present sample size and forecasting design, the persistence baseline performed no worse than gradient boosting, indicating limited added value from the more complex model. In practice, policies addressing ED crowding could extend beyond the ED itself to consider regional dynamic monitoring, inpatient bed flow, and ICU discharge management, while prospectively validating early-warning systems that combine simple forecasting baselines with regional lag information.