Method and system for matching rental resources for high concurrency scenarios

By constructing an inverted index and a risk assessment model to screen candidate resource providers, and combining multi-dimensional matching scores and load rate adjustments, the problems of rental resource matching latency and load imbalance in high-concurrency scenarios were solved, achieving efficient and flexible resource matching.

CN123181107APending Publication Date: 2026-11-27HANGZHOU PINPIN INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611695922.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In high-concurrency scenarios, existing technologies suffer from high latency in matching leased resources and unbalanced load on the resource side, resulting in poor user experience and low platform resource utilization.

Method used

By constructing an inverted index, generating user risk feature vectors, and using a risk assessment model to screen candidate resource providers, combined with multidimensional matching scores and load rate adjustments, a random selection strategy is adopted to select the target resource provider.

Benefits of technology

It reduces the retrieval complexity of candidate resources, improves matching efficiency, balances the load on the resource side, reduces computational overhead, and improves system response speed and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181107A_ABST
    Figure CN123181107A_ABST
Patent Text Reader

Abstract

The application relates to a matching method and system for leasing resources for a high-concurrency scenario. The method comprises the following steps: constructing an inverted index for all resource ends according to a pre-configured acceptable risk level threshold of each resource end; in response to a leasing request submitted by a user end, acquiring multi-source heterogeneous data of the user and generating a user risk feature vector; inputting the user risk feature vector into a trained risk assessment model to obtain a user risk level, retrieving a candidate resource end set through the inverted index, and calculating a multi-dimensional matching score between the user and each candidate resource end; adjusting the multi-dimensional matching score according to the current load rate of each candidate resource end to obtain an adjusted score; and randomly selecting two resource ends from the candidate resource end set and selecting a resource end with a higher adjusted score as a target resource end. The method can reduce matching delay and balance resource end load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of online rental service technology, and in particular to a method and system for matching rental resources in high-concurrency scenarios. Background Technology

[0002] In the current operating model of internet rental services, users typically need to browse rental items on one or more internet platforms. After selecting the target item and the corresponding resource provider, the user submits a rental request, which is then reviewed by the resource provider. Once the review is approved, the user proceeds to the payment and delivery stage.

[0003] In this approach, operators at each resource provider need to manually review user credit scores, historical order records, and real-name authentication status through the backend system to determine whether to approve a rental. When a user is rejected by a resource provider, they need to select another resource provider and resubmit the request. The new resource provider then needs to repeatedly query user data and re-verify, resulting in long matching wait times and a poor user experience. Furthermore, popular resource providers often experience order backlogs and high review pressure, while less popular resource providers remain idle for extended periods, leading to uneven resource utilization within the platform. Additionally, during peak holiday periods and other high-concurrency scenarios, a large number of rental requests arrive simultaneously, increasing the number of repeated queries and calculations to the user database by each resource provider's independent review system, significantly increasing matching latency.

[0004] Therefore, how to achieve low-latency automatic matching of leased resources and user requests in high-concurrency scenarios, while avoiding overload of popular resources and idleness of unpopular resources, has become an urgent technical problem to be solved. Summary of the Invention

[0005] Therefore, it is necessary to provide a matching method and system for leased resources in high-concurrency scenarios that can reduce matching latency, balance resource load, and improve matching efficiency, in order to address the above-mentioned technical problems.

[0006] Firstly, this application provides a method for matching rental resources in high-concurrency scenarios, including:

[0007] An inverted index is built for all resource endpoints based on the pre-configured acceptable risk level threshold for each resource endpoint.

[0008] In response to a rental request submitted by a user, the system acquires multi-source heterogeneous data of the user and generates a user risk feature vector.

[0009] The user risk feature vector is input into the trained risk assessment model to obtain the user risk level;

[0010] Based on the user's risk level, a set of candidate resource ends is obtained by retrieving the inverted index.

[0011] For each candidate resource in the candidate resource set, calculate the multidimensional matching score between the user and each candidate resource;

[0012] The multidimensional matching score is adjusted based on the current load rate of each candidate resource terminal to obtain an adjusted score. The current load rate is the ratio of the allocated capacity of the candidate resource terminal to the total capacity. The total capacity is the total number of rental items provided by the candidate resource terminal, and the allocated capacity is the number of items that are currently unrentable by the candidate resource terminal.

[0013] Two resource endpoints are randomly selected from the candidate resource endpoint set. The adjustment scores of the two resource endpoints are compared, and the resource endpoint with the higher adjustment score is selected as the target resource endpoint.

[0014] Secondly, this application also provides a rental resource data matching system, including:

[0015] The index building module is used to build an inverted index for all resources based on the pre-configured acceptable risk level threshold for each resource.

[0016] The feature processing module is used to respond to the rental request submitted by the user, obtain the user's multi-source heterogeneous data and generate the user's risk feature vector;

[0017] The risk assessment module is used to input the user risk feature vector into the trained risk assessment model to obtain the user risk level;

[0018] The candidate resource retrieval module is used to retrieve a set of candidate resources based on the user's risk level using the inverted index.

[0019] The resource matching module is used to calculate a multi-dimensional matching score between the user and each candidate resource terminal in the candidate resource terminal set; adjust the multi-dimensional matching score according to the current load rate of each candidate resource terminal to obtain an adjusted score, wherein the current load rate is the ratio of the allocated capacity to the total capacity of the candidate resource terminal, the total capacity is the total number of rental items provided by the candidate resource terminal, and the allocated capacity is the number of items that are currently unrentable by the candidate resource terminal; randomly select two resource terminals from the candidate resource terminal set, compare the adjusted scores of the two resource terminals, and select the resource terminal with the higher adjusted score as the target resource terminal.

[0020] The aforementioned matching method and system for rental resources in high-concurrency scenarios reduces the retrieval complexity of candidate resource ends by constructing a risk-level inverted index; it generates user risk feature vectors using multi-source heterogeneous data and obtains user risk levels based on a risk assessment model, enabling automatic filtering of candidate resource ends that meet the risk levels; it calculates multi-dimensional matching scores among candidate resource ends and adjusts the scores by penalties based on the load rate of each resource end, making it easier for idle resource ends to be selected; finally, it avoids global sorting and reduces computational overhead by randomly selecting two resource ends and comparing and adjusting their scores. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 This is an application environment diagram of a matching method for leased resources in a high-concurrency scenario, as shown in one embodiment.

[0023] Figure 2 This is a flowchart illustrating a method for matching leased resources in a high-concurrency scenario, as shown in one embodiment.

[0024] Figure 3 This is a flowchart illustrating a method for matching leased resources in a high-concurrency scenario, as shown in a detailed embodiment.

[0025] Figure 4 This is a structural block diagram of a matching device for leased resources in a high-concurrency scenario, as shown in one embodiment. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0027] The method for matching leased resources in high-concurrency scenarios provided in this application can be applied to, for example... Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. The data storage system can store data that server 104 needs to process, such as inverted indexes, user feature pre-calculation results, and resource-side configuration data. The data storage system can be integrated on server 104 or placed in the cloud or on other network servers. When a user submits a rental request through terminal 102, server 104 receives the request, executes the rental resource allocation method provided in this embodiment, sends the matching result to the corresponding resource end, and returns the matching result to terminal 102. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. Server 104 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.

[0028] In one exemplary embodiment, such as Figure 2 As shown, a matching method for leased resources in high-concurrency scenarios is provided, and this method is applied to... Figure 1 Taking the server in the example, the following steps are included:

[0029] Step S201: Build an inverted index for all resource terminals based on the pre-configured acceptable risk level threshold for each resource terminal.

[0030] Specifically, each resource provider needs to configure an acceptable risk level threshold when joining the platform. For example, user risk levels can be divided into five levels: L1, L2, L3, L4, and L5, arranged from low to high risk. When a resource provider's acceptable risk level threshold is configured as L3, it means that the resource provider can accept users with risk levels of L1, L2, and L3. During the offline phase, an inverted index can be built for all resource providers, using each resource provider's acceptable risk level threshold as the key and a list of resource provider IDs as the values, and stored in a distributed cache.

[0031] Step S202: In response to the rental request submitted by the user, obtain the user's multi-source heterogeneous data and generate the user risk feature vector.

[0032] The user's multi-source heterogeneous data can be retrieved from user information data tables, behavior log data tables, transaction time series data tables, and external credit data interfaces. Various features are extracted from this data, such as basic user attribute features, behavior log features, transaction time series features, device fingerprint features, and features related to the current rental request. These features are then processed to generate a user risk feature vector with preset dimensions.

[0033] Step S203: Input the user risk feature vector into the trained risk assessment model to obtain the user risk level.

[0034] The risk assessment model can be a binary classification model based on logistic regression. The model's training data uses user risk feature vectors as features and whether a user defaults as a label. The trained model can map the output of linear regression to the [0,1] interval using the Sigmoid function to predict the probability of user default. Then, based on the preset number of risk levels, the default probability can be mapped to discrete user risk levels.

[0035] Step S204: Based on the user's risk level, retrieve the set of candidate resource ends using an inverted index.

[0036] Step S205: For each resource in the candidate resource set, calculate the multidimensional matching score between the user and the resource.

[0037] Multidimensional matching scores incorporate multiple scoring criteria to quantify the degree of matching between users and resource providers. For example, the scoring criteria may include: risk matching degree determined by the match between the user's risk level and the resource provider's acceptable risk level threshold; service quality determined by the resource provider's historical evaluations; preference matching degree determined by the similarity between the user's historical behavior and the resource provider's attributes; and geographical convenience determined by the delivery distance between the user and the resource provider. Based on these multidimensional scoring criteria, a multidimensional matching score between users and resource providers can be determined.

[0038] Step S206: Adjust the multidimensional matching score based on the current load rate of each candidate resource to obtain the adjusted score.

[0039] Among them, the current load rate The adjusted score is the ratio of the allocated capacity to the total capacity of the candidate resource. The total capacity is the total number of items available for rent on the candidate resource, and the allocated capacity is the number of items currently unrentable on the candidate resource, including items locked by other requests but not yet paid for, items currently rented, and other unrentable items. For example, the adjusted score is calculated using the following formula. :

[0040] ;

[0041] Where S is the multidimensional matching score. The preset load penalty coefficient, The current load rate, This is a preset random exploration coefficient, usually taken as a small positive value. This represents a random disturbance term. It's understandable that when the resource load rate is low, When the value is close to 1, the adjustment score for the resource remains essentially unchanged. However, if the load rate of the resource increases, the adjustment score decreases, thus reducing the probability of that resource being selected. Meanwhile, the random disturbance term... This is used to introduce random differences in the adjusted scores, preventing all requests from simultaneously calculating the exact same score and selecting the same resource.

[0042] Step S207: Randomly select two resource ends from the candidate resource end set, compare the adjustment scores of the two resource ends, and select the resource end with the higher adjustment score as the target resource end.

[0043] It's understandable that global sorting has a time complexity of at least O(N log N). When the number of candidate resources is large and the request concurrency is high, the sorting operation will consume a lot of computing resources and increase matching latency. Therefore, randomly selecting two resources and comparing them can reduce matching time. At the same time, this method can effectively distribute requests to different resources, avoiding popular resources being frequently selected while unpopular resources remain without orders for a long time, further improving the overall resource utilization of the platform.

[0044] It should also be noted that the method of randomly selecting two resource endpoints and comparing them described above is mainly applicable to high-concurrency scenarios. In practical applications, the system can detect the current concurrent request volume. When the request volume reaches a preset threshold, the random dual-selection strategy is activated; when the request volume is low, the resource endpoint with the highest adjustment score can be directly selected from the candidate resource endpoint set. This method of dynamically switching the matching strategy based on concurrency pressure ensures both system throughput and response speed under high concurrency and improves matching accuracy under low concurrency, thereby enhancing the overall flexibility and adaptability of the solution.

[0045] In the above-mentioned matching method for rental resources in high-concurrency scenarios, the retrieval complexity of candidate resource ends is reduced by constructing an inverted index of risk levels; user risk feature vectors are generated using multi-source heterogeneous data, and user risk levels are obtained based on risk assessment models, which can automatically filter candidate resource ends that meet the risk levels; multi-dimensional matching scores are calculated among candidate resource ends, and the scores are penalized and adjusted according to the load rate of each resource end, which makes it easier for idle resource ends to be selected; finally, by randomly selecting two resource ends and comparing and adjusting their scores, global sorting can be avoided and computational overhead can be reduced.

[0046] In an exemplary embodiment, step S202, in response to a rental request submitted by the user, involves obtaining the user's multi-source heterogeneous data and generating a user risk feature vector, including the following steps:

[0047] Step S301: Obtain the user's multi-source heterogeneous data, which includes basic attribute data, behavior log data, transaction time series data, device fingerprint data, and rental request data.

