Index evaluation method and device, electronic equipment and storage medium
Through the target model based on the kernel function, the evaluation value is determined based on the distance relationship between historical data and target data, which solves the problems of inaccurate index mapping and sensitivity to extreme values in the existing technology, and achieves more accurate and stable evaluation results.
Patent Information
- Application Number
- CN202410658537.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-10
AI Technical Summary
Existing indicator mapping methods have problems in data analysis and performance evaluation such that the scoring results are not accurate enough and cannot reflect the true situation of the data. They are also sensitive to extreme values and have low error tolerance, and cannot effectively adapt to dynamic changes in the data.
Using a target model based on kernel function generation, the distance relationship between historical data and target data is used to determine the target evaluation value, so that the scoring interval of the preset indicator is determined based on the distribution density of historical data, thereby improving the discrimination and accuracy of the evaluation value. sex.
It achieves more accurate and objective target evaluation values, can flexibly adapt to changes in data distribution, improves the accuracy and stability of evaluation results, and reduces the impact of extreme values on the results.
Smart Images

Figure CN118627952A
Abstract
Description
Technical Field
[0001] The present application relates to an indicator evaluation method, device, electronic device and storage medium. Background Art
[0002] At present, in order to improve the level of intelligent management, quantitative evaluation methods based on the indicator management system have been established in many information management and control fields, such as data analysis, indicator monitoring, performance evaluation, etc., so as to map the data of different indicators into a unified scoring system for comparison.
[0003] In related technologies, mapping methods are usually set subjectively by data analysis experts, or rely on linear normalization methods. However, the scoring results after these methods map data of different indicators are not accurate enough and cannot reflect the true situation of the data. Summary of the invention
[0004] The present application mainly provides an indicator evaluation method, device, electronic device and storage medium, which can not only ensure the discrimination of the evaluation value in the scoring range, but also make the determined target evaluation value more accurate and objective.
[0005] The technical solution of this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides an indicator evaluation method, comprising:
[0007] Obtain historical data and target data corresponding to preset indicators;
[0008] Based on historical data and target data, a target evaluation value corresponding to the target data is determined using a target model, wherein the target model is generated based on at least a kernel function, and the kernel function is used to characterize the target distance between the target data and the historical data; and the scoring interval of the preset indicator is correlated with the distribution density of the historical data.
[0009] In a second aspect, an embodiment of the present application provides an indicator evaluation device, comprising:
[0010] An acquisition unit, configured to acquire historical data and target data corresponding to a preset indicator;
[0011] The evaluation unit is configured to determine a target evaluation value corresponding to the target data based on historical data and target data using a target model, wherein the target model is generated based on at least a kernel function, and the kernel function is used to characterize a target distance between the target data and the historical data; and the scoring interval of the preset indicator is correlated with the distribution density of the historical data.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, wherein:
[0013] A memory for storing computer programs that can be run on the processor;
[0014] A processor is used to execute a computer program in a memory to implement the steps of the indicator evaluation method as described in the first aspect.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the indicator evaluation method described in the first aspect.
[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps of the indicator evaluation method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 Schematic diagram of the steps of the indicator evaluation method provided in the embodiment of the present application Figure 1 ;
[0018] Figure 2 Schematic diagram of the steps of the indicator evaluation method provided in the embodiment of the present application Figure 2 ;
[0019] Figure 3 A schematic diagram of a probability density function curve provided in an embodiment of the present application;
[0020] Figure 4 A schematic diagram of a curve of a probability density integral function provided in an embodiment of the present application;
[0021] Figure 5 Schematic diagram of the steps of the indicator evaluation method provided in the embodiment of the present application Figure 3 ;
[0022] Figure 6 Schematic diagram of the steps of the indicator evaluation method provided in the embodiment of the present application Figure 4 ;
[0023] Figure 7 A schematic diagram of an indicator monitoring interface provided in an embodiment of the present application;
[0024] Figure 8 A schematic diagram of a curve of a preset indicator provided in an embodiment of the present application;
[0025] Fig. 9 A schematic diagram of the composition structure of an indicator evaluation device provided in an embodiment of the present application;
[0026] Fig.10 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0029] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0030] It should also be pointed out that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0031] In addition, the reference to "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0032] The following is an introduction to the related technologies of this application.
[0033] An indicator is a scale and standard for measuring economic benefits. The indicator evaluation system is applied to fields such as data analysis, indicator monitoring or performance evaluation. By converting the original data of different dimensions and indicators into dimensionless scores, and mapping them to a unified scoring system for comparison, analysis and evaluation, it can intuitively reflect the results of various business activities, the progress of workload, etc., and provide a basis for scientific decision-making in the next step of management and operation activities.
[0034] In the related art, the mapping method of mapping the raw data of different indicators to a unified system is generally defined subjectively by data analysis experts based on experience, or relies on some linear normalization methods, such as the Min-Max Normalization method, the z-score normalization method, etc. to calculate the score corresponding to the raw data. Moreover, when using these mapping methods, there are certain prior assumptions about the distribution of the raw data. The distribution of the raw data needs to conform to the corresponding distribution before the corresponding method can be used. The actual distribution characteristics of the raw data are not taken into account. For example, if the linear normalization method is used for mapping, the distribution of the raw data needs to conform to the normal distribution.
[0035] Therefore, the mapping method in the related art will cause the differences between the original data to be compressed, and the original data will suffer from information loss during the mapping process, resulting in inaccurate scoring results and inability to conduct effective evaluation. In addition, the above mapping method is sensitive to extreme values in the original data, has a low fault tolerance rate, and cannot effectively adapt to the dynamic changes of the original data.
[0036] Based on this, the embodiment of the present application provides an indicator evaluation method, which can determine the target evaluation value corresponding to the target data based on the historical data and the target data using the target model. And because the target model is generated based on the kernel function that can determine the target distance, the scoring interval of the preset indicator can be determined according to the distribution density of the historical data, thereby ensuring the discrimination of the evaluation value in the scoring interval, making the determined target evaluation value more accurate and objective.
[0037] The present application is further described in detail below through the accompanying drawings and specific embodiments.
[0038] Figure 1 Schematic diagram of the steps of the indicator evaluation method provided in the embodiment of the present application Figure 1 .like Figure 1 As shown, the indicator evaluation method may include the following steps:
[0039] S101, obtaining historical data and target data corresponding to preset indicators.
[0040] In an embodiment of the present application, the preset indicator may refer to an indicator that currently needs to be evaluated using an indicator evaluation method. It can be understood that there may be multiple indicators that need to be mapped to the same scoring system through evaluation. For example, for the scenario of daily product monitoring, it may include product satisfaction, service complaint rate, service resolution rate and many other indicators. The preset indicator may be any one of them.
[0041] It should be noted that the historical data corresponding to the preset indicator may refer to the multiple data recorded by the preset indicator before the execution of this indicator evaluation. It can be understood that the more historical data there are, the more it can reflect the distribution of data in the preset indicator; the target data corresponding to the preset indicator may refer to the data that needs to be mapped to the same evaluation system as the historical data by executing the indicator evaluation method this time. When there are multiple target data, they can be evaluated in sequence.
[0042] It should also be noted that the dimensions of the historical data corresponding to the preset indicators and the target data corresponding to the preset indicators are the same.
[0043] S102, based on the historical data and the target data, using the target model, determine the target evaluation value corresponding to the target data.
[0044] The target model is generated at least based on a kernel function, and the kernel function is used to characterize the target distance between the target data and the historical data.
[0045] In the embodiment of the present application, the scoring interval of the preset indicator is correlated with the distribution density of the historical data.
[0046] In an embodiment of the present application, the evaluation value corresponding to the historical data can also be determined based on the target model before the target data is evaluated. Therefore, the target evaluation value corresponding to the target data and the evaluation value corresponding to the historical data can be the same or different scores in the same scoring system. For example, if the scoring system is a percentage scoring system, the evaluation value corresponding to the above historical data and the target evaluation value should both be natural numbers in the range of [0, 100]. The specific number of precise digits can be determined according to actual needs.
[0047] The scoring interval of the preset indicator may refer to an interval formed by mapping the maximum and minimum values in the historical data to the same scoring system through the target model. The evaluation value corresponding to the maximum value may not be the full score of the evaluation system, and the evaluation value corresponding to the minimum value may not be the zero score of the evaluation system. Therefore, the evaluation value corresponding to the historical data should be within this scoring interval, and the evaluation value of the target data may be within this scoring interval.
[0048] From the above, the scoring interval is an interval formed by the evaluation value corresponding to the maximum value and the minimum value in the historical data, and the evaluation values corresponding to other historical data are in the scoring interval. Since the evaluation value corresponding to each historical data is determined by using the target model, and the target model is generated based on the kernel function, where the kernel function is a function that can determine the distance between data and can reflect the distribution density of historical data. Therefore, the scoring interval, as well as the sparse distribution of the evaluation value corresponding to the historical data and the target evaluation value of the target data in the scoring interval, are all related to the distribution parameters such as the distribution density and distribution span of the historical data.
[0049] The kernel function may be a Gaussian kernel function, which is suitable for kernel density estimation due to its good smoothness. The formula of the Gaussian kernel function can be expressed by the following formula (1):
[0050]
[0051] In an embodiment of the present application, the target model may be a model for scoring and mapping the target data. Since the target model is generated based on a kernel function, its input parameters may include historical data and target data. In this way, the target model can evaluate the target data based on the target distance between the target data and the historical data, so that the target data is mapped to the same scoring system as the historical data. Exemplarily, if the distance between the target data and the historical data is close, it means that the difference between the target data and the historical data is small, and the target model needs to be used to make the target evaluation value larger than the evaluation value corresponding to the historical data, thereby increasing the discrimination between the target evaluation value corresponding to the target data and the evaluation value of the historical data.
[0052] Moreover, since the distribution density of historical data is associated with the scoring interval, the target model can determine the existing data distribution and the position of the newly added target data in the data distribution under the distribution density represented by the historical data, and then determine the position of the target evaluation value of the target data in the scoring interval, and determine the target evaluation value. This indicator evaluation method is more objective and precise than the mapping method in the prior art. The target model can perform scoring mapping based on the real historical data distribution, so that the scoring mapping can be flexibly adapted to the data distribution.
[0053] The embodiment of the present application provides an indicator evaluation method, which can determine the target evaluation value corresponding to the target data based on historical data and target data using a target model. Compared with the mapping method in the related art, which does not consider the distribution characteristics of the original data, resulting in information loss during the mapping process, in the embodiment of the present application, the target model is generated based on a kernel function that can determine the target distance, so that the scoring interval of the preset indicator can be determined according to the distribution density of the historical data, thereby ensuring the discrimination of the evaluation value in the scoring interval, making the determined target evaluation value more accurate and objective.
[0054] In yet another embodiment of the present application, Figure 2 Schematic diagram of the steps of the indicator evaluation method provided in the embodiment of the present application Figure 2 The target model includes a first sub-model and a second sub-model, and the first sub-model is different from the second sub-model.
[0055] like Figure 2 As shown, for the above step S102, based on the historical data and the target data, using the target model, determining the target evaluation value corresponding to the target data may include the following steps:
[0056] S201, based on historical data and target data, using a first sub-model, determine a target integral value of the target data.
[0057] In an embodiment of the present application, the first sub-model is obtained by integrating the probability density function constructed based on the kernel function.
[0058] In the embodiment of the present application, the first sub-model may be constructed based on a kernel function, and the first sub-model may include the aforementioned formula (1), the following formula (2) and formula (3):
[0059]
[0060] F(x)=∫[-∞,x]f(t)dt (3)
[0061] Wherein, f(x) can be a probability density function, which is used to estimate the distribution of the overall data based on historical samples. Wherein, n is the number of samples, that is, the amount of historical data; h is the bandwidth parameter, which is a preset value used to control the smoothness of the curve. K is the Gaussian kernel function described by the above formula (1), which is used to generate weights near the sample points of discrete historical data to make the data continuous and smooth.
[0062] Figure 3 A schematic diagram of a probability density function curve provided in an embodiment of the present application, such as Figure 3As shown, the horizontal axis of the curve graph represents the value of historical data, and its value range is the interval surrounded by the minimum value min in the historical data at both ends and the maximum value max of the historical data. The vertical axis of the curve graph represents the probability of occurrence of each historical data, that is, the probability density value, and its value range is between [0, 1]. Among them, the area marked with oblique lines is the area surrounded by the interval where the probability of occurrence of historical data exceeds the preset probability threshold and the curve, indicating that the distribution density of historical data in this interval is relatively large.
[0063] Among them, F(x) can be a probability density integral function, which is obtained by integrating the above probability density function f(x), including the parameters in the above f(x), and the integration result is not expanded here. Figure 4 A schematic diagram of a probability density integral function curve provided in an embodiment of the present application, such as Figure 4 As shown, the horizontal axis of the curve represents the value of historical data, and its value range is the interval surrounded by the maximum value max and the minimum value min of the historical data at both ends. The vertical axis of the curve represents the target integral value corresponding to each historical data, which can also be called the probability density integral value, and its value range is between [0, 1]. Among them, Figure 3 The area marked with a slash in Figure 4 The corresponding relationship between the areas marked by grid lines in , specifically, Figure 4 The area marked by grid lines in Figure 3 The same horizontal axis interval as the area marked with a diagonal line in the figure, that is, the interval between the minimum value min in the historical data and the maximum value max in the historical data, is the same as Figure 3 The curve enclosed by the curve obtained by integrating the curve of the area marked with diagonal lines.
[0064] It can be seen that Figure 3 The area marked with diagonal lines in the figure is the area with high distribution density in the historical data, that is, the interval with high probability density. This interval is the area where the historical data is most concentrated. The curve F(x) obtained by integrating the curve of f(x) has a larger slope in this interval with high probability density, that is, the values of the target integral are farther apart, thus ensuring the scoring differentiation of the evaluation values in the dense interval. It can be understood that Figure 3 The figure is only an example of the curve corresponding to the probability density function. Figure 4 The figure is only an example of the curve corresponding to the probability density integral function. When the distribution of historical data is different, the curve corresponding to the probability density function and the curve corresponding to the probability density integral function will also change accordingly.
[0065] In the embodiment of the present application, the target integral value of the target data can be calculated based on the above formulas (1) to (3). Specifically, the historical data and the target data can be input into the above F(x) to solve for the target integral value of the target data.
[0066] S202: Based on the target integral value, using the second sub-model, determine the target evaluation value corresponding to the target data under the preset indicator.
[0067] From the above, the target integral value of the target data can be interpreted as the position of the target evaluation value of the target data in the scoring interval. Therefore, in the embodiment of the present application, the second sub-model can be constructed based on the first sub-model and the first preset threshold. The second sub-model can be used to further map the target evaluation value corresponding to the target data based on the position of the target data, that is, the target integral value.
[0068] In some embodiments, for the above step S202, based on the target integral value, using the second sub-model, the step of determining the target evaluation value corresponding to the target data under the preset indicators may include: determining the target evaluation value based on the target integral value and the first preset threshold in the second sub-model.
[0069] In the embodiment of the present application, the second sub-model may include the following formula (4):
[0070]
[0071] FScore may represent a first preset threshold value, which may be interpreted as a predefined full score value, and its value is determined according to a scoring system. For example, in a 100-point scoring system, the value of FScore may be 100. Score(x) is a target evaluation value determined by calculating the second sub-model.
[0072] In this way, the target evaluation value determined based on the first sub-model and the second sub-model mentioned above can make the integral value adapt to changes with the distribution density of the historical data even when the historical data is unevenly distributed, such as a multi-peak distribution, thereby being able to more flexibly adapt to different distribution types of data.
[0073] It should be noted that, since the distribution of historical data may be of different types, and the target evaluation value of the target data calculated by the first sub-model is calculated based on the distance between the target data and the historical data, it can reflect the position of the target data in the scoring interval surrounded by the historical data, that is, the relative relationship between the target data and the data corresponding to the first preset threshold. It can be understood that when the distribution type of historical data is different, the relative relationship may represent different meanings. Therefore, the second sub-model can include different calculation formulas for adapting to the selection of corresponding formulas to calculate and determine the target evaluation value when the distribution type of historical data is different.
[0074] In some embodiments, Figure 5 Schematic diagram of the steps of the indicator evaluation method provided in the embodiment of the present application Figure 3 .like Figure 5 As shown, for the above step: determining the target evaluation value based on the target integral value and the first preset threshold in the second sub-model may include the following steps:
[0075] S301, when the preset indicator is a proportional indicator, the product of the target integral value and the first preset threshold is used as the target evaluation value corresponding to the target data.
[0076] In the embodiment of the present application, a proportional index may refer to an index in which the larger the value of the data, the higher the corresponding evaluation value, that is, an index in which the value of the target data is proportional to the calculated target evaluation value. Such indicators generally include task completion, praise rate, satisfaction and other indicators that can feedback positive information.
[0077] As shown in formula (4) in the first sub-model above, when the preset index is a proportional index, the target evaluation value of the target data under the preset index can be calculated based on the formula Score(x)=FScore*F(x). Wherein, FScore represents the first preset threshold, F(x) represents the target integral value corresponding to the target data, and Score(x) represents the calculated target evaluation value.
[0078] As mentioned above, the target integral value represents the position of the target data in the scoring interval surrounded by the historical data. Therefore, based on the historical data and the corresponding evaluation value, when the distribution type presented by the preset indicator is determined to be a proportional distribution, it can be understood that the position of the target data in the scoring interval surrounded by the historical data is positively correlated with its final score, that is, the closer the target data is to the data corresponding to the first preset threshold, the higher its target evaluation value is, and the larger the value of the target data is, the better. In this case, the first preset threshold FScore can be directly multiplied by the target integral value to obtain the target evaluation value.
[0079] S302, when the preset indicator is an inverse proportional indicator, determine the difference between the second preset threshold and the target integral value, and use the product of the difference and the first preset threshold as the target evaluation value corresponding to the target data.
[0080] In the embodiment of the present application, an inversely proportional indicator may refer to an indicator in which the larger the value of the data, the lower the corresponding evaluation value, that is, an indicator in which the value of the target data is inversely proportional to the calculated target evaluation value. Such indicators generally include indicators that can feedback negative information, such as the amount of public opinion information, complaint rate, amount of competing products, and negative exposure.
[0081] The second preset threshold value may be the upper limit of the value range corresponding to the target integral value, as mentioned above. Figure 4 As shown, the integral value ranges from [0, 1], so the second preset threshold can be 1.
[0082] As shown in formula (4) in the first sub-model above, when the preset index is a proportional index, the target evaluation value of the target data under the preset index can be calculated based on the formula Score(x)=FScore*(1-F(x)). Wherein, FScore represents the first preset threshold, F(x) represents the target integral value corresponding to the target data, and Score(x) represents the calculated target evaluation value.
[0083] As mentioned above, the target integral value represents the position of the target data in the scoring interval surrounded by the historical data. Therefore, based on the historical data and the corresponding evaluation value, when the distribution type presented by the preset indicator is determined to be an inverse distribution, it can be understood that the position of the target data in the scoring interval surrounded by the historical data is negatively correlated with its final score, that is, the closer the target data is to the data corresponding to the first preset threshold, the lower its target evaluation value is, and the smaller the value of the target data is, the better. In this case, the first preset threshold FScore can be directly multiplied by the difference between the second preset threshold and the target integral value, that is, (1-target integral value), to obtain the target evaluation value.
[0084] It should be noted that whether the preset indicator is a proportional indicator or an inverse indicator can be set in advance by the data analyst before executing the above indicator evaluation method. Alternatively, it can also be determined by a discriminant model based on historical data and the evaluation value corresponding to the historical data before executing the above indicator evaluation method.
[0085] The embodiment of the present application provides an indicator evaluation method, which determines the data distribution type of the preset indicator based on historical data, and then uses the first sub-model and the second sub-model to calculate the target evaluation value corresponding to the target data when the data distribution type of the preset indicator is different. In this way, the characteristics of data distribution can be fully utilized to achieve a flexible and objective indicator evaluation scheme, and the evaluation scheme can be applied to irregular distributions such as multi-peaks, so that the target evaluation value can be flexibly adapted to the data distribution.
[0086] In another embodiment of the present application, the method may further include: the distribution density of the historical data has a positive correlation with the span between the partitions, wherein the span between the partitions is determined based on the difference between the upper limit value and the lower limit value of the partitions.
[0087] In an embodiment of the present application, the upper limit value of the scoring interval can be a historical data with the largest value among multiple historical data, and the evaluation value calculated using the target model; the lower limit value of the scoring interval can be a historical data with the smallest value among multiple historical data, and the evaluation value calculated using the target model. In other words, the scoring interval is an interval surrounded by the evaluation value corresponding to the maximum value in the historical data and the evaluation value corresponding to the minimum value in the historical data. Moreover, it can be understood that the integral value corresponding to the lower limit value of the scoring interval is not set to 0, and the integral value corresponding to the upper limit value of the scoring interval is not set to 1. Therefore, for example, when the scoring system is a percentage system, the evaluation value can be any value in [0, 100], but if Figure 3 , Figure 4 As shown in the figure, based on the maximum and minimum values of historical data, the scoring interval can be most of the interval in the [0, 100] interval, and may not completely cover [0, 100]. Based on this, when selecting historical data, it is necessary to try to cover the possible values of the target data.
[0088] The distribution density of historical data can be expressed similarly to Figure 3 The probability density function shown in the figure indicates that, as mentioned above, the interval with larger historical data distribution density has a larger slope of the corresponding probability density function curve in this interval. After integral calculation, we get something similar to Figure 4 When the curve shown is shown, the difference in the integral value of this interval is larger. Therefore, the higher the distribution density of historical data, the greater the difference in its integral value, and the corresponding span between the partitions will also increase accordingly.
[0089] It should also be noted that when the distribution of historical data is irregular, such as bimodal distribution or multimodal distribution, the scoring interval may contain multiple sub-scoring intervals, each sub-scoring interval corresponds to a peak in the curve, and the span between the sub-scoring intervals is positively correlated with the distribution density of historical data in the sub-scoring interval.
[0090] The embodiment of the present application provides an indicator evaluation method, which can determine the scoring interval according to the distribution density of historical data. For intervals with larger distribution density in historical data, the corresponding scoring intervals are increased accordingly by using a target model, thereby ensuring the discrimination of the evaluation value in the scoring interval.
[0091] In yet another embodiment of the present application, Figure 6 Schematic diagram of the steps of the indicator evaluation method provided in the embodiment of the present application Figure 4 .like Figure 6 As shown, the method may also include the following steps:
[0092] S401: When the target data is less than or equal to the minimum value in the historical data, determine that the target evaluation value corresponding to the target data is a first preset value.
[0093] In the embodiment of the present application, when the value of the target data is abnormal, that is, the value of the target data is not in the interval between the maximum value and the minimum value of the historical data, and the distribution of the preset indicator is a proportional distribution indicator, the target evaluation value can be calculated and determined based on the following formula (5):
[0094]
[0095] Among them, x1, x2, x3, ..., xn represent the value set of historical data, min(x1, x2, x3, ..., xn) represents the minimum value in the historical data, and max(x1, x2, x3, ..., xn) represents the maximum value in the historical data. x represents the value of the target data, ε and δ are values set based on the distribution of historical data, representing the size of the soft interval set near the maximum and minimum values of the historical data, and their values can be determined according to actual needs. In other words, when the value x of the target data falls within the interval and the interval between the maximum and minimum values, it can still be regarded as a normal value, and the target evaluation value of the target data is calculated using the target model. On the contrary, if the value x of the target data is not in the interval between the maximum and minimum values, and is not in this interval, it can be regarded as an abnormal value, and the corresponding target evaluation value is calculated using the above formula (5).
[0096] Based on the above formula (5), illustratively, the distribution of the preset indicator is an indicator of proportional distribution, then when x≤min(x1,x2,x3,...,xn)-ε, that is, the target data is less than or equal to the minimum value in the historical data, or the minimum value-ε, the target evaluation value of the target data can be set to the first preset value. In this case, the first preset value can be 0.
[0097] It should be noted that when the distribution of the preset indicator is an indicator of inverse distribution, the target evaluation value can be calculated by referring to the opposite formula of the above formula (5). For example, when x≤min(x1,x2,x3,…,xn)-ε, that is, the target data is less than or equal to the minimum value in the historical data, or the minimum value-ε, the target evaluation value of the target data can be set to the first preset value. In this case, the first preset value can be the aforementioned second preset threshold FScore.
[0098] S402: When the target data is greater than or equal to the maximum value in the historical data, determine that the target evaluation value corresponding to the target data is a second preset value.
[0099] Based on the above formula (5), illustratively, the distribution of the preset indicator is a proportional distribution indicator, then when x≥max(x1,x2,x3,...,xn)+δ, that is, the target data is greater than or equal to the maximum value in the historical data, or the maximum value+δ, the target evaluation value of the target data can be set to the second preset value. In this case, the second preset value can be the aforementioned second preset threshold FScore.
[0100] It should be noted that when the distribution of the preset indicator is an indicator of inverse distribution, the target evaluation value can be calculated by referring to the opposite formula of the above formula (5). Exemplarily, when x≥max(x1,x2,x3,...,xn)+δ, that is, the target data is greater than or equal to the maximum value in the historical data, or the maximum value+δ, the target evaluation value of the target data can be set to the second preset value. In this case, the second preset value can be 0.
[0101] It should also be noted that even if the above formula (5) is not used to process the outliers, the range of the target integral value obtained based on the first sub-model in the aforementioned embodiment is also between [0, 1]. When the product of the target integral value and the second preset threshold FScore is used as the target evaluation value, it will not exceed the upper and lower limits of the currently used scoring system.
[0102] The embodiment of the present application provides an indicator evaluation method, which is robust to abnormal extreme values due to the characteristics of probability density integral, so that the obtained evaluation value is not affected by individual extreme abnormal values, thereby improving the stability of the indicator evaluation method.
[0103] In another embodiment of the present application, after the step S102 of determining the target evaluation value corresponding to the target data using the target model based on the historical data and the target data, the method may further include: saving the target data into a historical database.
[0104] It should be noted that after the target evaluation value of the target data under the preset indicators is calculated based on the historical data and the target data using the first sub-model and the second sub-model in the target model, the target data can be further saved in the historical database. The historical database can store historical data, and the target data can be stored in the historical database as the latest historical data to expand the data volume of the historical data. When calculating the target evaluation value of the target data next time, the calculation can be based on the new data set of historical data, so that the calculation of the target evaluation value is more accurate.
[0105] The embodiment of the present application provides an indicator evaluation method, which increases the amount of historical data by saving target data in a historical database, thereby making the calculation of the target evaluation value more accurate.
[0106] In yet another embodiment of the present application, an application scenario of the above-mentioned indicator evaluation method is described. Figure 7 This is a schematic diagram of an indicator monitoring interface provided in an embodiment of the present application. Figure 7 As shown, exemplarily, indicator monitoring may include aspects such as market competitiveness, product performance, service satisfaction, brand impression, and improvement in Voice of Customer (VOC), among which market competitiveness may include indicators such as "market volume" and "market environment", product performance may include indicators such as "product public opinion praise rate", "e-commerce praise rate", "price satisfaction", "negative exposure", "whole machine experience satisfaction", and "user consultation rate", and service satisfaction may include indicators such as "review praise rate", and brand impression may include indicators such as "communication influence" and "public opinion sentiment", and VOC improvement may include indicators such as "resolution time", "key VOC resolution time", and "resolution rate". For the above indicators, the target model can be used to map these indicators into corresponding evaluation values in the percentage scoring system, that is, Figure 7 The values of each indicator in the product are obtained, so as to monitor the overall performance of the product based on the evaluation values of these indicators. It can be understood that each of the above indicators can be used as a preset indicator.
[0107] For example, taking the above-mentioned “resolution rate” as a preset indicator, the preset indicator is a proportional indicator. Figure 8 A schematic diagram of a curve of a preset indicator provided in an embodiment of the present application. The solid line portion represents the curve corresponding to the probability density function of the preset indicator, and the dotted line portion represents the curve corresponding to the probability density integral function of the preset indicator, that is, the curve corresponding to the function obtained by integrating the probability density function. Figure 8 As shown, when "resolution rate" is the preset indicator, the historical data of the preset indicator is mainly concentrated in the intervals of 0.2-0.25 and 0.5-0.6, showing a bimodal distribution. In order to make the values of the historical data in these two intervals, that is, the distinction between the evaluation values of the historical data, as large as possible, the target evaluation value of the target data can be calculated by executing the indicator evaluation method in the aforementioned embodiment.
[0108] For the preset index, the probability density function f(x) in the first sub-model is first determined, which can be used to estimate the distribution of the overall data based on a small number of samples. The probability density function f(x) is generated based on the kernel function shown in formula (1), which can be a Gaussian kernel function, which is used to generate weights around discrete sample points to make the data continuous and smooth. Due to its good smoothing properties, it is suitable for kernel density estimation.
[0109] Furthermore, the existing historical data x1, x2, x3, ..., xn, and the target data x can be input into formula (3), that is, the probability density integral function in the first sub-model. This function is obtained by integrating the probability density function f(x), and actually corresponds to the area enclosed by the probability density function and the curve of the preset indicator. The value range of the integral value is between [0, 1].
[0110] Finally, based on formula (4) in the second sub-model, the target evaluation value Score(x) is determined, which can also be called the scoring mapping value. FScore is the first preset threshold, that is, a predefined full score value (for example, 100). If the value of the preset indicator is as large as possible, that is, the value of the data is proportional to the corresponding evaluation value, then the full score value FScore can be directly multiplied by the target integral value to obtain the target evaluation value; if the value of the preset indicator is as small as possible, that is, the value of the data is inversely proportional to the corresponding evaluation value, then the full score value FScore can be multiplied by (1-target integral value).
[0111] In the embodiment of the present application, since the probability density function is fitted by a kernel function, and there is a soft interval near the maximum and minimum values of the historical data. Therefore, taking the proportional index as an example, when the target data is at a point less than or equal to the minimum value in the historical data, the target evaluation value is 0; when it is at a point greater than or equal to the maximum value in the historical data, the target evaluation value is FScore (full score). In this way, no matter how large or small the outlier is, the mapped evaluation value will not exceed the upper and lower limits of the scoring system.
[0112] in, Figure 8 The intervals [0.2, 0.25] and [0.5, 06] shown in the figure are the intervals with higher probability density in the historical data, that is, the areas where the historical data are most concentrated. Figure 8 The curve corresponding to the probability density integral function shown in FIG. 1 corresponds to the interval with a larger slope, thereby ensuring the discrimination of the evaluation values of the dense intervals. Figure 8 For the multi-peak distribution shown, the slope of the curve corresponding to the probability density integral function also changes with the peak value of the probability density function, thereby flexibly adapting to the data.
[0113] In addition, due to the characteristics of probability density integral, it is robust to abnormal extreme values, ensuring that the overall mapping will not be affected by individual abnormal values, and the evaluation value will not exceed the full score FScore or be less than 0. In the embodiment of the present application, the comparison of the evaluation values calculated by the linear mapping scoring method and the present method is shown in Table 1. It can be seen that compared with the linear mapping scoring method, the index evaluation method provided in the embodiment of the present application has a significantly increased score difference at the density peak, and the denser the distribution, the greater the score difference. When an abnormal value appears, such as 1.2, the index evaluation method provided in the embodiment of the present application can also ensure that the evaluation value calculated based on the abnormal value does not exceed the upper and lower limits of the scoring system, and can ensure that the overall scoring logic is not affected by abnormal individual values. Moreover, it should be noted that Table 1 is only an example of a mapping method in the relevant technology, and the evaluation value can also be determined by other nonlinear methods. The evaluation value calculated by the method also has abnormal evaluation values and cannot adapt to changes in historical data.
[0114] Table 1
[0115]
[0116] The embodiment of the present application provides an indicator evaluation method. First, it can make full use of the characteristics of data distribution and design a flexible and objective scoring mapping scheme, which is suitable for irregular distributions such as multi-peaks, and the scoring mapping can flexibly adapt to the data distribution; second, it can determine the scoring interval according to the distribution density, and for the interval with high sample density in the historical distribution, the corresponding score interval is made as large as possible, thereby ensuring the discrimination of the scoring after mapping; finally, it can make the scoring result almost unaffected by individual extreme outliers, providing a more stable scoring mapping.
[0117] In yet another embodiment of the present application, Fig. 9 A schematic diagram of the composition structure of an indicator evaluation device provided in an embodiment of the present application is shown in FIG. Fig. 9 As shown, the indicator evaluation device may include:
[0118] The acquisition unit 5001 is configured to acquire historical data and target data corresponding to preset indicators.
[0119] The evaluation unit 5002 is configured to determine the target evaluation value corresponding to the target data based on the historical data and the target data using the target model, wherein the target model is generated based on at least a kernel function, and the kernel function is used to characterize the target distance between the target data and the historical data; and the scoring interval of the preset indicator is correlated with the distribution density of the historical data.
[0120] The evaluation unit 5002 is also configured such that the target model includes a first sub-model and a second sub-model; based on the historical data and the target data, the target integral value of the target data is determined using the first sub-model, wherein the first sub-model is obtained by integrating the probability density function constructed based on the kernel function; based on the target integral value, the target evaluation value corresponding to the target data under the preset indicator is determined using the second sub-model.
[0121] The evaluation unit 5002 is further configured to determine a target evaluation value based on the target integral value and a first preset threshold in the second sub-model.
[0122] The evaluation unit 5002 is further configured such that the distribution density of the historical data has a positive correlation with the span between the scoring zones, wherein the span between the scoring zones is determined based on the difference between the upper limit value and the lower limit value between the scoring zones.
[0123] The evaluation unit 5002 is also configured to, when the preset indicator is a proportional indicator, use the product of the target integral value and the first preset threshold as the target evaluation value corresponding to the target data; when the preset indicator is an inverse indicator, determine the difference between the second preset threshold and the target integral value, and use the product of the difference and the first preset threshold as the target evaluation value corresponding to the target data.
[0124] The evaluation unit 5002 is also configured to determine that the target evaluation value corresponding to the target data is a first preset value when the target data is less than or equal to the minimum value in the historical data; and to determine that the target evaluation value corresponding to the target data is a second preset value when the target data is greater than or equal to the maximum value in the historical data.
[0125] The evaluation unit 5002 is further configured to save the target data into a historical database.
[0126] It can be understood that in this embodiment, a "unit" can be a part of a circuit, a part of a processor, a part of a program or software, etc., and of course it can also be a module, or it can be non-modular. Moreover, the components in this embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional module.
[0127] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0128] Therefore, this embodiment provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by at least one processor, the steps of the method described in any one of the above embodiments are implemented.
[0129] In some embodiments, Fig.10 The hardware structure diagram of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the electronic device 60 may include: a communication interface 6001, a memory 6002 and a processor 6003; each component is coupled together via a bus system 6004. It is understood that the bus system 6004 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 6004 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Fig.10 In the figure, various buses are labeled as bus system 6004. Among them:
[0130] Communication interface 6001, used for receiving and sending signals during the process of sending and receiving information with other network elements;
[0131] A memory 6002, used for storing a computer program that can be run on the processor 6003;
[0132] The processor 6003 is configured to, when running the computer program, execute:
[0133] Obtain historical data and target data corresponding to preset indicators; based on the historical data and target data, use the target model to determine the target evaluation value corresponding to the target data, wherein the target model is generated based on at least a kernel function, and the kernel function is used to characterize the target distance between the target data and the historical data; the scoring interval of the preset indicator is correlated with the distribution density of the historical data.
[0134] It can be understood that the memory 6002 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). The memory 6002 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0135] The processor 6003 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 6003. The above-mentioned processor 6003 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 6002, and the processor 6003 reads the information in the memory 6002 and completes the steps of the above method in combination with its hardware.
[0136] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.
[0137] For software implementation, the techniques described herein can be implemented by modules (e.g., procedures, functions, etc.) that perform the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0138] Optionally, as another embodiment, the processor 6003 is further configured to execute the steps of the method described in any one of the aforementioned embodiments when running the computer program.
[0139] The above is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of protection of the present application.
[0140] An embodiment of the present application also provides a computer program product comprising instructions, including a computer program or instructions, which, when executed by a processor, implements the steps in the indicator evaluation method provided in the above method embodiment.
[0141] It should be understood that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0142] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0143] It should also be noted that in this application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0144] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0145] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0146] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0147] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0148] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0149] The above is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. An indicator evaluation method, comprising: Obtain historical data and target data corresponding to preset indicators; Based on the historical data and the target data, a target evaluation value corresponding to the target data is determined using a target model, wherein the target model is generated at least based on a kernel function, and the kernel function is used to characterize the target distance between the target data and the historical data; and the scoring interval of the preset indicator is correlated with the distribution density of the historical data.
2. The method according to claim 1, wherein the target model comprises a first sub-model and a second sub-model; The determining, based on the historical data and the target data, a target evaluation value corresponding to the target data by using a target model comprises: Based on the historical data and the target data, determining a target integral value of the target data using the first sub-model, wherein the first sub-model is obtained by performing an integral operation on a probability density function constructed based on the kernel function; Based on the target integral value, the target evaluation value corresponding to the target data under the preset indicator is determined using the second sub-model.
3. The method according to claim 2, wherein the step of determining the target evaluation value corresponding to the target data under a preset indicator based on the target integral value and using the second sub-model comprises: The target evaluation value is determined based on the target integral value and a first preset threshold in the second sub-model.
4. According to the method of claim 1, the distribution density of the historical data has a positive correlation with the span between the partitions, wherein: The span between the striking zones is determined based on the difference between the upper limit value and the lower limit value of the striking zone.
5. The method according to claim 3, wherein determining the target evaluation value based on the target integral value and a first preset threshold in the second sub-model comprises: In the case where the preset indicator is a proportional indicator, the product of the target integral value and the first preset threshold is used as the target evaluation value corresponding to the target data; In the case where the preset indicator is an inverse proportional indicator, the difference between the second preset threshold and the target integral value is determined, and the product of the difference and the first preset threshold is used as the target evaluation value corresponding to the target data.
6. The method according to claim 1, further comprising: In a case where the target data is less than or equal to a minimum value in the historical data, determining that a target evaluation value corresponding to the target data is a first preset value; In a case where the target data is greater than or equal to a maximum value in the historical data, a target evaluation value corresponding to the target data is determined to be a second preset value.
7. The method according to claim 1, wherein the target evaluation value corresponding to the target data is determined based on the historical data and the target data using a target model, and the method further comprises: The target data is saved in a historical database.
8. An indicator evaluation device, comprising: An acquisition unit, configured to acquire historical data and target data corresponding to a preset indicator; An evaluation unit is configured to determine a target evaluation value corresponding to the target data based on the historical data and the target data using a target model, wherein the target model is generated at least based on a kernel function, and the kernel function is used to characterize the target distance between the target data and the historical data; and the scoring interval of the preset indicator is correlated with the distribution density of the historical data.
9. An electronic device, comprising a memory and a processor, wherein: The memory is used to store a computer program that can be run on the processor; The processor is used to execute the computer program in the memory to implement the steps of the indicator evaluation method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the indicator evaluation method according to any one of claims 1 to 7.
Citation Information
Cited By
Data processing method and device, equipment, storage medium and program product
CN119226747A
Pavement maintenance type intelligent determination method and equipment based on data frequency distribution
CN119740905A
