《城市公交IC卡·数据分析方法及应用》 陈学武、李海波、候贤耀著
一般情况下,IC卡是没有记录上车点的信息,需要结合其他数据对IC卡处理
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:860786c2-8360-4b7a-8310-30da06312d3e
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:88a0355d-747c-46a1-b721-38f3369be705
公交运营时间和乘客刷卡时间特征
公交车辆运营一趟的的总时间:
T = t a n − t a l = ∑ i = 1 k − 1 ( T s k − T r k ) T = t_{an}-t_{al} = \sum_{i=1}^{k-1}(T_{sk}-T_{rk})T =t a n −t a l =i =1 ∑k −1 (T s k −T r k )
总时间 = 运行时间+停靠时间
公交车辆到达第k个站点的时间:
t a k = t a 1 + ∑ i = 1 k − 1 ( T s i − T r i ) t_{ak} = t_{a1}+\sum_{i= 1}^{k-1}(T_{si} – T_{ri})t a k =t a 1 +i =1 ∑k −1 (T s i −T r i )
到达第k个站点的时间 = 起始时间 +此站前的总时间
车辆离开第K个站点的时间:
t s k = t a 1 + ∑ i = 1 k − 1 ( T s i − T r i ) + T s k t_{sk} = t_{a1}+\sum_{i= 1}^{k-1}(T_{si} – T_{ri})+T_{sk}t s k =t a 1 +i =1 ∑k −1 (T s i −T r i )+T s k
离开第K个站点的时间 = 到达时间+停靠时间
综上,车辆在第K歌站点停留时间区间为:
[ t a k , t l k ] = [ t a 1 + ∑ i = 1 k − 1 ( T s i − T r i ) , t a 1 + ∑ i = 1 k − 1 ( T s i − T r i ) + T s k ] [t_{ak},t_{lk}] = [t_{a1}+\sum_{i= 1}^{k-1}(T_{si} – T_{ri}) , t_{a1}+\sum_{i= 1}^{k-1}(T_{si} – T_{ri})+T_{sk}][t a k ,t l k ]=[t a 1 +i =1 ∑k −1 (T s i −T r i ),t a 1 +i =1 ∑k −1 (T s i −T r i )+T s k ]
其中:
k ——站点号
t a 1 t_{a1}t a 1 —— 起点发车时间
t l 1 t_{l1}t l 1 —— 起点离开时间
t a k t_{ak}t a k —— 到达第k个站点的时间
t l k t_{lk}t l k —— 离开第k个站点的时间
T s 1 T_{s1}T s 1 —— 起点站发车时间与离开时间间隔
T r 1 T_{r1}T r 1 —— 起点发车时间(第一站)到下一站的运行时间
T s k T_{sk}T s k —— 车辆在第k个站点的停留时间
T r k T_{rk}T r k —— 车辆离开第k个站到达下一个站的运行时间
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:30a60e9e-bacb-47e6-b57e-04ef7b5b18c4
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:fb5a1fb8-2bcb-4fc6-b2db-f456a1cc8dd6
乘客刷卡时间特征
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:cac15f94-70c7-45d5-ab1f-fa5bf9b218b7
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:5c997a42-9825-4a66-9a2f-d408b610d5b5
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:54c63814-4a62-44ba-94c8-1d1c89ba774d
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:c8557dd9-ea60-4a7d-bb45-18707910f624
上车点识别
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:e4a071ad-2598-4c07-857d-9f11032a094d
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:05bb5256-bd0a-4435-a938-73b7df34d3e6
主要方法分为 层次聚类和 非层次聚类,如:k-means、BIRCH、DBSCAN等方法
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:a7430661-6c59-4931-b7eb-1c88c343f37a
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:dd96e67f-61c9-4343-a3d9-65a68031d561
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:2fe4b64d-8d5e-4273-b4a5-fed4af9ef5fd
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:02a19c01-641f-4fc2-907d-f9fc9fc97dd7
- 在公交IC卡数据聚类的基础上,利用公交调度数据推算公交车辆到站时间,利用公交IC卡时间与公交车辆到站时间匹配识别上车点。
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:09ef66c8-efea-47e3-9096-195cae17367e[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:c56968a2-741e-4a39-9dea-4b1bda009390
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:2da59dfa-b16f-46df-a629-b1e0f888e529
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:b969db39-9eae-48a0-8108-d5da1d09cdbf
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:5392981c-605b-4490-a500-32745ec3b41b
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:bc71ed68-8454-4adc-8ed7-9f14a564549a
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:474570df-dbed-474a-944a-73d3a1701a9b
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:4949b21f-b673-4fdf-b2d1-0524c0666971
计算 各组刷卡数据的 中间值 与 最大刷卡间隔 并存储 以备和车辆停靠时间匹配,确定上车点
中间值:组内各组刷卡时间的算数平均数(个人看法:取中位数研究)
最大时间间隔:组中最后一次和第一次之间的时间间隔
这里定义 公交停靠时刻 为车辆停靠在停靠站 停靠的中间时刻 即:
t k = t a k + ( t l k + t a k ) 2 = t l ( k − 1 ) + T r ( k − 1 ) + T s k 2 , k > = 2. t_k = t_{ak} + \frac{(t_{lk}+t_{ak})}{2} \= t_{l(k-1)} + T_{r(k-1)}+\frac{T_{sk}}{2},k>=2.t k =t a k +2 (t l k +t a k )=t l (k −1 )+T r (k −1 )+2 T s k ,k >=2 .
可以从公交调度信息表中提取出 车辆起点发车时刻t_l1 与 终点站到站时刻t_an
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:3f660a8b-84f4-4355-9ea7-e3dcafba50e8
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:4a385dc2-9dc0-4fa8-9d0a-59de872f740b
t l k = t l ( k − 1 ) + T r ( k − 1 ) + T s k 离 开 时 刻 = 上 一 站 离 开 时 刻 + 上 一 段 路 上 运 行 时 间 + 此 站 的 停 靠 时 间 = [ t l ( k − 2 ) + T r ( k − 2 ) + T s ( k − 1 ) ] + T r ( k − 1 ) + T s k 通 过 递 归 , 递 推 到 t l 1 = t l 1 + ∑ i = 1 k − 1 T r i + ∑ i = 2 k T s i 整 理 后 得 到 上 面 的 公 式 t_{lk} = t_{l(k-1)}+T_{r(k-1)}+T_{sk}\ 离开时刻 = 上一站离开时刻+上一段路上运行时间+此站的停靠时间\ \qquad\\qquad\ =[t_{l(k-2)}+T_{r(k-2)}+T_{s(k-1)}]+T_{r(k-1)}+T_{sk}\ 通过递归,递推到t_{l1}\ \qquad\\qquad\ = t_{l1}+\sum_{i = 1}^{k-1}T_{ri}+\sum_{i=2}^{k}T_{si}\ 整理后得到上面的公式t l k =t l (k −1 )+T r (k −1 )+T s k 离开时刻=上一站离开时刻+上一段路上运行时间+此站的停靠时间=[t l (k −2 )+T r (k −2 )+T s (k −1 )]+T r (k −1 )+T s k 通过递归,递推到t l 1 =t l 1 +i =1 ∑k −1 T r i +i =2 ∑k T s i 整理后得到上面的公式
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:fe18177b-4b14-430d-bd49-4ff6ad62d480
[En]
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:2b71997d-cb6f-4203-a717-cc9e36b24a43
停靠时间T s k T_{sk}T s k : 注意到的刷卡数据聚类后计算得到的 各组的刷卡时间间隔( Δk表示)数据可以近似表示为 站点停靠时间,其他没有刷卡数据的站点其停靠时间可以根据 调查近似值
站点间运行时间T s k T_{sk}T s k : 即 站间距离/平均运行速度的值,单位s,计算公式:
T r k = l k ( k + 1 ) V ‾ V ‾ = l t a n − t l n − ∑ i = 2 n − 1 T s i 即 : T r k = l k ( k + 1 ) ∗ ( t a n − t l n − ∑ i = 2 n − 1 T s i ) l T_{rk} = \frac{l_{k(k+1)}}{\overline{V}}\ \qquad\\qquad\ \overline{V} = \frac{l}{t_{an}-t_{ln}-\sum_{i = 2}^{n-1}T_{si}}\ \qquad\\qquad\ 即:T_{rk} = \frac{l_{k(k+1)}*(t_{an}-t_{ln}-\sum_{i = 2}^{n-1}T_{si})}{l}\T r k =V l k (k +1 )V =t a n −t l n −∑i =2 n −1 T s i l 即:T r k =l l k (k +1 )∗(t a n −t l n −∑i =2 n −1 T s i )
通过聚类分析和停靠时刻推算得到个各类中 公交刷卡时间的”中间值t m t_m t m ” 和 公交车辆在各站点的”停靠时刻t k t_k t k ”
通过t_m和t_k之间的距离 Δmk ,当 Δmk = min( |t m − t k t_m – t_k t m −t k | ) 时,所取 t k t_k t k 对应的 停靠站点认为时 t m t_m t m 所对应的 刷卡记录的刷卡站点,即 上车站点
Original: https://blog.csdn.net/chentao326/article/details/122668127
Author: chentao326
Title: 【OD矩阵】《城市公交IC卡·数据分析方法及应用》利用公交运营时间和乘客刷卡时间特征识别上车点
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/560964/
转载文章受原作者版权保护。转载请注明原作者出处!