[0048] Specifically, basic attributes include age range, occupation category, and account registration duration; behavioral log data includes resource browsing frequency, browsing duration distribution, number of items collected, and number of comparisons in the past N days; transaction time series data includes historical order completion rate, average payment delay duration, number of defaults, and return integrity rate of rented items; device fingerprint data includes device type and IP geolocation; rental request data includes the price of the target resource in this request, the requested rental duration, and the total order amount.

[0049] Step S302: Perform data preprocessing and feature vectorization on the multi-source heterogeneous data to generate user risk feature vectors.

[0050] Specifically, data preprocessing includes handling missing values, outlier detection, and removing outliers from multi-source heterogeneous data, as well as normalization and categorical encoding. Then, these features are concatenated into a fixed-dimensional feature vector. The dimension m can be flexibly defined by feature engineering configuration.

[0051] To reduce the computational overhead of feature processing, some embodiments employ a pre-calculation mechanism for timed batch processing of basic user features that do not change with a single request. Specifically, this includes:

[0052] A pre-computation task is triggered at a preset time period. The pre-computation task is used to perform data preprocessing and feature vectorization on the basic attribute data and transaction data of all users in the database, and write the pre-computation results into a distributed cache.

[0053] When a user initiates a rental request, the system responds by retrieving the user's pre-calculated results from the distributed cache. These pre-calculated results are then concatenated with other features calculated in real-time to obtain the user's risk feature vector for this transaction.

[0054] In this embodiment, by pre-compiling and writing the basic features that do not change with the rental request into the cache, the redundant calculation of features can be reduced when the user initiates a rental request, thereby reducing feature overhead and improving the system's processing efficiency.

[0055] In an exemplary embodiment, step S203 involves inputting the user risk feature vector into the trained risk assessment model to obtain the user risk level, including the following steps:

[0056] Step S401: Input the user risk feature vector into the trained risk assessment model to obtain the user's default probability. The risk assessment model includes a binary classification model based on logistic regression.

[0057] The logistic regression-based binary classification model consists of an input layer, a linear transformation layer, and an output layer. The input layer receives the user risk feature vector, the linear transformation layer performs a weighted summation of the feature vector based on the trained model weight vector and bias term, and the output layer maps the linear weighted result to the [0,1] interval using the Sigmoid function to obtain the default probability p.

[0058] The model weights and biases are obtained through offline training. The training objective uses the cross-entropy loss function, and L2 regularization is used to prevent overfitting.

[0059] Step S402 maps the default probability to the corresponding discrete risk level.

[0060] Multiple risk level thresholds are preset, and the default probability range [0,1] is divided into sub-intervals matching the number of risk level thresholds. For example, when a user's risk level is divided into five levels: L1, L2, L3, L4, and L5, a default probability in the range [0,0.2) corresponds to level L1, [0.2-0.4) corresponds to level L2, and so on.

[0061] In this embodiment, a binary classification model based on logistic regression is used to assess the probability of user default. The continuous probability values ​​are discretized into risk levels according to a preset threshold, replacing the manual judgment of resource-side operators. This improves the efficiency of risk assessment and avoids human error. In the linear weighted structure of the logistic regression model, the impact of each feature on the risk outcome has a certain interpretability, and it also facilitates manual adjustment of the model.

[0062] In an exemplary embodiment, step S204, based on the user risk level, retrieves a set of candidate resource endpoints using the inverted index, including the following steps:

[0063] Step S501: Calculate the risk matching score based on the user's risk level and the acceptable risk level threshold of the resource side.

[0064] If a user's risk level is close to the acceptable risk level threshold of the resource provider, the risk matching score is high; otherwise, it is low.

[0065] Step S502: Calculate the service quality score of the resource based on historical evaluation data from the resource side.

[0066] Among them, the service quality score is the service level performed by the resource provider in historical transactions. It can be calculated by obtaining indicators such as the resource provider's positive review rate, on-time delivery rate, and item integrity rate through the evaluation system.

[0067] Step S503: Calculate the user preference matching score based on the similarity between the user's behavior log data and the features of the resource side.

[0068] For example, user preference vectors can be extracted from user behavior log data, and resource feature vectors can be extracted from resource attributes such as item category and price. After converting both user preference vectors and resource feature vectors into numerical vectors, cosine similarity can be used to calculate the similarity between the two.

[0069] Step S504: Calculate the geographical convenience score based on the delivery distance between the user and the resource end.

[0070] The delivery distance is calculated based on the user's delivery address and the resource's shipping address. The closer the distance, the higher the geographical convenience score.

[0071] Step S505: Normalize the risk matching score, service quality score, preference matching score, and geographical convenience score, and sum them based on preset weight coefficients to obtain the comprehensive matching score.

[0072] In this embodiment, by comprehensively calculating the matching degree between users and resource providers across various dimensions, it is possible to integrate multi-source information such as risk adaptability, resource provider service quality, user historical preferences, and geographical distance, thereby improving the accuracy of matching between users and resource providers.

[0073] In an exemplary embodiment, after obtaining the candidate resource set by retrieving the inverted index according to the user's risk level in step S204, the following steps are also included:

[0074] Step S601: For each candidate resource in the candidate resource set, calculate the remaining budget capacity of the candidate resource for the user's risk level based on the budget amount corresponding to the user's risk level in the pre-configured risk budget vector of the candidate resource and the number of allocated resources.

[0075] The risk budget vector is a risk control parameter configured by the resource provider when joining the platform. For example, for 100 rentable items, the risk budget vector can be configured as [L1: 50%, L2: 30%, L3: 20%, L4: 0%, L5: 0%], meaning that a maximum of 50% of the rentable items will be allocated to L1 risk level users, 30% to L2 risk level users, and 20% to L3 risk level users, while L4 and L5 risk level users will not be accepted. The allocated resource quantity is the number of rentable items currently allocated to users of the corresponding risk level by the resource provider, including items in the locked order but unpaid or rented status.

[0076] The remaining budget capacity is the proportion of the remaining leasable goods on the resource side under each risk level.

[0077] Step S602: Remove resource ends with remaining budget capacity less than or equal to zero to obtain a filtered set of candidate resource ends.

[0078] Iterate through each resource in the candidate resource set and compare its remaining budget capacity corresponding to the current user's risk level with zero. If the remaining budget capacity is less than or equal to zero, it means that the resource's quota for users of the current risk level is insufficient, and continuing to accept users of this level may lead to excessive risk concentration. Therefore, remove the resource from the candidate set; if the remaining budget capacity is greater than zero, retain the resource.

[0079] Step S603: Replace the candidate resource end set with the filtered candidate resource end set.

[0080] In this embodiment, by introducing a filtering mechanism based on risk budget vectors, it is possible to achieve accurate matching of resources for users with different risk levels, avoid excessive concentration of users with a certain risk level on a specific resource, and thus reduce the risk faced by the resource side due to over-acceptance of high-risk users.

[0081] In an exemplary embodiment, after determining the target resource in step S207, the following steps are further included:

[0082] Step S701: Send the rental request to the target resource via an asynchronous message queue.

[0083] Step S702: If a confirmation message is received from the target resource, a matching success notification is sent to the user via the push service.

[0084] Step S703: If no confirmation message is received from the target resource, the target resource is removed from the candidate resource set.

[0085] Step S704: In the candidate resource set after removing the target resource, two candidate resource ends are randomly selected again and their scores are compared and adjusted to obtain the second target resource end.

[0086] In one exemplary embodiment, the above method further includes the following steps:

[0087] Step S801: Obtain the user's fulfillment result for the rental request.

[0088] Step S802: Associate the user risk feature vector with the actual performance result to generate a training sample data.

[0089] Specifically, the user risk feature vector generated in step S202 is used as the sample feature, and the actual performance result is converted into a binary classification label. The two are then correlated to form a training sample data.

[0090] Step S803: Persist the training sample data to the database for training the risk assessment model.

[0091] After the training samples are written to the database, incremental training of the risk assessment model is triggered according to a preset period or after accumulating a preset number. Incremental training fine-tunes the parameters while retaining the parameters of the historical model.

[0092] In this embodiment, by feeding back the actual performance results after matching to the training dataset and using an incremental learning strategy to update the risk assessment model, the model can adapt to changes in platform user behavior and risk characteristics, thereby improving the accuracy of risk assessment.

[0093] In a detailed embodiment, such as Figure 3 As shown, the overall process of the rental resource matching method for high-concurrency scenarios provided in this application includes the following steps:

[0094] Step S901: Based on the pre-configured acceptable risk level threshold for each resource, construct an inverted index with risk level as the key and resource ID list as the value, and store it in a distributed cache.

[0095] Step S902: In response to the rental request submitted by the user, collect the user's multi-source heterogeneous data and perform real-time feature calculation.

[0096] Step S903: Read the feature pre-calculation results.

[0097] Step S904: Generate user risk feature vectors based on real-time feature calculation results and feature pre-calculation results.

[0098] Step S905: Input the user risk feature vector into the trained risk assessment model to obtain the user risk level.

[0099] Step S906: Based on the user's risk level, retrieve the set of candidate resource ends using an inverted index.

[0100] Step S907: Based on the pre-configured risk budget vector, remove resource ends that do not have sufficient remaining budget capacity for the current user's risk level, and obtain a filtered set of candidate resource ends.

[0101] Step S908: Calculate the comprehensive matching score for each resource in the filtered candidate resource set.

[0102] Step S909: Obtain the current load rate of each candidate resource and calculate the adjustment score according to the adjustment formula.

[0103] Step S910: Randomly select two resource ends from the candidate resource end set and compare their adjustment scores. Select the one with the higher adjustment score as the target resource end.

[0104] Step S911: Send the rental request to the target resource via an asynchronous message queue.

[0105] Step S912: Determine whether an acknowledgment has been received from the target resource.

[0106] Step S913: If confirmation is received from the target resource, a matching success notification is pushed to the user.

[0107] In step S914, if the target resource fails to acknowledge or reject the request within the timeout period, the resource is removed from the candidate set and step S910 is re-executed.

[0108] Step S915: Obtain the actual performance results of the user's lease request, associate them with the user's risk feature vector to generate training samples, persist them and use them for incremental training of the risk assessment model.

[0109] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0110] Based on the same inventive concept, this application also provides a system for implementing the above-described method for matching leased resources in high-concurrency scenarios. The solution provided by this system is similar to the implementation described in the above method. Therefore, the specific limitations of one or more embodiments of the system for matching leased resources in high-concurrency scenarios provided below can be found in the limitations of the method for matching leased resources in high-concurrency scenarios described above, and will not be repeated here.

[0111] In one exemplary embodiment, such as Figure 4 As shown, a matching system for rental resources in high-concurrency scenarios is provided, including:

[0112] The index building module 1001 is used to build an inverted index for all resource ends based on the pre-configured acceptable risk level threshold for each resource end;

[0113] The feature processing module 1002 is used to respond to the rental request submitted by the user, obtain the user's multi-source heterogeneous data and generate the user risk feature vector;

[0114] Risk assessment module 1003 is used to input the user risk feature vector into the trained risk assessment model to obtain the user risk level;

[0115] The candidate resource retrieval module 1004 is used to retrieve a set of candidate resources based on the user's risk level through the inverted index.

[0116] The resource matching module 1005 is used to calculate a multi-dimensional matching score between the user and each candidate resource terminal in the candidate resource terminal set; adjust the multi-dimensional matching score according to the current load rate of each candidate resource terminal to obtain an adjustment score; randomly select two resource terminals from the candidate resource terminal set, compare the adjustment scores of the two resource terminals, and select the resource terminal with the higher adjustment score as the target resource terminal.

[0117] The modules in the aforementioned matching system for rental resources in high-concurrency scenarios can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.

[0118] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0119] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0120] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0121] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for matching rental resources in high-concurrency scenarios, characterized in that, The method includes: An inverted index is built for all resource endpoints based on the pre-configured acceptable risk level threshold for each resource endpoint. In response to a rental request submitted by a user, the system acquires multi-source heterogeneous data of the user and generates a user risk feature vector. The user risk feature vector is input into the trained risk assessment model to obtain the user risk level; Based on the user's risk level, a set of candidate resource ends is obtained by retrieving the inverted index. For each candidate resource in the candidate resource set, calculate the multidimensional matching score between the user and each candidate resource; The multidimensional matching score is adjusted based on the current load rate of each candidate resource terminal to obtain an adjusted score. The current load rate is the ratio of the allocated capacity of the candidate resource terminal to the total capacity. The total capacity is the total number of rental items provided by the candidate resource terminal, and the allocated capacity is the number of items that are currently unrentable by the candidate resource terminal. Two resource endpoints are randomly selected from the candidate resource endpoint set. The adjustment scores of the two resource endpoints are compared, and the resource endpoint with the higher adjustment score is selected as the target resource endpoint.

