针对公共自行车没有安装车载检测传感器、流动及停放区域较大、管理部门无法及时发现自行车故障等问题,提出了基于朴素贝叶斯分类器的自行车故障诊断方法。通过分析公共自行车系统(PBS)租用记录、维修记录和用户评价,选取15个状态分类特征作为自行车故障检测的特征向量;根据朴素贝叶斯分类器后验概率,获取每个状态分类特征对类的贡献率;以召回率作为评价指标来预测诊断故障自行车。采用杭州市PBS 2016年的相关数据对模型进行实践验证,通过预测模型输入特征值的优化,测试样本的召回率达85.79%,精度较为理想。
In view of the facts that PBS was not equipped with on-board detection sensors, bicycle failure might not be found directly in time and make rider to suffer the safety risks. To solve such an issue, a bicycle fault diagnosis method was proposed based on naive Bayesian classifier. By analyzing the PBS historical data including rental records, maintenance records and user evaluation etc., 15 state classification features were extracted as feature vectors for bicycle fault detection. Based on the posterior probability of Naive Bayesian classifier, the contribution rate of each state classification feature to the class was obtained; the recall rate was used as an evaluation index to predict the diagnosis of failed bikes. Based on the running data of 2016 from Hangzhou PBS, the model was verified by experiments. Through the optimization of the input eigenvalue of the prediction model, the recall rate of the test samples reaches 85.79% with satisfactory accuracy.
[1] SHREE S R B,SHESHADRI H S. Diagnosis of Alzheimer's Disease Using Naive Bayesian Classifier[J]. Neural Computing & Applicaitons,2018,29(1):123-132.
[2] WIGGINS M,SAAD A,LITT B. Evolving a Bayesian Classifier for ECG-based Age Classification in Medical Applications[J]. Applied Soft Computing,2007,1(8):599-608.
[3] 孟庆华,周晓军,庞茂,等.疫苗算法及其在车辆故障检测中的应用[J]. 浙江大学学报(工学版),2006,40(2):298-303. MENG Qinghua, ZHOU Xiaojun, PANG Mao, et al. Bacterin Algorithm and Its Application in Vehicle Fault Detection[J]. Journal of Zhejiang University(Engineering Science),2006,40(2):298-303.
[4] WU Z L, ZHANG B, ZHU Y L, et al. Transformer Fault Portfolio Diagnosis Based on the Combination of the Multiple Bayesian Classifier and SVM[C]//International Conference on Electronic Computer Technology.Macau,2009:379-382.
[5] YU Jun, HUANG Wentao, ZHAO Xuezeng. Combined Flow Graphs and Normal Naive Bayesian Classifier for Fault Diagnosis of Gear Box[J].Proceedings of the Institution of Mechanical Engineers Part C-Journal of Mechanical Engineering Science,2016, 230(2):303-313.
[6] 姚成玉,李男,冯中魁,等.基于粗糙集属性约简和贝叶斯分类器的故障诊断[J]. 中国机械工程, 2015, 26(14):1969-1977. YAO Chengyu, LI Nan, FENG Zhongkui, et al. Fault Diagnosis Based on Rough Set Attribute Reduction and Bayesian Classifier[J]. China Mechanical Engineering, 2015, 26(14):1969-1977.
[7] ZHOU C,LIU Y,YANG D P. Application of Naive Bayesian Classifier on Predictive Study of Incomplete Data[C]//International Conference on Risk and Reliability Management.Beijing,2008:686-688.
[8] 祝志博,王培良,宋执环.基于PCA-SVDD的故障检测和自学习辨识[J].浙江大学学报(工学版),2010,44(4):652-658. ZHU Zhibo, WANG Peiliang, SONG Zhihuan. PCA-SVDD Based Fault Detection and Self-learning Identification[J]. Journal of Zhejiang University(Engineering Science),2010,44(4):652-658.
[9] 刘江,蔡伯根,王剑,等.基于主成分分析的车辆组合导航系统故障检测与隔离算法[J]. 交通运输系统工程与信息,2009,9(5):46-52. LIU Jiang, CAI Bogen, WANG Jian, et al. Principal Component Analysis Based Fault Detection and Isolation Algorithm for Integrated Vehicle Navigation System[J]. Journal of Transportation Systems Engineering and Information Technology,2009,9(5):46-52.
[10] 王利民.贝叶斯学习理论中若干问题的研究[D].长春:吉林大学,2004. WANG Limin. A Study of Some Problems in Bias's Learning Theory[D]. Changchun:Jilin University,2004.
[11] 王实,高文.增强型朴素贝叶斯学习[J].计算机科学,2000,27(4):46-49. WANG Shi, GAO Wen. Boosting Naive Bayesian Learning[J].Computer Science,2000,27(4):46-49.
[12] 王双成,杜瑞杰,刘颖.连续属性完全贝叶斯分类器的学习与优化[J]. 计算机学报,2012,35(10):2129-2138. WANG Shuangcheng, DU Ruijie, LIU Ying. The Learning and Optimization of Full Bayes Classifiers with Continuous Attributes[J]. Chinese Journal of Computers,2012,35(10):2129-2138.
[13] 吴满金,董红召,刘冬旭,等.公共自行车多目标动态调度建模与算法研究[J].机电工程,2015, 32(7):1006-1010. WU Manjin, DONG Hongzhao, LIU Dongxu, et al. Research on the Dynamic Model with Multi-objective and Algorithm for Public Bicycle Rebalancing Problem[J]. Journal of Mechanical & Electrical Engineering,2015, 32(7):1006-1010.
[14] Fishman E, Washington S, Haworth N.公共自行车文献综述[J].城市交通,2014, 12(2):84-94. Fishman E, Washington S, Haworth N. Literature Review of Public Bicycles[J]. Urban Traffic,2014,12(2):84-94.