CN116701977A - A Human Body Temperature Data Fitting Method Based on Clustering Algorithm and Neural Network - Google Patents
A Human Body Temperature Data Fitting Method Based on Clustering Algorithm and Neural Network Download PDFInfo
- Publication number
- CN116701977A CN116701977A CN202310506177.8A CN202310506177A CN116701977A CN 116701977 A CN116701977 A CN 116701977A CN 202310506177 A CN202310506177 A CN 202310506177A CN 116701977 A CN116701977 A CN 116701977A
- Authority
- CN
- China
- Prior art keywords
- data
- cluster
- point
- center point
- temperature data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000036760 body temperature Effects 0.000 title claims abstract description 25
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000013528 artificial neural network Methods 0.000 title claims abstract description 12
- 238000003062 neural network model Methods 0.000 claims abstract description 9
- 210000000707 wrist Anatomy 0.000 claims description 4
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000012545 processing Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 5
- 238000012360 testing method Methods 0.000 description 5
- 238000002474 experimental method Methods 0.000 description 2
- 230000017525 heat dissipation Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 208000031872 Body Remains Diseases 0.000 description 1
- 201000006306 Cor pulmonale Diseases 0.000 description 1
- 208000016285 Movement disease Diseases 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012804 iterative process Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 210000004243 sweat Anatomy 0.000 description 1
- 230000028016 temperature homeostasis Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
- G06F18/232—Non-hierarchical techniques
- G06F18/2321—Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
- G06F18/23213—Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/22—Matching criteria, e.g. proximity measures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02A—TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
- Y02A90/00—Technologies having an indirect contribution to adaptation to climate change
- Y02A90/10—Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Evolutionary Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Computational Biology (AREA)
- Biophysics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Probability & Statistics with Applications (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Measuring And Recording Apparatus For Diagnosis (AREA)
Abstract
本发明提供了一种基于聚类算法和神经网络的人体温度数据拟合方法,包括:步骤S1,在预设时间段内,持续采集多位实验者于跑步机上持续跑步时的实时温度数据;步骤S2,将预设时间段分割为多个子时间段,针对每个子时间段,统计得到子时间段内的各实时温度数据作为子时间段对应的簇类数据集;步骤S3,针对每个簇类数据集,对簇类数据集内的各实时温度数据进行聚类处理得到对应的簇中心点;步骤S4,针对每个实验者,将实验者对应的各簇中心点及各簇中心点对应的子时间段输入至预先构建的神经网络模型中,得到对应的人体温度数据拟合曲线。有益效果是本发明通过聚类算法和神经网络取出簇中心点并进行曲线拟合,可以有效减小误差。
The present invention provides a human body temperature data fitting method based on a clustering algorithm and a neural network, comprising: step S1, within a preset period of time, continuously collecting real-time temperature data of a plurality of experimenters when running on a treadmill; In step S2, the preset time period is divided into multiple sub-time periods, and for each sub-time period, each real-time temperature data in the sub-time period is statistically obtained as the cluster data set corresponding to the sub-time period; in step S3, for each cluster class data set, clustering each real-time temperature data in the cluster class data set to obtain the corresponding cluster center point; step S4, for each experimenter, the cluster center point corresponding to the experimenter and the corresponding cluster center point The sub-time period is input into the pre-built neural network model, and the corresponding human body temperature data fitting curve is obtained. The beneficial effect is that the present invention can effectively reduce errors by extracting cluster central points through a clustering algorithm and a neural network and performing curve fitting.
Description
技术领域technical field
本发明涉及人体温度分析的技术领域,具体而言,涉及一种基于聚类算法和神经网络的人体温度数据拟合方法。The present invention relates to the technical field of human body temperature analysis, in particular to a human body temperature data fitting method based on a clustering algorithm and a neural network.
背景技术Background technique
人体胸腔皮肤的表面温度机理是非常复杂的,主要受环境、皮肤散热这两种因素影响,在体温调节的作用下,人体体温是保持恒定不变的,但由于运动产热的条件下,人体胸腔表面温度大趋势会跟着运动时间的增加而上升,达到某一时间由于产热和散热机制的作用下会稳定在一段区间内。The surface temperature mechanism of the human chest skin is very complicated, mainly affected by the environment and skin heat dissipation. Under the action of thermoregulation, the body temperature of the human body remains constant. The general trend of chest surface temperature will increase with the increase of exercise time, and it will stabilize within a certain range due to the heat production and heat dissipation mechanism at a certain time.
目前在对人体温度数据进行分析拟合时,通常是通过直接取每个时间点的温度值,但是每个时间点的温度值很多,难以获取具有代表性的点,导致拟合后得到的人体温度数据拟合曲线误差较大。At present, when analyzing and fitting human body temperature data, it is usually by directly taking the temperature value at each time point, but there are many temperature values at each time point, and it is difficult to obtain representative points, resulting in the human body obtained after fitting. The temperature data fitting curve has a large error.
中国专利公开号CN102736911A中,公开了一种数据拟合的方法,包括:获取待拟合的各个样本点的坐标值;对各个点的坐标值进行差分运算;根据所述差分运算结果生成拟合函数;获取目标曲线经过的特殊点,对所述拟合函数进行积分,根据积分公式以及所述特殊点的坐标值获取目标曲线。In Chinese Patent Publication No. CN102736911A, a method of data fitting is disclosed, including: obtaining the coordinate values of each sample point to be fitted; performing a differential operation on the coordinate values of each point; generating a fitting Function; obtain the special point that the target curve passes through, integrate the fitting function, and obtain the target curve according to the integral formula and the coordinate value of the special point.
但是上述拟合方法如果存在某个坐标点与其他坐标值偏差的比较大,就会产生较大的异常,后续再次将拟合曲线进行积分,偏差较大的坐标点又同样会对积分产生影响,严重影响拟合效果,也就是说,现有的人体温度数据拟合方法均存在拟合效果差、误差大的问题。However, if there is a large deviation between a certain coordinate point and other coordinate values in the above fitting method, a large anomaly will occur, and the fitting curve will be integrated again later, and the coordinate point with a large deviation will also affect the integration. , which seriously affects the fitting effect, that is to say, the existing human body temperature data fitting methods all have the problems of poor fitting effect and large error.
发明内容Contents of the invention
本发明要解决的问题是:提供一种基于聚类算法和神经网络的人体温度数据拟合方法能够提高人体温度数据拟合曲线的拟合效果并减小误差。The problem to be solved by the present invention is to provide a human body temperature data fitting method based on a clustering algorithm and a neural network, which can improve the fitting effect of the human body temperature data fitting curve and reduce errors.
为解决上述问题,本发明提供一种基于聚类算法和神经网络的人体温度数据拟合方法,包括以下步骤:In order to solve the above problems, the present invention provides a method for fitting human body temperature data based on clustering algorithm and neural network, comprising the following steps:
步骤S1,在预设时间段内,持续采集多位实验者于跑步机上持续跑步时的实时温度数据;Step S1, within a preset period of time, continuously collect real-time temperature data of multiple experimenters when they continue to run on the treadmill;
步骤S2,将所述预设时间段分割为多个子时间段,针对每个所述子时间段,统计得到所述子时间段内的各所述实时温度数据作为所述子时间段对应的簇类数据集;Step S2, dividing the preset time period into a plurality of sub-time periods, and for each of the sub-time periods, statistically obtain the real-time temperature data in the sub-time periods as clusters corresponding to the sub-time periods class dataset;
步骤S3,针对每个所述簇类数据集,采用聚类算法对所述簇类数据集内的各所述实时温度数据进行聚类处理得到对应的簇中心点;Step S3, for each cluster data set, use a clustering algorithm to perform clustering processing on each of the real-time temperature data in the cluster data set to obtain a corresponding cluster center point;
步骤S4,针对每个所述实验者,将所述实验者对应的各所述簇中心点及各所述簇中心点对应的所述子时间段输入至预先构建的神经网络模型中,得到对应的人体温度数据拟合曲线。Step S4, for each of the experimenters, input each of the cluster center points corresponding to the experimenter and the sub-time periods corresponding to each of the cluster center points into the pre-built neural network model to obtain the corresponding The human body temperature data fitting curve.
优选的,所述步骤S1中,选用年龄在23-25岁之间、身高在174-176厘米之间、体重在65-75公斤之间的多个健康男性作为所述实验者。Preferably, in the step S1, a plurality of healthy males aged between 23-25 years old, with a height between 174-176 cm and a weight between 65-75 kg are selected as the experimenters.
优选的,所述步骤S1中,分别采集各所述实验者在6km/h、7.5km/h和9km/h时速下持续跑步时的所述实时温度数据。Preferably, in the step S1, the real-time temperature data of each experimenter when they continue to run at 6km/h, 7.5km/h and 9km/h are respectively collected.
优选的,所述步骤S2中,将所述预设时间段设为10分钟,并将所述预设时间段平均分割为1分钟时长的多个所述子时间段,每隔1分钟测量各所述实验者手腕处的温度作为所述实时温度数据。Preferably, in the step S2, the preset time period is set to 10 minutes, and the preset time period is evenly divided into a plurality of sub-time periods of 1 minute, and each sub-time period is measured every 1 minute. The temperature at the wrist of the experimenter is used as the real-time temperature data.
优选的,所述步骤S3包括:Preferably, said step S3 includes:
步骤S31,判断是否接收到外部输入的算法指令:Step S31, judging whether an algorithm instruction input from outside is received:
若是,则转向步骤S32;If so, turn to step S32;
若否,则转向步骤S33;If not, then turn to step S33;
步骤S32,于各所述簇类数据集中随机获取多个所述实时温度数据作为初始聚类中心点,将其余各所述实时温度数据作为数据点,根据各所述初始聚类中心点和各所述数据点之间的欧氏距离迭代计算对应的所述簇中心点,随后转向步骤S4;Step S32, randomly obtain a plurality of the real-time temperature data in each of the cluster data sets as the initial cluster center points, and use the remaining real-time temperature data as data points, according to each of the initial cluster center points and each Euclidean distance between the data points iteratively calculates the corresponding center point of the cluster, and then turns to step S4;
步骤S33,将各所述簇类数据集作为初始聚类数目,于各所述初始聚类数目中随机获取多个所述实时温度数据作为初始聚类中心点,将其余各所述实时温度数据作为数据点,根据各所述初始聚类中心点和各所述数据点之间的欧氏距离和相似度得到对应的所述簇中心点。Step S33, using each of the cluster data sets as the initial cluster number, randomly obtaining a plurality of the real-time temperature data from each of the initial cluster numbers as the initial cluster center point, and using the remaining real-time temperature data As data points, the corresponding cluster center points are obtained according to the Euclidean distance and similarity between each of the initial cluster center points and each of the data points.
优选的,所述步骤S32包括:Preferably, said step S32 includes:
步骤S321,于各所述簇类数据集中随机获取多个所述实时温度数据作为所述初始聚类中心点,将其余各所述实时温度数据作为所述数据点;Step S321, randomly acquiring a plurality of the real-time temperature data in each of the cluster data sets as the initial cluster center point, and using the remaining real-time temperature data as the data points;
步骤S322,针对每个所述数据点,基于所述数据点与各所述初始聚类中心点之间的欧氏距离,将所述数据点分配至欧氏距离最近的所述初始聚类中心点所处的所述簇类数据集中;Step S322, for each of the data points, based on the Euclidean distance between the data point and each of the initial cluster center points, assign the data point to the initial cluster center with the closest Euclidean distance The cluster data set where the point is located;
步骤S323,将各所述初始聚类中心点转换为对应的所述数据点,针对每个所述簇类数据集中的每个所述数据点,计算得到所述数据点和其余各所述数据点之间的欧式距离总和,将欧式距离总和最小的所述数据点作为二代聚类中心点;Step S323, converting each of the initial cluster center points into the corresponding data points, and calculating the data points and the remaining data points for each of the data points in each of the cluster data sets The sum of the Euclidean distances between the points, the data point with the smallest sum of Euclidean distances is used as the center point of the second-generation clustering;
步骤S324,根据各所述二代聚类中心点和各所述数据点得到对应的第一聚类误差平方和,将各所述二代聚类中心点作为所述初始聚类中心点返回所述步骤S322,并将所述步骤S323中欧式距离总和最小的所述数据点作为三代聚类中心点,根据各所述三代聚类中心点和各所述数据点得到对应的第二聚类误差平方和;Step S324, obtain the corresponding sum of squares of the first clustering error according to each of the second-generation clustering center points and each of the data points, and return each of the second-generation clustering center points as the initial clustering center point to the Step S322 is described, and the data point with the smallest sum of Euclidean distances in the step S323 is used as the three-generation clustering center point, and the corresponding second clustering error is obtained according to each of the three-generation clustering center points and each of the data points sum of square;
步骤S325,判断所述第二聚类误差平方和是否与所述第一聚类误差平方和相等:Step S325, judging whether the second clustering error sum of squares is equal to the first clustering error sum of squares:
若否,则将各所述三代聚类中心点作为所述初始聚类中心点并返回所述步骤S322;If not, each of the three-generation cluster center points is used as the initial cluster center point and returns to step S322;
若是,则将各所述三代聚类中心点作为所述簇中心点。If yes, each of the three-generation cluster center points is used as the cluster center point.
优选的,所述步骤S33包括:Preferably, said step S33 includes:
步骤S331,将各所述簇类数据集作为所述初始聚类数目,于各所述初始聚类数目中随机获取多个所述实时温度数据作为所述初始聚类中心点,将其余各所述实时温度数据作为所述数据点;Step S331, using each of the cluster data sets as the initial cluster number, randomly obtaining a plurality of the real-time temperature data from each of the initial cluster numbers as the initial cluster center point, and using the remaining The real-time temperature data is used as the data point;
步骤S332,针对每个所述数据点,基于所述数据点与各所述初始聚类中心点之间的欧氏距离以及欧氏距离和相似度之间的负相关原则,将所述数据点分配至欧氏距离最近的所述初始聚类中心点所处的所述簇类数据集中;Step S332, for each of the data points, based on the Euclidean distance between the data point and each of the initial cluster center points and the principle of negative correlation between the Euclidean distance and the similarity, the data points are divided into Assigning to the cluster data set where the initial cluster center point with the closest Euclidean distance is located;
步骤S333,将各所述初始聚类中心点转换为对应的所述数据点,并针对每个所述簇类数据集,将所述簇类数据集中各所述数据点的平均值作为所述簇中心点。Step S333, converting each of the initial cluster center points into the corresponding data points, and for each of the cluster data sets, using the average value of each of the data points in the cluster data sets as the cluster center point.
优选的,所述步骤S4中,所述神经网络模型以所述子时间段对应的时间属性作为输入层输入,以各所述簇中心点对应的温度属性作为输出层输出,拟合得到所述人体温度数据拟合曲线。Preferably, in the step S4, the neural network model uses the time attribute corresponding to the sub-time period as an input layer input, and uses the temperature attribute corresponding to each of the cluster center points as an output layer output to obtain the Human body temperature data fitting curve.
本发明具有以下有益效果:本发明相较于差分积分数据拟合方法,采用聚类算法对簇类数据集中的实时温度数据进行聚类处理取出簇中心点以保证簇中心点的代表性,相比于传统方法直接取代表点误差更小,再通过神经网络模型对簇中心点进行拟合得到人体温度数据拟合曲线,使得其更符合非线性函数的拟合策略,以提高拟合效果。The present invention has the following beneficial effects: Compared with the differential integral data fitting method, the present invention uses a clustering algorithm to cluster the real-time temperature data in the cluster data set to take out the cluster center point to ensure the representativeness of the cluster center point. Compared with the traditional method, the error of directly replacing the representative point is smaller, and then the neural network model is used to fit the center point of the cluster to obtain the fitting curve of the human body temperature data, which makes it more in line with the fitting strategy of the nonlinear function to improve the fitting effect.
附图说明Description of drawings
图1为本发明的步骤流程图;Fig. 1 is a flow chart of steps of the present invention;
图2为本发明的步骤S3的具体流程图;Fig. 2 is the specific flowchart of step S3 of the present invention;
图3为本发明的步骤S32的具体流程图;Fig. 3 is the specific flowchart of step S32 of the present invention;
图4为本发明的步骤S33的具体流程图;Fig. 4 is the specific flowchart of step S33 of the present invention;
图5为本发明的6km/h下实时温度数据经过K-medoids算法处理得到的处理结果示意图;Fig. 5 is the processing result schematic diagram that the real-time temperature data under 6km/h of the present invention obtains through K-medoids algorithm processing;
图6为本发明的7.5km/h下实时温度数据经过K-means算法处理得到的处理结果示意图;Fig. 6 is the processing result schematic diagram that the real-time temperature data under 7.5km/h of the present invention obtains through K-means algorithm processing;
图7为本发明的9km/h下实时温度数据经过K-medoids算法处理得到的处理结果示意图;Fig. 7 is the processing result schematic diagram that the real-time temperature data under 9km/h of the present invention obtains through K-medoids algorithm processing;
图8为本发明的神经网络结构示意图;Fig. 8 is a schematic diagram of the neural network structure of the present invention;
图9为本发明的对6km/h下簇中心点进行拟合的拟合结果示意图;Fig. 9 is a schematic diagram of the fitting results of the present invention for fitting the center point of the cluster under 6km/h;
图10为本发明的对7.5km/h下簇中心点进行拟合的拟合结果示意图;Fig. 10 is the fitting result schematic diagram of the present invention to 7.5km/h lower cluster central point is fitted;
图11为本发明的对9km/h下簇中心点进行拟合的拟合结果示意图。Fig. 11 is a schematic diagram of the fitting results of the present invention for fitting the center points of the clusters at 9 km/h.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更为明显易懂,下面结合附图对本发明的具体实施例做详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
本发明的较佳的实施例中,基于现有技术中存在的上述问题,现提供一种基于聚类算法和神经网络的人体温度数据拟合方法,如图1所示,包括以下步骤:In a preferred embodiment of the present invention, based on the above-mentioned problems existing in the prior art, a human body temperature data fitting method based on a clustering algorithm and a neural network is now provided, as shown in Figure 1, comprising the following steps:
步骤S1,在预设时间段内,持续采集多位实验者于跑步机上持续跑步时的实时温度数据;Step S1, within a preset period of time, continuously collect real-time temperature data of multiple experimenters when they continue to run on the treadmill;
步骤S2,将预设时间段分割为多个子时间段,针对每个子时间段,统计得到子时间段内的各实时温度数据作为子时间段对应的簇类数据集;In step S2, the preset time period is divided into multiple sub-time periods, and for each sub-time period, each real-time temperature data in the sub-time period is statistically obtained as a cluster data set corresponding to the sub-time period;
步骤S3,针对每个簇类数据集,采用聚类算法对簇类数据集内的各实时温度数据进行聚类处理得到对应的簇中心点;Step S3, for each cluster data set, use a clustering algorithm to cluster each real-time temperature data in the cluster data set to obtain a corresponding cluster center point;
步骤S4,针对每个实验者,将实验者对应的各簇中心点及各簇中心点对应的子时间段输入至预先构建的神经网络模型中,得到对应的人体温度数据拟合曲线。Step S4, for each experimenter, input each cluster center point corresponding to the experimenter and the sub-time period corresponding to each cluster center point into the pre-built neural network model to obtain the corresponding human body temperature data fitting curve.
具体地,本实施例中,相较于差分积分数据拟合,本实施例对簇类数据集进行聚类算法处理,取出簇中心点(簇中心点为簇类数据中最具有代表性的点),再将其进行神经网络数据拟合,通过聚类算法取出簇中心点更加具有代表性,并且经过神经网络拟合提高数据拟合效果,更适合非线性函数的拟合。Specifically, in this embodiment, compared with differential integral data fitting, this embodiment performs clustering algorithm processing on the cluster data set, and takes out the cluster center point (the cluster center point is the most representative point in the cluster data ), and then fit it to the neural network data, it is more representative to extract the cluster center point through the clustering algorithm, and the data fitting effect is improved through the neural network fitting, which is more suitable for the fitting of nonlinear functions.
本发明的较佳的实施例中,步骤S1中,选用年龄在23-25岁之间、身高在174-176厘米之间、体重在65-75公斤之间的多个健康男性作为实验者。In a preferred embodiment of the present invention, in step S1, multiple healthy males aged between 23-25 years old, 174-176 cm in height, and 65-75 kg in weight are selected as experimenters.
具体地,本实施例中,选取了20名普通健康男性实验者,年龄在24±1岁,身高在175±1cm,体重70±5kg,所有实验者均满足三个条件:(1)无心肺疾病与运动障碍疾病;(2)试验期间均无感冒等现状;(3)自愿完成整个实验环节。Specifically, in this example, 20 normal healthy male experimenters were selected, aged 24±1 years old, 175±1cm in height, and 70±5kg in weight, and all experimenters met three conditions: (1) no cardiopulmonary Diseases and movement disorders; (2) No colds and other current conditions during the test period; (3) Volunteer to complete the entire experiment.
优选的,所有测试过程在恒温恒湿实验室中进行,为了避免人体生物节律性变化对测试的影响,实验安排在下午进行,本实施例采用的实验环境在室温为20±1摄氏度,湿度为40±5%的条件下进行,室内风速可忽略不计,体温测量采用温度测试仪,排汗量采用局部收集法的方式。Preferably, all test processes are carried out in a constant temperature and humidity laboratory. In order to avoid the impact of human body biorhythm changes on the test, the experiment is arranged in the afternoon. The experimental environment used in this embodiment is at room temperature of 20 ± 1 degrees Celsius, and the humidity is It is carried out under the condition of 40±5%, the indoor wind speed is negligible, the body temperature is measured by a temperature tester, and the sweat volume is collected by the local collection method.
本发明的较佳的实施例中,步骤S1中,分别采集各实验者在6km/h、7.5km/h和9km/h时速下持续跑步时的实时温度数据。In a preferred embodiment of the present invention, in step S1, the real-time temperature data of each experimenter when running continuously at 6km/h, 7.5km/h and 9km/h are respectively collected.
本发明的较佳的实施例中,步骤S2中,将预设时间段设为10分钟,并将预设时间段平均分割为1分钟时长的多个子时间段,每隔1分钟测量各实验者手腕处的温度作为实时温度数据。In a preferred embodiment of the present invention, in step S2, the preset time period is set to 10 minutes, and the preset time period is evenly divided into multiple sub-time periods of 1 minute length, and each experimenter is measured every 1 minute The temperature at the wrist serves as real-time temperature data.
具体地,本实施例中,跑步机分别设置6km/h、7.5km/h和9km/h速度进行测试,跑步测试10分钟,每隔1分钟测试实验者手腕处的温度,并记录实时温度数据。Specifically, in this embodiment, the treadmill is set to 6km/h, 7.5km/h and 9km/h speeds for testing, and the running test lasts 10 minutes, and the temperature at the wrist of the experimenter is tested every 1 minute, and the real-time temperature data is recorded .
本发明的较佳的实施例中,如图2所示,步骤S3包括:In a preferred embodiment of the present invention, as shown in Figure 2, step S3 includes:
步骤S31,判断是否接收到外部输入的算法指令:Step S31, judging whether an algorithm instruction input from outside is received:
若是,则转向步骤S32;If so, turn to step S32;
若否,则转向步骤S33;If not, then turn to step S33;
步骤S32,于各簇类数据集中随机获取多个实时温度数据作为初始聚类中心点,将其余各实时温度数据作为数据点,根据各初始聚类中心点和各数据点之间的欧氏距离迭代计算对应的簇中心点,随后转向步骤S4;Step S32, randomly obtain a plurality of real-time temperature data in each cluster data set as the initial cluster center point, and use the remaining real-time temperature data as data points, according to the Euclidean distance between each initial cluster center point and each data point Iteratively calculate the corresponding cluster center point, then turn to step S4;
步骤S33,将各簇类数据集作为初始聚类数目,于各初始聚类数目中随机获取多个实时温度数据作为初始聚类中心点,将其余各实时温度数据作为数据点,根据各初始聚类中心点和各数据点之间的欧氏距离和相似度得到对应的簇中心点。In step S33, each cluster data set is used as the initial cluster number, a plurality of real-time temperature data are randomly obtained from each initial cluster number as the initial cluster center point, and the rest of the real-time temperature data are used as data points, according to each initial cluster number The Euclidean distance and similarity between the class center point and each data point get the corresponding cluster center point.
具体地,本实施例中,步骤S32采用的是K-medoids聚类算法,评估一个簇聚类质量是用一个代价函数、算法重复迭代的方式来寻找最合适的簇类划分和簇类中心点,步骤S33采用的是K-means算法,通过计算聚类中心点的平均值来选取簇中心点,其对孤立点非常敏感,从而导致选取的簇中心点可能不存在,而K-medoids算法是在迭代过程中,在选取簇中心点时,是以簇中心点附近的样本点作为选取对象,从而消除了对孤立点的敏感性,两者各有优劣,可以分别导向处理。Specifically, in this embodiment, what step S32 adopts is the K-medoids clustering algorithm, and evaluating the clustering quality of a cluster is to use a cost function and the algorithm to iterate repeatedly to find the most suitable cluster division and cluster center point , step S33 uses the K-means algorithm, which selects the cluster center point by calculating the average value of the cluster center point, which is very sensitive to the outliers, so that the selected cluster center point may not exist, and the K-medoids algorithm is In the iterative process, when selecting the cluster center point, the sample point near the cluster center point is used as the selection object, thereby eliminating the sensitivity to the outlier point. Both have their own advantages and disadvantages, and they can be oriented for processing separately.
本发明的较佳的实施例中,如图3所示,步骤S32包括:In a preferred embodiment of the present invention, as shown in Figure 3, step S32 includes:
步骤S321,于各簇类数据集中随机获取多个实时温度数据作为初始聚类中心点,将其余各实时温度数据作为数据点;Step S321, randomly obtain a plurality of real-time temperature data in each cluster data set as the initial cluster center point, and use the remaining real-time temperature data as data points;
步骤S322,针对每个数据点,基于数据点与各初始聚类中心点之间的欧氏距离,将数据点分配至欧氏距离最近的初始聚类中心点所处的簇类数据集中;Step S322, for each data point, based on the Euclidean distance between the data point and each initial cluster center point, assign the data point to the cluster data set where the initial cluster center point with the closest Euclidean distance is located;
步骤S323,将各初始聚类中心点转换为对应的数据点,针对每个簇类数据集中的每个数据点,计算得到数据点和其余各数据点之间的欧式距离总和,将欧式距离总和最小的数据点作为二代聚类中心点;Step S323, convert each initial cluster center point into a corresponding data point, and calculate the sum of the Euclidean distances between the data point and the rest of the data points for each data point in each cluster data set, and calculate the sum of the Euclidean distances The smallest data point is used as the center point of the second-generation clustering;
步骤S324,根据各二代聚类中心点和各数据点得到对应的第一聚类误差平方和,将各二代聚类中心点作为初始聚类中心点返回步骤S322,并将步骤S323中欧式距离总和最小的数据点作为三代聚类中心点,根据各三代聚类中心点和各数据点得到对应的第二聚类误差平方和;Step S324, obtain the corresponding sum of squares of the first clustering error according to each second-generation cluster center point and each data point, return to step S322 with each second-generation cluster center point as the initial cluster center point, and set the Euclidean sum of squares in step S323 The data point with the smallest sum of distances is used as the center point of the three-generation clustering, and the corresponding sum of squares of the second clustering error is obtained according to each three-generation clustering center point and each data point;
步骤S325,判断第二聚类误差平方和是否与第一聚类误差平方和相等:Step S325, judging whether the second clustering error sum of squares is equal to the first clustering error sum of squares:
若否,则将各三代聚类中心点作为初始聚类中心点并返回步骤S322;If not, then use each three-generation clustering central point as the initial clustering central point and return to step S322;
若是,则将各三代聚类中心点作为簇中心点。If so, each three-generation cluster center point is used as the cluster center point.
具体地,本实施例中,评估聚类中心点的好坏采用欧氏距离的误差平方,定义如下:Specifically, in this embodiment, the evaluation of the quality of the cluster center points uses the error square of the Euclidean distance, which is defined as follows:
其中,in,
x表示各个簇类数据集Cj中的实时温度数据;x represents the real-time temperature data in each cluster data set C j ;
Oj表示聚类中心点。O j represents the cluster center point.
本发明的较佳的实施例中,如图4所示,步骤S33包括:In a preferred embodiment of the present invention, as shown in Figure 4, step S33 includes:
步骤S331,将各簇类数据集作为初始聚类数目,于各初始聚类数目中随机获取多个实时温度数据作为初始聚类中心点,将其余各实时温度数据作为数据点;Step S331, using each cluster data set as the initial cluster number, randomly obtaining a plurality of real-time temperature data from each initial cluster number as the initial cluster center point, and using the remaining real-time temperature data as data points;
步骤S332,针对每个数据点,基于数据点与各初始聚类中心点之间的欧氏距离以及欧氏距离和相似度之间的负相关原则,将数据点分配至欧氏距离最近的初始聚类中心点所处的簇类数据集中;Step S332, for each data point, based on the Euclidean distance between the data point and each initial clustering center point and the principle of negative correlation between the Euclidean distance and the similarity, assign the data point to the initial cluster with the closest Euclidean distance The cluster data set where the cluster center point is located;
步骤S333,将各初始聚类中心点转换为对应的数据点,并针对每个簇类数据集,将簇类数据集中各数据点的平均值作为簇中心点。In step S333, each initial cluster center point is converted into a corresponding data point, and for each cluster data set, the average value of each data point in the cluster data set is used as the cluster center point.
具体地,本实施例中,K-means算法通过选取合适的距离公式,来衡量不同数据对象的相似度,数据之间的距离与相似度成反比,可以认为是相似度越小,距离越大,这里的距离选取欧式距离,欧式距离的公式如下:Specifically, in this embodiment, the K-means algorithm measures the similarity of different data objects by selecting an appropriate distance formula. The distance between data is inversely proportional to the similarity. It can be considered that the smaller the similarity, the larger the distance , the distance here is Euclidean distance, and the formula of Euclidean distance is as follows:
其中,in,
x表示数据点;x represents a data point;
Ci表示第i个聚类中心点;C i represents the i-th cluster center point;
m表示数据点的维度;m represents the dimension of the data point;
xj、Cij表示数据点x和聚类中心点Ci的第j个维度的属性值。x j , C ij represent the attribute value of the jth dimension of the data point x and the cluster center point C i .
优选的,相似度SSE公式如下:Preferably, the similarity SSE formula is as follows:
优选的,对6km/h下采集到的实时温度数据进行K-medoids算法处理,处理结果如图5所示,对7.5km/h下采集到的实时温度数据进行K-means算法处理,处理结果如图6所示,对9km/h下采集到的实时温度数据进行K-medoids算法处理,处理结果如图7所示。Preferably, the real-time temperature data collected under 6km/h is processed by K-medoids algorithm, and the processing result is as shown in Figure 5, and the real-time temperature data collected under 7.5km/h is processed by K-means algorithm, and the processing result As shown in Figure 6, the K-medoids algorithm is used to process the real-time temperature data collected at 9km/h, and the processing results are shown in Figure 7.
本发明的较佳的实施例中,步骤S4中,神经网络模型以子时间段对应的时间属性作为输入层输入,以各簇中心点对应的温度属性作为输出层输出,拟合得到人体温度数据拟合曲线。In a preferred embodiment of the present invention, in step S4, the neural network model uses the time attribute corresponding to the sub-time period as the input layer input, and uses the temperature attribute corresponding to each cluster center point as the output layer output to obtain the human body temperature data by fitting Curve fitting.
具体地,本实施例中,采用如图8所示的神经网络结构,对6km/h的簇中心点进行拟合,拟合结果如图9所示,对7.5km/h的簇中心点进行拟合,拟合结果如图10所示,对9km/h的簇中心点进行拟合,拟合结果如图11所示。Specifically, in this embodiment, the neural network structure shown in Figure 8 is used to fit the cluster center point of 6km/h, and the fitting result is shown in Figure 9, and the cluster center point of 7.5km/h is fitted Fitting, the fitting result is shown in Figure 10, and the 9km/h cluster center point is fitted, and the fitting result is shown in Figure 11.
虽然本公开披露如上,但本公开的保护范围并非仅限于此。本领域技术人员,在不脱离本公开的精神和范围的前提下,可进行各种变更与修改,这些变更与修改均将落入本发明的保护范围。Although the present disclosure is disclosed as above, the protection scope of the present disclosure is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present disclosure, and these changes and modifications will all fall within the protection scope of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310506177.8A CN116701977A (en) | 2023-05-08 | 2023-05-08 | A Human Body Temperature Data Fitting Method Based on Clustering Algorithm and Neural Network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310506177.8A CN116701977A (en) | 2023-05-08 | 2023-05-08 | A Human Body Temperature Data Fitting Method Based on Clustering Algorithm and Neural Network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116701977A true CN116701977A (en) | 2023-09-05 |
Family
ID=87824748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310506177.8A Pending CN116701977A (en) | 2023-05-08 | 2023-05-08 | A Human Body Temperature Data Fitting Method Based on Clustering Algorithm and Neural Network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116701977A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117251749A (en) * | 2023-11-17 | 2023-12-19 | 陕西通信规划设计研究院有限公司 | Data processing method of Internet of things based on incremental analysis |
-
2023
- 2023-05-08 CN CN202310506177.8A patent/CN116701977A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117251749A (en) * | 2023-11-17 | 2023-12-19 | 陕西通信规划设计研究院有限公司 | Data processing method of Internet of things based on incremental analysis |
CN117251749B (en) * | 2023-11-17 | 2024-02-27 | 陕西通信规划设计研究院有限公司 | Data processing method of Internet of things based on incremental analysis |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102930163A (en) | Method for judging 2 type diabetes mellitus risk state | |
Li et al. | Medical data stream distribution pattern association rule mining algorithm based on density estimation | |
CN114358194B (en) | Abnormal limb behavior detection method for autism spectrum disorder based on posture tracking | |
CN107731304A (en) | A kind of prediction of height method and system | |
CN106485086B (en) | Prediction method of human body composition based on AIC and improved entropy weight method | |
CN114429152A (en) | Rolling bearing fault diagnosis method based on dynamic index antagonism self-adaption | |
CN107169284A (en) | A kind of biomedical determinant attribute system of selection | |
CN106529165A (en) | Method for identifying cancer molecular subtype based on spectral clustering algorithm of sparse similar matrix | |
CN110367991A (en) | A kind of Falls in Old People methods of risk assessment | |
CN107392399A (en) | A kind of SVM Sensory Quality of Cigarette Forecasting Methodologies based on improved adaptive GA-IAGA | |
CN112086146A (en) | Small molecule drug virtual screening method and device based on deep parameter transfer learning | |
CN113255734A (en) | Depression classification method based on self-supervision learning and transfer learning | |
CN106937872B (en) | A Method for Bilateral Symmetry Evaluation of Gait Based on Regression Curve | |
CN115563484A (en) | Street greening quality detection method based on physiological awakening identification | |
CN113160974B (en) | Mental disease biological type mining method based on hypergraph clustering | |
CN116451110A (en) | Method for constructing blood glucose prediction model based on signal energy characteristics and pulse cycle | |
CN116701977A (en) | A Human Body Temperature Data Fitting Method Based on Clustering Algorithm and Neural Network | |
CN110516890A (en) | A Crop Yield Monitoring System Based on Gray Combination Model | |
CN104463916A (en) | Eye movement fixation point measurement method based on random walk | |
CN107679756B (en) | Soil suitability evaluation method and device | |
Peng | Research on emotion recognition based on deep learning for mental health | |
CN113035363B (en) | Probability density weighted genetic metabolic disease screening data mixed sampling method | |
CN110990782A (en) | Cigarette Sensory Quality Evaluation Method Based on Weighted Hesitant Fuzzy Power Set Calculator | |
CN118312816B (en) | Cluster weighted clustering integrated medical text processing method and system based on member selection | |
CN111863135B (en) | False positive structural variation filtering method, storage medium and computing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |