当前位置: 首页> 专利交易> 详情页
    待售中

    一种基于CLLSR混合模型的脉力等级预测方法[ZH]

    专利编号: ZL202611050755

    收藏

    拟转化方式: 开放许可

    交易价格:面议

    专利类型:发明专利

    法律状态:授权

    技术领域:非汽车专利

    发布日期:2026-11-05

    发布有效期: 2026-11-05 至 2044-01-19

    专利顾问 — 王老师

    电话咨询

    咨询电话

    13760886304

    专利基本信息
    >
    申请号 CN202410083997.5 公开号 CN117582185A
    申请日 2024-01-19 公开日 2024-02-23
    申请人 季华实验室 专利授权日期 2024-05-07
    发明人 王洋;韦敏;罗静静;祝兴;杨嘉成 专利权期限届满日 2044-01-19
    申请人地址 528200 广东省佛山市南海区桂城街道环岛南路28号 最新法律状态 授权
    技术领域 非汽车专利 分类号 A61B5/00
    技术效果 其他技术效果 有效性 有效(授权、部分无效)
    专利代理机构 广东海融科创知识产权代理事务所(普通合伙) 44377 代理人 许家裕
    专利技术详情
    >
    01

    专利摘要

    本申请属于中医诊脉技术领域,公开了一种基于CLLSR混合模型的脉力等级预测方法,包括步骤:A1.获取多个原始脉象数据并对原始脉象数据进行脉力等级评分和数据预处理,得到多个样本数据,形成样本集;样本数据包括预处理后脉象数据和对应的脉力等级标签值;A2.把样本集划分为训练集和测试集;A3.构建CLLSR混合神经网络模型;A4.利用训练集对CLLSR混合神经网络模型进行训练,并以测试集对训练后的CLLSR混合神经网络模型进行测试,得到训练好的CLLSR混合神经网络模型;A5.利用训练好的CLLSR混合神经网络模型对待测对象的实测脉象数据进行脉力等级预测;从而能够提高针对脉力评分等级的预测准确性。
    展开 >
    02

    专利详情

    技术领域

    本申请涉及中医诊脉技术领域,具体而言,涉及一种基于CLLSR混合模型的脉力等级预测方法。

    背景技术

    脉诊是传统中医学重要的组成部分,无创、便捷的诊断特点使其在疾病诊断中具有较强的竞争力及极高的研究价值。由中医理论发现,脉象由八种要素构成,分别为脉位、脉率、脉力、脉长、脉宽、均匀度、紧张度、流利度,掌握这八种要素,对研究脉象起到关键作用。

    脉力作为脉象八要素中的一个重要因素,能够反映人体脉搏跳动的强弱,而脉搏的强弱能够反映人体五脏六腑生理功能的强弱和气血阴阳的盛衰,能够为判断病证提供有力依据。现有技术中往往将脉力与脉图参数中的主波幅值h1建立联系,但并没有从客观脉象数据出发找到与脉力相关的特征依据,此外,从其他角度对脉力进行分析是有必要的。目前的脉诊装备能够进行脉力简单预判,但具体的预测模型及精度未知,故结合深度神经网络搭建脉力预测模型及脉力预测精度确认是中医脉诊客观化的必要方法。

    发明内容

    本申请的目的在于提供一种基于CLLSR混合模型的脉力等级预测方法,能够提高针对脉力评分等级的预测准确性。

    本申请提供了一种基于CLLSR混合模型的脉力等级预测方法,包括步骤:

    A1.获取多个原始脉象数据,并对所述原始脉象数据进行脉力等级评分和数据预处理,得到多个样本数据,形成样本集;每个所述样本数据包括预处理后脉象数据和对应的脉力等级标签值;

    A2.把所述样本集划分为训练集和测试集;

    A3.构建基于CNN神经网络和LSTM神经网络的CLLSR混合神经网络模型;

    A4.以所述样本数据中的预处理后脉象数据作为所述CLLSR混合神经网络模型的模型输入,并以脉力等级预测值作为所述CLLSR混合神经网络模型的模型输出,利用所述训练集对所述CLLSR混合神经网络模型进行训练,并以所述测试集对训练后的所述CLLSR混合神经网络模型进行测试,得到训练好的CLLSR混合神经网络模型;

    A5.利用所述训练好的CLLSR混合神经网络模型对待测对象的实测脉象数据进行脉力等级预测。

    通过对原始脉象数据进行脉力等级评分和数据预处理,构建了带有脉力等级标签(即脉力等级标签值)的专家数据集,基于此训练CLLSR混合神经网络模型,利用训练好的CLLSR混合神经网络模型进行脉力等级预测可以提高预测结果的准确性。

    优选地,步骤A1中,所述获取多个原始脉象数据的步骤包括:

    针对多个受试者,通过压力传感器在每个所述受试者的寸口关部脉位处采集多个不同预压力下的脉象数据,记为第一脉象数据;

    从同一个所述受试者对应不同预压力的多个所述第一脉象数据中,筛选一个最优脉象数据,作为对应受试者的所述原始脉象数据。

    对同一个受试者使用多个预压力进行脉象数据采集,从中择优作为有效数据,可以提高得到的脉象数据的清晰度,使得到的脉象数据更能反映受试者的真实脉搏波动情况。

    优选地,步骤A1中,对所述原始脉象数据进行数据预处理包括:

    采用sliding-Mean算法对所述原始脉象数据进行平滑处理;

    识别平滑处理后的原始脉象数据中的峰值点和谷值点;

    根据所述峰值点和所述谷值点从平滑处理后的原始脉象数据中截取多段单周期波数据;

    对截取得到的多段所述单周期波数据进行数据点对齐处理;

    计算对齐处理后的多段单周期波数据两两之间的相似度距离;

    根据所述相似度距离对对齐处理后的多段单周期波数据进行筛选,得到多段参考单周期波数据;

    计算所述参考单周期波数据的平均单周期波数据,作为有效单周期波数据;所述预处理后脉象数据为所述有效单周期波数据。

    通过上述方式得到有效单周期波数据,可以有效去除原始脉象数据中的异常波动数据和异常点的干扰,使有效单周期波数据更真实地反映受试者的真实脉搏波动情况。

    优选地,步骤A1还包括:

    对计算得到的所述有效单周期波数据进行随机噪声添加,得到新的有效单周期波数据;

    把添加噪声前的所述有效单周期波数据对应的所述脉力等级标签值,作为相应的所述新的有效单周期波数据的脉力等级标签值。

    优选地,所述计算对齐处理后的多段单周期波数据两两之间的相似度距离的步骤包括:

    根据以下公式计算对齐处理后的多段单周期波数据两两之间的相似度距离:

    ;

    其中,P和Q为对齐处理后的两段单周期波数据,为P和Q之间的相似度距离,是P和Q之间的最长公共子串,、分别是P和Q的数据长度,为P和Q之间的第k组配准元素之间的欧式距离,,i是第k组配准元素中属于P的元素的序号,j是第k组配准元素中属于Q的元素的序号,是第k组配准元素中属于P的元素,是第k组配准元素中属于Q的元素,K为P和Q之间的配准元素的组数。

    优选地,所述CLLSR混合神经网络模型包括依次连接的输入层、三层一维CNN神经网络、两层LSTM神经网络、全连接层、标签平滑正则化层和输出层。

    优选地,所述LSTM神经网络中的激活函数为ELU激活函数。

    优选地,所述标签平滑正则化层对标签进行平滑处理的处理函数为:

    ;

    其中,为平滑处理后的新标签,为真实标签,为超参数,为类别数,为被平滑处理的标签对应的类别。

    优选地,步骤A4包括:

    把训练集的样本数据中的预处理后脉象数据输入所述CLLSR混合神经网络模型,得到所述CLLSR混合神经网络模型输出的预测结果;

    根据所述预测结果和对应的所述样本数据中的脉力等级标签值,计算损失函数;

    若所述损失函数满足预设停止条件,则停止训练;

    若所述损失函数不满足预设停止条件,则利用Adam优化器优化所述CLLSR混合神经网络模型的模型参数后,基于训练集中的下一个样本数据重复上述训练步骤;

    停止训练后,利用所述测试集对训练后的所述CLLSR混合神经网络模型进行交叉验证,验证通过后得到训练好的CLLSR混合神经网络模型。

    优选地,所述损失函数为平均绝对百分比误差或均方对数误差。

    有益效果:本申请提供的基于CLLSR混合模型的脉力等级预测方法,通过对原始脉象数据进行脉力等级评分和数据预处理,构建了带有脉力等级标签(即脉力等级标签值)的专家数据集,基于此训练CLLSR混合神经网络模型,利用训练好的CLLSR混合神经网络模型进行脉力等级预测可以提高预测结果的准确性。

    附图说明

    图1为本申请实施例提供的基于CLLSR混合模型的脉力等级预测方法的流程图。

    图2为CLLSR混合神经网络模型的结构示意图。

    标号说明:1、输入层;2、一维CNN神经网络;3、LSTM神经网络;4、全连接层;5、标签平滑正则化层;6、输出层。

    具体实施方式

    下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。

    应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。

    请参照图1,图1是本申请一些实施例中的一种基于CLLSR混合模型的脉力等级预测方法,包括步骤:

    A1.获取多个原始脉象数据,并对原始脉象数据进行脉力等级评分和数据预处理,得到多个样本数据,形成样本集;每个样本数据包括预处理后脉象数据和对应的脉力等级标签值;

    A2.把样本集划分为训练集和测试集;

    A3.构建基于CNN神经网络和LSTM神经网络的CLLSR混合神经网络模型;

    A4.以样本数据中的预处理后脉象数据作为CLLSR混合神经网络模型的模型输入,并以脉力等级预测值作为CLLSR混合神经网络模型的模型输出,利用训练集对CLLSR混合神经网络模型进行训练,并以测试集对训练后的CLLSR混合神经网络模型进行测试,得到训练好的CLLSR混合神经网络模型;

    A5.利用训练好的CLLSR混合神经网络模型对待测对象的实测脉象数据进行脉力等级预测。

    通过对原始脉象数据进行脉力等级评分和数据预处理,构建了带有脉力等级标签(即脉力等级标签值)的专家数据集(即样本集),基于此训练CLLSR混合神经网络模型,利用训练好的CLLSR混合神经网络模型进行脉力等级预测可以提高预测结果的准确性。

    其中,可以利用压力传感器压在受试者的寸口关部脉位处进行脉象数据采集,实际上,对于同一个受试者,压力传感器的预压力(即压力传感器压在寸口关部脉位处的压力)不同,采集到的脉象数据的幅值不同,而脉象数据的幅值越大,则数据特征一般会越清晰,因此,每个受试者有对应的最佳预压力,且不同受试者的最佳预压力一般不同。

    优选地,步骤A1中,获取多个原始脉象数据的步骤包括:

    针对多个受试者,通过压力传感器在每个受试者的寸口关部脉位处采集多个不同预压力下的脉象数据,记为第一脉象数据;

    从同一个受试者对应不同预压力的多个第一脉象数据中,筛选一个最优脉象数据,作为对应受试者的原始脉象数据。

    对同一个受试者使用多个预压力进行脉象数据采集,从中择优作为有效数据,可以提高得到的脉象数据的清晰度,使得到的脉象数据更能反映受试者的真实脉搏波动情况。

    其中,对每个受试者施加的预压力的梯度数(指预压力的数量,例如,向受试者施加10种不同的预压力,则预压力的梯度数为10)和对应的压力值可以根据实际需要设置。例如,对每个受试者施加10个梯度的预压力,每个梯度的预压力对应采集一个第一脉象数据,该10个梯度分别为50g、70g、90g、110g、130g、150g、170g、190g、210g、230g,但不限于是10个梯度,每个梯度的压力值也不限于此。

    其中,采集第一脉象数据的时候,可以按照预设采样频率(可以根据实际需要设置)采集预设时长(可以根据实际需要设置,例如5s)的数据。

    其中,从同一个受试者对应不同预压力的多个第一脉象数据中,筛选一个最优脉象数据,作为对应受试者的原始脉象数据的步骤,可以包括:从同一个受试者对应不同预压力的多个第一脉象数据中,选取脉象数据幅值最大的第一脉象数据作为对应受试者的原始脉象数据。

    优选地,步骤A1中,对原始脉象数据进行数据预处理包括:

    采用sliding-Mean算法对原始脉象数据进行平滑处理;

    识别平滑处理后的原始脉象数据中的峰值点和谷值点;

    根据峰值点和谷值点从平滑处理后的原始脉象数据中截取多段单周期波数据;

    对截取得到的多段单周期波数据进行数据点对齐处理;

    计算对齐处理后的多段单周期波数据两两之间的相似度距离;

    根据相似度距离对对齐处理后的多段单周期波数据进行筛选,得到多段参考单周期波数据;

    计算参考单周期波数据的平均单周期波数据,作为有效单周期波数据;预处理后脉象数据为有效单周期波数据。

    通过上述方式得到有效单周期波数据,可以有效去除原始脉象数据中的异常波动数据和异常点的干扰,使有效单周期波数据更真实地反映受试者的真实脉搏波动情况。

    其中,通过sliding-Mean算法(滑动平均算法)对原始脉象数据进行平滑处理,可以去掉呼吸或其他噪声产生的基线漂移,便于识别脉象峰值点和谷值点。sliding-Mean算法为现有技术,此处不对其进行详述。

    其中,可以采用现有的峰谷识别算法识别平滑处理后的原始脉象数据中的峰值点和谷值点,此处不对其进行详述。

    其中,原始脉象数据中任意相邻的峰值点和谷值点之间的数据为一段单周期波数据。

    其中,可以采用三次样条插值法,对截取得到的多段单周期波数据进行数据点对齐处理,此为现有技术,此处不对其进行详述。通过数据点对齐处理后,各段单周期波数据的数据长度相同。通过三次样条插值,可以在一定程度上削弱异常点对整体波形的影响。

    其中,计算对齐处理后的多段单周期波数据两两之间的相似度距离的步骤包括:

    根据以下公式计算对齐处理后的多段单周期波数据两两之间的相似度距离:

    ;

    其中,P和Q为对齐处理后的两段单周期波数据(P和Q可以是任意两段对齐处理后的单周期波数据,即任意两段对齐处理后的单周期波数据之间的相似度距离均通过上式计算),为P和Q之间的相似度距离,是P和Q之间的最长公共子串,、分别是P和Q的数据长度,为P和Q之间的第k组配准元素之间的欧式距离(一组配准元素包括两个元素,其中一个元素属于P,另一个元素属于Q,且该两个元素之间通过配准算法确定了配准关系,配准算法为现有技术,此处不对其进行详述),,i是第k组配准元素中属于P的元素的序号,j是第k组配准元素中属于Q的元素的序号,是第k组配准元素中属于P的元素,是第k组配准元素中属于Q的元素,K为P和Q之间的配准元素的组数。通过上式中的项,能够保证两个相似性较高的对齐处理后的单周期波数据之间的相似度距离接近于0,从而便于后续进行数据筛选。

    其中,根据相似度距离对对齐处理后的多段单周期波数据进行筛选,得到多段参考单周期波数据的步骤可以包括:

    依次以对齐处理后的各段单周期波数据作为目标单周期波数据;

    以与目标单周期波数据之间的相似度距离小于预设相似度距离阈值(可根据实际需要设置)的其它单周期波数据作为该目标单周期波数据的匹配单周期波数据,统计各个目标单周期波数据对应的匹配单周期波数据的数量;

    选取匹配单周期波数据的数量最多的目标单周期波数据以及相应的匹配单周期波数据作为参考单周期波数据(例如,假设匹配单周期波数据的数量最多的目标单周期波数据为单周期波数据A,该单周期波数据A的匹配单周期波数据包括单周期波数据B、单周期波数据C和单周期波数据D,则参考单周期波数据包括单周期波数据A、单周期波数据B、单周期波数据C和单周期波数据D)。

    通过上述方式筛选参考单周期波数据,可以保留最多的数据,从而使原始脉象数据得到最重复的利用,有利于使最终得到的有效单周期波数据更真实地反映受试者的真实脉搏波动情况。

    其中,计算平均单周期波数据时,计算各参考单周期波数据中同一排序的元素的平均值作为平均单周期波数据中对应排序的元素。例如,计算参考单周期波数据A、参考单周期波数据B、参考单周期波数据C和参考单周期波数据D的第一个元素的平均值,作为平均单周期波数据E的第一个元素,计算参考单周期波数据A、参考单周期波数据B、参考单周期波数据C和参考单周期波数据D的第二个元素的平均值,作为平均单周期波数据E的第二个元素,以此类推。

    具体地,步骤A1中,由中医专家对受试者进行脉力判断,以对受试者的脉力进行脉力等级评分,并把评分结果作为该受试者的原始脉象数据的脉力等级分值以及相应的有效单周期波数据的脉力等级标签值。从而使最终建立的样本集是由中医专家的经验所支持的专家数据集,保证利用该样本集训练得到的CLLSR混合神经网络模型的预测结果的准确性和可解释性。其中,脉力等级的范围可以为0-100,从而,脉力等级标签值为0-100,但不限于此。

    在一些优选实施方式中,步骤A1还包括:

    对计算得到的有效单周期波数据进行随机噪声添加,得到新的有效单周期波数据;

    把添加噪声前的有效单周期波数据对应的脉力等级标签值,作为相应的新的有效单周期波数据的脉力等级标签值。

    通过上述方式进行数据增强,可以扩大样本集的数据量,保证有足够数据对CLLSR混合神经网络模型进行训练。

    其中,添加噪声时可以分别对同一个有效单周期波数据进行不同种类的噪声(如白噪声、高斯噪声等)的添加,以生成多个含有不同种类噪声的新的有效单周期波数据,其中,针对同一种噪声,可以分别在同一个有效单周期波数据中随机添加不同强度范围(可以根据实际需要设置)的噪声,以得到多个含有同种类噪声但噪声强度不同的新的有效单周期波数据(例如在预设强度范围一中随机确定一个第一强度,以此生成包含第一强度的a噪声的新的有效单周期波数据,a噪声可以指任意一种噪声,并在预设强度范围二中随机确定一个第二强度,以此生成包含第二强度的a噪声的新的有效单周期波数据)。通过添加不同噪声来实现数据增强,可以在一定程度上提高CLLSR混合神经网络模型的泛化能力。

    其中,步骤A2中,可以按预设比例(根据实际需要设置)把样本集划分为训练集和测试集,例如预设比例为7.5:2.5,但不限于此。

    在一些实施方式中,见图2,CLLSR混合神经网络模型包括依次连接的输入层1、三层一维CNN神经网络2(一维卷积神经网络)、两层LSTM神经网络3(长短期记忆神经网络)、全连接层4、标签平滑正则化层5和输出层6。

    其中,图2中的输入层1中的X1-Xn表示输入的单周期波数据的各个元素,n为输入的单周期波数据的元素数量(即输入的单周期波数据的特征维度)。

    其中,一维CNN神经网络2对输入数据进行卷积后利用最大池化来降低特征维度。

    其中,LSTM神经网络3中的激活函数为ELU激活函数。该ELU激活函数为:

    ;其中,x为自变量,为ELU激活函数,e为自然对数底数。

    其中,全连接层4用于把LSTM神经网络3的输出结果的特征转化为一维向量。

    其中,标签平滑正则化层5用于对不均衡的标签进行平滑处理。优选地,标签平滑正则化层5对标签进行平滑处理的处理函数为:

    ;

    其中,为平滑处理后的新标签,为真实标签,为超参数,为类别数,为被平滑处理的标签对应的类别。

    优选地,步骤A4包括:

    A401.把训练集的样本数据中的预处理后脉象数据输入CLLSR混合神经网络模型,得到CLLSR混合神经网络模型输出的预测结果;

    A402.根据该预测结果和对应的样本数据中的脉力等级标签值,计算损失函数;

    A403.若损失函数满足预设停止条件,则停止训练;

    A404.若损失函数不满足预设停止条件,则利用Adam优化器优化CLLSR混合神经网络模型的模型参数后,基于训练集中的下一个样本数据重复上述训练步骤(即步骤A401-步骤A404);

    A405.停止训练后,利用测试集对训练后的CLLSR混合神经网络模型进行交叉验证,验证通过后得到训练好的CLLSR混合神经网络模型。

    优选地,损失函数为平均绝对百分比误差或均方对数误差。

    其中,平均绝对百分比误差为:

    ;为平均绝对百分比误差,jj为序号,为第jj个训练样本数据(即第jj次训练迭代过程使用的样本数据),为第jj个预测结果(即CLLSR混合神经网络模型在第jj次训练迭代输出的预测结果),m为当前已使用的训练样本数据的总数(等于当前的训练迭代总次数)。

    其中,均方对数误差为:

    。

    其中,预设停止条件可以根据实际需要设置,例如预设停止条件为:损失函数小于预设的损失函数阈值(可根据实际需要设置);但不限于此。

    其中,利用Adam优化器优化模型参数的过程为现有技术,此处不对其进行详述。

    其中,利用测试集进行交叉验证的过程为现有技术,此处不对其进行详述。

    其中,步骤A5包括:

    通过压力传感器在待测对象的寸口关部脉位处采集多个不同预压力下的脉象数据,记为第二脉象数据(具体参考前文的第一脉象数据的采集过程);

    从多个第二脉象数据中,筛选一个最优脉象数据,作为对应受试者的实测脉象数据(具体参考前文的原始脉象数据的筛选过程);

    对该实测脉象数据进行预处理,得到对应的有效单周期波数据(参考前文的预处理过程),记为有效实测单周期波数据;

    把该有效实测单周期波数据输入训练好的CLLSR混合神经网络模型,得到训练好的CLLSR混合神经网络模型输出的脉力等级预测值。

    分别利用单一全连接层(FC)、单个LSTM神经网络(LSTM)、单个CNN神经网络(CNN)、现有的LSTM和CNN结合的神经网络模型(CNN+LSTM)、上述的CLLSR混合神经网络模型(CLLSR)对训练集和测试集的样本数据进行脉力等级预测,预测结果对比如表1所示。

    表1

    ;

    表1中,指标MAPE表示平均绝对百分比误差,指标MSLE表示均方对数误差,准确率(±10)表示±10分的脉力等级范围的样本数据的预测结果准确率,准确率(±5)表示±5分的脉力等级范围的样本数据的预测结果准确率。从表中可以看到本申请的CLLSR混合神经网络模型预测结果准确率最高。

    综上所述,本申请的基于CLLSR混合模型的脉力等级预测方法具有以下优点:

    对原始脉象数据经过一系列预处理,并由中医专家进行脉力等级评分,构建了带有脉力等级标签值的专家数据集。利用DTW算法对单周期波数据中的异常波动数据进行剔除,并从剔除异常波动的单周期波数据中利用平均法获取有效单周期波数据,平均法能够有效去除原始脉象数据中异常点的干扰。往有效单周期波数据中添加不同噪声来实现样本集的数据增强,在一定程度上提高了模型的泛化能力。利用CLLSR混合神经网络模型进行脉力等级预测,能够减少人工判断脉力的误差,提高预测准确性和可解释性。

    在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。

    以上所述仅为本申请的实施例而已,并不用于限制本申请的保护范围,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

    一种基于CLLSR混合模型的脉力等级预测方法

    Technical field

    The present application relates to the field of traditional Chinese medicine pulse diagnosis technology, specifically, to a pulse level prediction method based on the CLLSR hybrid model.

    Background technology

    Pulse diagnosis is an important part of traditional Chinese medicine, and its non-invasive and convenient diagnosis characteristics make it highly competitive and highly valuable in disease diagnosis. According to the theory of traditional Chinese medicine, the pulse is composed of eight elements, namely pulse position, pulse rate, pulse force, pulse length, pulse width, uniformity, tension, and fluency.

    As an important factor in the eight elements of pulse, pulse can reflect the strength of the human body's pulse beat, and the strength of the pulse can reflect the strength of the physiological functions of the human body's internal organs and the rise and fall of qi, blood, yin and yang, and can provide a strong basis for judging disease syndromes. In the prior art, the pulse force is often associated with the main wave amplitude value h1 in the pulse diagram parameters, but the characteristic basis related to the pulse force is not found from the objective pulse data, and it is necessary to analyze the pulse force from other perspectives. The current pulse diagnosis equipment can carry out simple prediction of pulse force, but the specific prediction model and accuracy are unknown, so it is necessary to build a pulse prediction model and confirm the accuracy of pulse prediction in combination with deep neural network.

    Contents of the invention

    The purpose of this application is to provide a pulse rating prediction method based on CLLSR hybrid model, which can improve the prediction accuracy of pulse force rating grade.

    The application provides a pulse level prediction method based on a CLLSR hybrid model, comprising steps:

    A1. obtaining a plurality of original pulse data, and carrying out pulse grade scoring and data preprocessing on the original pulse data, obtaining a plurality of sample data, forming a sample set; each sample data comprises pulse data after pretreatment and corresponding pulse grade label value;

    A2. Divide the sample set into a training set and a test set;

    A3.Construct a CLLSR hybrid neural network model based on CNN neural network and LSTM neural network;

    A4. taking the preprocessed pulse image data in the sample data as the model input of the CLLSR hybrid neural network model, and taking the pulse level prediction value as the model output of the CLLSR hybrid neural network model, using the training set to train the CLLSR hybrid neural network model, and testing the trained CLLSR hybrid neural network model with the test set to obtain the trained CLLSR hybrid neural network model;

    A5. The trained CLLSR hybrid neural network model is used to predict the pulse level based on the measured pulse data of the object to be measured.

    Through the pulse rating and data preprocessing of the original pulse data, an expert dataset with pulse level labels (i.e., pulse level label values) was constructed, based on which the CLLSR hybrid neural network model was trained, and the accuracy of the prediction results could be improved by using the trained CLLSR hybrid neural network model for pulse level prediction.

    Preferably, in step A1, the steps for obtaining a plurality of raw pulse data comprise:

    For a plurality of subjects, a plurality of pulse data under different prepressures are collected at the pulse position of the inch-mouth gate of each subject through a pressure sensor, and are recorded as the first pulse data;

    From a plurality of first pulse data corresponding to different prepressures of the same subject, an optimal pulse data is screened as the original pulse data of the corresponding subject.

    Using multiple prepressures for the same subject to collect pulse data, and selecting the best as effective data can improve the clarity of the pulse data obtained, so that the obtained pulse data can better reflect the real pulse fluctuation of the subject.

    Preferably, in step A1, data preprocessing of the raw pulse data comprises:

    The sliding-MEAN algorithm was used to smooth the original pulse data;

    Identify the peak and trough points in the smoothed original pulse data;

    intercepting multi-segment single-period wave data from the smoothed original pulse data according to the peak point and the valley point;

    the intercepted multi-segment single-period wave data are aligned with data points;

    Calculate the similarity distance between the two pairs of the aligned multi-segment single-period wave data.

    according to the similarity distance, the aligned multi-segment single-period wave data are screened to obtain multi-segment reference single-period wave data;

    calculating the average single-period wave data of the reference single-period wave data is used as the effective single-period wave data, and the pulse data after the pretreatment is the effective single-period wave data.

    The effective single-period wave data obtained by the above method can effectively remove the interference of abnormal fluctuation data and abnormal points in the original pulse data, so that the effective single-period wave data can more truly reflect the real pulse fluctuation of the subjects.

    Preferably, Step A1 also includes:

    random noise is added to the calculated effective single-period wave data to obtain a new effective single-period wave data;

    the pulse level label value corresponding to the effective single-period wave data before adding noise is taken as the corresponding pulse level label value of the new effective single-period wave data.

    Preferably, the steps for calculating the similarity distance between two pairs of the aligned multi-segment single-period wave data comprise:

    The similarity distance between pairs of aligned multi-segment single-period wave data is calculated according to the following formula:

    ;

    wherein, P and Q are the two single-period wave data after alignment, the similarity distance between P and Q, the longest common substring between P and Q, the data length of P and Q respectively, the Euclidean distance between the k-th registration elements between P and Q, i is the ordinal number of the elements belonging to P in the k-th registration element, and j is the ordinal number of the elements belonging to Q in the k-th registration elementis the element belonging to P in the k-registration element, is the element belonging to Q in the k-registration element, and K is the number of groups of registration elements between P and Q.

    Preferably, the CLLSR hybrid neural network model comprises a sequentially connected input layer, a three-layer one-dimensional CNN neural network, a two-layer LSTM neural network, a fully connected layer, a label smoothing regularization layer and an output layer.

    Preferably, the activation function in the LSTM neural network is the ELU activation function.

    Preferably, the processing function of the label smoothing regularization layer to smooth the label is:

    ;

    Among them, it is the new label after smoothing, the real label, the hyperparameter, the number of categories, and the category corresponding to the smoothed label.

    Preferably, Step A4 includes:

    input the preprocessed pulse data in the sample data of the training set into the CLLSR hybrid neural network model, and obtain the prediction results output by the CLLSR hybrid neural network model;

    calculating the loss function according to the prediction result and the corresponding pulse grade label value in the sample data;

    If the loss function satisfies the preset stopping condition, the training is stopped;

    if the loss function does not satisfy the preset stopping condition, the Adam optimizer is used to optimize the model parameters of the CLLSR hybrid neural network model, and the above training steps are repeated based on the next sample data in the training set;

    After the training is stopped, the test set is used to cross-verify the trained CLLSR hybrid neural network model, and the trained CLLSR hybrid neural network model is obtained after the verification is passed.

    Preferably, the loss function is the mean absolute percentage error or the logarithmic error of mean square.

    Beneficial effect: The pulse level prediction method based on the CLLSR hybrid model provided in this application constructs an expert dataset with pulse level labels (i.e., pulse level label values) through pulse rating and data preprocessing of the original pulse data, based on which the CLLSR hybrid neural network model is trained, and the accuracy of the prediction results can be improved by using the trained CLLSR hybrid neural network model for pulse level prediction.

    Description of the drawings

    Fig. 1 is a flow chart of the pulse level prediction method based on the CLLSR hybrid model provided in the embodiment of the present application.

    Figure 2 shows the structure of the CLLSR hybrid neural network model.

    Label description: 1. Input layer, 2. One-dimensional CNN neural network, 3. LSTM neural network, 4. Fully connected layer, 5. Label smoothing regularization layer, 6. Output layer.

    The specific embodiment

    The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only part of the embodiments of the present application, not all embodiments. The components of the embodiment of the present application, which are normally described and shown in the drawings herein, may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but merely indicates the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by a person skilled in the art without creative work fall within the scope of protection of the present application.

    It should be noted that similar designations and letters indicate similar terms in the drawings below, so that once an item is defined in a drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of the present application, the terms "first", "second", etc., are only used to distinguish the description and cannot be construed as indicating or implying relative importance.

    Please refer to FIG. 1, FIG. 1 is a pulse rating prediction method based on CLLSR hybrid model in some embodiments of the present application, comprising steps:

    A1. Obtain a plurality of raw pulse data, and perform pulse grade scoring and data preprocessing on the original pulse data to obtain a plurality of sample data to form a sample set;

    A2.Divide the sample set into a training set and a test set;

    A3.Construct a CLLSR hybrid neural network model based on CNN neural network and LSTM neural network;

    A4.The preprocessed pulse data in the sample data was used as the model input of the CLLSR hybrid neural network model, and the pulse level prediction value was used as the model output of the CLLSR hybrid neural network model, and the CLLSR hybrid neural network model was trained by the training set, and the trained CLLSR hybrid neural network model was tested with the test set to obtain the trained CLLSR hybrid neural network model.

    A5.The trained CLLSR hybrid neural network model is used to predict the pulse level of the measured pulse data of the test object.

    Through the pulse rating and data preprocessing of the original pulse data, an expert dataset (i.e., sample set) with pulse rating (i.e., pulse rating label value) was constructed, based on which the CLLSR hybrid neural network model was trained, and the accuracy of the prediction results could be improved by using the trained CLLSR hybrid neural network model for pulse level prediction.

    In fact, for the same subject, the pre-pressure of the pressure sensor (i.e., the pressure of the pressure sensor at the pulse position of the inch-mouth pass) is different, and the amplitude of the collected pulse data is different, and the larger the amplitude of the pulse data, the clearer the data characteristics, therefore, each subject has the corresponding optimal pre-pressure, and the optimal pre-pressure of different subjects is generally different.

    Preferably, in Step A1, the steps to acquire multiple raw pulse data include:

    For multiple subjects, a number of pulse data under different prepressures were collected at the pulse position of each subject's inch-mouth gate through a pressure sensor, which was recorded as the first pulse data;

    From the multiple first pulse data corresponding to different prepressures of the same subject, an optimal pulse data was selected as the original pulse data of the corresponding subject.

    Using multiple prepressures for the same subject to collect pulse data, and selecting the best as effective data can improve the clarity of the pulse data obtained, so that the obtained pulse data can better reflect the real pulse fluctuation of the subject.

    Among them, the gradient of the pre-pressure applied to each subject (refers to the number of pre-pressure, for example, if 10 different pre-pressures are applied to the subject, the gradient number of pre-pressure is 10) and the corresponding pressure value can be set according to actual needs. For example, 10 gradients of prepressure are applied to each subject, and the prepressure of each gradient corresponds to the collection of a first pulse data, which are 50g, 70g, 90g, 110g, 130g, 150g, 170g, 190g, 210g, and 230g, but are not limited to 10 gradients, and the pressure value of each gradient is not limited to this.

    Among them, when collecting the first pulse data, the data can be collected according to the preset sampling frequency (which can be set according to actual needs) and the preset duration (which can be set according to actual needs, such as 5s).

    Wherein, from the plurality of first pulse data corresponding to different prepressures of the same subject, the steps of screening an optimal pulse data as the original pulse data of the corresponding subjects may include: selecting the first pulse data with the largest amplitude of the pulse data as the original pulse data of the corresponding subjects from the plurality of first pulse data corresponding to different prepressures of the same subject.

    Preferably, in step A1, data preprocessing of the raw pulse data includes:

    The sliding-MEAN algorithm was used to smooth the original pulse data.

    Identify the peak and trough points in the smoothed original pulse data;

    According to the peak point and valley point, the multi-segment single-period wave data was intercepted from the smoothed original pulse data.

    The intercepted multi-segment single-period wave data is aligned with data points.

    Calculate the similarity distance between the two pairs of the aligned multi-segment single-period wave data.

    According to the similarity distance, the aligned multi-segment single-period wave data was screened to obtain multi-segment reference single-period wave data.

    The average single-period wave data of the reference single-period wave data is calculated as the effective single-period wave data, and the pulse data after preprocessing is the effective single-period wave data.

    The effective single-period wave data obtained by the above method can effectively remove the interference of abnormal fluctuation data and abnormal points in the original pulse data, so that the effective single-period wave data can more truly reflect the real pulse fluctuation of the subjects.

    Among them, the sliding-mean algorithm (moving average algorithm) is used to smooth the original pulse data, which can remove the baseline drift caused by breathing or other noise, and facilitate the identification of pulse peak and trough points. The sliding-mean algorithm is an existing art and is not described in detail here.

    Among them, the existing peak-to-valley identification algorithm can be used to identify the peak and trough points in the smoothed original pulse data, which are not described in detail here.

    Among them, the data between any adjacent peak and trough points in the original pulse data is a single-period wave data.

    Among them, the cubic spline interpolation method can be used to align the data points of the intercepted multi-segment single-period wave data, which is the prior art and is not described in detail here. After the data point alignment process, the data length of each segment of single-period wave data is the same. Through cubic spline interpolation, the influence of outliers on the overall waveform can be weakened to a certain extent.

    Among them, the steps to calculate the similarity distance between two pairs of multi-segment single-period wave data after alignment processing include:

    The similarity distance between pairs of aligned multi-segment single-period wave data is calculated according to the following formula:

    ;

    Among them, P and Q are the two single-period wave data after alignment (P and Q can be any two single-period wave data after alignment, that is, the similarity distance between any two single-period wave data after alignment is calculated by the above formula), which is the similarity distance between P and Q, which is the longest common substring between P and Q, and the data length of P and Q respectivelyis the Euclidean distance between the k-th registration elements between P and Q (a set of registration elements comprises two elements, one of which belongs to P and the other belongs to Q, and the registration relationship between the two elements is determined by a registration algorithm, and the registration algorithm is a prior art, which is not described in detail here), where i is the ordinal number of the element belonging to P in the k-th group registration element, j is the ordinal number of the element belonging to Q in the k-group registration element, and is the element belonging to P in the k-group registration elementis the element belonging to Q in the k-registration element, and K is the number of groups of registration elements between P and Q. Through the terms in the above equation, the similarity distance between the two single-period wave data with high similarity can be ensured to be close to 0, so as to facilitate the subsequent data screening.

    Among them, the steps to obtain the multi-segment reference single-period wave data after the alignment processing are screened according to the similarity distance can include:

    The single-period wave data of each segment after alignment were used as the target single-period wave data.

    The number of matching single-period wave data corresponding to each target single-period wave data is counted by taking other single-period wave data with the similarity distance of the target data less than the preset similarity distance threshold (which can be set according to actual needs) as the matching single-period wave data of the target single-period wave data.

    Select the target single-period wave data with the largest number of matching single-period wave data and the corresponding matching single-period wave data as the reference single-period wave data (for example, assuming that the target single-period wave data with the largest number of matching single-period wave data is single-period wave data A, and the matching single-period wave data of single-period wave data A includes single-period wave data B, single-period wave data C, and single-period wave data D, then the reference single-period wave data includes single-period wave data A, single-period wave data B, Single-period wave data C and single-period wave data D).

    By screening the reference single-period wave data in the above way, the most data can be retained, so that the original pulse data can be used most repeatedly, which is conducive to making the final effective single-period wave data more truly reflect the real pulse fluctuation of the subject.

    When calculating the average single-period wave data, the average value of the elements in the same order in each reference single-period wave data is calculated as the corresponding sorted elements in the average single-period wave data. For example, calculate the average of the first element of reference single-period wave data A, reference single-period wave data B, reference single-period wave data C, and reference single-period wave data D as the first element of average single-period wave data E, calculate the average of the second element of reference single-period wave data A, reference single-period wave data B, reference single-period wave data C, and reference single-period wave data D as the second element of average single-period wave data E, and so on.

    Specifically, in step A1, the TCM expert judges the pulse of the subject, scores the pulse force of the subject, and takes the scoring result as the pulse rating score of the subject's original pulse data and the corresponding pulse grade label value of the effective single-cycle wave data. Therefore, the final sample set is an expert dataset supported by the experience of TCM experts, which ensures the accuracy and interpretability of the prediction results of the CLLSR hybrid neural network model trained by using this sample set. The pulse rating can range from 0-100, and thus, the pulse rating tag value is 0-100, but not limited to.

    Among some preferred embodiments, step A1 also includes:

    Random noise is added to the calculated effective single-period wave data to obtain a new effective single-period wave data.

    The pulse level label value corresponding to the effective single-period wave data before the noise is added is used as the corresponding pulse level label value of the new effective single-period wave data.

    Data augmentation in the above methods can expand the data volume of the sample set and ensure that there is enough data to train the CLLSR hybrid neural network model.

    Among them, when adding noise, different kinds of noise (such as white noise, Gaussian noise, etc.) to generate a plurality of new effective single-period wave data containing different kinds of noise, wherein, for the same kind of noise, noise of different intensity ranges (which can be set according to actual needs) can be randomly added to the same effective single-period wave data respectively to obtain a plurality of new effective single-period wave data containing the same kind of noise but different noise intensities (for example, a first intensity is randomly determined in the preset intensity range one, so as to generate a noise containing the first intensity, a noise can refer to any kind of noise, and a second intensity is randomly determined in the preset intensity range twoto generate a new effective single-period wave data containing a noise of second intensity). By adding different noises to achieve data augmentation, the generalization ability of the CLLSR hybrid neural network model can be improved to a certain extent.

    In step A2, the sample set can be divided into a training set and a test set according to a preset ratio (set according to actual needs), for example, the preset ratio is 7.5:2.5, but not limited to.

    In some embodiments, see Figure 2, the CLLSR hybrid neural network model comprises a sequentially connected input layer 1, a three-layer one-dimensional CNN neural network 2 (a one-dimensional convolutional neural network), a two-layer LSTM neural network 3 (a long short-term memory neural network), a fully connected layer 4, a label smoothing regularization layer 5, and an output layer 6.

    Among them, X1-Xn in the input layer 1 in Figure 2 represents the elements of the input single-period wave data, and n is the number of elements of the input single-period wave data (i.e., the characteristic dimensions of the input single-period wave data).

    Among them, the one-dimensional CNN neural network 2 uses maximum pooling to reduce the feature dimension after convoluting the input data.

    Among them, the activation function in LSTM neural network 3 is the ELU activation function. The ELU activation function is:

    where x is the independent variable, which is the ELU activation function, and e is the natural logarithmic base.

    Among them, the fully connected layer 4 is used to convert the features of the output result of LSTM neural network 3 into a one-dimensional vector.

    Wherein, the label smoothing regularization layer 5 is used to smooth the unbalanced labels. Preferably, the processing function of label smoothing regularization layer 5 for label smoothing is as follows:

    ;

    Among them, it is the new label after smoothing, the real label, the hyperparameter, the number of categories, and the category corresponding to the smoothed label.

    Preferably, Step A4 includes:

    A401. input the preprocessed pulse data in the sample data of the training set into the CLLSR hybrid neural network model, and obtain the prediction results output by the CLLSR hybrid neural network model;

    A402. Calculate the loss function according to the prediction result and the pulse level label value in the corresponding sample data;

    A403. If the loss function satisfies the preset stop condition, the training will be stopped.

    A404. If the loss function does not meet the preset stop condition, the Adam optimizer is used to optimize the model parameters of the CLLSR hybrid neural network model, and then repeat the above training steps (i.e., steps A401-A404) based on the next sample data in the training set;

    A405. After the training is stopped, the test set is used to cross-verify the trained CLLSR hybrid neural network model, and the trained CLLSR hybrid neural network model is obtained after the verification is passed.

    Preferably, the loss function is either the mean absolute percentage error or the logarithmic error of mean square.

    The average absolute percentage error is:

    ;is the average absolute percentage error, jj is the ordinal number, is the training sample data of jj (i.e., the sample data used in the training iteration of jj), is the prediction result of jj (i.e., the prediction result output of the CLLSR hybrid neural network model in the training iteration of jj), and m is the total number of training sample data that has been used (equal to the total number of training iterations).

    Wherein, the logarithmic error of mean square is:

    。

    For example, the preset stop condition is less than the preset loss function threshold (which can be set according to actual needs), but is not limited to.

    Among them, the process of using the Adam optimizer to optimize the model parameters is the prior art, which is not described in detail here.

    The process of cross-validating using test sets is prior art and is not described in detail here.

    Step A5 includes:

    Collect a plurality of pulse data under different prepressures through the pressure sensor at the pulse position of the inch-mouth gate of the object to be measured, which is recorded as the second pulse data (refer to the collection process of the first pulse data above);

    From a plurality of second pulse data, an optimal pulse data was selected as the measured pulse data of the corresponding subjects (refer to the screening process of the original pulse data above).

    The measured pulse data is preprocessed to obtain the corresponding effective single-period wave data (refer to the preprocessing process above), which is recorded as the effective measured single-period wave data.

    The effective measured single-period wave data is input into the trained CLLSR hybrid neural network model, and the pulse level prediction value output by the trained CLLSR hybrid neural network model is obtained.

    The pulse level prediction of the sample data of the training set and the test set was carried out by using a single fully connected layer (FC), a single LSTM neural network (LSTM), a single CNN neural network (CNN), an existing neural network model combining LSTM and CNN (CNN+LSTM), and the above-mentioned CLLSR hybrid neural network model (CLLSR), respectively, and the prediction results are shown in Table 1.

    Table 1

    ;

    In Table 1, the indicator MAPE represents the mean absolute percentage error, the indicator MSLE represents the mean square logarithmic error, the accuracy (±10) represents the prediction accuracy of the sample data ± 10 points in the pulse level range, and the accuracy (±5) represents the prediction accuracy of the sample data ± 5 points in the pulse level range. As can be seen from the table, the CLLSR hybrid neural network model of this application has the highest accuracy in prediction results.

    In summary, the pulse level prediction method based on the CLLSR hybrid model in the present application has the following advantages:

    After a series of preprocessing of the original pulse data, and the pulse rating was carried out by TCM experts, an expert dataset with pulse grade label values was constructed. The DTW algorithm is used to eliminate the abnormal fluctuation data in the single-period wave data, and the average method is used to obtain the effective single-period wave data from the single-period wave data that eliminates abnormal fluctuations, and the averaging method can effectively remove the interference of abnormal points in the original pulse data. The data augmentation of the sample set is achieved by adding different noises to the effective single-period wave data, which improves the generalization ability of the model to a certain extent. The CLLSR hybrid neural network model can reduce the error of manual judgment of pulse force and improve the prediction accuracy and interpretability.

    For the purposes of this article, relational terms such as first and second, etc., are used solely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or sequence between those entities or operations.

    The foregoing is only an embodiment of the present application and is not intended to limit the scope of protection of the present application, which is subject to various changes and variations for those skilled in the art. Any amendments, equivalent replacements, improvements, etc., made within the spirit and principles of this application shall be included in the scope of protection of this application.

    Pulse power grade prediction method based on CLLSR hybrid model
    展开 >
    交易服务流程
    >

    挑选中意的板块

    ----

    客服确认选择专利的交易信息和价格并支付相应款项

    办理转让材料

    ----

    协助双方准备相应的材料

    签订协议

    ----

    协助卖家签订协议

    办理备案手续

    ----

    买卖双方达成一致后

    交易完成

    ----

    交易完成可投入使用

    过户资料 & 安全保障 & 承诺信息
    >

    过户资料

    买卖双方需提供的资料
    公司 个人
    买家 ▪ 企业营业执照
    ▪ 企业组织机构代码证
    ▪ 身份证
    卖家 ▪ 企业营业执照
    ▪ 专利证书原件
    ▪ 身份证
    ▪ 专利证书原件
    网站提供 过户后您将获得
    ▪ 专利代理委托书
    ▪ 专利权转让协议
    ▪ 办理文件副本请求书
    ▪ 发明人变更声明
    ▪ 专利证书
    ▪ 手续合格通知书
    ▪ 专利登记薄副本

    安全保障

    承诺信息

    我方拟转让所持标的项目,通过国家级汽车产业知识产权运营中心公开披露项目信息和组织交易活动,依照公开、公平、公正和诚信的原则作如下承诺:

    1、本次项目交易是我方真实意思表示,项目标的权属清晰,除已披露的事项外,我方对该项目拥有完全的处置权且不存在法律法规禁止或限制交易的情形;
    2、本项目标的中所涉及的处置行为已履行了相应程序,经过有效的内部决策,并获得相应批准;交易标的涉及共有或交易标的上设置有他项权利,已获得相关权利 人同意的有效文件。
    3、我方所提交的信息发布申请及相关材料真实、完整、准确、合法、有效,不存在虚假记载、误导性陈述或重大遗漏;我方同意平台按上述材料内容发布披露信息, 并对披露内容和上述的真实性、完整性、准确性、合法性、有效性承担法律责任;
    4、我方在交易过程中自愿遵守有关法律法规和平台相关交易规则及规定,恪守信息发布公告约定,按照相关要求履行我方义务;
    5、我方已认真考虑本次项目交易行为可能导致的企业经营、行业、市场、政策以及其他不可预计的各项风险因素,愿意自行承担可能存在的一切交易风险;
    6、我方在平台所组织交易期间将不通过其他渠道对标的项目进行交易;
    7、我方将按照平台收费办法及相关交易文件的约定及时、足额支付相关费用,不因与受让方争议或合同解除、终止等原因拒绝、拖延、减少交纳或主张退还相关费用。