Face verification multi-service provider intelligent routing method, system and device and medium
By using a multi-service provider intelligent routing method for facial recognition and identity verification, the system dynamically evaluates and selects the optimal service provider for identity verification, thus solving the problems of cost control and business interruption under a single service provider architecture and improving the continuity and operational reliability of insurance business.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SUNSHINE LIFE INSURANCE CO LTD
- Filing Date
- 2025-12-15
- Publication Date
- 2026-04-28
Smart Images

Figure CN121940458A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer software and service routing and scheduling technology, and in particular to a face verification multi-service provider intelligent routing method, system, device and medium. Background Technology
[0002] In the process of digital transformation in the insurance industry, facial recognition has become a core technology for the secure implementation of online business and a crucial line of defense for verifying personal information and assets. However, existing facial recognition solutions generally adopt a single service provider architecture, resulting in limited cost control methods, low resource utilization efficiency, and a lack of effective redundancy in service availability. Once a service provider experiences a failure or performance degradation, it will directly lead to business interruption, severely impacting customer experience and business continuity, and failing to meet the high reliability requirements of the insurance industry.
[0003] Therefore, there is an urgent need to provide a technical solution to address the above problems. Summary of the Invention
[0004] To address the aforementioned technical problems, this invention provides a face verification multi-service provider intelligent routing method, system, device, and medium.
[0005] In a first aspect, the present invention provides a face authentication multi-service provider intelligent routing method, the technical solution of which is as follows: Receive a face verification request, wherein the face verification request contains the user's identity information to be verified; Identify at least two candidate service providers that can be used to offer facial recognition services; Based on the real-time performance metrics of each candidate service provider and in conjunction with the preset routing strategy, calculate the routing decision score for each candidate service provider. Based on the routing decision score of each candidate service provider, the candidate service provider with the highest routing decision score is determined as the target service provider; The system calls the face verification interface of the target service provider to verify the user's identity information and returns the verification result.
[0006] The beneficial effects of the multi-service provider intelligent routing method for face authentication of the present invention are as follows: The method of this invention constructs a multi-service provider intelligent routing mechanism, dynamically evaluates and automatically selects the optimal face verification service provider based on real-time performance indicators to complete identity verification, and solves the problems of limited cost control, low resource utilization efficiency, lack of service availability redundancy and business interruption caused by a single service provider architecture, thereby improving the continuity of insurance business and operational reliability.
[0007] Based on the above solution, the intelligent routing method for multiple service providers with face verification according to the present invention can be further improved as follows.
[0008] In one alternative approach, the step of receiving a face verification request includes: The system receives face verification requests sent by third-party business systems through a unified external service interface. Upon receiving the face verification request, client authorization verification is performed on the third-party business system that initiated the request; Once the client authorization verification is successful, the user identity information to be verified carried in the face verification request is extracted.
[0009] The advantages of adopting the above-mentioned optional methods are: further improving the standardization and security of the interface by combining a unified external interface with a client authorization verification mechanism when receiving requests, preventing unauthorized access, and ensuring the confidentiality and integrity of user identity information during transmission.
[0010] In one alternative approach, the step of determining at least two candidate service providers that can be used to provide facial recognition services includes: From the preset set of service providers, at least two service providers whose current service status is available are selected, and these at least two service providers are identified as candidate service providers.
[0011] The advantages of adopting the above optional method are: further filtering candidate service providers whose current service status is available from the preset service provider set, ensuring that all service providers participating in the routing decision have real-time service capabilities, and avoiding routing failure caused by selecting unavailable nodes.
[0012] In one alternative approach, the real-time performance metrics include response time, service health, and call cost; the method further includes: Collect raw data on how each candidate service provider handled historical requests; Based on the raw data of each candidate service provider, calculate the response time and service health of each candidate service provider, and obtain the call cost of each candidate service provider from the preset service provider cost configuration.
[0013] The advantages of adopting the above optional methods are: further collecting historical request raw data to calculate response time and service health, and combining it with preset cost configuration to obtain call costs, providing comprehensive and objective data support for routing decisions, and making the evaluation more accurate.
[0014] In one alternative approach, the step of calculating the routing decision score for each candidate service provider based on its real-time performance metrics and a preset routing strategy includes: Obtain the weighting factors configured for response time, service health, and call cost in the preset routing strategy; The response time, service health, and call cost of each candidate service provider are weighted by their respective weighting factors to obtain the routing decision score for each candidate service provider.
[0015] The advantages of adopting the above optional method are: further weighting the various indicators through the weight factors in the preset routing strategy to obtain the routing decision score, realizing flexible strategy configuration, and dynamically adjusting the importance of each indicator in the decision-making according to business needs.
[0016] In one alternative approach, the step of determining the candidate service provider with the highest routing decision score as the target service provider based on the routing decision score of each candidate service provider includes: Based on the routing decision scores, all candidate service providers are sorted in descending order to obtain the target sequence; The first candidate service provider in the target sequence is identified as the target service provider.
[0017] The advantages of adopting the above optional method are: further sorting all candidate service providers in descending order according to the routing decision score and selecting the first one as the target service provider, clarifying the judgment criteria for the optimal service provider, and making the routing decision process clear and transparent.
[0018] In one alternative approach, the step of calling the target service provider's face verification interface to complete the verification of the user's identity information and returning the verification result includes: A corresponding interface call request is generated based on the identification information of the target service provider, and the interface call request carries the user identity information; Send the interface call request to the face verification interface of the target service provider, and receive the original verification result returned by the target service provider; The original verification results are standardized in format to generate uniform verification results; The unified verification result is returned to the third-party business system that initiated the facial recognition request.
[0019] The advantages of adopting the above optional method are: further generating interface call requests based on the target service provider identifier, receiving the original verification results and performing format standardization processing, generating a unified verification result and returning it to the third-party business system, thereby achieving unified and compatible result formats.
[0020] Secondly, this invention provides a face verification multi-service provider intelligent routing system, the technical solution of which is as follows: A receiving module is used to receive a face verification request, wherein the face verification request contains the user's identity information to be verified; The determination module is used to identify at least two candidate service providers that can be used to provide facial recognition services. The calculation module is used to calculate the routing decision score for each candidate service provider based on the real-time performance indicators corresponding to each candidate service provider and in combination with the preset routing strategy. The routing module is used to determine the candidate service provider with the highest routing decision score as the target service provider based on the routing decision score of each candidate service provider; The verification module is used to call the face verification interface of the target service provider to complete the verification of the user's identity information and return the verification result.
[0021] The beneficial effects of the intelligent routing system for multiple service providers based on face verification according to the present invention are as follows: The system of this invention constructs a multi-service provider intelligent routing mechanism, dynamically evaluates and automatically selects the optimal face verification service provider based on real-time performance indicators to complete identity verification, and solves the problems of limited cost control, low resource utilization efficiency, lack of service availability redundancy and business interruption caused by a single service provider architecture, thereby improving the continuity of insurance business and operational reliability.
[0022] Thirdly, the technical solution of an electronic device according to the present invention is as follows: It includes a memory, a processor, and a program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of the face authentication multi-service provider intelligent routing method of the present invention.
[0023] Fourthly, the technical solution of a computer-readable storage medium provided by the present invention is as follows: The computer-readable storage medium stores instructions that, when read, cause the computer-readable storage medium to perform the steps of the face verification multi-service provider intelligent routing method of the present invention.
[0024] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0025] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a flowchart illustrating an embodiment of the intelligent routing method for multi-service provider face verification according to the present invention. Figure 2 This is a schematic diagram of the overall framework; Figure 3 This is a schematic diagram of the overall process; Figure 4 This is a schematic diagram of the structure of an embodiment of the intelligent routing system for multiple service providers based on face verification according to the present invention; Figure 5 This is a schematic diagram of an embodiment of an electronic device according to the present invention. Detailed Implementation
[0026] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0027] Figure 1 This diagram illustrates a flowchart of an embodiment of the intelligent routing method for multi-service provider face verification provided by the present invention. This intelligent routing method for multi-service provider face verification can be executed by electronic devices such as terminal devices or servers. The terminal device can be any fixed or mobile terminal, such as user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, or wearable device. The server can be a single server or a server cluster consisting of multiple servers. Any electronic device can implement the intelligent routing method for multi-service provider face verification by having its processor call computer-readable instructions stored in its memory. Figure 1 As shown, it includes the following steps: S1. Receive a face verification request, wherein the face verification request contains the user's identity information to be verified.
[0028] A facial recognition verification request refers to an instruction or data packet initiated by a business system to verify the authenticity of a user's identity, requiring facial recognition comparison. For example, a life insurance company's online claims system, in order to process an electronic claims application, sends a request containing the policyholder's identity information to the intelligent routing system, requesting facial verification of the policyholder to confirm that it is indeed the person making the operation. User identity information refers to data used to uniquely identify or describe the personal identity of the user to be verified; for example, the policyholder's name and ID number carried in the facial recognition verification request.
[0029] S2. Identify at least two candidate service providers that can be used to provide facial recognition services.
[0030] Among them, facial recognition verification service refers to software or platform functions that can complete identity verification through facial recognition technology; for example, the application programming interface provided by service provider A can receive the user's facial image and ID card information, and return a similarity score between the image and the photo archived in the public security system. Candidate service providers refer to service providers pre-selected from multiple service providers that currently have the service capabilities and can be scheduled to handle facial recognition verification requests; for example, service providers A, B, and C are pre-connected to the intelligent routing system, and before the routing decision for a claims verification request, service providers A and B are selected as candidate service providers based on real-time health check results.
[0031] S3. Calculate the routing decision score for each candidate service provider based on the real-time performance metrics corresponding to each candidate service provider and in conjunction with the preset routing strategy.
[0032] Real-time performance metrics refer to dynamic performance data reflecting the service provider's handling of facial recognition requests over time. For example, in the most recent statistical period, service provider A's average processing time was 200ms, service availability was 99.5%, and the cost per call was 0.1 yuan. Pre-configured routing strategies refer to pre-configured rules and algorithms that guide the selection of service providers based on performance metrics. For example, a system administrator configures a routing rule based on the company's cost control strategy, stipulating that response time accounts for 35% of the weight, service health accounts for 45%, and call cost accounts for 20% when selecting a service provider. The routing decision score refers to a quantitative evaluation value obtained by comprehensively calculating various real-time performance metrics of the service provider according to the pre-configured routing strategy. For example, calculating service provider A's metrics according to the pre-configured routing strategy yields a routing decision score of 88 points.
[0033] S4. Based on the routing decision score of each candidate service provider, the candidate service provider with the highest routing decision score is determined as the target service provider.
[0034] The target service provider refers to the service provider ultimately selected through the routing decision mechanism to handle this specific facial recognition request. For example, after calculation and comparison, service provider A has the highest routing decision score, so service provider A is determined as the target service provider to handle this claim verification request.
[0035] S5. Call the face verification interface of the target service provider to complete the verification of the user's identity information and return the verification result.
[0036] The facial recognition interface refers to an application programming interface (API) provided by the service provider, accessible to external systems, used to submit facial recognition requests and return results. The verification result refers to the conclusion information returned by the target service provider after processing the facial recognition request, indicating whether identity verification was successful and related details; for example, service provider A might return a result indicating that the facial image provided by the policyholder matches the ID card information successfully, and the verification is passed.
[0037] The technical solution in this embodiment solves the problems of limited cost control, low resource utilization efficiency, lack of service availability redundancy, and business interruption caused by a single service provider architecture by constructing a multi-service provider intelligent routing mechanism, which dynamically evaluates and automatically selects the optimal face verification service provider based on real-time performance indicators, thereby improving the continuity of insurance business and operational reliability.
[0038] In one alternative approach, S1 specifically includes: The system receives face verification requests from third-party business systems through a unified external service interface.
[0039] The unified external service interface refers to the standardized access point provided by the intelligent routing system for receiving facial verification requests from all external business systems. For example, the intelligent routing system provides a unified application programming interface endpoint to which all business systems of the insurance company that require facial verification send requests.
[0040] Upon receiving the face verification request, client authorization verification is performed on the third-party business system that initiated the request.
[0041] Among them, a third-party business system refers to a business application system that needs to use facial recognition verification but does not directly connect to multiple service providers. Instead, it completes the verification by calling the intelligent routing system's interface. For example, an online life insurance claims system that initiates a claims verification request is a third-party business system from the perspective of the intelligent routing system. Client authorization verification refers to the secure process by which the intelligent routing system authenticates and authorizes the identity and permissions of the requesting third-party business system when receiving a request. For example, when the online life insurance claims system calls the interface, it must include a unique and valid application programming interface (API) key in the request header. The intelligent routing system verifies that this key is valid and has the necessary claims business permissions before processing the corresponding request.
[0042] Once the client authorization verification is successful, the user identity information to be verified carried in the face verification request is extracted.
[0043] Among the above-mentioned optional methods, further improvements can be made by combining a unified external interface with a client-side authorization verification mechanism when receiving requests. This enhances the standardization and security of the interface, prevents unauthorized access, and ensures the confidentiality and integrity of user identity information during transmission. In one alternative approach, S2 specifically includes: From the preset set of service providers, at least two service providers whose current service status is available are selected, and these at least two service providers are identified as candidate service providers.
[0044] The preset service provider set refers to a list of all service providers in the intelligent routing system that have been pre-configured for access and are available for routing selection. For example, in the configuration list of the system management backend, the access information of service provider A, service provider B, and service provider C has been entered, and these service providers together constitute the preset service provider set. The current service status refers to the service provider's ability to provide services at a given moment, typically categorized as available, unavailable, or degraded. For example, if a periodic health check reveals that service provider C's interface response has timed out and cannot provide normal service, then service provider C's current service status is marked as "unavailable."
[0045] In the above optional methods, candidate service providers whose current service status is available are further filtered from the preset service provider set to ensure that all service providers participating in the routing decision have real-time service capabilities and avoid routing failure caused by selecting unavailable nodes.
[0046] In one alternative approach, the real-time performance metrics include response time, service health, and call cost; the method further includes: Collect raw data on how each candidate service provider handled historical requests.
[0047] Historical requests refer to records of facial recognition requests processed by candidate service providers over a past period; for example, the system database stores all request logs from various insurance business systems processed by service provider A within the past hour. Raw data refers to the initial process data saved when recording historical requests, before aggregation or deep processing; for example, the raw data of a historical request includes a unique request identifier, a request sending timestamp, a service provider's return result timestamp, and the returned Hypertext Transfer Protocol status code.
[0048] Based on the raw data of each candidate service provider, calculate the response time and service health of each candidate service provider, and obtain the call cost of each candidate service provider from the preset service provider cost configuration.
[0049] Response time refers to the time elapsed from when the system sends a request to the service provider's face verification interface to when it receives the returned result. For example, if the system sends a claim verification request to service provider A's interface and it takes 210 milliseconds from sending the request to receiving the result, this 210 milliseconds is the response time for this request. Service health refers to a comprehensive indicator used to quantitatively evaluate the reliability and availability of a service provider's services, usually calculated based on success rate, error rate, and accessibility. For example, based on service provider A's 99.8% request success rate and normal network latency in the last 5 minutes, service provider A's current service health is calculated to be 98 (out of 100). Service provider cost configuration refers to the pre-set cost information for each service provider's single face verification service. For example, in the system's cost configuration table, the cost per call is set to 0.1 yuan for service provider A, 0.12 yuan for service provider B, and 0.09 yuan for service provider C. The call cost refers to the fee required to process a single face verification request based on the service provider's cost configuration; for example, if service provider A is selected to process this claim request, the call cost for this request would be 0.1 yuan.
[0050] Among the above optional methods, further collecting historical request raw data to calculate response time and service health, and combining it with preset cost configuration to obtain call costs, provides comprehensive and objective data support for routing decisions, making the evaluation more accurate.
[0051] In one alternative approach, S3 specifically includes: Obtain the weighting factors configured for response time, service health, and call cost in the preset routing strategy.
[0052] The weight factor refers to the proportional coefficient representing the importance of each performance indicator in the preset routing strategy. It can be adjusted according to the actual situation and there is no limit to this. For example, in the strategy of "response time weight accounts for 35%, service health weight accounts for 45%, and call cost weight accounts for 20%", 0.35, 0.45, and 0.20 are the weight factors corresponding to each indicator.
[0053] The response time, service health, and call cost of each candidate service provider are weighted by their respective weighting factors to obtain the routing decision score for each candidate service provider.
[0054] Weighted calculation refers to the mathematical process of multiplying the actual values of each performance indicator by their corresponding weight factors and summing all the products to obtain a comprehensive evaluation value. For example, service provider A's response time score is 90 points, which multiplies by a weight of 0.35 to get 31.5 points; its health score is 95 points, which multiplies by 0.45 to get 42.75 points; and its cost score is 85 points, which multiplies by 0.20 to get 17 points. The weighted sum is 31.5 + 42.75 + 17 = 91.25 points, which is the routing decision score obtained after weighted calculation.
[0055] In the above optional methods, the routing decision score is obtained by weighting each indicator through the weight factors in the preset routing strategy, so as to realize flexible strategy configuration and dynamically adjust the importance of each indicator in the decision-making according to business needs.
[0056] In one alternative approach, S4 specifically includes: Based on the routing decision scores, all candidate service providers are sorted in descending order to obtain the target sequence.
[0057] The target sequence refers to the order list formed by sorting all candidate service providers participating in the routing decision from high to low according to their routing decision scores. For example, if candidate service provider A has a score of 91.25 and service provider B has a score of 87.50, the sorted list [service provider A, service provider B] is the target sequence.
[0058] The first candidate service provider in the target sequence is identified as the target service provider.
[0059] The first candidate service provider refers to the first candidate service provider in the target sequence, that is, the one with the highest routing decision score; for example, in the target sequence [service provider A, service provider B], service provider A is the first candidate service provider.
[0060] In the above-mentioned optional methods, all candidate service providers are further sorted in descending order according to their routing decision scores, and the first one is selected as the target service provider. This clarifies the criteria for determining the optimal service provider and makes the routing decision process clear and transparent.
[0061] In one alternative approach, S5 specifically includes: A corresponding interface call request is generated based on the identification information of the target service provider, and the interface call request carries the user identity information.
[0062] The identification information refers to: code or address data that can uniquely identify and locate a target service provider; for example, the unique number of service provider A in the system and the complete network address of the face verification interface. The interface call request refers to: a specific format request constructed to call the face verification interface of the target service provider, conforming to the interface specification; for example, constructing a Hypertext Transfer Protocol (HTTP) POST request carrying the policyholder's identity information and facial image data according to service provider A's interface specification.
[0063] Send the interface call request to the face verification interface of the target service provider, and receive the original verification result returned by the target service provider.
[0064] The original verification result refers to the verification result data directly returned by the face verification interface of the target service provider, which retains the original format and field structure; for example, the JSON format data returned by service provider A: {"code":"0","message":"success","data":{"score":0.96,"isMatch":true}}.
[0065] The original verification results are standardized to generate a unified verification result.
[0066] The format standardization process refers to converting the original verification results returned by different service providers into a unified data format defined internally by the intelligent routing system. For example, the original result returned by service provider A is converted into the system's unified format: {"status":"SUCCESS","verifyResult":true,"confidenceLevel":0.96,"bizCode":"CLAIM_VERIFY"}. The unified verification result refers to the verification result generated after format standardization, which has a standard structure and field definitions. For example, the converted {"status":"SUCCESS","verifyResult":true,"confidenceLevel":0.96,"bizCode":"CLAIM_VERIFY"} is the unified verification result, which will be returned to the online life insurance claims system that initiated the request.
[0067] The unified verification result is returned to the third-party business system that initiated the facial recognition request.
[0068] In the above optional methods, an interface call request is further generated based on the target service provider's identifier. After receiving the original verification result, the format is standardized and a unified verification result is generated and returned to the third-party business system to achieve unified and compatible result formats.
[0069] In this embodiment, as Figure 2 As shown, the server-side is built using Java programming language combined with Spring Cloud Alibaba microservice components, while the client-side is developed using JavaScript language combined with the Vue front-end framework and WeChat Mini Program technology. Together, they form a complete face verification service that can be called by both the client's own business system and third-party business systems. The middleware it relies on includes the relational database MySQL and the in-memory database Redis.
[0070] The server-side architecture is a Spring Cloud microservice system, divided into multiple independent sub-services based on functionality. The gateway service serves as the unified entry point for all requests, routing them to the corresponding internal microservices according to preset rules, thus achieving centralized management of request paths. The gateway service performs unified authentication and authorization security checks on requests, allowing only legitimate requests to reach the internal microservices; illegal requests are intercepted at the gateway layer and error messages are returned. The gateway service also implements request circuit breaking and rate limiting according to configured rules, ensuring the stability and availability of backend services. The authorization and authentication microservice provides multiple authentication methods, allowing users to complete unified login authentication and permission verification. Only authenticated users can access interfaces within their authorized scope. The face verification intelligent routing service carries the core business logic of face verification, including obtaining local face verification codes, obtaining face verification results, and confirming face comparison results from the Ministry of Public Security. Based on preset routing strategies and combined with real-time collected service health and performance indicators, this service dynamically selects the optimal backend service provider for each verification request. The external interface call service is specifically responsible for communicating with various face verification service provider systems. This includes obtaining the authentication tokens required for calling the service provider's interface, obtaining the face verification authentication token, and obtaining the original face verification results returned by the service provider. The external interface service provides a unified entry point for third-party business systems, receiving face verification requests from these systems. This service uses a client-side authorization model to restrict the interface permissions of the caller, ensuring interface security. Third-party business systems can obtain the WeChat mini-program link required for face verification and the final face verification result by calling this service. The system basic service manages user login account information, user basic information, data primary key generation, code table information query, and basic configurations such as system resource permissions. The unified backend management entry point provides administrators with system configuration options, including resource permission configuration for request paths and weight configuration for each service provider in routing decisions.
[0071] The client-side functionality is primarily implemented through web pages and WeChat mini-programs. The H5 page serves as the entry point for facial recognition, responsible for displaying operation prompts and guidance information to users, processing business and user information, and highlighting relevant risks. Users can click on this page to jump to the WeChat mini-program to perform facial recognition. After successful recognition, the page will automatically or manually redirect to the next step of the business process. Figure 3 As shown, the WeChat mini-program for facial recognition verification includes multiple functional pages. The homepage displays user information and authorization guidance related to the verification process. The facial image capture page guides users to complete high-quality facial image capture through action command prompts combined with light-based liveness detection technology. The facial result page clearly displays the final result of the facial recognition verification and provides possible reasons for failure.
[0072] Through the collaborative work of the server and client, high availability, reusability, and security are achieved. By connecting to multiple face verification service providers and intelligently deciding the optimal path based on service status, response time, and usage costs, business problems caused by the instability or response delay of a single service provider are reduced. Simultaneously, an early warning mechanism can promptly notify operations and maintenance personnel in case of anomalies. The entire service supports internal business use and is also open to third-party systems through standardized interfaces, lowering the barrier to entry and maintenance costs for various systems using face verification services. Unified permission verification is performed at the gateway layer, effective security isolation is achieved for internal microservice interfaces, and transmitted user information is encrypted, providing protection from both system and data security perspectives.
[0073] Figure 4 This diagram illustrates the structure of an embodiment of a multi-service provider intelligent routing system 200 for face authentication provided by the present invention. Figure 4 As shown, the face recognition multi-service provider intelligent routing system 200 includes: The receiving module 201 is used to receive a face verification request, wherein the face verification request contains the user identity information to be verified; Module 202 is used to determine at least two candidate service providers that can be used to provide face verification services; The calculation module 203 is used to calculate the routing decision score of each candidate service provider based on the real-time performance indicators corresponding to each candidate service provider and in combination with the preset routing strategy. The routing module 204 is used to determine the candidate service provider with the highest routing decision score as the target service provider based on the routing decision score of each candidate service provider; The verification module 205 is used to call the face verification interface of the target service provider to complete the verification of the user's identity information and return the verification result.
[0074] In an alternative embodiment, the receiving module 201 is specifically used for: The system receives face verification requests sent by third-party business systems through a unified external service interface. Upon receiving the face verification request, client authorization verification is performed on the third-party business system that initiated the request; Once the client authorization verification is successful, the user identity information to be verified carried in the face verification request is extracted.
[0075] In an alternative embodiment, the determining module 202 is specifically used for: From the preset set of service providers, at least two service providers whose current service status is available are selected, and these at least two service providers are identified as candidate service providers.
[0076] In one optional approach, the real-time performance metrics include response time, service health, and call cost; the system further includes: an acquisition module; the acquisition module is used for: Collect raw data on how each candidate service provider handled historical requests; Based on the raw data of each candidate service provider, calculate the response time and service health of each candidate service provider, and obtain the call cost of each candidate service provider from the preset service provider cost configuration.
[0077] In an alternative embodiment, the computing module 203 is specifically used for: Obtain the weighting factors configured for response time, service health, and call cost in the preset routing strategy; The response time, service health, and call cost of each candidate service provider are weighted by their respective weighting factors to obtain the routing decision score for each candidate service provider.
[0078] In an alternative embodiment, the routing module 204 is specifically used for: Based on the routing decision scores, all candidate service providers are sorted in descending order to obtain the target sequence; The first candidate service provider in the target sequence is identified as the target service provider.
[0079] In an alternative embodiment, the verification module 205 is specifically used for: A corresponding interface call request is generated based on the identification information of the target service provider, and the interface call request carries the user identity information; Send the interface call request to the face verification interface of the target service provider, and receive the original verification result returned by the target service provider; The original verification results are standardized in format to generate uniform verification results; The unified verification result is returned to the third-party business system that initiated the facial recognition request.
[0080] It should be noted that the beneficial effects of the face verification multi-service provider intelligent routing system 200 provided in the above embodiments are the same as those of the face verification multi-service provider intelligent routing method described above, and will not be repeated here. Furthermore, the system provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the system can be divided into different functional modules according to the actual situation to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiments, and will not be repeated here.
[0081] The face verification multi-service provider intelligent routing system 200 of the present invention can be a computer program (including program code) running on a computer device. For example, the face verification multi-service provider intelligent routing system 200 of the present invention is an application software that can be used to execute the corresponding steps in the face verification multi-service provider intelligent routing method of the present invention.
[0082] In some embodiments, the face authentication multi-service provider intelligent routing system 200 of the present invention can be implemented in a combination of hardware and software. As an example, the face authentication multi-service provider intelligent routing system 200 of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the face authentication multi-service provider intelligent routing method of the present invention. For example, the processor in the form of a hardware decoding processor can be one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0083] The modules described in the embodiments of this invention can be implemented in software or hardware. The names of the modules are not, in some cases, limiting the scope of the module itself.
[0084] An electronic device according to an embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any of the above-mentioned intelligent routing methods for face verification and multi-service providers. That is, an electronic device according to an embodiment of the present invention may include, but is not limited to: a processor and a memory; the memory is used to store the computer program; the processor is used to execute the intelligent routing method for face verification and multi-service providers shown in any embodiment of the present invention by calling the computer program.
[0085] In one alternative embodiment, an electronic device is provided, such as Figure 5 As shown, Figure 5 The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.
[0086] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this invention. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0087] Bus 4002 may include a path for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 5The bus 4002 is represented by only one thick line, but this does not mean that there is only one bus or one type of bus.
[0088] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0089] The memory 4003 stores application code (computer program) for executing the present invention, and its execution is controlled by the processor 4001. The processor 4001 executes the application code stored in the memory 4003 to implement the content shown in the foregoing method embodiments.
[0090] Among them, electronic devices can also be terminal devices. A terminal device can be any terminal device that can install applications and access web pages through applications, including at least one of smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, smart TVs, and smart in-vehicle devices.
[0091] It should be noted that, Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0092] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-described intelligent routing methods for multi-service provider face verification.
[0093] Alternatively, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device, etc.
[0094] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the aforementioned face authentication multi-service provider intelligent routing method.
[0095] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0096] It should be understood that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0097] The computer-readable storage medium provided in this invention can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0098] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the method shown in the above embodiments.
[0099] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.
[0100] It should be noted that the terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and represent a limitation on a specific order or sequence. Where appropriate, the order of use for similar objects can be interchanged so that the embodiments of this application described herein can be implemented in an order other than that shown or described.
[0101] Those skilled in the art will recognize that this invention can be implemented as a system, method, or computer program product. Therefore, this invention can be specifically implemented in the following forms: it can be entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, this invention can also be implemented as a computer program product contained in one or more computer-readable media, which includes computer-readable program code.
[0102] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A multi-service provider intelligent routing method for face verification, characterized in that, include: Receive a face verification request, wherein the face verification request contains the user's identity information to be verified; Identify at least two candidate service providers that can be used to offer facial recognition services; Based on the real-time performance metrics of each candidate service provider and in conjunction with the preset routing strategy, calculate the routing decision score for each candidate service provider. Based on the routing decision score of each candidate service provider, the candidate service provider with the highest routing decision score is determined as the target service provider; The system calls the face verification interface of the target service provider to verify the user's identity information and returns the verification result.
2. The intelligent routing method for multi-service provider face verification according to claim 1, characterized in that, The step of receiving a face verification request includes: The system receives face verification requests sent by third-party business systems through a unified external service interface. Upon receiving the face verification request, client authorization verification is performed on the third-party business system that initiated the request; Once the client authorization verification is successful, the user identity information to be verified carried in the face verification request is extracted.
3. The intelligent routing method for multi-service provider face verification according to claim 1, characterized in that, The step of determining at least two candidate service providers that can be used to provide facial recognition services includes: From the preset set of service providers, at least two service providers whose current service status is available are selected, and these at least two service providers are identified as candidate service providers.
4. The intelligent routing method for multi-service provider face verification according to claim 1, characterized in that, The real-time performance metrics include response time, service health, and call cost. The method further includes: Collect raw data on how each candidate service provider handled historical requests; Based on the raw data of each candidate service provider, calculate the response time and service health of each candidate service provider, and obtain the call cost of each candidate service provider from the preset service provider cost configuration.
5. The intelligent routing method for multi-service provider face verification according to claim 4, characterized in that, The step of calculating the routing decision score for each candidate service provider based on its real-time performance metrics and a preset routing strategy includes: Obtain the weighting factors configured for response time, service health, and call cost in the preset routing strategy; The response time, service health, and call cost of each candidate service provider are weighted by their respective weighting factors to obtain the routing decision score for each candidate service provider.
6. The intelligent routing method for multi-service provider face verification according to claim 5, characterized in that, The step of determining the candidate service provider with the highest routing decision score as the target service provider based on the routing decision score of each candidate service provider includes: Based on the routing decision scores, all candidate service providers are sorted in descending order to obtain the target sequence; The first candidate service provider in the target sequence is identified as the target service provider.
7. The intelligent routing method for multi-service provider face verification according to claim 2, characterized in that, The step of calling the target service provider's face verification interface to verify the user's identity information and returning the verification result includes: A corresponding interface call request is generated based on the identification information of the target service provider, and the interface call request carries the user identity information; Send the interface call request to the face verification interface of the target service provider, and receive the original verification result returned by the target service provider; The original verification results are standardized in format to generate uniform verification results; The unified verification result is returned to the third-party business system that initiated the facial recognition request.
8. A multi-service provider intelligent routing system for face verification, characterized in that, include: A receiving module is used to receive a face verification request, wherein the face verification request contains the user's identity information to be verified; The determination module is used to identify at least two candidate service providers that can be used to provide facial recognition services. The calculation module is used to calculate the routing decision score for each candidate service provider based on the real-time performance indicators corresponding to each candidate service provider and in combination with the preset routing strategy. The routing module is used to determine the candidate service provider with the highest routing decision score as the target service provider based on the routing decision score of each candidate service provider; The verification module is used to call the face verification interface of the target service provider to complete the verification of the user's identity information and return the verification result.
9. An electronic device, characterized in that, The electronic device includes a processor coupled to a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to enable the electronic device to implement the face verification multi-service provider intelligent routing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which, when executed by a processor, implements the face authentication multi-service provider intelligent routing method as described in any one of claims 1 to 7.