CN111326254A - Methods, devices, equipment and media for indicator intervention - Google Patents
Methods, devices, equipment and media for indicator intervention Download PDFInfo
- Publication number
- CN111326254A CN111326254A CN201811544043.0A CN201811544043A CN111326254A CN 111326254 A CN111326254 A CN 111326254A CN 201811544043 A CN201811544043 A CN 201811544043A CN 111326254 A CN111326254 A CN 111326254A
- Authority
- CN
- China
- Prior art keywords
- index
- controllable
- indicators
- value
- response
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H50/00—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
- G16H50/30—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for calculating health indices; for individual health risk assessment
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H50/00—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
- G16H50/50—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for simulation or modelling of medical disorders
Landscapes
- Health & Medical Sciences (AREA)
- Engineering & Computer Science (AREA)
- Medical Informatics (AREA)
- Public Health (AREA)
- Biomedical Technology (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Pathology (AREA)
- Epidemiology (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明总体说来涉及数据科学技术领域,更具体地讲,涉及一种用于进行指标干预的方法、用于进行指标干预的装置、计算设备及非暂时性机器可读存储介质。The present invention generally relates to the technical field of data science, and more particularly, to a method for performing indicator intervention, an apparatus for performing indicator intervention, a computing device and a non-transitory machine-readable storage medium.
背景技术Background technique
通过构建运算机制(例如,预测模型(例如,机器学习模型)、一条或多条规则的规则集合、函数运算等)来提供针对输入样本的输出结果,是目前工业生产、金融、医疗、日常生活等领域常用的一种技术手段。例如,可以通过构建预测模型,对机器的产值或损耗进行预测,以指导工业生产;也可以通过构建收益预测模型,对用户的收益进行预测,以为用户做出决策提供依据;还可以通过构建预测患病概率的模型、预测体重的模型等等,对用户的身体状况进行管理。Providing output results for input samples by constructing computing mechanisms (eg, predictive models (eg, machine learning models), rule sets of one or more rules, function operations, etc.) A technique commonly used in other fields. For example, it is possible to build a forecasting model to predict the output value or loss of machines to guide industrial production; it is also possible to build a profit forecasting model to forecast the user's profit to provide a basis for users to make decisions; it is also possible to build a forecast A model of the probability of disease, a model of predicting weight, etc., manage the physical condition of the user.
在建立运算机制后,对于给定样本,就可以得到相应的输出结果。然而,针对被输入对象,往往只是借助运算机制得到了可能的结果,但却并不知悉如何有针对性的进行调整,以获取期望的结果。After the operation mechanism is established, for a given sample, the corresponding output result can be obtained. However, for the input object, the possible results are often obtained only by means of the computing mechanism, but they do not know how to make targeted adjustments to obtain the desired results.
发明内容SUMMARY OF THE INVENTION
本发明的示例性实施例在于提供一种用于进行指标干预的方法及装置,以解决上述技术问题。Exemplary embodiments of the present invention are to provide a method and apparatus for index intervention to solve the above-mentioned technical problems.
根据本发明的第一个方面,提出了一种用于进行指标干预的方法,包括:获取用于针对输入样本提供输出结果的运算机制,其中,所述输入样本包括多个指标;确定所述多个指标之中的可控指标与响应指标之间的映射关系,其中,所述可控指标为其取值可被调整的指标集合,所述响应指标为其取值本身难以调整但可根据所述可控指标的变化而变化的指标集合;基于所述映射关系,对输入样本的可控指标进行调整,以使得所述运算机制针对调整后的输入样本进行运算得到的输出结果满足预定需求;以及提供可控指标的调整结果以用于进行指标干预。According to a first aspect of the present invention, a method for index intervention is proposed, including: acquiring an operation mechanism for providing an output result for an input sample, wherein the input sample includes a plurality of indicators; determining the The mapping relationship between the controllable index and the response index among the multiple indexes, wherein the controllable index is the set of indexes whose values can be adjusted, and the response index is the value of which is difficult to adjust but can be adjusted according to the The set of indicators that changes with the change of the controllable indicators; based on the mapping relationship, the controllable indicators of the input samples are adjusted, so that the output results obtained by the operation mechanism operating on the adjusted input samples meet the predetermined requirements ; and provide adjustment results of controllable indicators for indicator intervention.
可选地,所述运算机制包括以下项之中的至少一项:机器学习模型、规则集合、函数运算。Optionally, the operation mechanism includes at least one of the following items: a machine learning model, a rule set, and a function operation.
可选地,所述运算机制为针对预测问题提供预测结果的预测模型,其中,所述输入样本为预测模型的预测样本,其特征包括与预测问题相关的多个指标。Optionally, the operation mechanism is a prediction model that provides prediction results for the prediction problem, wherein the input sample is a prediction sample of the prediction model, and its features include multiple indicators related to the prediction problem.
可选地,确定多个指标之中的可控指标与响应指标之间的映射关系的步骤包括:根据样本集中样本的特征所包括的多个指标,构建用于基于可控指标的取值预测响应指标的取值的模型,以确定可控指标与响应指标之间的映射关系;或者根据样本集中样本的特征所包括的多个指标,构建用于基于静态指标的取值和可控指标的取值预测响应指标的取值的模型,以确定可控指标与响应指标之间的映射关系,其中,静态指标为其取值不可改变的指标集合。Optionally, the step of determining the mapping relationship between the controllable index and the response index among the multiple indexes includes: constructing a value prediction based on the controllable index according to the multiple indexes included in the characteristics of the samples in the sample set. The model of the value of the response indicator to determine the mapping relationship between the controllable indicator and the response indicator; or according to the multiple indicators included in the characteristics of the samples in the sample set, construct a static indicator-based value and controllable indicator. A model for predicting the value of a response indicator by taking a value to determine the mapping relationship between a controllable indicator and a response indicator, wherein a static indicator is a set of indicators whose values cannot be changed.
可选地,确定多个指标之中的可控指标与响应指标之间的映射关系的步骤包括:根据先验知识,确定多个指标之中的可控指标与响应指标之间的映射关系。Optionally, the step of determining the mapping relationship between the controllable index and the response index among the multiple indexes includes: determining the mapping relationship between the controllable index and the response index among the multiple indexes according to prior knowledge.
可选地,该方法还包括:对可控指标进行分组,以将可控指标中具有联动关系的指标划分到同一组,对预测样本的特征之中的可控指标进行调整的步骤包括:在可控指标的取值范围内,基于同一组内的指标间的联动关系、以组为单位对可控指标进行调整。Optionally, the method further includes: grouping the controllable indicators, so as to divide the indicators with a linkage relationship among the controllable indicators into the same group, and the step of adjusting the controllable indicators among the characteristics of the predicted samples includes: Within the value range of the controllable indicators, the controllable indicators are adjusted on a group-by-group basis based on the linkage relationship between the indicators in the same group.
可选地,联动关系包括相关关系和/或因果关系,对可控指标进行分组的步骤包括:通过计算的方式来确定可控指标中具有相关关系的指标,以将可控指标中存在相关关系的指标划分到同一组;以及/或者根据外部输入确定可控指标中存在因果关系的指标,以将可控指标中存在因果关系的指标划分到同一组。Optionally, the linkage relationship includes a correlation relationship and/or a causal relationship, and the step of grouping the controllable indicators includes: determining the indicators with a correlation relationship among the controllable indicators by means of calculation, so as to classify the correlation relationship among the controllable indicators. and/or according to external input, determine the indicators with causal relationship among the controllable indicators, so as to classify the indicators with causal relationship among the controllable indicators into the same group.
可选地,通过计算的方式来确定可控指标中具有相关关系的指标的步骤包括:通过独立性校验的方式计算可控指标中指标间的相关关系。Optionally, the step of determining the indicators with correlation among the controllable indicators by means of calculation includes: calculating the correlation between indicators in the controllable indicators by means of independence verification.
可选地,对预测样本的特征之中的可控指标进行调整的步骤包括:以预测模型针对调整后的预测样本进行预测得到的预测结果满足预定需求且尽量减小可控指标的调整代价为目标,对预测样本的特征之中的可控指标进行调整。Optionally, the step of adjusting the controllable indicators in the characteristics of the predicted samples includes: using the prediction results obtained by the prediction model for the adjusted predicted samples to meet the predetermined requirements and to minimize the adjustment cost of the controllable indicators as: The target is to adjust the controllable indicators among the characteristics of the predicted sample.
根据本发明的第二个方面,还提供了一种用于进行指标干预的方法,包括:获取患病概率预测模型;使用患病概率预测模型根据用户的特征预测用户的患病概率,其中,用户的特征包括与预测患病概率相关的多个指标;在预测到用户的患病概率高于预定阈值的情况下,基于多个指标之中的静态指标和可控指标到响应指标的映射关系,对用户的特征之中的可控指标进行调整,以使得患病概率预测模型针对调整后的用户的特征进行预测得到的患病概率低于预定阈值,其中,静态指标为其取值不可改变的指标集合,可控指标为其取值可被调整的指标集合,响应指标为其取值本身难以调整但可根据可控指标的变化而变化的指标集合;以及提供可控指标的调整结果以便用户进行指标干预。According to a second aspect of the present invention, there is also provided a method for index intervention, comprising: obtaining a disease probability prediction model; using the disease probability prediction model to predict the user's disease probability according to the user's characteristics, wherein, The characteristics of the user include multiple indicators related to the predicted probability of disease; in the case that the predicted probability of the user's disease is higher than a predetermined threshold, the mapping relationship between the static indicators and the controllable indicators to the response indicators is based on the multiple indicators , adjust the controllable indicators in the user's characteristics, so that the disease probability predicted by the disease probability prediction model for the adjusted user's characteristics is lower than the predetermined threshold, wherein the static index is its value that cannot be changed The controllable index is the set of indicators whose value can be adjusted, the response index is the set of indicators whose value itself is difficult to adjust but can be changed according to the change of the controllable index; and the adjustment result of the controllable index is provided to facilitate The user performs indicator intervention.
可选地,静态指标包括以下至少一项:年龄、性别、身高、职业;可控指标包括以下至少一项:体重、一个或多个与生活方式相关的特征、血压、血糖;响应指标包括以下至少一项:尿酸、血脂。Optionally, the static indicators include at least one of the following: age, gender, height, and occupation; the controllable indicators include at least one of the following: weight, one or more lifestyle-related characteristics, blood pressure, and blood sugar; the response indicators include the following At least one item: uric acid, blood lipids.
可选地,该方法还包括:确定多个指标之中的静态指标和可控指标到响应指标的映射关系。Optionally, the method further includes: determining the mapping relationship between the static index and the controllable index among the multiple indexes to the response index.
可选地,确定多个指标之中的静态指标和可控指标到响应指标的映射关系的步骤包括:根据样本集中样本的特征所包括的多个指标,构建用于基于静态指标的取值和可控指标的取值预测响应指标的取值的模型,以确定映射关系;或者根据先验知识,确定多个指标之中的静态指标和可控指标到响应指标的映射关系。Optionally, the step of determining the mapping relationship between the static index and the controllable index among the multiple indexes to the response index includes: according to the multiple indexes included in the characteristics of the samples in the sample set, constructing a value and The value of the controllable index predicts the model of the value of the response index to determine the mapping relationship; or according to prior knowledge, the mapping relationship between the static index and the controllable index among the multiple indexes to the response index is determined.
可选地,该方法还包括:对可控指标进行分组,以将可控指标中具有联动关系的指标划分到同一组,对预测样本的特征之中的可控指标进行调整的步骤包括:在可控指标的取值范围内,基于同一组内的指标间的联动关系、以组为单位对可控指标进行调整。Optionally, the method further includes: grouping the controllable indicators, so as to divide the indicators with a linkage relationship among the controllable indicators into the same group, and the step of adjusting the controllable indicators among the characteristics of the predicted samples includes: Within the value range of the controllable indicators, the controllable indicators are adjusted on a group-by-group basis based on the linkage relationship between the indicators in the same group.
可选地,联动关系包括相关关系和/或因果关系,对可控指标进行分组的步骤包括:通过计算的方式来确定可控指标中具有相关关系的指标,以将可控指标中存在相关关系的指标划分到同一组;以及/或者根据外部输入确定可控指标中存在因果关系的指标,以将可控指标中存在因果关系的指标划分到同一组。Optionally, the linkage relationship includes a correlation relationship and/or a causal relationship, and the step of grouping the controllable indicators includes: determining the indicators with a correlation relationship among the controllable indicators by means of calculation, so as to classify the correlation relationship among the controllable indicators. and/or according to external input, determine the indicators with causal relationship among the controllable indicators, so as to classify the indicators with causal relationship among the controllable indicators into the same group.
可选地,通过计算的方式来确定可控指标中具有相关关系的指标的步骤包括:通过独立性校验的方式计算可控指标中指标间的相关关系。Optionally, the step of determining the indicators with correlation among the controllable indicators by means of calculation includes: calculating the correlation between indicators in the controllable indicators by means of independence verification.
可选地,对预测样本的特征之中的可控指标进行调整的步骤包括:以患病概率预测模型针对调整后的用户的特征进行预测得到的患病概率低于预定阈值且尽量减小可控指标的调整代价为目标,对预测样本的特征之中的可控指标进行调整。Optionally, the step of adjusting the controllable index among the characteristics of the predicted sample includes: a disease probability obtained by predicting the characteristics of the adjusted user with a disease probability prediction model is lower than a predetermined threshold and minimizes the risk of disease. The adjustment cost of the control index is the target, and the controllable index among the characteristics of the prediction sample is adjusted.
根据本发明的第三个方面,还提供了一种用于进行指标干预的装置,包括:获取单元,用于获取用于针对输入样本提供输出结果的运算机制,其中,所述输入样本包括多个指标;确定单元,用于确定所述多个指标之中的可控指标与响应指标之间的映射关系,其中,所述可控指标为其取值可被调整的指标集合,所述响应指标为其取值本身难以调整但可根据所述可控指标的变化而变化的指标集合;调整单元,用于基于所述映射关系,对输入样本的可控指标进行调整,以使得所述运算机制针对调整后的输入样本进行运算得到的输出结果满足预定需求;以及提供单元,用于提供可控指标的调整结果以用于进行指标干预。According to a third aspect of the present invention, there is also provided an apparatus for performing index intervention, comprising: an acquisition unit for acquiring an operation mechanism for providing an output result for an input sample, wherein the input sample includes multiple a determination unit, configured to determine a mapping relationship between a controllable indicator and a response indicator among the multiple indicators, wherein the controllable indicator is a set of indicators whose values can be adjusted, and the response indicator is a set of indicators whose values can be adjusted. The index is an index set whose value itself is difficult to adjust but can be changed according to the change of the controllable index; the adjustment unit is used to adjust the controllable index of the input sample based on the mapping relationship, so that the calculation The mechanism operates on the adjusted input samples and obtains an output result that meets a predetermined requirement; and provides a unit for providing the adjustment result of the controllable index for index intervention.
可选地,所述运算机制包括以下项之中的至少一项:机器学习模型、规则集合、函数运算。Optionally, the operation mechanism includes at least one of the following items: a machine learning model, a rule set, and a function operation.
可选地,所述运算机制为针对预测问题提供预测结果的预测模型,其中,所述输入样本为预测模型的预测样本,其特征包括与预测问题相关的多个指标。Optionally, the operation mechanism is a prediction model that provides prediction results for the prediction problem, wherein the input sample is a prediction sample of the prediction model, and its features include multiple indicators related to the prediction problem.
可选地,确定单元根据样本集中样本的特征所包括的多个指标,构建用于基于可控指标的取值预测响应指标的取值的模型,以确定可控指标与响应指标之间的映射关系,或者确定单元根据样本集中样本的特征所包括的多个指标,构建用于基于静态指标的取值和可控指标的取值预测响应指标的取值的模型,以确定可控指标与响应指标之间的映射关系,其中,静态指标为其取值不可改变的指标集合。Optionally, the determining unit constructs a model for predicting the value of the response indicator based on the value of the controllable indicator according to multiple indicators included in the characteristics of the samples in the sample set, so as to determine the mapping between the controllable indicator and the response indicator. relationship, or the determining unit constructs a model for predicting the value of the response indicator based on the value of the static indicator and the value of the controllable indicator according to multiple indicators included in the characteristics of the samples in the sample set, so as to determine the value of the controllable indicator and the response indicator. The mapping relationship between indicators, where a static indicator is a set of indicators whose values cannot be changed.
可选地,确定单元根据先验知识,确定多个指标之中的可控指标与响应指标之间的映射关系。Optionally, the determining unit determines the mapping relationship between the controllable index and the response index among the multiple indexes according to the prior knowledge.
可选地,该装置还包括:分组单元,用于对可控指标进行分组,以将可控指标中具有联动关系的指标划分到同一组,调整单元在可控指标的取值范围内,基于同一组内的指标间的联动关系、以组为单位对可控指标进行调整。Optionally, the device further includes: a grouping unit for grouping the controllable indicators, so as to divide the indicators with linkage relationship among the controllable indicators into the same group, and the adjustment unit is based on the value range of the controllable indicators. The linkage relationship between the indicators in the same group, and the controllable indicators are adjusted on a group basis.
可选地,联动关系包括相关关系和/或因果关系,分组单元通过计算的方式来确定可控指标中具有相关关系的指标,以将可控指标中存在相关关系的指标划分到同一组,并且/或者分组单元根据外部输入确定可控指标中存在因果关系的指标,以将可控指标中存在因果关系的指标划分到同一组。Optionally, the linkage relationship includes a correlation relationship and/or a causal relationship, and the grouping unit determines the indicators with a correlation relationship among the controllable indicators by calculation, so as to divide the indicators with a correlation relationship among the controllable indicators into the same group, and /Or the grouping unit determines the indicators with causal relationship among the controllable indicators according to the external input, so as to divide the indicators with causal relationship among the controllable indicators into the same group.
可选地,分组单元通过独立性校验的方式计算可控指标中指标间的相关关系。Optionally, the grouping unit calculates the correlation between the indicators in the controllable indicators by means of independence check.
可选地,调整单元以预测模型针对调整后的预测样本进行预测得到的预测结果满足预定需求且尽量减小可控指标的调整代价为目标,对预测样本的特征之中的可控指标进行调整。Optionally, the adjustment unit adjusts the controllable index among the characteristics of the predicted sample with the goal that the prediction result obtained by the prediction model for the adjusted prediction sample satisfies the predetermined requirement and minimizes the adjustment cost of the controllable index. .
根据本发明的第四个方面,还提供了一种用于进行指标干预的装置,包括:获取单元,用于获取患病概率预测模型;预测单元,用于使用患病概率预测模型根据用户的特征预测用户的患病概率,其中,用户的特征包括与预测患病概率相关的多个指标;调整单元,用于在预测到所述用户的患病概率高于预定阈值的情况下,基于多个指标之中的静态指标和可控指标到响应指标的映射关系,对用户的特征之中的可控指标进行调整,以使得患病概率预测模型针对调整后的用户的特征进行预测得到的患病概率低于预定阈值,其中,静态指标为其取值不可改变的指标集合,可控指标为其取值可被调整的指标集合,响应指标为其取值本身难以调整但可根据可控指标的变化而变化的指标集合;以及提供单元,用于提供可控指标的调整结果以便用户进行指标干预。According to a fourth aspect of the present invention, there is also provided an apparatus for performing index intervention, comprising: an acquisition unit for acquiring a disease probability prediction model; a prediction unit for using the disease probability prediction model according to the user's The feature predicts the probability of disease of the user, wherein the feature of the user includes a plurality of indicators related to the predicted probability of disease; the adjustment unit is used for predicting that the probability of disease of the user is higher than a predetermined threshold, based on multiple indicators The mapping relationship between the static indicators and the controllable indicators in the indicators to the response indicators, adjust the controllable indicators in the user's characteristics, so that the disease probability prediction model predicts the patient's disease according to the adjusted user's characteristics. The probability of disease is lower than a predetermined threshold, among which, the static index is the set of indicators whose value cannot be changed, the controllable index is the set of indicators whose value can be adjusted, and the response index is the value of which is difficult to adjust but can be adjusted according to the controllable index. A set of indicators that change with the change of the indicator; and a providing unit, which is used to provide the adjustment result of the controllable indicator so that the user can perform indicator intervention.
可选地,静态指标包括以下至少一项:年龄、性别、身高、职业;可控指标包括以下至少一项:体重、一个或多个与生活方式相关的特征、血压、血糖;响应指标包括以下至少一项:尿酸、血脂。Optionally, the static indicators include at least one of the following: age, gender, height, and occupation; the controllable indicators include at least one of the following: weight, one or more lifestyle-related characteristics, blood pressure, and blood sugar; the response indicators include the following At least one item: uric acid, blood lipids.
可选地,该装置还包括:确定单元,用于确定多个指标之中的静态指标和可控指标到响应指标的映射关系。Optionally, the apparatus further includes: a determining unit, configured to determine the mapping relationship between the static index and the controllable index among the multiple indexes to the response index.
可选地,确定单元根据样本集中样本的特征所包括的多个指标,构建用于基于静态指标的取值和可控指标的取值预测响应指标的取值的模型,以确定映射关系;或者确定单元根据先验知识确定映射关系。Optionally, the determining unit constructs a model for predicting the value of the response indicator based on the value of the static indicator and the value of the controllable indicator according to multiple indicators included in the characteristics of the samples in the sample set, so as to determine the mapping relationship; or The determining unit determines the mapping relationship according to the prior knowledge.
可选地,该装置还包括:分组单元,用于对可控指标进行分组,以将可控指标中具有联动关系的指标划分到同一组,调整单元在可控指标的取值范围内,基于同一组内的指标间的联动关系、以组为单位对可控指标进行调整。Optionally, the device further includes: a grouping unit for grouping the controllable indicators, so as to divide the indicators with linkage relationship among the controllable indicators into the same group, and the adjustment unit is based on the value range of the controllable indicators. The linkage relationship between the indicators in the same group, and the controllable indicators are adjusted on a group basis.
可选地,联动关系包括相关关系和/或因果关系,分组单元通过计算的方式来确定可控指标中具有相关关系的指标,以将可控指标中存在相关关系的指标划分到同一组,并且/或者分组单元根据外部输入确定可控指标中存在因果关系的指标,以将可控指标中存在因果关系的指标划分到同一组。Optionally, the linkage relationship includes a correlation relationship and/or a causal relationship, and the grouping unit determines the indicators with a correlation relationship among the controllable indicators by calculation, so as to divide the indicators with a correlation relationship among the controllable indicators into the same group, and /Or the grouping unit determines the indicators with causal relationship among the controllable indicators according to the external input, so as to divide the indicators with causal relationship among the controllable indicators into the same group.
可选地,分组单元通过独立性校验的方式计算可控指标中指标间的相关关系。Optionally, the grouping unit calculates the correlation between the indicators in the controllable indicators by means of independence check.
可选地,调整单元以患病概率预测模型针对调整后的用户的特征进行预测得到的患病概率低于预定阈值且尽量减小可控指标的调整代价为目标,对预测样本的特征之中的可控指标进行调整。Optionally, the adjustment unit takes the disease probability predicted by the disease probability prediction model according to the characteristics of the adjusted user as the goal, which is lower than the predetermined threshold and reduces the adjustment cost of the controllable index as much as possible, among the characteristics of the predicted sample. controllable indicators.
根据本发明的第五个方面,还提供了一种计算设备,包括:处理器;以及存储器,其上存储有可执行代码,当可执行代码被处理器执行时,使处理器执行如本发明第一个方面或第二个方面述及的方法。According to a fifth aspect of the present invention, there is also provided a computing device, comprising: a processor; and a memory on which executable codes are stored, and when the executable codes are executed by the processor, the processor is caused to execute the method according to the present invention The method of the first aspect or the second aspect.
根据本发明的第六个方面,还提供了一种非暂时性机器可读存储介质,其上存储有可执行代码,当可执行代码被电子设备的处理器执行时,使处理器执行如本发明第一个方面或第二个方面述及的方法。According to a sixth aspect of the present invention, there is also provided a non-transitory machine-readable storage medium on which executable codes are stored, and when the executable codes are executed by a processor of an electronic device, the processor is made to execute the A method as described in the first or second aspect of the invention.
根据本发明示例性实施例的用于进行指标干预的方法及装置,能够提供合理的指标调整方案。根据可控指标的调整结果进行指标干预,就可以促成期望的运算输出。与不对预测样本的特征加以区分而直接使用最优化方法得到能够促成期望的运算输出的指标控制方案相比,本发明提供的可控指标的调整结果更为合理,在基于本发明提供的可控指标的调整结果进行指标干预时,能够实现且易于实现。According to the method and device for index intervention according to the exemplary embodiments of the present invention, a reasonable index adjustment scheme can be provided. Index intervention according to the adjustment result of the controllable index can promote the desired operation output. Compared with the index control scheme that directly uses the optimization method without distinguishing the characteristics of the predicted samples to obtain the desired operation output, the adjustment result of the controllable index provided by the present invention is more reasonable. The adjustment results of the indicators can be achieved and easy to achieve when the indicators are intervened.
将在接下来的描述中部分阐述本发明总体构思另外的方面和/或优点,还有一部分通过描述将是清楚的,或者可以经过本发明总体构思的实施而得知。Additional aspects and/or advantages of the present general inventive concept will be set forth in part in the ensuing description, and in part will be apparent from the description, or may be learned by practice of the present general inventive concept.
附图说明Description of drawings
通过下面结合示例性地示出实施例的附图进行的描述,本发明示例性实施例的上述和其他目的和特点将会变得更加清楚,其中:The above and other objects and features of the exemplary embodiments of the present invention will become more apparent from the following description in conjunction with the accompanying drawings that exemplarily illustrate the embodiments, in which:
图1示出根据本发明示例性实施例的用于进行指标干预的方法的流程图;FIG. 1 shows a flowchart of a method for index intervention according to an exemplary embodiment of the present invention;
图2示出了本发明应用于对用户的身体指标进行干预,以降低用户患病风险的方法流程图;Fig. 2 shows the flow chart of the method in which the present invention is applied to intervene on the physical index of the user to reduce the risk of the user's disease;
图3示出了根据本发明示例性实施例的用于进行指标干预的装置的框图;FIG. 3 shows a block diagram of an apparatus for performing index intervention according to an exemplary embodiment of the present invention;
图4示出了根据本发明另一示例性实施例的用于进行指标干预的装置的框图;FIG. 4 shows a block diagram of an apparatus for performing index intervention according to another exemplary embodiment of the present invention;
图5示出了根据本发明示例性实施例的可用于实现上述方法的计算设备的结构示意图。FIG. 5 shows a schematic structural diagram of a computing device that can be used to implement the above method according to an exemplary embodiment of the present invention.
具体实施方式Detailed ways
现将详细参照本发明的实施例,所述实施例的示例在附图中示出,其中,相同的标号始终指的是相同的部件。以下将通过参照附图来说明所述实施例,以便解释本发明。Reference will now be made in detail to the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like parts throughout. The embodiments will be described below in order to explain the present invention by referring to the figures.
对于给定的样本,将其输入到特定运算机制以得到输出结果,这是典型的利用运算来得到预期结果的过程。在一定的约束条件下,寻找合适的输入集合,使目标函数达到最优,这是一个最优化过程。如何对给定样本所包含的指标给出合适的建议,使得指标的变化会促成期望的运算输出,却不是把最优化方法和运算机制简单结合起来就能做到的。其中最主要的问题是利用最优化方法针对运算机制得出的指标控制方案不一定能实现,也不一定易于实现。For a given sample, it is input to a specific operation mechanism to obtain an output result, which is a typical process of using operation to obtain the expected result. Under certain constraints, it is an optimization process to find a suitable input set to optimize the objective function. How to give appropriate suggestions for the indicators contained in a given sample, so that the changes of the indicators will lead to the expected operation output, but it cannot be achieved by simply combining the optimization method and the operation mechanism. The main problem is that the index control scheme obtained by using the optimization method for the operation mechanism may not be realized or easy to realize.
这是因为,输入样本可能包括与运算问题相关的多个指标,而这多个指标的取值并不一定都能被调整,并且对于取值能够被调整的指标,在对其取值进行调整时,还可能存在一定的约束限制,例如存在一些难以被直接调整但是会随着其他指标的变化而变化的指标。因此,现有技术中对样本的指标不加区分,直接使用最优化方法得到能够促成期望输出的指标控制方案,无法保证得到的指标控制方案能实现,也不能保证得到的指标控制方案易于实现。This is because the input sample may include multiple indicators related to the operation problem, and the values of these multiple indicators may not necessarily be adjusted. , there may also be certain constraints, for example, there are some indicators that are difficult to be directly adjusted but will change with the changes of other indicators. Therefore, in the prior art, the indexes of the samples are not differentiated, and the optimization method is directly used to obtain the index control scheme that can promote the desired output.
以疾病风险预测为例,假设疾病风险预测模型的输入样本包括年龄、性别、身高、体重、一个或多个与生活方式相关的特征、血压、血糖、尿酸、血脂等指标。与生活方式相关的特征可以包括但不限于作息时间、饮食、锻炼等能够人为调整的指标。如果疾病风险预测模型根据用户现有指标预测预测用户患病的风险较高,则需要给用户一个合适的指标调整建议,以便用户按照指标调整建议进行指标调整后的患病概率较低。如果不对上述指标加以区分,直接使用最优化方法计算得出患病概率最低或较低的指标调整方案,如果得到的指标调整方案包括对年龄、性别、身高、尿酸、血脂等指标的调整,很明显针对年龄、性别、身高的调整是无法实现的,而针对尿酸、血脂等指标的调整对用户来说也是难以实现的(因为用户一般不清楚如何操作来调整尿酸、血脂)。因此,直接使用最优化方法计算的得到的指标调整方案不一定合理。Taking disease risk prediction as an example, it is assumed that the input samples of the disease risk prediction model include age, gender, height, weight, one or more lifestyle-related characteristics, blood pressure, blood sugar, uric acid, blood lipids and other indicators. The characteristics related to the lifestyle may include, but are not limited to, indicators that can be adjusted artificially, such as work and rest time, diet, and exercise. If the disease risk prediction model predicts and predicts that the user has a higher risk of disease according to the user's existing indicators, it is necessary to provide the user with an appropriate indicator adjustment suggestion, so that the user will have a lower probability of disease after adjusting the indicator according to the indicator adjustment suggestion. If the above indicators are not distinguished, the optimization method is directly used to calculate the indicator adjustment plan with the lowest or lower probability of disease. Obviously, adjustment for age, gender, and height is impossible, and adjustment for indicators such as uric acid and blood lipids is also difficult for users (because users generally do not know how to adjust uric acid and blood lipids). Therefore, the index adjustment scheme calculated directly by the optimization method is not necessarily reasonable.
有鉴于此,本发明提出了一种用于进行指标干预的方案。图1示出根据本发明示例性实施例的用于进行指标干预的方法的流程图。图1所示的方法可通过计算机程序来执行,也可由专门的用于进行指标干预的装置来执行。In view of this, the present invention proposes a scheme for index intervention. FIG. 1 shows a flowchart of a method for index intervention according to an exemplary embodiment of the present invention. The method shown in FIG. 1 can be implemented by a computer program, or can also be implemented by a special device for performing index intervention.
在步骤S110中,获取用于针对输入样本提供输出结果的运算机制,其中,所述输入样本可包括多个指标。该运算机制可以是任何能够针对输入样本,经过特定运算而得到相应输出结果的运算过程。作为示例,所述运算机制可包括以下项之中的至少一项:机器学习模型、规则集合(该规则集合可包括至少一条规则)、函数运算。上述项目之间可进行各种结合,例如机器学习模型与专家规则的结合等。此外,所述指标可指示用于描述输入样本本身或其与外部关联的任何属性或特性。In step S110, an operation mechanism for providing an output result for an input sample is obtained, wherein the input sample may include a plurality of indicators. The operation mechanism can be any operation process that can obtain corresponding output results through specific operations for input samples. As an example, the operation mechanism may include at least one of the following: a machine learning model, a set of rules (the set of rules may include at least one rule), a function operation. Various combinations can be made between the above items, such as the combination of machine learning models and expert rules. Furthermore, the metrics may indicate any attributes or characteristics used to describe the input sample itself or its external association.
具体说来,所述运算机制可以为针对预测问题提供预测结果的预测模型,其中,所述输入样本为预测模型的预测样本,其特征包括与预测问题相关的多个指标。Specifically, the computing mechanism may be a prediction model that provides a prediction result for a prediction problem, wherein the input sample is a prediction sample of the prediction model, and its features include multiple indicators related to the prediction problem.
这里,预测模型可以是基于机器学习算法训练而成的机器学习模型,也可以是基于统计方法构建的统计模型,还可以是基于其他方式建立的模型,对此本发明不做限定。在本步骤中,可以从外部接收预先训练好的预测模型,也可以根据预测问题构建预测模型。关于预测模型的构建过程,不再赘述。Here, the prediction model may be a machine learning model trained based on a machine learning algorithm, a statistical model constructed based on a statistical method, or a model constructed based on other methods, which is not limited in the present invention. In this step, a pre-trained prediction model may be received from the outside, or a prediction model may be constructed according to the prediction problem. The construction process of the prediction model will not be repeated here.
本发明述及的预测模型可以是多种应用场景下的预测模型。例如可以是用于预测患病概率的模型,也可以是用于预测体重的模型,还可以是用于预测机器损耗的模型、用于预测收益的模型等等。将预测样本的特征输入预测模型,就可以得到预测模型针对预测问题提供的预测结果。The prediction model mentioned in the present invention may be a prediction model under various application scenarios. For example, it can be a model for predicting disease probability, a model for predicting body weight, a model for predicting machine wear and tear, a model for predicting profit, and the like. By inputting the features of the predicted samples into the prediction model, the prediction results provided by the prediction model for the prediction problem can be obtained.
预测模型的预测样本的特征包括与预测问题相关的多个指标。对于预测样本的特征所包括的多个指标,这些指标可以是一些属性信息,其取值基于业务含义和/或常识等因素而具有各自的特性(例如,能否改变、改变的取值范围、改变的代价等等)。作为示例,可以根据外部输入的先验知识(业务含义、常识等),将预测样本的特征所包括的多个指标划分为静态指标(如果存在的话)、可控指标和/或响应指标。其中,静态指标为其取值不可改变的指标集合,可控指标为其取值可被调整的指标集合,响应指标为其取值本身难以调整但可根据可控指标的变化而变化的指标集合。The features of the prediction samples of the prediction model include multiple indicators related to the prediction problem. For the multiple indicators included in the characteristics of the predicted samples, these indicators can be some attribute information, and their values have their own characteristics based on factors such as business meaning and/or common sense (for example, whether it can be changed, the value range of the change, the cost of change, etc.). As an example, according to externally input prior knowledge (business meaning, common sense, etc.), multiple indicators included in the characteristics of the predicted samples can be divided into static indicators (if any), controllable indicators and/or response indicators. Among them, the static index is the index set whose value cannot be changed, the controllable index is the index set whose value can be adjusted, and the response index is the index set whose value is difficult to adjust but can be changed according to the change of the controllable index. .
以预测模型是疾病风险预测模型为例,预测样本的特征可以包括与疾病风险预测相关的多个指标,如可以包括但不限于用户的年龄、性别、身高、体重、一个或多个与生活方式相关的特征(如作息时间、饮食、锻炼等)、血压、血糖、尿酸、血脂等指标。根据先验知识(相关医学知识以及常识)可知,年龄、性别、身高这类取值不可人为改变的指标均属于静态指标,体重、与生活方式相关的特征、血压、血糖这类取值可被调整的指标可以划分到可控指标,尿酸、血脂这类对用户来说取值本身难以调整,但是能够随着体重、与生活方式相关的特征、血压、血糖这类可控指标的变化而变化,因此可以将尿酸、血脂划分到响应指标。Taking the prediction model being a disease risk prediction model as an example, the characteristics of the prediction sample may include multiple indicators related to disease risk prediction, such as but not limited to the user's age, gender, height, weight, one or more of the user's life style. Related characteristics (such as work and rest time, diet, exercise, etc.), blood pressure, blood sugar, uric acid, blood lipids and other indicators. According to prior knowledge (relevant medical knowledge and common sense), indicators such as age, gender, and height that cannot be changed artificially are static indicators. Values such as weight, lifestyle-related characteristics, blood pressure, and blood sugar can be The adjusted indicators can be divided into controllable indicators. The values such as uric acid and blood lipid are difficult for users to adjust, but they can change with the changes of controllable indicators such as weight, lifestyle-related characteristics, blood pressure, and blood sugar. , so uric acid and blood lipids can be divided into response indicators.
需要说明的是,在基于先验知识(业务含义、常识等)将预测样本的特征所包括的与预测问题相关的多个指标划分为静态指标、可控指标或响应指标时,还可以结合具体场景来判断指标所属的分类。例如,对于指标“体重”而言,其取值可以被调整,因此可以将其划分到可控指标中,但是“体重”也可以视为随着“饮食”、“锻炼”等指标的变化而变化,因此也可以将“体重”划分到响应指标中,具体是将其划分到可控指标中,还是划分到响应指标中,可以根据实际情况确定。It should be noted that when multiple indicators related to the prediction problem included in the characteristics of the prediction samples are divided into static indicators, controllable indicators or response indicators based on prior knowledge (business meaning, common sense, etc.), specific indicators can also be combined. Scenario to determine the category to which the indicator belongs. For example, for the indicator "weight", its value can be adjusted, so it can be divided into controllable indicators, but "weight" can also be regarded as a change in indicators such as "diet" and "exercise". Therefore, “weight” can also be divided into response indicators, and whether it is divided into controllable indicators or response indicators can be determined according to the actual situation.
在步骤S120中,确定多个指标之中的可控指标与响应指标之间的映射关系。In step S120, the mapping relationship between the controllable index and the response index among the multiple indexes is determined.
在确定可控指标与响应指标之间的映射关系时,可以不考虑静态指标,确定可控指标到响应指标的映射关系,也可以考虑静态指标,确定静态指标和可控指标到响应指标的映射关系。例如,预测样本的特征所包括的指标集合为X,静态指标表示为xs,可控指标表示为xc,响应指标表示为xd,X=(xs,xc,xd),则可以构造xc到xd的映射,也可以构造{xc,xs}到xd的映射。以构造{xc,xs}到xd的映射为例,假设Δxc为满足约束条件的可控指标的变化值,在考虑起始响应指标的影响的情况下,变化后的响应指标在不考虑起始响应指标的影响的情况下,变化后的响应指标f=E(x)为可控指标和静态指标到响应指标的映射关系。When determining the mapping relationship between controllable indicators and response indicators, static indicators may not be considered, and the mapping relationship between controllable indicators and response indicators may be determined, or static indicators may be considered to determine the mapping of static indicators and controllable indicators to response indicators. relation. For example, the set of indicators included in the characteristics of the predicted sample is X, the static indicator is represented by x s , the controllable indicator is represented by x c , and the response indicator is represented by x d , X=(x s ,x c ,x d ), then A mapping of x c to x d can be constructed, and a mapping of {x c ,x s } to x d can also be constructed. Taking the construction of the mapping from {x c , x s } to x d as an example, assuming that Δx c is the change value of the controllable index that satisfies the constraints, considering the influence of the initial response index, the changed response index Without considering the impact of the initial response index, the changed response index f=E(x) is the mapping relationship between controllable indexes and static indexes to response indexes.
在构造xc到xd的映射时,可以构造xc+Δxc→xd+Δxd的静态映射,也可以构造Δxc→Δxd的动态映射,相应地,在构造{xc,xs}到xd的映射时,可以构造{xc+Δxc,xs}→xd+Δxd的静态映射,也可以构造{Δxc,xs}→Δxd的动态映射。应注意的是,在静态映射或者动态映射下,都可根据实际情况,考虑或不考虑起始响应指标的影响。When constructing the mapping from x c to x d , a static mapping of x c +Δx c →x d +Δx d can be constructed, and a dynamic mapping of Δx c →Δx d can also be constructed. Correspondingly, when constructing {x c ,x When mapping s } to x d , a static mapping of {x c +Δx c ,x s }→x d +Δx d can be constructed, or a dynamic mapping of {Δx c , x s }→Δx d can be constructed. It should be noted that under static mapping or dynamic mapping, the influence of the initial response index may or may not be considered according to the actual situation.
映射的构造方式可以包括但不不局限于机器学习模型、统计模型、人为制定规则,具体构造方式可以根据实际需求设定。例如,在可控指标与响应指标之间的映射关系可以由先验知识确定的情况下,可以人为制定能够表征可控指标与响应指标之间的映射关系的规则。The construction method of the mapping may include, but is not limited to, a machine learning model, a statistical model, and artificially formulated rules, and the specific construction method may be set according to actual needs. For example, in the case where the mapping relationship between the controllable index and the response index can be determined by prior knowledge, a rule that can characterize the mapping relationship between the controllable index and the response index can be formulated artificially.
作为示例,可以通过如下两种方式中的任意一种来确定可控指标与响应指标之间的映射关系:方式一、可以根据样本集中样本的特征所包括的多个指标,构建用于基于可控指标的取值预测响应指标的取值的模型,以确定可控指标与响应指标之间的映射关系,或者也可以根据样本集中样本的特征所包括的多个指标,构建用于基于静态指标的取值和可控指标的取值预测响应指标的取值的模型,以确定可控指标与响应指标之间的映射关系。其中,所构建的模型可以是统计模型,也可以是机器学习模型,样本集可以是训练预测模型时所使用的训练样本集,也可以是基于其他方式获取的样本集;方式二、可以从预测模型所针对的预测问题出发,根据先验知识,确定多个指标之中的可控指标与响应指标之间的映射关系,例如可以根据已有的先验知识,通过构建统计模型或者制定规则的方式来确定可控指标与响应指标之间的映射关系。As an example, the mapping relationship between the controllable index and the response index can be determined in any one of the following two ways: way 1, according to the multiple indexes included in the characteristics of the samples in the sample set, construct a A model for predicting the value of the response index based on the value of the control index to determine the mapping relationship between the controllable index and the response index. The value of the controllable index and the value of the controllable index are used to predict the value of the response index, so as to determine the mapping relationship between the controllable index and the response index. Among them, the constructed model can be a statistical model or a machine learning model, and the sample set can be the training sample set used when training the prediction model, or the sample set obtained based on other methods; Starting from the prediction problem targeted by the model, the mapping relationship between controllable indicators and response indicators among multiple indicators can be determined according to prior knowledge. way to determine the mapping relationship between controllable indicators and response indicators.
需要说明的是,本发明述及的可控指标与响应指标之间的映射关系,可以包括一对一、多对一、一对多、多对多等多种关系。在通过构造模型来确定可控指标与响应指标之间的映射关系时,传统的统计模型一般是一对一或者多对一,但是在比较新的机器学习模型中映射关系比较自由,如深度神经网络,输入和输出的个数都任意可控,可以由模型自动去调整映射关系。关于映射关系的具体形式,本发明不做限定。It should be noted that the mapping relationship between the controllable index and the response index mentioned in the present invention may include various relationships such as one-to-one, many-to-one, one-to-many, and many-to-many. When constructing a model to determine the mapping relationship between controllable indicators and response indicators, traditional statistical models are generally one-to-one or many-to-one, but the mapping relationship is relatively free in newer machine learning models, such as deep neural networks. In the network, the number of inputs and outputs are arbitrarily controllable, and the mapping relationship can be automatically adjusted by the model. The specific form of the mapping relationship is not limited in the present invention.
在步骤S130中,基于映射关系,对输入样本的可控指标进行调整,以使得所述运算机制针对调整后的输入样本进行运算得到的输出结果满足预定需求。In step S130, based on the mapping relationship, the controllable index of the input sample is adjusted, so that the output result obtained by the operation mechanism operating on the adjusted input sample satisfies the predetermined requirement.
作为示例,输入样本(例如,预测样本)所包括的指标可以分为静态指标(如果有的话)、可控指标以及响应指标,静态指标为取值不可改变的指标集合,响应指标为本身难以调整但可根据可控指标的变化而变化的指标集合。在可控指标的取值发生变化后,基于映射关系可以确定响应指标的取值。因此,在需要对输入样本所包含的指标给出合适的建议,使得指标的变化会促成期望的运算输出时,可以仅对可控指标进行调整,使得将调整后的输入样本(由新的可控指标、新的响应指标以及原有的静态指标(如果有的话)构成)输入运算机制后得到的输出结果满足预定需求即可。As an example, the indicators included in the input sample (for example, the prediction sample) can be divided into static indicators (if any), controllable indicators, and response indicators. A static indicator is a set of indicators whose values cannot be changed, and a response indicator is difficult A collection of metrics that are adjusted but can vary based on changes in controllable metrics. After the value of the controllable indicator changes, the value of the response indicator can be determined based on the mapping relationship. Therefore, when it is necessary to give appropriate suggestions for the indicators contained in the input samples, so that the changes in the indicators will lead to the expected operation output, only the controllable indicators can be adjusted, so that the adjusted input samples (by the new controllable output) can be adjusted. The control index, the new response index and the original static index (if any) are formed) and the output result obtained after the input operation mechanism can meet the predetermined requirements.
需要说明的是,可控指标中可能存在一些具有联动关系的指标,例如“体重”和“血脂”、“血糖”均具有联动关系,“体重”升高时,“血脂”、“血糖”一般也应升高,在调高体重时,如果血脂、血糖不变,或者血脂、血糖降低,明显违背真实情况。因此。为了使得针对可控指标的调整更加准确,还可以对可控指标进行分组,以将可控指标中具有联动关系的指标划分到同一组,在对可控指标进行调整时,可以在可控指标的取值范围内,基于同一组内的指标间的联动关系、以组为单位对可控指标进行调整。以组为单位对可控指标进行调整是指,对于同一组内的指标,在对其中任一个指标进行调整时,应同时对组内其他指标进行调整。其中,在对其中一个指标的取值进行调整时,组内其他指标的取值的调整方向可以根据实际的联动关系确定,例如在同一组内的指标A和指标B之间的联动关系是同升同降时,在调高指标A的取值时,也应调高指标B的取值。It should be noted that there may be some linked indicators among the controllable indicators. For example, "weight", "blood lipids" and "blood sugar" all have linkages. When "weight" increases, "blood lipids" and "blood sugar" generally It should also be increased. When increasing the weight, if blood lipids and blood sugar remain unchanged, or blood lipids and blood sugar decrease, it is obviously contrary to the real situation. therefore. In order to make the adjustment of the controllable indicators more accurate, the controllable indicators can also be grouped, so that the indicators with a linkage relationship among the controllable indicators are divided into the same group. When adjusting the controllable indicators, the controllable indicators can be Within the value range of , the controllable indicators are adjusted on a group-by-group basis based on the linkage relationship between the indicators in the same group. Adjusting the controllable indicators on a group basis means that, for the indicators in the same group, when any one of the indicators is adjusted, other indicators in the group should be adjusted at the same time. Among them, when adjusting the value of one of the indicators, the adjustment direction of the values of other indicators in the group can be determined according to the actual linkage relationship. For example, the linkage relationship between indicator A and indicator B in the same group is the same When both rise and fall, when the value of index A is increased, the value of index B should also be increased.
本发明述及的联动关系主要包括相关关系和/或因果关系。可以将可控指标之中存在因果关系的指标划分到同一组,并且/或者,也可以将可控指标之中存在相关关系的指标划分到同一组。The linkage relationship mentioned in the present invention mainly includes a correlation relationship and/or a causal relationship. The indicators with a causal relationship among the controllable indicators may be divided into the same group, and/or the indicators with a correlation among the controllable indicators may also be divided into the same group.
可以通过计算的方式来确定可控指标中具有相关关系的指标,以将可控指标中存在相关关系的指标划分到同一组。作为示例,相关关系可以理解为两个指标的取值具有固定的变化关系,如可以是正相关的变化关系(即取值同升同降),也可以负相关的变化关系(即取值一升一降)。例如,可以通过独立性校验的方式计算可控指标中指标间的相关关系。其中,独立性校验的计算方式可以包括但不限于皮尔逊相关系数、斯皮尔曼相关系数、肯德尔和谐系数、t检验、卡方检验等方式。其中,在计算指标间的相关关系时,可以基于指标的取值进行计算,也可以根据指标的变化值进行计算,也即可以通过静态和动态两种方式计算可控指标中指标间的相关关系,从而得到指标间静态和动态的相关关系。具体的计算过程,此处不再赘述。The indicators with correlation among the controllable indicators can be determined by calculation, so as to divide the indicators with correlation among the controllable indicators into the same group. As an example, the correlation can be understood as the values of the two indicators have a fixed change relationship, such as a positive correlation change relationship (that is, the value rises and falls simultaneously), or a negative correlation change relationship (that is, the value increases once a drop). For example, the correlation between the indicators in the controllable indicators can be calculated by means of independence verification. The calculation method of the independence check may include, but is not limited to, the Pearson correlation coefficient, the Spearman correlation coefficient, the Kendall harmony coefficient, the t test, the chi-square test, and the like. Among them, when calculating the correlation between the indicators, the calculation can be performed based on the value of the indicator, or it can be calculated according to the change value of the indicator, that is, the correlation between the indicators in the controllable indicators can be calculated in two ways: static and dynamic. , so as to obtain the static and dynamic correlation between the indicators. The specific calculation process will not be repeated here.
因果关系主要是指在逻辑上一个指标的取值变化会导致另一个(或另几个)指标的取值变化。因果关系的确定更接近逻辑推理,其变化一般比较复杂,通过计算的方式难以确定,因此可以根据外部输入确定可控指标中存在因果关系的指标,以将可控指标中存在因果关系的指标划分到同一组。例如,可以根据先验知识由人为归纳确定可控指标中存在因果关系的指标。The causal relationship mainly means that logically, the value change of one indicator will lead to the value change of another (or several other) indicators. The determination of causal relationship is closer to logical reasoning, and its changes are generally more complicated and difficult to determine by calculation. Therefore, the indicators with causal relationship among controllable indicators can be determined according to external input, so as to divide the indicators with causal relationship among controllable indicators. to the same group. For example, the indicators with causal relationship among the controllable indicators can be determined by artificial induction according to prior knowledge.
作为示例,可以通过计算(如独立性校验)的方式将可控指标中强相关(如计算得到的相关度大于预定阈值)的指标划分到同一组,由于因果关系没有特别好的计算手段,因此可以通过外部输入(如人为归纳)的方式来识别控指标中具有因果关系的指标,将具有因果关系的指标划分到同一组,以弥补计算方式的不足。As an example, the indicators with strong correlation (for example, the calculated correlation degree is greater than a predetermined threshold) among the controllable indicators can be divided into the same group by means of calculation (such as independence check). Since there is no particularly good calculation method for the causal relationship, Therefore, the indicators with causal relationship among the control indicators can be identified by means of external input (such as artificial induction), and the indicators with causal relationship can be divided into the same group to make up for the deficiency of the calculation method.
以运算机制为预测模型为例,在求解可控指标的调整结果时,可以以预测模型针对调整后的预测样本进行预测得到的预测结果满足预定需求且尽量减小可控指标的调整代价为目标,对预测样本的特征之中的可控指标进行调整。其中,可控指标的调整代价可以预先确定,如可以通过特定的表达式来表征可控指标中各个指标的调整代价。Taking the computing mechanism as the prediction model as an example, when solving the adjustment results of the controllable indicators, the prediction results obtained by the prediction model for the adjusted prediction samples can meet the predetermined requirements and minimize the adjustment cost of the controllable indicators as the goal. , to adjust the controllable indicators among the characteristics of the predicted sample. The adjustment cost of the controllable index can be predetermined, for example, the adjustment cost of each index in the controllable index can be represented by a specific expression.
举例来说,在将预测样本的特征所包括的多个指标分为静态指标、可控指标和响应指标,并且得到由静态指标和可控指标到响应指标之间的映射关系之后,基于针对预测问题提供预测结果的预测模型,在满足可控指标相关约束的前提下,可以将求解可控指标的调整结果这一问题转化为如下形式:For example, after dividing the multiple indicators included in the characteristics of the predicted sample into static indicators, controllable indicators and response indicators, and obtaining the mapping relationship between the static indicators and the controllable indicators to the response indicators, based on the prediction The problem provides a prediction model for predicting the results. On the premise of satisfying the constraints related to the controllable indicators, the problem of solving the adjustment results of the controllable indicators can be transformed into the following form:
其中,ΔX是预测样本的特征变化,也即特征所包括的多个指标的变化值,C为特征变化ΔX满足约束条件的所有可能取值的集合,约束条件包括可控指标和响应指标改变的值域,以及基于联动关系确定的可控指标的分组约束。Among them, ΔX is the feature change of the predicted sample, that is, the change value of multiple indicators included in the feature, and C is the set of all possible values for which the feature change ΔX satisfies the constraint conditions, including the controllable indicators and the response indicator changes. Value range, and grouping constraints of controllable indicators determined based on linkage relationship.
在考虑到可控指标变化的代价cost(ΔX)的情况下,上述式子最终可以转化为:Taking into account the cost (ΔX) of the change of controllable indicators, the above formula can finally be transformed into:
其中,w1和w2为常量,用来权衡最终的控制效果和控制代价,w1和w2的数值可以根据具体场景设定。上述式子中的min只是为了表示优化方向,不一定是最小,例如w1为正时表示优化方向为最小,w1为负时表示优化方向为大。可以通过多种计算方式对上述式子进行求解。其中,具体求解方法可以根据最终求解难度而定,简单的如线性规划,梯度下降,单纯形法,如果函数较复杂,则可以采用启发式算法(如遗传算法,模拟退火,蚁群算法等),关于式子的求解过程,此处不再赘述。Among them, w 1 and w 2 are constants, which are used to weigh the final control effect and control cost, and the values of w 1 and w 2 can be set according to specific scenarios. The min in the above formula is only to indicate the optimization direction, not necessarily the minimum. For example, when w 1 is positive, it means that the optimization direction is the smallest, and when w 1 is negative, it means that the optimization direction is large. The above equation can be solved in a variety of computational ways. Among them, the specific solution method can be determined according to the final solution difficulty, such as linear programming, gradient descent, simplex method, if the function is more complex, you can use heuristic algorithm (such as genetic algorithm, simulated annealing, ant colony algorithm, etc.) , the solution process of the formula will not be repeated here.
这里,应注意,以上求解问题的表达式仅作为示例,例如,在考虑起始响应指标的影响的情况下,上述变化后的响应指标则需被替换为 Here, it should be noted that the above expression for solving the problem is only an example. For example, in the case of considering the influence of the initial response index, the above-mentioned changed response index needs to be replaced by
另外,根据实际需要满足的需求不同,上述式子还可以具有一定的变形,如上述式子不仅可以作为用于表征优化到极限值的求解公式,还可以对上述式子进行变形,以将上述式子转换为用于表征优化到特定值的求解公式,如可以转换为用于计算真实值与特定值之差的最小值的求解公式。关于上述式子的具体的变形形式不再赘述。In addition, according to different requirements that need to be met, the above formula can also have certain deformations. For example, the above formula can not only be used as a solution formula for characterizing optimization to the limit value, but also can be deformed to transform the above formula The formula is converted into a solution formula used to characterize optimization to a specific value, such as a solution formula that can be converted into a minimum value of the difference between the true value and the specific value. The specific deformation form of the above formula will not be repeated.
在步骤S140中,提供可控指标的调整结果以用于进行指标干预。In step S140, the adjustment result of the controllable index is provided for index intervention.
由此,可以仅提供可控指标的调整结果,相关方面可根据可控指标的调整结果进行指标干预,就可以促成期望的运算输出。与不对输入样本的指标加以区分而直接使用最优化方法得到能够促成期望输出的指标控制方案相比,基于本发明提供的可控指标的调整结果更为合理,在基于本发明提供的可控指标的调整结果进行指标干预时,能够实现且易于实现。In this way, only the adjustment result of the controllable index can be provided, and the relevant parties can intervene in the index according to the adjustment result of the controllable index, so as to promote the desired operation output. Compared with not distinguishing the indicators of the input samples and directly using the optimization method to obtain the indicator control scheme that can promote the desired output, the adjustment results based on the controllable indicators provided by the present invention are more reasonable. It can be achieved and easy to achieve when the adjustment results of the index intervention are carried out.
例如,对于预测患病概率的模型,在模型根据用户现有指标预测得到用户患病概率较大的情况下,可以利用本发明给出对用户的指标中的可控指标进行调整的建议,用户依据给出的建议调整可控指标,就可以减小患病概率。再例如,对于预测机器损耗的模型,可以利用本发明给出对现有指标中的可控指标进行调整的建议,相关人员依据给出的建议调整可控指标,就可以降低机器损耗,延长机器寿命。For example, for a model that predicts the probability of disease, if the model predicts that the probability of the user's disease is high according to the user's existing indicators, the present invention can be used to give a suggestion for adjusting the controllable indicators in the user's indicators. Adjusting the controllable indicators according to the recommendations given can reduce the probability of disease. For another example, for a model for predicting machine wear and tear, the present invention can be used to give suggestions for adjusting the controllable indexes in the existing indexes, and relevant personnel can adjust the controllable indexes according to the given suggestions, so as to reduce machine loss and prolong the machine life. life.
图2示出了本发明示例性实施例的应用于对用户的身体指标进行干预以降低用户患病风险的方法流程图。图2所示的方法可通过计算机程序来执行,也可由专门的用于进行指标干预的装置来执行。FIG. 2 shows a flow chart of a method for intervening on a user's physical index to reduce the user's risk of disease according to an exemplary embodiment of the present invention. The method shown in FIG. 2 can be implemented by a computer program, or can also be implemented by a special device for performing index intervention.
参见图2,在步骤S210中,获取预测模型。此处获取的预测模型是指患病概率预测模型,患病概率预测模型用于根据用户的特征来预测用户的患病概率,可选地,患病概率预测模型可以是机器学习算法训练得到的。其中,可以从外部获取预先训练好的患病概率预测模型,也可以在线训练患病概率预测模型,关于患病概率预测模型的训练过程,此处不再赘述。Referring to Fig. 2, in step S210, a prediction model is obtained. The prediction model obtained here refers to the disease probability prediction model. The disease probability prediction model is used to predict the user's disease probability according to the user's characteristics. Optionally, the disease probability prediction model may be trained by a machine learning algorithm. . Among them, the pre-trained disease probability prediction model may be obtained from the outside, and the disease probability prediction model may also be trained online. The training process of the disease probability prediction model will not be repeated here.
在步骤S220中,使用患病概率预测模型根据用户的特征预测用户的患病概率。In step S220, the disease probability of the user is predicted according to the characteristics of the user by using the disease probability prediction model.
用户的特征包括与预测患病概率相关的多个指标,这多个指标主要是指与用户相关的身体指标,如可以包括但不限于年龄、性别、身高、体重、一个或多个与生活方式相关的特征(如作息时间、饮食、锻炼)、血压、血糖、尿酸、血脂等指标。The characteristics of the user include multiple indicators related to predicting the probability of disease. These multiple indicators mainly refer to the physical indicators related to the user, such as but not limited to age, gender, height, weight, one or more lifestyle indicators. Related characteristics (such as work and rest time, diet, exercise), blood pressure, blood sugar, uric acid, blood lipids and other indicators.
在步骤S230中,判断预测得到的用户的患病概率是否高于预设阈值。In step S230, it is determined whether the predicted disease probability of the user is higher than a preset threshold.
在预测得到的用户的患病概率低于预设阈值的情况下,可以认为用户当前的指标正常,无需进行干预。在预测得到的用户的患病概率高于预设阈值的情况下,可以认为用户当前的指标异常,需要为用户提供一个合适的指标调整方案,以便用户依据给出的调整方案调整自身指标,能够减小患病概率。When the predicted probability of the user's disease is lower than the preset threshold, it can be considered that the current index of the user is normal, and no intervention is required. When the predicted probability of the user's disease is higher than the preset threshold, it can be considered that the user's current index is abnormal, and an appropriate index adjustment plan needs to be provided for the user, so that the user can adjust his index according to the given adjustment plan, and can Reduce the chance of getting sick.
如图2所示,在预测得到的用户的患病概率高于预设阈值的情况下,可以执行步骤S240、步骤S250,来为用户提供调整结果。As shown in FIG. 2 , when the predicted probability of the user's disease is higher than the preset threshold, steps S240 and S250 may be performed to provide the user with an adjustment result.
在步骤S240中,基于多个指标之中的静态指标和可控指标到响应指标的映射关系,对用户的特征之中的可控指标进行调整,以使得预测模型针对调整后的用户的特征进行预测得到的患病概率低于预定阈值。In step S240, based on the mapping relationship between the static index among the multiple indexes and the controllable index to the response index, adjust the controllable index among the characteristics of the user, so that the prediction model is adjusted according to the characteristics of the user after adjustment. The predicted disease probability is lower than a predetermined threshold.
关于静态指标、可控指标以及响应指标的概念及划分方式可以参见上文相关说明,此处不再赘述。作为示例,静态指标可以包括以下至少一项:年龄、性别、身高、职业;可控指标可以包括以下至少一项:体重、一个或多个与生活方式相关的特征(如起居、饮食、锻炼)、血压、血糖;响应指标可以包括以下至少一项:尿酸、血脂。For the concepts and division methods of static indicators, controllable indicators, and response indicators, please refer to the relevant description above, and will not be repeated here. As an example, the static indicators may include at least one of the following: age, gender, height, and occupation; the controllable indicators may include at least one of the following: weight, one or more lifestyle-related characteristics (such as daily life, diet, exercise) , blood pressure, blood sugar; response indicators may include at least one of the following: uric acid, blood lipids.
可以从外部接收静态指标和可控指标到响应指标的映射关系,也可以确定多个指标之中的静态指标和可控指标到响应指标的映射关系。The mapping relationship between static indicators and controllable indicators to response indicators can be received from the outside, and the mapping relationship between static indicators and controllable indicators among multiple indicators to response indicators can also be determined.
以预测样本的特征所包括的指标集合为X,静态指标表示为xs,可控指标表示为xc,响应指标表示为xd,X=(xs,xc,xd)为例,可以构造{xc,xs}到xd的映射。例如,假设Δxc为满足约束条件的可控指标的变化值,在考虑起始响应指标的影响的情况下,变化后的响应指标在不考虑起始响应指标的影响的情况下,变化后的响应指标f=E(x)为可控指标和静态指标到响应指标的映射关系。其中,在构造{xc,xs}到xd的映射时,可以构造{xc+Δxc,xs}→xd+Δxd的静态映射,也可以构造{Δxc,xs}→Δxd的动态映射。应注意的是,在静态映射或者动态映射下,都可根据实际情况,考虑或不考虑起始响应指标的影响。Taking the set of indicators included in the characteristics of the predicted sample as X, the static indicators as x s , the controllable indicators as x c , and the response indicators as x d , X=(x s , x c , x d ) as an example, A mapping of {x c ,x s } to x d can be constructed. For example, assuming that Δx c is the change value of the controllable index that satisfies the constraints, considering the influence of the initial response index, the changed response index Without considering the impact of the initial response index, the changed response index f=E(x) is the mapping relationship between controllable indexes and static indexes to response indexes. Among them, when constructing the mapping from {x c , x s } to x d , a static mapping of {x c +Δx c ,x s }→x d +Δx d can be constructed, or {Δx c , x s } → Dynamic mapping of Δx d . It should be noted that under static mapping or dynamic mapping, the influence of the initial response index may or may not be considered according to the actual situation.
映射的构造方式可以包括但不不局限于机器学习模型、统计模型、人为制定规则,具体构造方式可以根据实际需求设定。例如,在可控指标与响应指标之间的映射关系可以由先验知识确定的情况下,可以人为制定能够表征可控指标与响应指标之间的映射关系的规则。The construction method of the mapping may include, but is not limited to, a machine learning model, a statistical model, and artificially formulated rules, and the specific construction method may be set according to actual needs. For example, in the case where the mapping relationship between the controllable index and the response index can be determined by prior knowledge, a rule that can characterize the mapping relationship between the controllable index and the response index can be formulated artificially.
作为示例,可以通过如下两种方式中的任意一种来确定可控指标与响应指标之间的映射关系:方式一、可以根据样本集中样本的特征所包括的多个指标,构建用于基于静态指标的取值和可控指标的取值预测响应指标的取值的模型,以确定可控指标与响应指标之间的映射关系。其中,所构建的模型可以是统计模型,也可以是机器学习模型,样本集可以是训练预测模型时所使用的训练样本集,也可以是基于其他方式获取的样本集;方式二、可以根据先验知识,确定多个指标之中的静态指标和可控指标到响应指标的映射关系。例如,可以根据已有的先验知识(如医学领域的相关知识及常识),通过构建统计模型或者制定规则的方式来确定静态指标和可控指标到响应指标的映射关系。As an example, the mapping relationship between the controllable index and the response index can be determined in any one of the following two ways: way 1, according to the multiple indexes included in the characteristics of the samples in the sample set, construct a static The value of the indicator and the value of the controllable indicator are used to predict the value of the response indicator, so as to determine the mapping relationship between the controllable indicator and the response indicator. Among them, the constructed model can be a statistical model or a machine learning model, and the sample set can be the training sample set used in training the prediction model, or the sample set obtained based on other methods; According to the experimental knowledge, the mapping relationship between static indicators and controllable indicators to response indicators among multiple indicators is determined. For example, the mapping relationship between static indicators and controllable indicators to response indicators can be determined by constructing statistical models or formulating rules according to existing prior knowledge (such as relevant knowledge and common sense in the medical field).
为了使得针对可控指标的调整更符合真实情况,还可以对可控指标进行分组,以将可控指标中具有联动关系的指标划分到同一组,在对可控指标进行调整时,可以在可控指标的取值范围内,基于同一组内的指标间的联动关系、以组为单位对可控指标进行调整。将可控指标中具有联动关系的指标划分到同一组的实现方式可以参见上文相关描述,此处不再赘述。In order to make the adjustment of the controllable indicators more in line with the real situation, the controllable indicators can also be grouped, so that the indicators with a linkage relationship among the controllable indicators are divided into the same group. Within the value range of the controllable indicators, the controllable indicators are adjusted on a group-by-group basis based on the linkage relationship between the indicators in the same group. For an implementation manner of dividing the indicators with a linkage relationship among the controllable indicators into the same group, reference may be made to the relevant description above, and details are not repeated here.
作为示例,在求解可控指标的调整结果时,可以以患病概率预测模型针对调整后的用户的样本进行预测得到的患病概率低于预定阈值且尽量减小可控指标的调整代价为目标,对预测样本的特征之中的可控指标进行调整。其中,可控指标的调整代价可以预先确定,如可以基于确定的表达式来表征可控指标中各个指标的调整代价。As an example, when finding the adjustment result of the controllable index, the disease probability predicted by the disease probability prediction model for the adjusted user sample can be lower than the predetermined threshold and the adjustment cost of the controllable index can be minimized as the goal. , to adjust the controllable indicators among the characteristics of the predicted sample. The adjustment cost of the controllable index may be predetermined, for example, the adjustment cost of each index in the controllable index may be represented based on a determined expression.
在步骤S250中,提供可控指标的调整结果以便用户进行指标干预。In step S250, the adjustment result of the controllable index is provided so that the user can perform index intervention.
用户在进行指标干预时,可以根据提供的可控指标的调整结果,仅对体重、一个或多个与生活方式相关的特征、血压、血糖等可控指标进行干预,就可以达到降低患病的目的,而无需再考虑尿酸、血脂等对用户而言难以调整的指标。When performing index intervention, users can only intervene on controllable indicators such as body weight, one or more lifestyle-related characteristics, blood pressure, blood sugar and other controllable indicators according to the adjustment results of the provided controllable indicators, so as to reduce the risk of disease. It does not need to consider indicators that are difficult for users to adjust, such as uric acid and blood lipids.
本发明的用于进行指标干预的方法,还可以实现为一种用于进行指标干预的装置。图3示出了根据本发明示例性实施例的用于进行指标干预的装置的框图。其中,用于进行指标干预的装置的功能单元可以由实现本发明原理的硬件、软件或硬件和软件的结合来实现。本领域技术人员可以理解的是,图3所描述的功能单元可以组合起来或者划分成子单元,从而实现上述发明的原理。因此,本文的描述可以支持对本文描述的功能单元的任何可能的组合、或者划分、或者更进一步的限定。The method for performing index intervention of the present invention can also be implemented as a device for performing index intervention. FIG. 3 shows a block diagram of an apparatus for performing index intervention according to an exemplary embodiment of the present invention. The functional units of the apparatus for performing index intervention may be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present invention. Those skilled in the art can understand that the functional units described in FIG. 3 can be combined or divided into sub-units, so as to realize the principle of the above invention. Accordingly, the description herein may support any possible combination, or division, or further definition of the functional units described herein.
下面就用于进行指标干预的装置可以具有的功能单元以及各功能单元可以执行的操作做简要说明,对于其中涉及的细节部分可以参见上文相关描述,这里不再赘述。The following briefly describes the functional units that the apparatus for performing index intervention can have and the operations that each functional unit can perform. For the details involved, reference may be made to the above related descriptions, which will not be repeated here.
参见图3,用于进行指标干预的装置300包括获取单元310、确定单元320、调整单元330以及提供单元340。Referring to FIG. 3 , the apparatus 300 for performing index intervention includes an acquiring unit 310 , a determining unit 320 , an adjusting unit 330 and a providing unit 340 .
获取单元310用于获取用于针对输入样本提供输出结果的运算机制,其中,所述输入样本包括多个指标。获取单元310可以从外部接收运算机制,也可以自行建立运算机制。关于运算机制(例如,预测模型)、指标等,均可以参见上文针对步骤S110的描述,此处不再赘述。The obtaining unit 310 is configured to obtain an operation mechanism for providing an output result for an input sample, wherein the input sample includes a plurality of indicators. The acquiring unit 310 may receive the operation mechanism from the outside, or may establish the operation mechanism by itself. Regarding the operation mechanism (eg, prediction model), indicators, etc., reference may be made to the description of step S110 above, and details are not repeated here.
确定单元320用于确定多个指标之中的可控指标与响应指标之间的映射关系。其中,可控指标为其取值可被调整的指标集合,响应指标为其取值本身难以调整但可根据可控指标的变化而变化的指标集合。The determining unit 320 is configured to determine the mapping relationship between the controllable index and the response index among the multiple indexes. Among them, the controllable index is the index set whose value can be adjusted, and the response index is the index set whose value itself is difficult to adjust but can be changed according to the change of the controllable index.
关于映射关系的确定可以参见上文针对步骤S120的描述,此处不再赘述。作为本发明的一个示例,确定单元320可以根据样本集中样本的特征所包括的多个指标,构建用于基于可控指标的取值预测响应指标的取值的模型,以确定可控指标与响应指标之间的映射关系,或者确定单元320也可以根据样本集中样本的特征所包括的多个指标,构建用于基于静态指标的取值和可控指标的取值预测响应指标的取值的模型,以确定可控指标与响应指标之间的映射关系,其中,静态指标为其取值不可改变的指标集合。另外,确定单元320也可以根据先验知识,确定可控指标与响应指标之间的映射关系。For the determination of the mapping relationship, reference may be made to the description of step S120 above, and details are not repeated here. As an example of the present invention, the determining unit 320 may construct a model for predicting the value of the response indicator based on the value of the controllable indicator according to multiple indicators included in the characteristics of the samples in the sample set, so as to determine the controllable indicator and the response indicator. The mapping relationship between the indicators, or the determining unit 320 can also construct a model for predicting the value of the response indicator based on the value of the static indicator and the value of the controllable indicator according to multiple indicators included in the characteristics of the samples in the sample set , to determine the mapping relationship between the controllable index and the response index, wherein the static index is a set of indexes whose value cannot be changed. In addition, the determining unit 320 may also determine the mapping relationship between the controllable index and the response index according to prior knowledge.
调整单元330用于基于映射关系,对输入样本的可控指标进行调整,以使得所述运算机制针对调整后的输入样本进行运算得到的输出结果满足预定需求。The adjustment unit 330 is configured to adjust the controllable index of the input sample based on the mapping relationship, so that the output result obtained by the operation mechanism operating on the adjusted input sample satisfies the predetermined requirement.
对可控指标进行调整的过程可以参见上文针对步骤S130的描述,此处不再赘述。作为本发明的一个示例,调整单元330可以以预测模型针对调整后的预测样本进行预测得到的预测结果满足预定需求且尽量减小可控指标的调整代价为目标,对预测样本的特征之中的可控指标进行调整。For the process of adjusting the controllable index, reference may be made to the description of step S130 above, which will not be repeated here. As an example of the present invention, the adjustment unit 330 may target the prediction results obtained by the prediction model for the adjusted prediction samples to meet the predetermined requirements and reduce the adjustment cost of the controllable indicators as much as possible. Adjustable indicators.
可选地,用于进行指标干预的装置300还可以包括分组单元(图中未示出),分组单元用于对可控指标进行分组,以将可控指标中具有联动关系的指标划分到同一组,调整单元330可以在可控指标的取值范围内,基于同一组内的指标间的联动关系、以组为单位对可控指标进行调整。分组单元对可控指标进行分组的实现过程,可以参见上文相关描述,此处不再赘述。Optionally, the apparatus 300 for performing index intervention may further include a grouping unit (not shown in the figure), and the grouping unit is used for grouping the controllable indexes, so as to divide the indexes with a linkage relationship among the controllable indexes into the same group. group, the adjustment unit 330 may adjust the controllable index in the unit of group based on the linkage relationship between the indexes in the same group within the value range of the controllable index. For the implementation process of grouping the controllable indicators by the grouping unit, reference may be made to the relevant description above, and details are not repeated here.
提供单元340用于提供可控指标的调整结果以用于进行指标干预。The providing unit 340 is configured to provide the adjustment result of the controllable index for index intervention.
应该理解,根据本发明示例性实施例的用于进行指标干预的装置300的具体实现方式可参照结合图1描述的相关具体实现方式来实现,在此不再赘述。It should be understood that the specific implementation manner of the apparatus 300 for performing index intervention according to an exemplary embodiment of the present invention may be implemented with reference to the relevant specific implementation manner described in conjunction with FIG. 1 , which will not be repeated here.
图4示出了根据本发明另一示例性实施例的用于进行指标干预的装置的框图。其中,用于进行指标干预的装置的功能单元可以由实现本发明原理的硬件、软件或硬件和软件的结合来实现。本领域技术人员可以理解的是,图4所描述的功能单元可以组合起来或者划分成子单元,从而实现上述发明的原理。因此,本文的描述可以支持对本文描述的功能单元的任何可能的组合、或者划分、或者更进一步的限定。FIG. 4 shows a block diagram of an apparatus for performing index intervention according to another exemplary embodiment of the present invention. The functional units of the apparatus for performing index intervention may be implemented by hardware, software, or a combination of hardware and software that implements the principles of the present invention. Those skilled in the art can understand that the functional units described in FIG. 4 can be combined or divided into sub-units, so as to realize the principle of the above invention. Accordingly, the description herein may support any possible combination, or division, or further definition of the functional units described herein.
下面就用于进行指标干预的装置可以具有的功能单元以及各功能单元可以执行的操作做简要说明,对于其中涉及的细节部分可以参见上文相关描述,这里不再赘述。The following briefly describes the functional units that the apparatus for performing index intervention can have and the operations that each functional unit can perform. For the details involved, reference may be made to the above related descriptions, which will not be repeated here.
参见图4,用于进行指标干预的装置400包括获取单元410、预测单元420、调整单元430以及提供单元440。Referring to FIG. 4 , the apparatus 400 for performing index intervention includes an acquiring unit 410 , a predicting unit 420 , an adjusting unit 430 and a providing unit 440 .
获取单元410用于获取患病概率预测模型。具体可以参见上文针对步骤S210的描述,此处不再赘述。The obtaining unit 410 is configured to obtain a disease probability prediction model. For details, reference may be made to the description of step S210 above, which will not be repeated here.
预测单元420用于使用患病概率预测模型根据用户的特征预测用户的患病概率。用户的特征包括与预测患病概率相关的多个指标,如可以包括但不限于年龄、性别、身高、体重、生活方式、血压、血糖、尿酸、血脂等指标。The predicting unit 420 is configured to use the disease probability prediction model to predict the user's disease probability according to the user's characteristics. The characteristics of the user include multiple indicators related to predicting the probability of disease, such as but not limited to age, gender, height, weight, lifestyle, blood pressure, blood sugar, uric acid, blood lipids and other indicators.
调整单元430用于在预测到用户的患病概率高于预定阈值的情况下,基于多个指标之中的静态指标和可控指标到响应指标的映射关系,对用户的特征之中的可控指标进行调整,以使得患病概率预测模型针对调整后的用户的特征进行预测得到的患病概率低于所述预定阈值。The adjustment unit 430 is configured to adjust the controllable among the characteristics of the user based on the static index among the multiple indexes and the mapping relationship between the controllable index and the response index when the predicted probability of the user's disease is higher than the predetermined threshold. The indicator is adjusted so that the disease probability obtained by the disease probability prediction model based on the adjusted user characteristics is lower than the predetermined threshold.
关于静态指标、可控指标以及响应指标的概念及划分方式可以参见上文相关说明,此处不再赘述。作为示例,静态指标可以包括以下至少一项:年龄、性别、身高、职业;可控指标可以包括以下至少一项:体重,生活方式,血压,血糖;响应指标可以包括以下至少一项:尿酸、血脂。For the concepts and division methods of static indicators, controllable indicators, and response indicators, please refer to the relevant description above, and will not be repeated here. As an example, the static index may include at least one of the following: age, gender, height, and occupation; the controllable index may include at least one of the following: weight, lifestyle, blood pressure, and blood sugar; the response index may include at least one of the following: uric acid, blood lipids.
对可控指标进行调整的过程可以参见上文针对步骤S240的描述,此处不再赘述。作为本发明的一个示例,调整单元430可以以患病概率预测模型针对调整后的用户的特征进行预测得到的患病概率低于所述预定阈值且尽量减小所述可控指标的调整代价为目标,对预测样本的特征之中的可控指标进行调整。For the process of adjusting the controllable index, reference may be made to the description of step S240 above, which will not be repeated here. As an example of the present invention, the adjustment unit 430 may use the disease probability predicted by the disease probability prediction model according to the characteristics of the adjusted user to be lower than the predetermined threshold and the adjustment cost of minimizing the controllable index as The target is to adjust the controllable indicators among the characteristics of the predicted sample.
提供单元440用于提供可控指标的调整结果以便用户进行指标干预。The providing unit 440 is configured to provide the adjustment result of the controllable index so that the user can perform index intervention.
可选地,用于进行指标干预的装置400还可以包括确定单元(图中未示出)。确定单元用于确定多个指标之中的静态指标和可控指标到响应指标的映射关系。关于映射的构造方式可以参见上文相关描述,此处不再赘述。Optionally, the apparatus 400 for performing index intervention may further include a determining unit (not shown in the figure). The determining unit is used to determine the mapping relationship between the static index and the controllable index among the multiple indexes to the response index. For the construction method of the mapping, reference may be made to the above related description, which will not be repeated here.
应该理解,根据本发明示例性实施例的用于进行指标干预的装置400的具体实现方式可参照结合图2描述的相关具体实现方式来实现,在此不再赘述。It should be understood that the specific implementation manner of the apparatus 400 for performing index intervention according to an exemplary embodiment of the present invention may be implemented with reference to the relevant specific implementation manner described in conjunction with FIG. 2 , which will not be repeated here.
图5示出了根据本发明示例性实施例的可用于实现上述方法的计算设备的结构示意图。FIG. 5 shows a schematic structural diagram of a computing device that can be used to implement the above method according to an exemplary embodiment of the present invention.
参见图5,计算设备500包括存储器510和处理器520。Referring to FIG. 5 , computing device 500 includes memory 510 and processor 520 .
处理器520可以是一个多核的处理器,也可以包含多个处理器。在一些实施例中,处理器520可以包含一个通用的主处理器以及一个或多个特殊的协处理器,例如图形处理器(GPU)、数字信号处理器(DSP)等等。在一些实施例中,处理器520可以使用定制的电路实现,例如特定用途集成电路(ASIC,Application Specific Integrated Circuit)或者现场可编程逻辑门阵列(FPGA,Field Programmable Gate Arrays)。The processor 520 may be a multi-core processor, or may include multiple processors. In some embodiments, processor 520 may comprise a general-purpose main processor and one or more special-purpose co-processors, such as a graphics processing unit (GPU), a digital signal processor (DSP), and the like. In some embodiments, the processor 520 may be implemented using customized circuits, such as Application Specific Integrated Circuits (ASICs) or Field Programmable Gate Arrays (FPGAs).
存储器510可以包括各种类型的存储单元,例如系统内存、只读存储器(ROM),和永久存储装置。其中,ROM可以存储处理器520或者计算机的其他模块需要的静态数据或者指令。永久存储装置可以是可读写的存储装置。永久存储装置可以是即使计算机断电后也不会失去存储的指令和数据的非易失性存储设备。在一些实施方式中,永久性存储装置采用大容量存储装置(例如磁或光盘、闪存)作为永久存储装置。另外一些实施方式中,永久性存储装置可以是可移除的存储设备(例如软盘、光驱)。系统内存可以是可读写存储设备或者易失性可读写存储设备,例如动态随机访问内存。系统内存可以存储一些或者所有处理器在运行时需要的指令和数据。此外,存储器510可以包括任意计算机可读存储媒介的组合,包括各种类型的半导体存储芯片(DRAM,SRAM,SDRAM,闪存,可编程只读存储器),磁盘和/或光盘也可以采用。在一些实施方式中,存储器510可以包括可读和/或写的可移除的存储设备,例如激光唱片(CD)、只读数字多功能光盘(例如DVD-ROM,双层DVD-ROM)、只读蓝光光盘、超密度光盘、闪存卡(例如SD卡、min SD卡、Micro-SD卡等等)、磁性软盘等等。计算机可读存储媒介不包含载波和通过无线或有线传输的瞬间电子信号。Memory 510 may include various types of storage units, such as system memory, read only memory (ROM), and persistent storage. The ROM may store static data or instructions required by the processor 520 or other modules of the computer. Persistent storage devices may be readable and writable storage devices. Permanent storage may be a non-volatile storage device that does not lose stored instructions and data even if the computer is powered off. In some embodiments, persistent storage devices employ mass storage devices (eg, magnetic or optical disks, flash memory) as persistent storage devices. In other embodiments, persistent storage may be a removable storage device (eg, a floppy disk, an optical drive). System memory can be a readable and writable storage device or a volatile readable and writable storage device, such as dynamic random access memory. System memory can store some or all of the instructions and data that the processor needs at runtime. In addition, memory 510 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read only memory), and magnetic and/or optical disks may also be employed. In some embodiments, memory 510 may include a removable storage device that is readable and/or writable, such as a compact disc (CD), a read-only digital versatile disc (eg, DVD-ROM, dual-layer DVD-ROM), Read-only Blu-ray Discs, Ultra-Density Discs, Flash Cards (eg SD Cards, Min SD Cards, Micro-SD Cards, etc.), Magnetic Floppy Disks, etc. Computer readable storage media do not contain carrier waves and transient electronic signals transmitted over wireless or wire.
存储器510上存储有可执行代码,当可执行代码被处理器520执行时,可以使处理器520执行上文述及的用于进行指标干预的方法。Executable code is stored on the memory 510, and when the executable code is executed by the processor 520, the processor 520 can be made to execute the above-mentioned method for performing index intervention.
上文中已经参考附图详细描述了根据本发明的用于进行指标干预的方法、装置以及计算设备。The method, apparatus and computing device for performing index intervention according to the present invention have been described in detail above with reference to the accompanying drawings.
此外,根据本发明的方法还可以实现为一种计算机程序或计算机程序产品,该计算机程序或计算机程序产品包括用于执行本发明的上述方法中限定的上述各步骤的计算机程序代码指令。Furthermore, the method according to the invention can also be implemented as a computer program or computer program product comprising computer program code instructions for carrying out the above-mentioned steps defined in the above-mentioned method of the invention.
或者,本发明还可以实施为一种非暂时性机器可读存储介质(或计算机可读存储介质、或机器可读存储介质),其上存储有可执行代码(或计算机程序、或计算机指令代码),当所述可执行代码(或计算机程序、或计算机指令代码)被电子设备(或计算设备、服务器等)的处理器执行时,使所述处理器执行根据本发明的上述方法的各个步骤。Alternatively, the present invention can also be implemented as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having executable codes (or computer programs, or computer instruction codes stored thereon) ), when the executable code (or computer program, or computer instruction code) is executed by the processor of the electronic device (or computing device, server, etc.), the processor is caused to perform the various steps of the above-mentioned method according to the present invention .
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。Those skilled in the art will also appreciate that the various exemplary logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both.
附图中的流程图和框图显示了根据本发明的多个实施例的系统和方法的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标记的功能也可以以不同于附图中所标记的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods in accordance with various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
以上已经描述了本发明的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Various embodiments of the present invention have been described above, and the foregoing descriptions are exemplary, not exhaustive, and not limiting of the disclosed embodiments. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the various embodiments, the practical application or improvement over the technology in the marketplace, or to enable others of ordinary skill in the art to understand the various embodiments disclosed herein.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410520112.3A CN118230960A (en) | 2018-12-17 | 2018-12-17 | Method, device, equipment and medium for index intervention |
| CN201811544043.0A CN111326254B (en) | 2018-12-17 | 2018-12-17 | Method, device, equipment and medium for index intervention |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811544043.0A CN111326254B (en) | 2018-12-17 | 2018-12-17 | Method, device, equipment and medium for index intervention |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410520112.3A Division CN118230960A (en) | 2018-12-17 | 2018-12-17 | Method, device, equipment and medium for index intervention |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111326254A true CN111326254A (en) | 2020-06-23 |
| CN111326254B CN111326254B (en) | 2024-06-07 |
Family
ID=71170683
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410520112.3A Pending CN118230960A (en) | 2018-12-17 | 2018-12-17 | Method, device, equipment and medium for index intervention |
| CN201811544043.0A Active CN111326254B (en) | 2018-12-17 | 2018-12-17 | Method, device, equipment and medium for index intervention |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410520112.3A Pending CN118230960A (en) | 2018-12-17 | 2018-12-17 | Method, device, equipment and medium for index intervention |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN118230960A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104346372A (en) * | 2013-07-31 | 2015-02-11 | 国际商业机器公司 | Method and device for evaluating prediction models |
| US20160012202A1 (en) * | 2014-07-14 | 2016-01-14 | International Business Machines Corporation | Predicting the risks of multiple healthcare-related outcomes via joint comorbidity discovery |
| CN106663224A (en) * | 2014-06-30 | 2017-05-10 | 亚马逊科技公司 | Interactive interface for machine learning model evaluation |
| CN107491638A (en) * | 2017-07-28 | 2017-12-19 | 深圳和而泰智能控制股份有限公司 | A kind of ICU user's prognosis method and terminal device based on deep learning model |
| CN108573309A (en) * | 2018-01-04 | 2018-09-25 | 中国科学院计算技术研究所 | A method and system for adaptive adjustment of machine learning algorithm |
-
2018
- 2018-12-17 CN CN202410520112.3A patent/CN118230960A/en active Pending
- 2018-12-17 CN CN201811544043.0A patent/CN111326254B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104346372A (en) * | 2013-07-31 | 2015-02-11 | 国际商业机器公司 | Method and device for evaluating prediction models |
| CN106663224A (en) * | 2014-06-30 | 2017-05-10 | 亚马逊科技公司 | Interactive interface for machine learning model evaluation |
| US20160012202A1 (en) * | 2014-07-14 | 2016-01-14 | International Business Machines Corporation | Predicting the risks of multiple healthcare-related outcomes via joint comorbidity discovery |
| CN107491638A (en) * | 2017-07-28 | 2017-12-19 | 深圳和而泰智能控制股份有限公司 | A kind of ICU user's prognosis method and terminal device based on deep learning model |
| CN108573309A (en) * | 2018-01-04 | 2018-09-25 | 中国科学院计算技术研究所 | A method and system for adaptive adjustment of machine learning algorithm |
Non-Patent Citations (1)
| Title |
|---|
| 肖辉;郝元涛;徐晓;朱晓宇;: "基于随机森林算法和Logistic回归模型的糖尿病风险因素研究", 中国数字医学, no. 01 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118230960A (en) | 2024-06-21 |
| CN111326254B (en) | 2024-06-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112633601B (en) | Method, device, equipment and computer medium for predicting disease event occurrence probability | |
| US20120271612A1 (en) | Predictive modeling | |
| Rallapalli et al. | Predicting the risk of diabetes in big data electronic health Records by using scalable random forest classification algorithm | |
| KR20190021471A (en) | Method, Apparatus and Program for Predicting Prognosis of Gastric Cancer Using Artificial Neural Network | |
| CN105808906B (en) | The analysis method and its device of patient personal characteristics | |
| CN118692629B (en) | Application diet intervention management method for hemodialysis patients with children nephropathy | |
| CN109948680A (en) | Classification method and system of medical record data | |
| CN118626918A (en) | A data classification and grading method based on artificial intelligence | |
| Naz et al. | SMOTE-SMO-based expert system for type II diabetes detection using PIMA dataset | |
| CN114494263B (en) | Medical image lesion detection method, system and equipment integrating clinical information | |
| CN111696662A (en) | Disease prediction method, device and storage medium | |
| US20200364566A1 (en) | Systems and methods for predicting pain level | |
| CN107358019A (en) | Recommender system and method for concept drift medical plan | |
| Czabanski et al. | Fuzzy analysis of delivery outcome attributes for improving the automated fetal state assessment | |
| CN114121296B (en) | Data-driven clinical information rule extraction method, storage media and equipment | |
| Akhtar et al. | Monitoring bio-chemical indicators using machine learning techniques for an effective large for gestational age prediction model with reduced computational overhead | |
| CN110335678A (en) | A kind of plateau adaptability appraisal procedure and system | |
| CN111326254B (en) | Method, device, equipment and medium for index intervention | |
| US12340893B2 (en) | System and method for generating a gestational disorder nourishment program | |
| EP4550353A1 (en) | Risk prediction abstention in patient monitoring | |
| KR102303272B1 (en) | System for predictting a direction of prostate cancer risk | |
| US20220277839A1 (en) | Model to dynamically predict patient's discharge readiness in general ward | |
| KR102601514B1 (en) | System for prediction of early dropping out in outpatients with alcohol use disorders and method thereof | |
| Krishnaraj et al. | Enhanced SVM Optimization for Diabetes Prediction Using Particle Swarm and Differential Evolution Techniques | |
| Nguyen | Evaluating the effect of weight loss on releasing chronic rhinosinusitis symptoms in obese population using machine learning |
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 | ||
| GR01 | Patent grant |