Security service business demand matching method based on big data analysis
Through big data analysis and coefficient prediction network, supply and demand matching is optimized, solving the non-optimization problem caused by single factor matching in the existing technology, and achieving more accurate and balanced business demand matching results.
Patent Information
- Application Number
- CN202210166610.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-02-23
AI Technical Summary
Existing supply and demand matching methods are only based on a single factor, resulting in unoptimized matching results and inability to meet multiple considerations of business needs.
Adopt a security service business demand matching method based on big data analysis. By obtaining business demand information, qualification information, scale information, personnel information and location information, use the coefficient prediction network to calculate the matching priority coefficient and overall correction factor, optimize distance matching, and predict The number of people required is determined, and the matching results are adjusted through reallocation and least squares to ensure balanced service times.
It achieves more accurate business demand matching results, ensures that the overall service time is within a certain range and is evenly distributed, and improves the optimization of matching results.
Smart Images

Figure BDA0003516399430000051
Abstract
Description
Technical Field
[0001] The present invention relates to the field of supply and demand matching, and in particular to a security service business demand matching method based on big data analysis. Background Art
[0002] The existing method for matching supply and demand is to use KM algorithm and other methods for matching, but the existing matching algorithm only matches supply and demand based on a single factor, resulting in the matching result being not the optimal matching result. Summary of the invention
[0003] In order to solve the above technical problems, the purpose of the present invention is to provide a security service business demand matching method based on big data analysis, and the technical solution adopted is as follows:
[0004] An embodiment of the present invention provides a security service business demand matching method based on big data analysis, which includes the following specific steps:
[0005] Obtaining business demand information from the business demand side, the business demand information including business demand category, business demand location, and business demand urgency; the business demand category includes safety assessment business, environmental assessment business, occupational health assessment business, occupational disease hazard factor detection business, emergency plan review, and safety standardization review business;
[0006] For the business service end corresponding to any type of business demand, based on the qualification information, scale information, personnel information, and location information of each business provider, the matching priority coefficient of each business demand end and the overall correction factor corresponding to all business providers are obtained; the matching priority coefficient of each business demand end is corrected using the overall correction factor;
[0007] Obtaining a first distance between a business demand location of each business demand on the business demand side and a location of each business provider; optimizing the first distance using the corrected matching priority coefficient to obtain a second distance; and matching a business provider for each business demand on the business demand side based on the second distance;
[0008] Based on the business demand information, the number of people required for each business demand on the business demand side is predicted; the matched business provider side deploys business service personnel according to the corresponding number of people required.
[0009] Furthermore, the coefficient prediction network is used to obtain the matching priority coefficient of each service demand end and the corresponding overall correction factor of all service provider ends.
[0010] Furthermore, the coefficient prediction network includes two branches. The qualification information, scale information, personnel information, and location information of each service provider are input to the two branches. After coding and mapping processing, the two branches respectively output the matching priority coefficient of each service demand end and the overall correction factor corresponding to all service providers.
[0011] Furthermore, the matching priority coefficient labels used by the training coefficient prediction network are obtained as follows:
[0012] For multiple business demand terminals with the same business demand category, matching the business demand of each business demand terminal with a business provider terminal based on the first distance;
[0013] Based on the first distance between the business demand location and the matching business provider, and the number of people who need the business demand, predict the expected service time of the business demand of each business demand end;
[0014] The matching results are initially evaluated based on the mean and variance of the expected service time. When the initial evaluation value does not meet the preset conditions, the business demand side is redistributed. The ratio of the number of business demands corresponding to each business provider after redistribution to the number of business demands before redistribution is the matching priority coefficient of each business provider.
[0015] Furthermore, the overall correction factor label used by the training coefficient prediction network is obtained as follows:
[0016] An unknown overall correction factor is set for all service providers that provide a certain type of service, a matching priority coefficient of each service provider obtained based on the number of service demands before and after reallocation is corrected, a corresponding first distance is corrected using the corrected matching priority coefficient, and a service provider is re-matched with the service demand of each service demander based on the corrected distance;
[0017] The least square method is used to solve the overall correction factor so as to minimize the difference in the number of business demands corresponding to each business provider before and after re-matching.
[0018] Further, the reallocation of the service demand end is as follows: each time a service demand is selected, the selected service demand is allocated to other service providers, and the evaluation value is re-acquired, and the other service provider corresponding to the time when the difference between the re-acquired evaluation value and the initial evaluation value is the largest is the service provider reallocated to the selected service demand; the above-mentioned reallocation process of one service demand is repeatedly performed until the maximum value of the difference between the re-acquired evaluation value and the initial evaluation value is less than or equal to a preset value;
[0019] The matching priority coefficient of each service provider is calculated according to the number of service demands corresponding to each service provider before and after the reallocation of the service demander.
[0020] Furthermore, based on the business demand information, the number of people required for each business demand on the business demand side is predicted. Specifically, a business demand sequence for each business demand side is constructed, where each element position in the sequence represents a business demand category, and the element value represents the urgency of the business demand. The business demand sequence is processed using a number prediction network to predict the number of people required for each business demand on the business demand side.
[0021] The embodiments of the present invention have at least the following beneficial effects: the present invention takes into account the matching priority of the service provider and the degree of influence of the matching priority on the matching results in different categories of business demand scenarios. By using the method of matching the business requirements of the business demand side with the business provider side in the present invention, it is possible to ensure that the overall service time is within a certain time range and the service time distribution is balanced while obtaining more accurate matching results. DETAILED DESCRIPTION
[0022] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a security service business demand matching method based on big data analysis proposed by the present invention in combination with the preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures, or characteristics in one or more embodiments may be combined in any suitable form.
[0023] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0024] The present invention is described by taking the following application scenario as an example:
[0025] A security service business demand matching platform is constructed, and the platform ports include a business demand side and a business provider side. The platform is installed on a cloud server and can perform more complex calculations. The embodiment takes the security service business demand matching scenario as an example. The business categories include safety assessment business, environmental assessment business, occupational health assessment business, occupational disease hazard factor detection business, emergency plan review and safety standardization review business. Based on the business needs of the business demand side, the business provider side that provides corresponding business services is matched to the business demand side. After the matching is completed, the business provider side deploys business service personnel based on the number of business demand requirements. The business service personnel are technical engineers who provide related services.
[0026] An embodiment of the present invention provides a security service business demand matching method based on big data analysis, the method comprising the following steps:
[0027] Obtaining business demand information from the business demand side, the business demand information including business demand category, business demand location, and business demand urgency; the business demand category includes safety assessment business, environmental assessment business, occupational health assessment business, occupational disease hazard factor detection business, emergency plan review, and safety standardization review business;
[0028] For the business service end corresponding to any type of business demand, based on the qualification information, scale information, personnel information, and location information of each business provider, the matching priority coefficient of each business demand end and the overall correction factor corresponding to all business providers are obtained; the matching priority coefficient of each business demand end is corrected using the overall correction factor;
[0029] Obtaining a first distance between a business demand position of each business demand of the business demand end and a position of each business provider end; optimizing the first distance using the corrected matching priority coefficient to obtain a second distance; and matching a business provider end for each business demand of the business demand end based on the second distance;
[0030] Based on the business demand information, the number of people required for each business demand on the business demand side is predicted; the matched business provider side deploys business service personnel according to the corresponding number of people required.
[0031] The following is a detailed description of each of the above steps:
[0032] Step S1, obtaining business demand information from the business demand side, the business demand information including business demand category, business demand location, and business demand urgency; the business demand category includes safety assessment business, environmental assessment business, occupational health assessment business, occupational disease hazard factor detection business, emergency plan review and safety standardization review business.
[0033] Specifically, for each business demand end, a business demand sequence of the business demand end is constructed, where each element position in the sequence represents a business demand category, and the element value represents the urgency of the business demand, which is given by the business demand end; preferably, in the embodiment, five urgency levels are set in the matching platform, and the urgency level is represented by numbers 1-5, where the larger the number, the more urgent the business demand; for a certain position in the business demand sequence, if the business demand end has a business demand corresponding to the element position, the value of the element position is a number representing the urgency of the business demand, otherwise, the value of the element position is 0.
[0034] Step S2, for the business service end corresponding to any category of business demand, based on the qualification information, scale information, personnel information, and location information of each business provider, obtain the matching priority coefficient of each business demand end and the overall correction factor corresponding to all business providers; use the overall correction factor to correct the matching priority coefficient of each business demand end.
[0035] The present invention uses a coefficient prediction network to obtain the matching priority coefficient of each business demand end corresponding to each category of business demand, and the overall correction factor corresponding to all business provider ends corresponding to the business demand of this category; the coefficient prediction network includes two branches, and the qualification information, scale information, personnel information, and location information of each business provider end are input to the two branches. After coding mapping processing, the two branches respectively output the matching priority coefficient of each business demand end and the overall correction factor corresponding to all business provider ends; specifically:
[0036] The first branch in the coefficient prediction network includes a first encoder and a first fully connected layer, and the second branch includes a second encoder and a second fully connected layer; for a business demand, there are K business providers providing this type of business in the embodiment, then the first branch and the second branch input data include the qualification information, scale information, personnel information, and location information of the K business providers. Preferably, the qualification information, scale information, personnel information, and location information of the K business providers are represented in the form of a matrix, and a row of elements in the matrix corresponds to the qualification information, scale information, personnel information, and location information of one business provider; the outputs of the first fully connected layer and the second fully connected layer are the matching priority coefficients of the K business providers and an overall correction factor, respectively.
[0037] The overall correction factor is used to correct the matching priority coefficient of each business demand end. Specifically, the overall correction factor is multiplied by the matching priority coefficient of each business demand end to obtain the corrected matching priority coefficient of each business demand end.
[0038] The training process of the coefficient prediction network is as follows: the qualification information, scale information, personnel information, and location information of several service providers are used as training data; the distance correction coefficients and matching priority coefficients of the several service providers are respectively the label data of the two network branches; a loss function is constructed based on the Euclidean distance between the matching priority coefficients of the K service providers output by the first branch and the K matching priority coefficient labels to supervise the training process of the first branch of the coefficient prediction network, and a loss function is constructed based on the absolute value of the difference between the overall correction factor output by the second branch and the overall correction factor label to supervise the training process of the second branch of the coefficient prediction network.
[0039] The specific process of obtaining the label data used for training is as follows:
[0040] The matching priority coefficient labels and overall correction factor labels used by the training coefficient prediction network are obtained as follows:
[0041] (a) For multiple service demand terminals with the same service demand category, based on the first distance, matching the service demand of each service demand terminal with a service provider terminal, specifically:
[0042] For each category of business demand, a business provider that provides relevant business services is obtained, and a business area image is obtained based on the historical service information of each business provider, that is, a map of a fixed size is used as a reference to divide the business area of each business provider in the map. In order to distinguish the business areas, the business areas of different business providers correspond to different grayscale values in the embodiment, and a business area image is obtained; the business area is obtained based on its historical service information, such as the location of the business demand end of the historical service of the business provider. It should be noted that each category of business demand corresponds to a business area image.
[0043] The business demand locations of several business demand terminals are projected onto corresponding business area images. In each business area image, based on a first distance between the business demand location and the business provider terminal, a business provider terminal is matched to the business demand of each business demand location.
[0044] (b) based on the first distance between the location of the business demand and the matching business provider, and the number of people who need the business demand, predict the expected service time of the business demand of each business demand end, specifically:
[0045] After the matching is completed, each service requirement and the matched service provider constitute a matching pair, and the first distance corresponding to each matching pair is calculated based on the centroid point of the service provider and the service requirement position.
[0046] Based on the business demand information, the number of people required for each business demand on the business demand side is predicted, specifically: a business demand sequence for each business demand side is constructed, each element position in the sequence represents a business demand category, and the element value represents the urgency of the business demand. The business demand sequence is processed using the headcount prediction network to predict the number of people required for each business demand on the business demand side. According to this method, the number of people required for each business demand can be predicted.
[0047] Therefore, each matching pair corresponds to a first distance and a number of people in demand, and the expected service time corresponding to each matching pair is calculated based on the first distance and the number of people in demand. Specifically, a mathematical model for calculating the expected service time can be fitted using the least squares method based on the historical service distance, historical number of people deployed, and historical service time of each service provider, and the expected service time is calculated based on the fitted mathematical model. The service distance is the distance between the service provider and the service demand location.
[0048] (c) The matching results are initially evaluated based on the mean and variance of the expected service time. When the initial evaluation value does not meet the preset conditions, the service demand side is redistributed. The ratio of the number of service demands corresponding to each service provider after redistribution to the number of service demands before redistribution is the matching priority coefficient of each service provider.
[0049] Take the matching pairs in a business area image as an example, that is, the matching results of a category of business requirements as an example:
[0050] (i) The specific method for obtaining the evaluation value is as follows:
[0051] For all matching pairs obtained based on the business area image, the mean and variance of the expected service time are calculated based on the expected service time corresponding to each matching pair. The mean of the expected service time represents the overall expected service time of the initial matching result, and the variance of the expected service time represents whether the distribution of the expected service time corresponding to the initial matching result is balanced. The evaluation value ε is obtained based on the mean and variance of the expected service time:
[0052]
[0053] μ is the mean of expected service time, μ′ is the reference service time, σ 2 is the variance of the expected service time; α1 and α2 are weight coefficients, the value of α1 should be close to 1, and the value of α2 should be close to 0. In the embodiment, the values of α1 and α2 are 1 and 0.4 respectively; The value range is (0, 1), the smaller the value of μ-0.8μ′, The closer the value is to 1; due to the variance σ 2 Greater than or equal to 0, The range of is (0, 1), and the variance σ 2 The smaller, The closer to 1; the smaller the value of μ-0.8μ′, the variance σ 2 The smaller it is, the larger the evaluation value ε is, indicating that the initial matching result is better.
[0054] (ii) When the initial evaluation value does not meet the preset conditions, the service demand end is reallocated, and the ratio of the number of service demands corresponding to each service provider end after the reallocation to the number of service demands before the reallocation is the matching priority coefficient of each service provider end.
[0055] When the initial evaluation value does not meet the preset conditions, that is, when the initial evaluation value is less than the evaluation threshold, the evaluation threshold in the embodiment is 0.6, and the business demand end is reallocated. The reallocation of the business demand end is specifically as follows: each time a business demand is selected, the selected business demand is allocated to other business provider ends, and the evaluation value is re-acquired, and the other business provider end corresponding to the time when the difference between the re-acquired evaluation value and the initial evaluation value is the largest is the business provider end reallocated to the selected business demand; repeat the above-mentioned reallocation process of a business demand until the maximum value of the difference between the re-acquired evaluation value and the initial evaluation value is less than or equal to the preset value; calculate the matching priority coefficient of each business provider end according to the number of business demands corresponding to each business provider end before and after the reallocation of the business demand end. Specifically, suppose there are K service providers that provide a certain type of service, that is, there are K service service terminals in the service area image. Among all the service requirements corresponding to the K service service terminals, one service requirement is selected, and the selected service requirement is allocated to other service providers. There are K-1 allocation methods in total, and K-1 evaluation values can be obtained accordingly. The difference between the K-1 evaluation values obtained again and the initial evaluation values is calculated respectively. The other service provider corresponding to the maximum difference value is the service provider reallocated to the selected service requirement. Then, one service requirement is selected again from all the service requirements corresponding to the K service service terminals, and the same method is used to obtain The service provider end that is reallocated for the service demand; repeat the reallocation process of the above-mentioned service demand until the maximum value of the difference between the re-acquired evaluation value and the initial evaluation value is less than or equal to a preset value, and the preset value in the embodiment is 0; after stopping the reallocation of the service demand end, calculate the matching priority coefficient of each service provider end according to the number of service demands corresponding to each service provider end before and after the reallocation of the service demand end. Specifically, for each service provider end, the ratio of the number of service demands corresponding to the service provider end after the reallocation of the service demand end to the number of service demands corresponding to the service provider end before the reallocation of the service demand end is the matching priority coefficient of the service demand end.
[0056] (d) setting an unknown overall correction factor for all service providers that provide a certain category of services, correcting the matching priority coefficient of each service provider obtained based on the number of service demands before and after the reallocation, correcting the corresponding first distance using the corrected matching priority coefficient, and re-matching a service provider for each service demand of each service demander based on the corrected distance;
[0057] The overall correction factor is solved by the least square method to minimize the difference in the number of business demands corresponding to each business provider before and after re-matching. The specific process of solving the overall correction factor by the least square method is not described in the present invention. It should be noted that the overall correction factors corresponding to different categories of business demand scenarios may be different. Different overall correction factors indicate that different categories of business demand scenarios require different degrees of matching priority coefficients, that is, in different categories of business demand scenarios, the matching priority of the service provider has different degrees of influence on the matching results.
[0058] At this point, the acquisition of the matching priority coefficient labels and the overall correction factor labels used in the training coefficient prediction network is completed.
[0059] In addition, in order to make the coefficient prediction network have better elasticity when facing emergencies, the loss used for training the coefficient prediction network in the embodiment also includes randomly generating a business demand and a business demand position, combining the randomly generated business demand and the business demand position, matching each business demand of each business demand end with a business provider end, obtaining an evaluation value after the matching is completed, and constructing an elastic guarantee loss of the coefficient prediction network according to the absolute value of the difference between the evaluation values obtained before and after combining the randomly generated business demand and the business demand position. Specifically, the elastic guarantee loss ε1 represents the evaluation value obtained before combining the randomly generated business demand and the business demand position, and ε2 represents the evaluation value obtained after combining the randomly generated business demand and the business demand position.
[0060] Step S3, obtaining the first distance between the business demand location of each business demand on the business demand side and the location of each business provider; optimizing the first distance using the corrected matching priority coefficient to obtain a second distance; and matching the business provider for each business demand on the business demand side based on the second distance.
[0061] Among them, the first distance is optimized using the corrected matching priority coefficient to obtain the second distance. In the present invention, the ratio of the first distance to the corresponding corrected matching priority coefficient is the second distance. Specifically: taking a category of business demand as an example, that is, in a business area image, for each business demand projected in the business area image, based on the projection position, the first distance between the business demand and each business provider in the business area image is calculated, and the ratio of the first distance to the corrected matching priority coefficient corresponding to the business provider is the second distance.
[0062] Using a matching algorithm, based on the second distance, each service demand of the service demand end is matched with a service provider end. Preferably, the embodiment uses a greedy algorithm for matching.
[0063] Step S4, based on the business demand information, predict the number of people required for each business demand on the business demand side; the matched business provider side deploys business service personnel according to the corresponding number of people required, and the business service personnel go to the business demand location to provide relevant services.
[0064] It should be noted that the present invention can match a service provider for one service demand side, and can also match service providers for multiple service demand sides at the same time.
[0065] It should be noted that the order of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0066] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0067] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A security service business demand matching method based on big data analysis, It is characterized in that The method includes: Obtaining business demand information from the business demand side, the business demand information including business demand category, business demand location, and business demand urgency; the business demand category includes safety assessment business, environmental assessment business, occupational health assessment business, occupational disease hazard factor detection business, emergency plan review, and safety standardization review business; For the business service end corresponding to any type of business demand, based on the qualification information, scale information, personnel information, and location information of each business provider, the matching priority coefficient of each business demand end and the overall correction factor corresponding to all business providers are obtained; the matching priority coefficient of each business demand end is corrected using the overall correction factor; Obtaining a first distance between a business demand location of each business demand on the business demand side and a location of each business provider; optimizing the first distance using the corrected matching priority coefficient to obtain a second distance; and matching a business provider for each business demand on the business demand side based on the second distance; Based on the business demand information, the number of people required for each business demand on the business demand side is predicted; the matched business provider side allocates business service personnel according to the corresponding number of people required; Use the coefficient prediction network to obtain the matching priority coefficient of each service demand end and the corresponding overall correction factor of all service providers; The coefficient prediction network includes two branches. The qualification information, scale information, personnel information, and location information of each service provider are input to the two branches. After coding and mapping processing, the two branches respectively output the matching priority coefficient of each service demand end and the overall correction factor corresponding to all service providers. The acquisition of the matching priority coefficient labels used to train the coefficient inference network is specifically as follows: For multiple business demand terminals with the same business demand category, matching the business demand of each business demand terminal with a business provider terminal based on the first distance; Based on the first distance between the business demand location and the matching business provider, and the number of people who need the business demand, predict the expected service time of the business demand of each business demand end; According to the mean and variance of the expected service time, the matching results are initially evaluated. When the initial evaluation value does not meet the preset conditions, the service demand end is redistributed. The ratio of the number of service demands corresponding to each service provider end after redistribution to the number of service demands before redistribution is the matching priority coefficient of each service provider end. The overall correction factor label used by the training coefficient prediction network is obtained as follows: An unknown overall correction factor is set for all service providers that provide a certain type of service, a matching priority coefficient of each service provider obtained based on the number of service demands before and after reallocation is corrected, a corresponding first distance is corrected using the corrected matching priority coefficient, and a service provider is re-matched with the service demand of each service demander based on the corrected distance; The least square method is used to solve the overall correction factor so as to minimize the difference in the number of business demands corresponding to each business provider before and after re-matching.
2. The method according to claim 1, It is characterized in that The reallocation of the business demand end is as follows: each time a business demand is selected, the selected business demand is allocated to other business provision ends, and the evaluation value is re-acquired, and the other business provision end corresponding to the time when the difference between the re-acquired evaluation value and the initial evaluation value is the largest is the business provision end reallocated to the selected business demand; the above-mentioned reallocation process of one business demand is repeatedly performed until the maximum value of the difference between the re-acquired evaluation value and the initial evaluation value is less than or equal to the preset value; The matching priority coefficient of each service provider is calculated according to the number of service demands corresponding to each service provider before and after the reallocation of the service demander.
3. The method according to claim 2, It is characterized in that Based on the business demand information, predict the number of people required for each business demand on the business demand side. Specifically, build a business demand sequence for each business demand side. Each element position in the sequence represents a business demand category, and the element value represents the urgency of the business demand. Use the number prediction network to process the business demand sequence and predict the number of people required for each business demand on the business demand side.
Citation Information
Patent Citations
Big data processing method under cloud computing service communication network and cloud computing platform
CN112085411A
Electronic government affair information service system and method based on big data analysis
CN112836233A
