Behavior prediction model training method, housing source matching method, device and storage medium
Through the behavior prediction model training method, we can predict the behavior of brokers towards listings and screen out suitable brokers. This solves the problem of inaccurate matching of listings in the existing technology and achieves accurate matching between listings and brokers. Reduced broker interference.
Patent Information
- Application Number
- CN202211094548.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-08
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-09-08
AI Technical Summary
The existing technology lacks a broker screening process in house matching, resulting in low accuracy of house matching and frequent interruptions to brokers.
The behavioral prediction model training method is adopted, and the neural network model is used to predict whether agents will have predetermined behavior for the listings, and the agents who match the listings are screened out to achieve accurate matching between listings and agents.
It improves the accuracy of listing matching, reduces interference recommendations for agents, and improves the efficiency of listing promotion.
Smart Images

Figure CN116187632B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of Internet technology, and more specifically, to a behavior prediction model training method, a housing matching method, a device and a storage medium. Background Art
[0002] Finding the right agent for a property is a key process in the real estate transaction process. In property matching, promoting properties to the right agents is essentially a recommendation problem.
[0003] Currently, various types of promotional tools are usually used to match properties to all brokers in a city or business district. There is no process for screening the brokers, and the accuracy of property matching is not high, which may cause brokers to be frequently disturbed. Summary of the invention
[0004] The embodiments of the present invention provide a behavior prediction model training method, a housing source matching method, a device and a storage medium.
[0005] The technical solution of the embodiment of the present invention is as follows:
[0006] A method for training a behavior prediction model, comprising:
[0007] Determine a training sample set, each training sample in the training sample set includes a broker-house pair, the broker-house pair includes a first feature of the broker and a second feature of the house, wherein the broker has browsed the house, and the training sample is marked with a marking state, wherein the marking state is used to mark whether the broker has generated a predetermined behavior on the house after browsing the house;
[0008] Inputting the training sample set into a neural network model;
[0009] Based on the training sample set, a training process of the neural network model is performed, the training process comprising: for each training sample, based on the first feature and the second feature, determining a predicted value of the agent's generating the predetermined behavior for the property; based on the predicted value and the marking state of each training sample, determining a loss function value of the neural network model; configuring model parameters of the neural network model so that the loss function value is lower than a preset threshold;
[0010] The neural network model that has completed the training process is determined as a behavior prediction model.
[0011] In one embodiment, determining the loss function value of the neural network model based on the predicted value and the marked state of each of the training samples includes:
[0012] Determine a single sample loss value of each training sample based on a difference between a predicted value and a marked state of each training sample;
[0013] The average value of the single sample loss values of all training samples in the training sample set is determined as the loss function value.
[0014] A property matching method, comprising:
[0015] Determine a plurality of broker-property pairs, each broker-property pair comprising a first feature of the broker and a second feature of the property, wherein the second feature comprises a property identifier, and the broker has browsed the property;
[0016] Input the plurality of broker-property pairs into a behavior prediction model to obtain a prediction value of the predetermined behavior generated by the broker in each broker-property pair toward the property, wherein the behavior prediction model is trained according to the above-mentioned behavior prediction model training method;
[0017] According to the predicted value, the brokers of the property are sorted;
[0018] Determine a recommended broker for the property based on the ranking results;
[0019] Establishing a mapping relationship between the property identifier of the property and the recommended broker of the property;
[0020] A query request including a property identifier to be checked is received, and the mapping relationship is queried based on the property identifier to be checked to determine a recommended broker corresponding to the property identifier to be checked.
[0021] In one embodiment, before determining a plurality of broker-property pairs, the method further includes:
[0022] According to the screening rules, the original data containing the plurality of broker-property pairs is screened; wherein the screening rules are extracted from the decision tree model, and the screening rules include at least one of the following:
[0023] Choose properties in the agent's preferred neighborhood;
[0024] Select properties that are not in the broker's preferred neighborhood, but are within the broker's preferred predetermined geographic area and within the broker's preferred price range.
[0025] In one embodiment, the method further comprises:
[0026] Determine a target broker-property pair, wherein the target broker-property pair includes a recommended broker corresponding to the property identifier to be checked and a second feature including the property identifier to be checked;
[0027] Determine a matching feature in the target broker-property pair, wherein the matching feature represents a matching status between the first feature and the second feature in the target broker-property pair;
[0028] determining a recommendation reason corresponding to the matching feature;
[0029] Present the reasons for the recommendation.
[0030] A training device for a behavior prediction model, comprising:
[0031] A sample set determination module is used to determine a training sample set, wherein each training sample in the training sample set includes a broker-house pair, wherein the broker-house pair includes a first feature of the broker and a second feature of the house, wherein the broker has browsed the house, and the training sample is marked with a marking state, wherein the marking state is used to mark whether the broker and the house have generated a predetermined behavior after browsing the house;
[0032] An input module, used for inputting the training sample set into a neural network model;
[0033] A training module, configured to execute a training process of the neural network model based on the training sample set, the training process comprising: for each training sample, determining a predicted value of whether the broker and the property generate the predetermined behavior based on the first feature and the second feature; determining a loss function value of the neural network model based on the predicted value and the marking state of each training sample; and configuring model parameters of the neural network model so that the loss function value is lower than a preset threshold;
[0034] The model determination module is used to determine the neural network model that has completed the training process as a behavior prediction model.
[0035] A housing source matching device, comprising:
[0036] a pair determination module, configured to determine a plurality of broker-house pairs, each broker-house pair comprising a first feature of the broker and a second feature of the house, wherein the second feature comprises a house identifier, and the broker has browsed the house;
[0037] An input module, used for inputting the plurality of broker-property pairs into a behavior prediction model to obtain a prediction value of the predetermined behavior generated by the broker in each broker-property pair to the property, wherein the behavior prediction model is trained according to the above-mentioned behavior prediction model training method;
[0038] A sorting module, used for sorting the brokers of the house listing according to the predicted value;
[0039] A recommended broker determination module, used to determine the recommended broker for the house based on the sorting result;
[0040] A relationship establishment module, used to establish a mapping relationship between the house source identifier of the house source and the recommended broker of the house source;
[0041] The recommendation module is used to receive a query request containing a property identifier to be checked, and query the mapping relationship based on the property identifier to be checked to determine a recommended broker corresponding to the property identifier to be checked.
[0042] An electronic device, comprising:
[0043] processor;
[0044] a memory for storing instructions executable by the processor;
[0045] The processor is used to read the executable instructions from the memory and execute the instructions to implement the above-mentioned behavior prediction model training method or the above-mentioned house matching method.
[0046] A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, can implement the above-mentioned behavior prediction model training method or the above-mentioned housing matching method.
[0047] A computer program product includes computer instructions, which, when executed by a processor, implement the above-mentioned behavior prediction model training method or the above-mentioned house matching method.
[0048] It can be seen from the above technical solution that in the implementation mode of the present invention, a training sample set is determined, each training sample in the training sample set includes a broker-house pair, the broker-house pair includes a first feature of the broker and a second feature of the house, wherein the broker has browsed the house, and the training sample is marked with a marking state, and the marking state is used to mark whether the broker has generated a predetermined behavior on the house after browsing the house; the training sample set is input into the neural network model; based on the training sample set, the training process of the neural network model is executed; the neural network model that has completed the training process is determined as a behavior prediction model. It can be seen that artificial intelligence technology is used to train a behavior prediction model that can predict whether the broker will generate a predetermined behavior (such as showing or closing a deal, etc.) on the house. The behavior prediction model can be used to screen out brokers that match the house, achieve accurate matching between the house and the broker, improve the accuracy of house matching, and reduce interference recommendations to brokers. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 It is an exemplary flow chart of a method for training a behavior prediction model according to an embodiment of the present invention.
[0051] Figure 2 It is an exemplary schematic diagram of the house characteristics according to the implementation mode of the present invention.
[0052] Figure 3 is an exemplary schematic diagram of the broker feature of an embodiment of the present invention.
[0053] Figure 4 It is an exemplary flow chart of the housing matching method according to an embodiment of the present invention.
[0054] Figure 5 It is an exemplary flow chart of the process of housing source matching and recommendation reason display in an embodiment of the present invention.
[0055] Figure 6 It is an exemplary structural diagram of a training device for a behavior prediction model according to an embodiment of the present invention.
[0056] Figure 7 It is an exemplary structural diagram of a housing source matching device according to an embodiment of the present invention.
[0057] Figure 8 is an exemplary structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings.
[0059] For the sake of simplicity and intuition in description, the scheme of the present invention is explained below by describing several representative embodiments. A large number of details in the embodiments are only used to help understand the scheme of the present invention. However, it is obvious that the technical scheme of the present invention may not be limited to these details when it is implemented. In order to avoid unnecessarily obscuring the scheme of the present invention, some embodiments are not described in detail, but only the framework is given. Hereinafter, "including" means "including but not limited to", and "according to..." means "at least according to...", but not limited to only according to...". Due to the language habits of Chinese, when the number of a component is not specifically indicated below, it means that the component can be one or more, or can be understood as at least one. The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the embodiments of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here, for example.
[0060] Taking into account the defects of the prior art of simply matching properties to all brokers (for example, all brokers in the whole city or the whole business district), which leads to low accuracy of property matching and brokers being frequently disturbed, the embodiments of the present invention construct broker-property pairs, and use artificial intelligence technology to train a behavior prediction model that predicts whether the broker will generate a predetermined behavior (such as a transaction) on the property in the future, so as to use the behavior prediction model to screen brokers who match the property, realize accurate matching between the property and the broker, and improve the accuracy of property matching.
[0061] Figure 1 FIG. 1 is an exemplary flow chart of a method for training a behavior prediction model according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0062] Step 101: Determine a training sample set, where each training sample in the training sample set includes a broker-property pair, where the broker-property pair includes a first feature of the broker and a second feature of the property, where the broker has browsed the property, and the training sample is marked with a marking state, where the marking state is used to mark whether the broker has generated a predetermined behavior on the property after browsing the property.
[0063] First, a training sample set including a plurality of training samples is determined, each training sample including a respective broker-house pair. In each broker-house pair, a first feature representing the broker's attributes (which may be referred to as a broker feature) and a second feature representing the house's attributes (which may be referred to as a house feature) are included.
[0064] Figure 2is an exemplary schematic diagram of the house characteristics according to the embodiment of the present invention. Figure 2 The house characteristics include: the location of the house (for example, in which area the house is located), the price of the house, the owner's willingness (for example, the expectation of a quick transaction or the requirements for the buyer's qualifications, etc.), the maintenance status of the house, the facilities of the house, the popularity of the house and the characteristics of the agent who maintains the house, etc.
[0065] Figure 3 is an exemplary schematic diagram of the broker features of an embodiment of the present invention. Figure 3 The broker characteristics include: broker preference characteristics (for example, the price preference of the clients maintained by the broker (for example, within the range of 1xx million to 2xx million), the location preference of the clients maintained by the broker (for example, the house is expected to be in Haidian District)), the broker's historical viewing record, the broker's historical transaction record, the broker's evaluation score, the broker's activity and the characteristics of the maintained clients, etc.
[0066] The above exemplary descriptions are typical examples of property characteristics and agent characteristics. Those skilled in the art will appreciate that such descriptions are merely exemplary and are not intended to limit the scope of protection of the embodiments of the present invention.
[0067] Each training sample contains a property feature of a property (there can be multiple property features) and a broker feature of a broker who has browsed the property (there can be multiple broker features). Each training sample contains its own marking status. The marking status is used to mark whether the broker in the training sample has made a reservation for the property after browsing the property in the training sample. Among them: when the broker has made a reservation for the property after browsing the property, the training sample is considered a positive sample; when the broker has not made a reservation for the property after browsing the property, the training sample is considered a negative positive sample.
[0068] In one embodiment, the reservation behavior can be implemented as showing a house or closing a deal, and the time limit for the broker to determine whether the house has been reserved can be predetermined, such as one month, two months, or three months, etc.
[0069] According to the above description, a training sample set for training a behavior prediction model can be created. The trained behavior prediction model can predict the predicted value (e.g., probability) of the broker's predetermined behavior on the property after browsing the property. For example, when the predetermined behavior is implemented as showing the property, the trained behavior prediction model is used to predict the predicted value of the broker's showing the property after browsing the property (the time limit for showing the property is usually equivalent to the time limit from the broker browsing the property to the time when the broker in the training sample shows the property); when the predetermined behavior is implemented as a transaction, the trained behavior prediction model is used to predict the predicted value of the broker's transaction behavior after browsing the property (the time limit for transaction behavior is usually equivalent to the time limit from the broker browsing the property to the time when the broker in the training sample shows the property).
[0070] Step 102: Input the training sample set into the neural network model.
[0071] Here, the neural network model may include a convolutional neural network (CNN), a fully connected neural network (FCN), a factorization machine (FM) network, a deep FM network, a deep recommendation (Wide & Deep) network, or a generative adversarial network (GAN), etc.
[0072] The above exemplary descriptions are typical examples of neural network models. Those skilled in the art will appreciate that such descriptions are merely exemplary and are not intended to limit the scope of protection of the embodiments of the present invention.
[0073] Step 103: Based on the training sample set, a training process of the neural network model is executed, the training process comprising: for each training sample, based on the first feature and the second feature, determining a predicted value of the broker's predetermined behavior for the property; based on the predicted value and marking status of each training sample, determining a loss function value of the neural network model; and configuring model parameters of the neural network model so that the loss function value is lower than a preset threshold.
[0074] In one embodiment, based on the predicted value and the marked state of each training sample, the loss function value of the neural network model is determined, including: based on the difference between the predicted value and the marked state of each training sample, determining the single sample loss value of each training sample; and determining the average of the single sample loss values of all training samples in the training sample set as the loss function value.
[0075] Therefore, by using the average of the single sample loss values of multiple training samples as the loss function value, the accuracy of training is improved.
[0076] For example, based on the difference between the predicted value and the labeled state of each training sample, the cross entropy loss function can be used to determine the single sample loss value of each training sample, and then the average of the single sample loss values of all training samples in the training sample set is determined as the loss function value, and then backpropagation is performed and the model parameters of the neural network model are configured using the stochastic gradient descent algorithm.
[0077] Step 104: The neural network model that has completed the training process is determined as a behavior prediction model.
[0078] based on Figure 1 The behavior prediction model trained by this method can predict the probability of a broker showing a property or making a deal after browsing the property, and can be further used to match the property to the appropriate broker.
[0079] The embodiment of the present invention also proposes a housing source matching method. Figure 4 is an exemplary flow chart of a housing source matching method according to an embodiment of the present invention. Figure 4 As shown, the property matching methods include:
[0080] Step 401: Determine a plurality of broker-property pairs, each broker-property pair comprising a first feature of the broker and a second feature of the property, the second feature comprising a property identifier, and the broker in the broker-property pair has browsed the property in the broker-property pair.
[0081] For example, assume that there are N broker-house pairs in a predetermined area (such as the entire city). Each broker-house pair includes a second feature of a house (the number of second features is usually multiple) and a first feature of a broker who has browsed the house (the number of first features is usually multiple), wherein the second feature includes a house identifier.
[0082] Step 402: Input multiple broker-property pairs into a behavior prediction model to obtain a prediction value of the broker in each broker-property pair generating a predetermined behavior towards the property, wherein the behavior prediction model is trained according to the above-mentioned behavior prediction model training method.
[0083] For example, after N broker-property pairs are input into the behavior prediction model, N prediction values can be obtained. Each prediction value represents the probability that the broker in the respective broker-property pair will make a transaction for the property after browsing the property.
[0084] Step 403: Sort the real estate agents according to the predicted values.
[0085] For example, for any property i among all properties corresponding to N agent-property pairs, all agents who have browsed property i are sorted according to the predicted value.
[0086] Step 404: Determine the recommended broker for the property based on the ranking results.
[0087] Here, based on the ranking results, the broker with the highest probability of making a deal for the property after browsing property i is determined from all the brokers who have browsed property i, and is used as the recommended broker. Therefore, for all the properties corresponding to the N broker-property pairs, their respective recommended brokers can be determined.
[0088] Step 406: Establish a mapping relationship between the property ID of the property and the recommended broker of the property.
[0089] For example, the mapping relationship between property i and the recommended broker of property i can be saved in the mapping table. Therefore, the mapping relationship between each property and the recommended broker of the property is saved in the mapping table. The recommended broker of any property can be quickly queried by using the mapping table later.
[0090] Step 406: Receive a query request including the identifier of the property to be checked, and query the mapping relationship based on the identifier of the property to be checked to determine a recommended broker corresponding to the identifier of the property to be checked.
[0091] Therefore, by receiving a query request containing the identifier of the property to be checked, and querying the mapping relationship based on the identifier of the property to be checked, the recommended broker corresponding to the identifier of the property to be checked can be quickly determined.
[0092] It can be seen that the behavior prediction model is used to obtain the predicted value of the broker's predetermined behavior towards the listing in each broker-listing pair, so that the brokers who have viewed each listing can be sorted according to the predicted value, and the recommended broker for each listing can be determined based on the sorting result, thereby achieving accurate listing matching.
[0093] In one embodiment, before determining a plurality of broker-house pairs, the method further includes: performing screening on the original data containing a plurality of broker-house pairs according to screening rules; wherein the screening rules are extracted from a decision tree model, and the screening rules include at least one of the following: selecting houses in the broker's preferred community; selecting houses that are not in the broker's preferred community but are in the broker's preferred predetermined geographic area and within the broker's preferred price range. Among them: the decision tree model is a simple, efficient, and highly interpretable prediction model, which is generally generated from top to bottom. Each decision or event (i.e., natural state) may lead to two or more events and result in different results. This decision branch is drawn into a graph and looks like a branch of a tree, so it is called a decision tree. Another way of expressing it is to use a tree diagram to represent the expected value of each decision, and finally select the decision method with the greatest benefit and the lowest cost through calculation.
[0094] For example, assume that the root node includes the total number of broker-listing pairs (called the total number of samples) and the number of positive samples in the broker-listing pairs. According to the first rule (whether the listing is in the broker's preferred neighborhood), two branches are derived from the root node, one of which is the first leaf node (i.e., the listing is in the broker's preferred neighborhood), and the other branch is the first non-leaf node (i.e., the listing is not in the broker's preferred neighborhood). Moreover, according to the second rule (whether the listing is in the broker's preferred geographic area), two branches are derived from the first non-leaf node, one of which is the second leaf node (i.e., the listing is not in the broker's preferred geographic area), and the other branch is the second non-leaf node (i.e., the listing is in the broker's preferred geographic area). According to the third rule (whether the listing price is within the broker's preferred price range), two branches are derived from the second non-leaf node, one of which is the third leaf node (i.e., the listing price is within the preferred price range), and the other branch is the fourth leaf node (the listing price is not within the preferred price range). The ratio between the number of positive samples at each leaf node and the total number of samples at the leaf node is calculated, and the leaf node with a ratio greater than a predetermined threshold value is determined as a leaf node suitable for extracting the screening rule. For example, it is determined to extract the screening rule from the first leaf node and the third leaf node. The screening rule extracted from the first leaf node is: the house in the broker's preferred community; the screening rule extracted from the third leaf node is: the house that is not in the broker's preferred community but is in the broker's preferred predetermined geographical area and within the broker's preferred price range.
[0095] The above exemplary description is a typical example of extracting screening rules based on a decision tree. Those skilled in the art will appreciate that such description is merely exemplary and is not intended to limit the embodiments of the present invention.
[0096] Therefore, by filtering the raw data of broker-property pairs through filtering rules, the number of broker-property pairs can be significantly reduced, thereby reducing the difficulty of implementation.
[0097] Here, considering that the number of properties and brokers is usually large, the number of broker-property pairs formed by them is even larger. For practical applications, the large amount of data during prediction can easily lead to a long overall processing flow and high resource consumption. In order to solve the problem of too large a number of broker-property pairs, screening rules are used to preliminarily screen the broker-property pairs, in which a decision tree model can be used to generate screening rules. For example, the screening rules can be extracted from the decision tree model, and the screening rules can include:
[0098] (1) Choose a property in the community preferred by the agent.
[0099] For example, the listings in the broker's preferred neighborhoods are selected from the original data, and the listings that are not in the broker's preferred neighborhoods are filtered out, thereby reducing the number of broker-listing pairs.
[0100] (2) Select properties that are not in the broker's preferred neighborhood but are within the broker's preferred predetermined geographic area and within the broker's preferred price range.
[0101] For example, the listings that are not in the broker's preferred neighborhood but are in the broker's preferred predetermined geographic area and within the broker's preferred price range are selected from the original data, thereby reducing the number of broker-listing pairs.
[0102] In an exemplary embodiment, the method further includes: determining a target broker-property pair, the target broker-property pair including a recommended broker corresponding to the property identifier to be checked and a second feature including the property identifier to be checked; determining a matching feature in the target broker-property pair, the matching feature characterizing a matching status between the first feature and the second feature in the target broker-property pair; determining a recommendation reason corresponding to the matching feature; and displaying the recommendation reason. Therefore, the embodiments of the present invention can further provide specific reasons for selecting the recommended broker, so as to facilitate the user to understand the recommendation reason.
[0103] The following describes the implementation details of the embodiment of the present invention. The housing matching method of the embodiment of the present invention mainly includes:
[0104] (1) Training data acquisition:
[0105] Previously, all promotions were extensive, with a small scale, and offline promoted properties also lacked relevant promotion record data, making it difficult to use them as a model training set. The recommendation goal is to let the broker understand the property, and then produce behaviors such as showing and closing transactions based on whether the property matches the current customer needs. Therefore, in order to select training data, it is necessary to first define: how to determine whether the broker understands the property. In an embodiment of the present invention, the broker's browsing records for the past predetermined time (such as one month) can be combined to take the properties that the broker has browsed within the predetermined time as the properties that the broker understands. Therefore, combined with the properties that the broker has browsed within the predetermined time, a broker-property pair is constructed as a training set. Preferably, the training set containing multiple broker-property pairs is further screened to reduce the number of training sets, where screening rules can be extracted from the decision tree model.
[0106] (2) Label setting:
[0107] Considering the specific situation of house transactions, showing and closing are both heavy actions, especially closing takes a period of time to complete, so the tag locates whether the broker-house pair has a showing or a closing in a predetermined time in the future (for example, one month) as the tag of the broker-house pair. Preferably, closing is selected as the tag.
[0108] (3) Feature construction:
[0109] Features mainly include: property features and broker features. For example, property features can include property location, price, supporting facilities, maintenance status, landlord willingness, etc. Broker features mainly come from brokers' operating behaviors. According to the broker's operating property features in the past, statistics are summarized to find out the preferred property features of the broker's recent customers. In addition, in order to prevent the information of customers who have completed transactions from interfering with the broker's preferences, the operating actions of customers who have completed transactions are excluded in the statistical process, and only potential purchasing customers who have not yet completed transactions are focused on. The matching features of brokers and property sources are mainly matched through property features and broker features, and the matching degree of broker-property pairs in various dimensions is calculated, which is used as features to participate in model training.
[0110] (4) Model training:
[0111] In model training, the training set is used to train a behavior prediction model that can predict whether the broker will take a predetermined action on the property (such as showing the property or closing the deal, etc.). The behavior prediction model can be used to screen out brokers that match the property, achieve accurate matching between the property and the broker, improve the accuracy of property matching, and reduce interference recommendations for brokers.
[0112] The promotion tools in the prior art recommend properties to all brokers in the business district or city where the properties are located based on the property information, resulting in a large number of brokers who are not very interested in the properties being recommended properties. The embodiments of the present invention sort the broker-property pairs and only recommend brokers with a high matching degree.
[0113] For practical applications, the amount of data during prediction is still large, resulting in a long overall prediction process and high resource consumption. To solve this problem, the broker-property pairs are preliminarily screened to reduce the magnitude of the scoring data set, thereby improving the prediction efficiency of the model. A decision tree model can be used to determine the preliminary screening rules, and the matching results of property characteristics and broker preference characteristics are used as features to extract filtering rules through the decision tree for preliminary screening. After the preliminary screening is completed, the broker-property pairs are sorted through the model, and several brokers with high matching degrees are screened out for recommendation (the number of brokers can be adjusted according to business needs). A classification model can be used, and the label is whether the broker-property pair generates transactions / shows within a predetermined time (such as one month). The classification model learns the property characteristics and broker characteristics through the GBDT model.
[0114] (5) Online recommendation:
[0115] For example, the property promotion matching model can be used in property focus projects. Property maintainers can promote the properties they maintain by querying the recommendation results produced offline by the property recommendation model and searching for the broker with the highest matching degree for promotion.
[0116] Figure 5 is an exemplary flow chart of the process of listing matching and recommendation reason display in the embodiment of the present invention. Figure 5 As shown, the method includes:
[0117] Step 501: Obtaining raw data containing multiple broker-house pairs, for example, obtaining raw data of broker-house pairs in all business districts or cities.
[0118] Step 502: Filter the original data to retain only the property pairs that meet any of the following conditions: (1) the property is located in the broker's preferred area; (2) the property is not in the broker's preferred area but is in the broker's preferred predetermined geographic area and within the broker's preferred price range.
[0119] Step 503: Determine the matching features in each broker-house pair after filtering in step 502. For example, in a certain house pair, the description of the price range contained in the house feature matches the requirement for the price range contained in the broker feature, and the matching feature is determined to be the house price. For another example, in a certain house pair, the description of the house area contained in the house feature matches the requirement for the house area contained in the broker feature, and the matching feature is determined to be the house area.
[0120] Step 504: Based on the matching features of each broker-house pair, determine the recommendation reason for each house pair. For example, assuming that the matching feature is the house price, the recommendation reason can be a pre-set string "the price range matches, so it is used as the recommendation reason". For another example, assuming that the matching feature is the house area, the recommendation reason can be a pre-set string "the house area matches, so it is used as the recommendation reason".
[0121] Step 505: Input each broker-property pair filtered in step 502 into the behavior prediction model to obtain a prediction value for each broker-property pair, which represents the probability that the broker in the broker-property pair will make a transaction for the property within a predetermined time after browsing the property.
[0122] Step 506: Sort the brokers of the listings according to the predicted values, and determine the recommended brokers of the listings based on the sorting results. Here, the predicted values of all the viewed brokers for the same listing are sorted, and the broker with the highest predicted value is determined as the recommended broker for the same listing. Similarly, the recommended brokers of all listings can be determined.
[0123] Step 507: Establish a mapping relationship between the property ID of each property and its recommended broker. For example, a mapping table may be formed, in which the Key value is the property ID of the property and the Value value is the recommended broker of the property.
[0124] Step 508: Receive a query request including the identifier of the property to be checked, and query the mapping relationship based on the identifier of the property to be checked to determine a recommended broker corresponding to the identifier of the property to be checked.
[0125] Step 509: Display the recommended broker corresponding to the property ID to be checked determined in step 508 and the recommendation reason of the property pair including the property corresponding to the property ID to be checked and the recommended broker determined in step 504.
[0126] Figure 6 is an exemplary structural diagram of a training device for a behavior prediction model according to an embodiment of the present invention. Figure 6 As shown, the training device 600 of the behavior prediction model includes:
[0127] The sample set determination module 601 is used to determine a training sample set, each training sample in the training sample set includes a broker-house pair, the broker-house pair includes a first feature of the broker and a second feature of the house, wherein the broker has browsed the house, and the training sample is marked with a marking state, and the marking state is used to mark whether the broker and the house have generated a predetermined behavior after browsing the house;
[0128] An input module 602 is used to input the training sample set into the neural network model;
[0129] The training module 603 is used to perform a training process of the neural network model based on the training sample set, and the training process includes: for each training sample, based on the first feature and the second feature, determining a prediction value of whether the broker and the house have a predetermined behavior; based on the prediction value and the marking state of each training sample, determining a loss function value of the neural network model; configuring model parameters of the neural network model so that the loss function value is lower than a preset threshold;
[0130] The model determination module 604 is used to determine the neural network model that has completed the training process as a behavior prediction model.
[0131] Figure 7 is an exemplary structural diagram of a housing source matching device according to an embodiment of the present invention. Figure 7 As shown, the house matching device 700 includes:
[0132] A pair determination module 701 is used to determine a plurality of broker-house pairs, each broker-house pair comprising a first feature of the broker and a second feature of the house, the second feature comprising a house identifier, and the broker has browsed the house;
[0133] An input module 702 is used to input multiple broker-property pairs into a behavior prediction model to obtain a prediction value of the broker in each broker-property pair generating a predetermined behavior towards the property, wherein the behavior prediction model is trained according to the above behavior prediction method;
[0134] A sorting module 703 is used to sort the brokers of the house listings according to the predicted values;
[0135] A recommended broker determination module 704 is used to determine a recommended broker for the house based on the ranking result;
[0136] A relationship building module 705 is used to establish a mapping relationship between the house source identifier of the house source and the recommended broker of the house source;
[0137] The recommendation module 706 is used to receive a query request including a property identifier to be checked, and query a mapping relationship based on the property identifier to be checked to determine a recommended broker corresponding to the property identifier to be checked.
[0138] The embodiments of the present invention also provide a computer-readable medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed by a processor, the steps in the behavior prediction model training method or the housing matching method described above can be executed. The computer-readable medium in practical applications can be included in the device / apparatus / system described in the above embodiments, or it can exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the behavior prediction model training method or the housing matching method described in the above embodiments can be implemented.
[0139] According to the embodiments disclosed in the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as but not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof, but is not intended to limit the scope of protection of the present invention. In the embodiments disclosed in the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.
[0140] like Figure 8 As shown, the embodiment of the present invention further provides an electronic device, in which the device for implementing the method of the embodiment of the present invention can be integrated. Figure 8 As shown, it shows an exemplary structural diagram of an electronic device involved in an embodiment of the present invention. Specifically: the electronic device may include a processor 801 with one or more processing cores, a memory 802 of one or more computer-readable storage media, and a computer program stored in the memory and executable on the processor. When executing the program in the memory 802, the above-mentioned behavior prediction model training method or house matching method can be implemented.
[0141] In practical applications, the electronic device may further include components such as a power supply 803, an input unit 804, and an output unit 805. Those skilled in the art may understand that Figure 8 The structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange components differently. Wherein: the processor 801 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the server and processes data by running or executing software programs and / or modules stored in the memory 802, and calling data stored in the memory 802, so as to monitor the electronic device as a whole. The memory 802 can be used to store software programs and modules, that is, the above-mentioned computer-readable storage medium. The processor 801 executes various functional applications and data processing by running software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the server, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802 .
[0142] The electronic device also includes a power supply 803 for supplying power to each component, which can be logically connected to the processor 801 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 803 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device can also include an input unit 804, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. The electronic device can also include an output unit 805, which can be used to display information input by the user or information provided to the user and various graphical user interfaces, which can be composed of graphics, text, icons, videos and any combination thereof.
[0143] An embodiment of the present invention further provides a computer program product, which includes computer instructions, and when the computer instructions are executed by a processor, the behavior prediction model training method or the housing matching method described in any of the above embodiments is implemented.
[0144] The flow chart and block diagram in the accompanying drawings of the present invention show the possible architecture, function and operation of the system, method and computer program product according to the various embodiments disclosed in the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in the order of the standards in different drawings. For example, the boxes represented by two connections can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0145] The principles and implementation methods of the present invention are described herein using specific implementation methods. The description of the above implementation methods is only used to help understand the method and core ideas of the present invention, and is not used to limit the present invention. For those skilled in the art, changes can be made in the specific implementation methods and application scopes according to the ideas, spirits and principles of the present invention, and any modifications, equivalent substitutions, improvements, etc. made therein should be included in the scope of protection of the present invention.
Claims
1. A housing source matching method, characterized in that: include: Determine a plurality of broker-property pairs, each broker-property pair comprising a first feature of the broker and a second feature of the property, wherein the second feature comprises a property identifier, and the broker has browsed the property; Inputting the plurality of broker-property pairs into a behavior prediction model to obtain a prediction value of the broker in each broker-property pair generating a predetermined behavior towards the property, wherein the behavior prediction model is trained according to a training method for a behavior prediction model; According to the predicted value, the brokers of the property are sorted; Determine a recommended broker for the property based on the ranking results; Establishing a mapping relationship between the property identifier of the property and the recommended broker of the property; as well as Receiving a query request including a property identifier to be checked, and querying the mapping relationship based on the property identifier to be checked to determine a recommended broker corresponding to the property identifier to be checked; Wherein, the training method of the behavior prediction model includes: Determine a training sample set, each training sample in the training sample set includes a broker-house pair, the broker-house pair includes a first feature of the broker and a second feature of the house, wherein the broker has browsed the house, and the training sample is marked with a marking state, wherein the marking state is used to mark whether the broker has generated a predetermined behavior on the house after browsing the house; Inputting the training sample set into a neural network model; Based on the training sample set, a training process of the neural network model is performed, the training process comprising: for each training sample, based on the first feature and the second feature, determining a predicted value of the agent's generating the predetermined behavior for the property; based on the predicted value and the marking state of each training sample, determining a loss function value of the neural network model; configuring model parameters of the neural network model so that the loss function value is lower than a preset threshold; and Determining the neural network model that has completed the training process as the behavior prediction model; Before determining a plurality of broker-property pairs, the property matching method further includes: According to the screening rules, the original data containing the plurality of broker-property pairs are screened; the screening rules are extracted from a decision tree model, wherein the root node of the decision tree model includes the total sample number of broker-property pairs and the positive sample number of broker-property pairs; according to the first screening rule, two branches are derived from the root node, wherein one branch is a first leaf node and the other branch is a first non-leaf node; according to the second screening rule, two branches are derived from the first non-leaf node, wherein one branch is a second leaf node and the other branch is a second non-leaf node; according to the third screening rule, two branches are derived from the second non-leaf node, wherein one branch is a third leaf node and the other branch is a fourth leaf node; the ratio between the number of positive samples at each leaf node and the total number of samples at the leaf node is calculated, and the leaf nodes whose ratio is greater than a predetermined threshold value are determined as leaf nodes adapted to the extraction screening rules; The first screening rule is whether the house is in the neighborhood preferred by the broker, the second screening rule is whether the house is in the geographical area preferred by the broker, and the third screening rule is whether the house price is within the price range preferred by the broker; The housing source matching method further includes: Determine a target broker-property pair, wherein the target broker-property pair includes a recommended broker corresponding to the property identifier to be checked and a second feature including the property identifier to be checked; Determine a matching feature in the target broker-property pair, wherein the matching feature represents a matching feature between the first feature and the second feature in the target broker-property pair; Determining a recommendation reason corresponding to the matching feature; and Present the reasons for the recommendation.
2. The housing source matching method according to claim 1, characterized in that: Determining the loss function value of the neural network model based on the predicted value and the marked state of each training sample includes: Determine a single sample loss value of each training sample based on a difference between a predicted value and a marked state of each training sample; The average value of the single sample loss values of all training samples in the training sample set is determined as the loss function value.
3. A housing source matching device, characterized in that: include: a pair determination module, configured to determine a plurality of broker-house pairs, each broker-house pair comprising a first feature of the broker and a second feature of the house, wherein the second feature comprises a house identifier, and the broker has browsed the house; An input module, used for inputting the plurality of broker-property pairs into a behavior prediction model to obtain a prediction value of the broker in each broker-property pair generating a predetermined behavior towards the property, wherein the behavior prediction model is obtained by training according to a training device for the behavior prediction model; A sorting module, used for sorting the brokers of the house listing according to the predicted value; A recommended broker determination module, used to determine the recommended broker for the house based on the sorting result; A relationship establishment module, used to establish a mapping relationship between the house source identifier of the house source and the recommended broker of the house source; as well as A recommendation module, configured to receive a query request including a property identifier to be checked, and query the mapping relationship based on the property identifier to be checked to determine a recommended broker corresponding to the property identifier to be checked; Wherein, the training device of the behavior prediction model comprises: A sample set determination module is used to determine a training sample set, wherein each training sample in the training sample set includes a broker-house pair, wherein the broker-house pair includes a first feature of the broker and a second feature of the house, wherein the broker has browsed the house, and the training sample is marked with a marking state, wherein the marking state is used to mark whether the broker has generated a predetermined behavior on the house after browsing the house; An input module, used for inputting the training sample set into a neural network model; A training module, configured to execute a training process of the neural network model based on the training sample set, the training process comprising: for each training sample, determining a predicted value of the agent's generating the predetermined behavior for the property based on the first feature and the second feature; determining a loss function value of the neural network model based on the predicted value and the marking state of each training sample; configuring model parameters of the neural network model so that the loss function value is lower than a preset threshold; and A model determination module, used to determine the neural network model that has completed the training process as the behavior prediction model; Wherein, the housing source matching device further includes: Before determining a plurality of broker-property pairs, screening is performed on the original data containing the plurality of broker-property pairs according to screening rules; the screening rules are extracted from a decision tree model, wherein the root node of the decision tree model includes the total sample number of broker-property pairs and the positive sample number of broker-property pairs; two branches are derived from the root node according to a first screening rule, wherein one branch is a first leaf node and the other branch is a first non-leaf node; two branches are derived from the first non-leaf node according to a second screening rule, wherein one branch is a second leaf node and the other branch is a second non-leaf node; two branches are derived from the second non-leaf node according to a third screening rule, wherein one branch is a third leaf node and the other branch is a fourth leaf node; the ratio between the number of positive samples at each leaf node and the total number of samples at the leaf node is calculated, and the leaf nodes whose ratio is greater than a predetermined threshold value are determined as leaf nodes adapted to the extraction screening rules; The first screening rule is whether the house is in the neighborhood preferred by the broker, the second screening rule is whether the house is in the geographical area preferred by the broker, and the third screening rule is whether the house price is within the price range preferred by the broker; Wherein, the housing source matching device further includes: Determine a target broker-property pair, wherein the target broker-property pair includes a recommended broker corresponding to the property identifier to be checked and a second feature including the property identifier to be checked; Determine a matching feature in the target broker-property pair, wherein the matching feature represents a matching feature between the first feature and the second feature in the target broker-property pair; Determining a recommendation reason corresponding to the matching feature; and Present the reasons for the recommendation.
4. An electronic device, characterized in that: The electronic device includes: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the housing matching method described in claim 1 or 2.
5. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by the processor, the housing source matching method according to claim 1 or 2 is implemented.
6. A computer program product, characterized in that It includes computer instructions, which implement the house matching method described in claim 1 or 2 when executed by a processor.
