名老中医医案数据采集与清理算法DCCA的研究
2018-12-15章亚东胡孔法杨涛谢佳东
章亚东 胡孔法 杨涛 谢佳东
摘 要: 利用网络爬虫抓取网络中名老中医医案数据,可以为医案数据挖掘提供优质的原始数据。提出了一种基于网络爬虫的名老中医医案数据采集与清理算法DCCA(Data Collection and Cleaning Algorithm),处理了12670个网页,抽取出28813条诊次数据。与传统方法比较,DCCA的抓取效率更高、处理结果属性清晰、处理后的数据冗余度低,极大地提高了中医药网站中名老中医医案数据采集与清理效果。
关键词: 名老中医; 医案; 数据采集与清理; 网络爬虫; DCCA
中图分类号:TP311 文献标志码:A 文章编号:1006-8228(2018)10-68-03
Abstract: Using web crawlers to capture the data of famous old Chinese medicine doctors' in the network can provide high quality raw data for medical data mining. This paper proposes a data collection and cleaning algorithm DCCA (Data Collection and Cleaning Algorithm) based on web crawler, which processes 12,670 web pages and extracts 28,813 diagnostic data. Compared with the traditional methods, DCCA has higher crawling efficiency, clearer processing result attributes and lower data redundancy after processing, which greatly improves the data collection and cleaning effect of famous Chinese medicine doctors in Chinese medicine websites.
Key words: famous Chinese medicine doctor; medical records; data collection and cleaning; web crawler; DCCA
0 引言
数据挖掘(DataMining)是按照既定的业务目标从大量的数据中提取出潜在、有效并容易被人理解的模式的高级处理过程[1]。名老中医是中医药学术发展的杰出代表,总结名老中医的经验不仅能丰富中医学的理论体系,还能为中医药学术的进步产生巨大的推动作用[2]。网络中有大量的数据,但是数据的质量不高,研究者们需要花費大量的时间清洗数据。如果在收集数据的时候能将数据进行清理,则会大幅度地提高数据挖掘研究者的工作效率。
网络爬虫(Web Crawler)是一个自动下载网页的计算机程序,是搜索引擎的重要组成部分[3]。目前,国内外学者对网络爬虫技术已有一定的研究。孙立伟比较了通用网络爬虫、聚焦网络爬虫、增量式网络爬虫和深层网络爬虫四种常见网络爬虫[3]。于怀宝的爬虫系统主要是访问JS动态内容,并用正则表达式编写页面解析模板来抽取数据[4]。曾伟辉则对异步交互式网络 AJAX 框架下的爬虫进行了研究[5]。……