2. The method according to claim 1, characterized in that, The adjustment of the multidimensional matching score based on the current load rate of each candidate resource terminal, resulting in an adjusted score, includes: Obtain the current allocated capacity and total capacity of each candidate resource terminal, and calculate the current load rate; Calculate the adjusted score using the following formula. : ; Where S is the multidimensional matching score. The preset load penalty coefficient, The current load rate, The preset random exploration coefficient, This is a random disturbance term.

3. The method according to claim 1, characterized in that, After obtaining the candidate resource set by retrieving the inverted index based on the user risk level, the method further includes: For each candidate resource terminal in the candidate resource terminal set, the remaining budget capacity of the candidate resource terminal for the user's risk level is calculated based on the budget amount and the number of resources already allocated in the risk budget vector pre-configured by the candidate resource terminal. Remove resource endpoints whose remaining budget capacity is less than or equal to zero to obtain a filtered set of candidate resource endpoints; Replace the candidate resource set with the filtered candidate resource set.

4. The method according to claim 1, characterized in that, The process of responding to a rental request submitted by the user, obtaining the user's multi-source heterogeneous data, and generating a user risk feature vector includes: Acquire user's multi-source heterogeneous data, which includes basic attribute data, behavior log data, transaction time series data, device fingerprint data, and rental request data; The multi-source heterogeneous data is preprocessed and vectorized to generate the user risk feature vector.

5. The method according to claim 4, characterized in that, The method further includes: A pre-computation task is triggered at a preset time period. The pre-computation task is used to perform data preprocessing and feature vectorization on the basic attribute data and transaction time series data of all users in the database, and write the pre-computation results into a distributed cache. In response to the rental request, the user's pre-calculated result is read from the distributed cache.

6. The method according to claim 1, characterized in that, The step of inputting the user risk feature vector into the trained risk assessment model to obtain the user risk level includes: The user risk feature vector is input into the trained risk assessment model to obtain the user's default probability; The default probability is mapped to the corresponding discrete risk level.

7. The method according to claim 1, characterized in that, The calculation of the multidimensional matching score between the user and each resource in the candidate resource set includes: Based on the user's risk level and the acceptable risk level threshold of the resource, a risk matching score is calculated. Based on the historical evaluation data of the resource, the service quality score of the resource is calculated; Based on the similarity between the user's behavior log data and the features of the resource, a user preference matching score is calculated. Calculate the geographical convenience score based on the delivery distance between the user and the resource provider; The risk matching score, service quality score, preference matching score, and geographical convenience score are normalized and then weighted and summed based on preset weight coefficients to obtain a comprehensive matching score.

8. The method according to claim 1, characterized in that, After obtaining the target resource that best matches the rental request, the method further includes: The rental request is sent to the target resource via an asynchronous message queue; If a confirmation message is received from the target resource, a matching success notification is sent to the user via push service. If no confirmation message is received from the target resource terminal, the target resource terminal is removed from the candidate resource terminal set; in the candidate resource terminal set after removing the target resource terminal, two candidate resource terminals are randomly selected again and their scores are compared and adjusted to obtain the second target resource terminal.

9. The method according to claim 8, characterized in that, The method further includes: Obtain the user's fulfillment result regarding the rental request; The user risk feature vector and the performance result are associated to generate a training sample data; The training sample data is persisted to a database for use in training the risk assessment model.

10. A matching system for rental resources in high-concurrency scenarios, characterized in that, The system includes: The index building module is used to build an inverted index for all resources based on the pre-configured acceptable risk level threshold for each resource. The feature processing module is used to respond to the rental request submitted by the user, obtain the user's multi-source heterogeneous data and generate the user's risk feature vector; The risk assessment module is used to input the user risk feature vector into the trained risk assessment model to obtain the user risk level; The candidate resource retrieval module is used to retrieve a set of candidate resources based on the user's risk level using the inverted index. The resource matching module is used to calculate a multi-dimensional matching score between the user and each candidate resource terminal in the candidate resource terminal set; adjust the multi-dimensional matching score according to the current load rate of each candidate resource terminal to obtain an adjusted score, wherein the current load rate is the ratio of the allocated capacity to the total capacity of the candidate resource terminal, the total capacity is the total number of rental items provided by the candidate resource terminal, and the allocated capacity is the number of items that are currently unrentable by the candidate resource terminal; randomly select two resource terminals from the candidate resource terminal set, compare the adjusted scores of the two resource terminals, and select the resource terminal with the higher adjusted score as the target resource terminal.