Group renting identification method and device
By matching and feature training the logistics delivery data and group rental record data, a group rental identification model is constructed, which solves the problems of high sensor cost and low energy data efficiency, and achieves efficient and accurate group rental identification.
Patent Information
- Application Number
- CN202410876497.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-01
AI Technical Summary
Among existing methods for identifying group rentals, sensor-based methods have high operating costs, while methods based on energy consumption data are inefficient and difficult to collect data, making it difficult to effectively identify group rentals.
By matching the delivery address in the logistics delivery data with the record address in the group rental record data, the label of the delivery address is determined, and these labels and delivery features are used to train the group rental recognition model to achieve intelligent identification.
It improves the efficiency and accuracy of group rental housing identification, reduces operating costs, and simplifies the data collection process.
Smart Images

Figure CN118734170A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for identifying shared housing. Background Art
[0002] Group rental houses pose huge risks due to problems such as house renovation, complex wiring, and potential safety hazards. How to identify group rental houses is a difficult problem in their regulation.
[0003] In the related art, there are two main methods for identifying shared rental housing: one is a sensor-based identification method, but the installation and operation costs of sensor equipment are too high; the other is an identification method based on energy consumption data. However, since the number of user data is disproportionate to the number of tenants, the efficiency of identifying shared rental housing based on energy consumption data is low, and the collection of energy consumption data is difficult. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method and device for identifying shared housing, which can determine the label of the delivery address by matching the delivery address in the logistics delivery data with the recorded address in the shared housing record data, and can obtain a shared housing recognition model through supervised training. The shared housing recognition model can be used to intelligently identify shared housing, thereby improving the efficiency and accuracy of recognition.
[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a training method for a group rental housing recognition model is provided, comprising:
[0006] Acquire multiple logistics delivery data and multiple group rental housing record data within a preset area and a preset time; each of the logistics delivery data includes a delivery address; each of the group rental housing record data includes a record address of the group rental housing;
[0007] Matching the delivery address with the record address to determine a matching result for each delivery address;
[0008] According to the matching result of each delivery address, determining a label corresponding to the delivery address; the label indicates group renting or non-group renting;
[0009] Determine the logistics delivery characteristics corresponding to each of the delivery addresses according to the logistics delivery data corresponding to each of the delivery addresses;
[0010] A group rental housing recognition model is trained based on the logistics delivery features and labels corresponding to each of the delivery addresses.
[0011] Optionally, determining a matching result for each of the delivery addresses includes:
[0012] Standardizing the delivery address and the record address respectively to determine a standard delivery address and a standard record address;
[0013] The standard delivery address and the standard record address are matched to determine the matching result of each standard delivery address, and the matching result of the standard delivery address is used as the matching result of the delivery address.
[0014] Optionally, the standard delivery address and the standard record address both include address level tags, and determining a matching result for each of the standard delivery addresses includes:
[0015] Determine, according to the address level label, a delivery prefix address and a delivery suffix address corresponding to the standard delivery address, and determine a record prefix address and a record suffix address corresponding to the standard record address;
[0016] Determining whether the delivery prefix address and the record prefix address are within a preset geographical range;
[0017] In the case where the delivery prefix address and the record prefix address are within a preset geographical range, determining whether the delivery suffix address and the record suffix address are the same;
[0018] In the case where the delivery suffix address and the record suffix address are identical, the matching result of the standard delivery address is determined to be a result indicating successful matching with the standard record address.
[0019] Optionally, determining the logistics delivery characteristics corresponding to each of the delivery addresses includes:
[0020] Determine a shopping feature matrix and a personnel relationship map based on the various logistics delivery data;
[0021] The shopping feature matrix and the personnel relationship map are used as the logistics delivery features.
[0022] Optionally, a shopping feature matrix is determined, including:
[0023] Obtaining the signing time period and the signing item category in each of the logistics delivery data;
[0024] Determine a first quantity of logistics delivery data that is the same as the signing time period and the signing item category;
[0025] The shopping feature matrix is determined according to the signing time period, the signing item category and the first quantity.
[0026] Optionally, determine a personnel relationship map, including:
[0027] Obtaining a personnel identifier in each of the logistics delivery data and a communication identifier corresponding to the personnel identifier;
[0028] Taking each personnel identification as a vertex; for any personnel identification, determining a first personnel identification having the same communication identification as the any personnel identification;
[0029] Connecting the vertices of any one of the personnel identifiers with the vertices of the first personnel identifier through edges;
[0030] Determine a second quantity of logistics and delivery data including any one of the personnel identifiers and the same communication identifier, determine a third quantity of logistics and delivery data including the first personnel identifier and the same communication identifier, and determine a weight of the edge according to the second quantity and the third quantity;
[0031] A connected subgraph is formed according to any one of the personnel identifiers, the first personnel identifier, the same communication identifier, the edges, and the weights of the edges, and the personnel relationship graph is determined according to the connected subgraph.
[0032] Optionally, according to the logistics delivery features and labels corresponding to each of the delivery addresses, a group rental housing recognition model is trained, including:
[0033] Using a convolutional neural network to extract high-dimensional features from the shopping feature matrix, and using a graph neural network to extract personnel relationship features from the personnel relationship graph;
[0034] Fusing the high-dimensional features with the personnel relationship features to obtain rental features corresponding to the delivery address;
[0035] The rental features and labels corresponding to each of the delivery addresses are input into a classifier, and the classifier is trained to obtain the group rental housing recognition model.
[0036] According to another aspect of an embodiment of the present invention, a method for identifying a shared rental house is provided, comprising:
[0037] Obtaining a logistics delivery address to be identified and each target logistics delivery data corresponding to the logistics delivery address to be identified;
[0038] Determine the target delivery characteristics corresponding to the logistics delivery address to be identified according to the target logistics delivery data;
[0039] Input the target delivery feature into the shared housing identification model to determine the shared housing identification result of the logistics delivery address to be identified;
[0040] The group rental housing recognition model is obtained according to the training method of the group rental housing recognition model in an embodiment of the present invention.
[0041] Optionally, determining the target delivery feature corresponding to the logistics delivery address to be identified includes:
[0042] Determine a target shopping feature matrix and a target personnel relationship map based on the target logistics delivery data;
[0043] The target shopping feature matrix and the target personnel relationship map are used as the target delivery features.
[0044] Optionally, a target shopping feature matrix is determined, including:
[0045] Obtain the target receipt item type and target receipt time period in each of the target logistics delivery data;
[0046] Determine a first target quantity of target delivery logistics data that is the same as the target receipt time period and the target receipt item category;
[0047] The target shopping feature matrix is determined according to the target signing time period, the target signing item category and the first target quantity.
[0048] Optionally, determining the target personnel relationship map includes:
[0049] Obtaining a target person identification and a target communication identification corresponding to the target person identification in each of the target logistics delivery data;
[0050] Taking each target person identification as a vertex; for any target person identification, determining a second person identification having the same target communication identification as any target person identification;
[0051] Connecting the vertex of any target person identification with the vertex of the second person identification through a target edge;
[0052] Determine a second target quantity of target logistics delivery data including any target person identifier and the same target communication identifier, determine a third target quantity of target logistics delivery data including the second person identifier and the same target communication identifier, and determine a weight of the target edge according to the second target quantity and the third target quantity;
[0053] A target connected subgraph is formed according to any one of the target person identifiers, the second person identifier, the same target communication identifier, the target edge, and the weight of the target edge, and the target person relationship graph is determined according to the target connected subgraph.
[0054] Optionally, determining a group rental housing identification result of the logistics delivery address to be identified includes:
[0055] Extracting target high-dimensional features from the target shopping feature matrix using the convolutional neural network;
[0056] Extracting target personnel relationship features from the target personnel relationship graph using the graph neural network;
[0057] Fusing the target high-dimensional features with the target personnel relationship features to obtain target features;
[0058] The target feature is input into the classifier to determine the group rental housing identification result.
[0059] According to another aspect of an embodiment of the present invention, a training device for a group rental housing recognition model is provided, comprising:
[0060] The first acquisition module acquires a plurality of logistics delivery data and a plurality of group rental housing record data within a preset area and a preset time; each of the logistics delivery data includes a delivery address; each of the group rental housing record data includes a record address of the group rental housing;
[0061] A matching module, matching the delivery address with the record address, and determining a matching result for each delivery address;
[0062] A first determination module determines a label corresponding to each delivery address according to a matching result of the delivery address; the label indicates group renting or non-group renting;
[0063] A second determination module determines the logistics delivery characteristics corresponding to each of the delivery addresses according to the logistics delivery data corresponding to each of the delivery addresses;
[0064] The training module trains the group rental housing recognition model according to the logistics delivery features and labels corresponding to each of the delivery addresses.
[0065] According to another aspect of an embodiment of the present invention, a device for identifying a shared rental house is provided, comprising:
[0066] A second acquisition module is used to acquire the logistics delivery address to be identified and each target logistics delivery data corresponding to the logistics delivery address to be identified;
[0067] A third determination module determines the target delivery feature corresponding to the logistics delivery address to be identified according to the target logistics delivery data;
[0068] The identification module inputs the target delivery feature into the group-rented house identification model to determine the group-rented house identification result of the logistics delivery address to be identified;
[0069] The group rental housing recognition model is obtained according to the training method of the group rental housing recognition model in an embodiment of the present invention.
[0070] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including:
[0071] one or more processors;
[0072] a storage device for storing one or more programs,
[0073] When the one or more programs are executed by the one or more processors, the one or more processors implement the training method of the group rental housing identification model or the group rental housing identification method provided by the present invention.
[0074] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the training method of the group rental housing identification model or the group rental housing identification method provided by the present invention is implemented.
[0075] An embodiment of the above invention has the following advantages or beneficial effects: by acquiring multiple logistics delivery data and multiple group rental housing record data within a preset area and a preset time, the delivery address and the record address are matched, and the label of each delivery address is determined according to the matching result; the logistics delivery features corresponding to each delivery address are determined; and then the group rental housing recognition model is trained through the logistics delivery features and the corresponding labels. The method matches the logistics delivery data with the group rental housing record data, determines the real label of the delivery address using the group rental housing record data, and performs supervised model training. The group rental housing recognition model can intelligently identify the group rental housing, thereby improving the efficiency and accuracy of group rental housing recognition.
[0076] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0078] Figure 1 is a schematic diagram of the main process of a training method for a group rental housing recognition model according to an embodiment of the present invention;
[0079] Figure 2 is a schematic diagram of the main process of another method for training a group rental housing recognition model according to an embodiment of the present invention;
[0080] Figure 3 is a schematic diagram of a visualized heat map of a shopping feature matrix according to an embodiment of the present invention;
[0081] Figure 4 is a schematic diagram of a personnel relationship map according to an embodiment of the present invention;
[0082] Figure 5 It is a flowchart of a training method for a group rental housing identification model according to an embodiment of the present invention;
[0083] Figure 6 It is a structural schematic diagram of a group rental housing identification model according to an embodiment of the present invention;
[0084] Figure 7 is a schematic diagram of the main process of a method for identifying a shared rental house according to an embodiment of the present invention;
[0085] Figure 8 is a schematic diagram of main modules of a training device for a group rental housing recognition model according to an embodiment of the present invention;
[0086] Fig. 9 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0087] Fig.10 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0088] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0089] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0090] The current methods for identifying shared rental houses are mainly divided into two categories. One is the sensor-based method, which uses sensors at the door of the house or in the community garbage room to identify and count the number of people entering and leaving, or to determine the number of people living in each house based on the correspondence between the house identification information and the delivery card identification information. However, it is necessary to install corresponding sensing equipment in each house or each garbage bin, and the installation and operation costs are too high. Another method for identifying shared rental houses is based on the statistical analysis of life data. According to the type of data used, this type of method can be further divided into methods based on energy consumption data and methods based on logistics and delivery data. The method based on energy consumption data discovers shared rental houses by analyzing energy consumption anomalies. However, energy consumption may not be proportional to the number of tenants. For example, large TVs, audio systems, or gaming equipment may also cause a large amount of electricity consumption in the house, so relying solely on energy consumption data to identify shared rentals has a low accuracy rate. In addition, the energy consumption data obtained from traditional power and water supply companies is often of coarse granularity. An electric meter or water meter covers the energy consumption of an area, and the specific household-by-household meter in the community is installed and managed by the community property. These fine-grained energy consumption data are stored in the business system of the community property. Therefore, in order to identify group rental houses in an area, it is necessary to connect multiple business systems and integrate data details stored in different databases with inconsistent structures, which makes data collection more difficult and the analysis cycle longer. Based on the above problems, an embodiment of the present invention provides a method for identifying group rental houses, which can identify group rental houses more efficiently and accurately.
[0091] Figure 1 is a schematic diagram of the main process of a training method for a group rental housing recognition model according to an embodiment of the present invention, such as Figure 1 As shown, the training method of the group rental housing recognition model includes:
[0092] Step S101: Acquire multiple logistics delivery data and multiple group rental housing record data within a preset area and a preset time; each logistics delivery data includes a delivery address; each group rental housing record data includes a record address of the group rental housing;
[0093] Step S102: Match the delivery address with the record address to determine the matching result of each delivery address;
[0094] Step S103: according to the matching result of each delivery address, determine the label corresponding to the delivery address; the label indicates group renting or non-group renting;
[0095] Step S104: determining the logistics delivery characteristics corresponding to each delivery address according to the logistics delivery data corresponding to each delivery address;
[0096] Step S105: A group rental housing recognition model is trained based on the logistics delivery features and labels corresponding to each delivery address.
[0097] In an embodiment of the present invention, first, a plurality of logistics delivery data and a plurality of group rental record data within a preset time in a preset area are obtained. The preset time may be a custom time range, such as within the past six months or within the past three months. The preset area may be a custom area range, such as a certain street, or a custom geographic fence area.
[0098] The logistics delivery data includes the delivery time of the item, the item category, the personnel identification, the communication identification and the delivery address. The personnel identification can be the name of the sender or the name of the recipient, and the communication identification can be the mobile phone number of the sender or the recipient. Obtain multiple logistics delivery data within a preset area and a preset time, that is, obtain multiple logistics delivery data whose delivery address is within the preset area and the delivery time is within the preset time. The multiple logistics delivery data constitute a logistics delivery data set. The delivery address can be the sending address or the receiving address, and the delivery time can be the sending time or the signing time.
[0099] The group rental housing record data includes the record address, record time and record content of the group rental housing. The record data of multiple group rental housing within the preset area and the preset time are obtained, that is, the record data of multiple group rental housing whose record address is within the preset area and the record time is within the preset time. The group rental housing record data is the record data of the group rental housing that has been verified, which can be the group rental housing record data reported by citizens through public platforms or public hotlines and verified and confirmed by relevant departments. The record address of the group rental housing can be the real address of the group rental housing, the record time is the time when it is registered as a group rental housing, and the record content can be the specific feedback of citizens on the group rental housing.
[0100] In the embodiment of the present invention, the delivery address and the record address are matched to determine the matching result of each delivery address, and the matching result includes a result indicating a successful match or a result indicating a failed match, that is, it is determined whether there is a record address that is the same as the delivery address. If there is a record address that is the same as the delivery address, the matching result of the delivery address is a result indicating a successful match, and if there is no record address that is the same as the delivery address, the matching result of the delivery address is a result indicating a failed match. The matching result of the delivery address can also be determined by determining whether there is a delivery address that is the same as the record address.
[0101] In the embodiment of the present invention, determining the matching result of each delivery address includes:
[0102] Standardize the delivery address and the record address respectively to determine the standard delivery address and the standard record address;
[0103] The standard delivery address and the standard record address are matched to determine the matching result of each standard delivery address, and the matching result of the standard delivery address is used as the matching result of the delivery address.
[0104] In the embodiment of the present invention, the data formats of the delivery address and the record address are not unified, which will affect the matching effect and efficiency of the two. In order to improve the matching efficiency and accuracy of the delivery address and the record address, the delivery address and the record address are standardized respectively, unified into a standard address format, and a standard delivery address and a standard record address are obtained. Among them, the standardization process can include unifying the numbers and letters in the delivery address and the record address, such as unifying the numbers into Arabic numerals and the letters into lowercase letters, and can also include deleting repeated prefixes in the delivery address and the record address, converting traditional Chinese characters into simplified Chinese characters, etc.
[0105] Standardizing the delivery address and the record address separately also includes: using a named entity recognition model to perform naming recognition on the delivery address and the record address separately, and obtaining each named entity with an address level label in the delivery address and the record address respectively, that is, each named entity includes an address level label, for example, Putuo District | POI: XX Community | Building: 3 | Unit: 1 | Room: 602, that is, each delivery address and each record address are standardized into addresses consisting of each named entity with an address level label.
[0106] After the standard delivery address and the standard record address are determined, the standard delivery address and the standard record address are matched to determine the matching result of each standard delivery address, and the matching result of the standard delivery address is used as the matching result of the delivery address.
[0107] In an embodiment of the present invention, before matching the delivery address with the record address, it may also include: preprocessing a plurality of logistics delivery data. Preprocessing a plurality of logistics delivery data includes: determining whether the delivery address of any logistics delivery data contains a preset keyword, and if it contains the preset keyword, deleting the logistics delivery data from the plurality of logistics delivery data, to obtain a plurality of preprocessed logistics delivery data, that is, a set of preprocessed logistics delivery data. Among them, the preset keyword may be a non-residential word, such as "school", "commercial building", "hospital", "industrial park", "government", "institution", etc. It is also possible to preprocess a plurality of logistics delivery data after determining the standard delivery address, that is, determining whether the standard delivery address of any logistics delivery data contains a preset keyword, and if it contains the preset keyword, deleting the logistics delivery data from the plurality of logistics delivery data, to obtain a plurality of preprocessed logistics delivery data, that is, a set of preprocessed logistics delivery data.
[0108] In the embodiment of the present invention, since multiple logistics delivery data may correspond to the same standard delivery address, they can be aggregated according to the standard delivery address. That is, after determining the standard delivery address, multiple logistics delivery data can be aggregated according to the standard delivery address to obtain each logistics delivery data corresponding to each standard delivery address, so that the multiple logistics delivery data are divided into multiple groups according to the number of standard delivery addresses. The number of groups is the number of standard delivery addresses. Each group is a standard delivery address and each logistics delivery data corresponding to the standard delivery address. The standard delivery addresses in the same group are the same, but the delivery time, item category, personnel identification, communication identification and other information may be different.
[0109] In an embodiment of the present invention, determining the matching result of each standard delivery address may include: determining the text similarity between each standard delivery address and each standard record address, and determining the matching result of the standard delivery address based on the text similarity, wherein a similarity algorithm may be used to determine the text similarity, and the similarity algorithm may be cosine similarity, Euclidean distance, etc.
[0110] In the embodiment of the present invention, Figure 2 As shown, both the standard delivery address and the standard record address include address-level tags that determine the matching results for each standard delivery address, including:
[0111] Step S201: determining the delivery prefix address and delivery suffix address corresponding to the standard delivery address, and determining the record prefix address and record suffix address corresponding to the standard record address according to the address level label;
[0112] Step S202: determining whether the delivery prefix address and the record prefix address are within a preset geographical range;
[0113] Step S203: when the delivery prefix address and the record prefix address are within the preset geographical range, determining whether the delivery suffix address and the record suffix address are the same;
[0114] Step S204: When the delivery suffix address and the record suffix address are the same, determining the matching result of the standard delivery address is a result indicating successful matching with the standard record address.
[0115] In the embodiment of the present invention, Figure 2As shown, M standard delivery addresses are matched with N standard delivery addresses. Before matching, the M standard delivery addresses can be sorted to determine the sequence number of each standard delivery address, and the N standard delivery addresses are sorted to determine the sequence number of each standard record address. The matching result of each standard delivery address is determined, including: according to the address level label, determining the delivery prefix address and delivery suffix address of the i-th standard delivery address, and determining the record prefix address and record suffix address of the j-th standard record address; wherein, 1≤i≤M, 1≤j≤N; i, j, M and N are all integers; i=1, j=1 can be set to determine the i-th standard delivery address. Whether the delivery prefix address of the address and the record prefix address of the j-th standard record address are within the preset geographical range; if not, set j=j+1 and execute the previous step; if so, determine whether the delivery suffix address of the ith standard delivery address and the record suffix address of the j-th standard record address are the same; if they are the same, determine that the matching result of the ith standard delivery address is a result indicating a successful match with the j-th standard record address, and then set i=i+1 to perform matching of each delivery address; if they are not the same, set j=j+1 to match the ith standard delivery address with the j+1-th standard record address, until each delivery address matches each standard address once.
[0116] In an embodiment of the present invention, after obtaining the standard delivery address and the standard record address, the standard delivery address and the standard record address can be segmented according to preset rules, respectively, to obtain the delivery prefix address and the delivery suffix address corresponding to the standard delivery address, respectively, and to obtain the record prefix address and the record suffix address corresponding to the standard record address. The preset rule can be one of the address level labels in the address level labels. For example, the standard delivery address or the standard record address can be segmented into prefix addresses and suffix addresses from the address level label of "building". For example, the prefix address is: Putuo District | POI: XX Community; the suffix address is: Building: 3; Unit: 1 | Room: 602.
[0117] Then, it is determined whether the delivery prefix address and the record prefix address are within the preset geographical range. The delivery prefix address and the record prefix address can be respectively GeoCoding-ed and converted into longitude and latitude coordinates, thereby obtaining the delivery prefix address coordinates and the record prefix address coordinates. Then, it is determined whether the delivery prefix address coordinates and the record prefix address coordinates are within the preset geographical range. The preset geographical range can be the same AOI (Area of Interest, a closed area of interest surrounded by a series of GPS points) area, such as a community; if so, it is determined by text recognition whether the delivery suffix address and the record suffix address are the same. If they are the same, it is determined that the standard delivery address and the standard record address are a successfully matched address pair; each standard delivery address and each standard record address are traversed to determine a successfully matched address pair; if the standard delivery address fails to match any standard record address, the matching result of the standard delivery address is a result indicating a failed match.
[0118] In an embodiment of the present invention, after determining the matching result of each delivery address, the label corresponding to the delivery address can be determined according to the matching result, that is, if the matching result of the delivery address is a result indicating a successful match, that is, there is a record address identical to the delivery address, and the record address is a real group-rented house address, then the label corresponding to the delivery address is determined to be a label indicating group renting, and a matching flag can be added to the delivery address, and the matching flag can be set to 1; if the matching result of the delivery address is a result indicating a failed match, that is, there is no record address identical to the delivery address, then the label corresponding to the delivery address is determined to be a label indicating non-group renting, and a matching flag can be added to the delivery address, and the flag can be set to 0. The distinction between group renting and non-group renting can be achieved through the flag. The label of each delivery address is determined by the matching result of each delivery address, so as to facilitate supervised model training.
[0119] After determining the label of each delivery address, the logistics delivery data corresponding to each delivery address is obtained, and the logistics delivery data set of the label indicating the shared rental house and the logistics delivery data set of the label indicating the non-shared rental house can be determined, such as, set P = p yes_1 ∪p yes_i ∪…∪p yesy_i (k≤M), where yes_i represents the standard delivery address of the i-th shared rental house, p yes_i represents the logistics delivery data set under yes_i; k standard delivery addresses can be obtained by random sampling from the logistics delivery data set with the label indicating non-group rental housing, and the logistics delivery data corresponding to the k standard delivery addresses are used as training data with the label of non-group rental housing to form a set Q = q not_1 ∪q not_j ∪…∪q not_k, where not_j represents the standard delivery address of the jth non-shared housing, q not_j Represents the logistics and delivery data set under not_j.
[0120] In an embodiment of the present invention, the logistics delivery characteristics corresponding to each delivery address are determined according to each logistics delivery data corresponding to each delivery address, including: determining a shopping feature matrix and a personnel relationship map according to each logistics delivery data; and using the shopping feature matrix and the personnel relationship map as the logistics delivery characteristics. The shopping feature matrix and / or the personnel relationship map can be determined according to each logistics delivery data corresponding to the delivery address, and the shopping feature matrix and / or the personnel relationship map can be used as the logistics delivery characteristics.
[0121] In the embodiment of the present invention, determining a shopping feature matrix includes:
[0122] Obtain the signing time period and signing item category in each express logistics data;
[0123] Determine a first quantity of logistics delivery data that has the same signing time period and signing item category;
[0124] A shopping feature matrix is determined according to the signing time period, the signing item category and the first quantity.
[0125] In an embodiment of the present invention, according to each logistics delivery data corresponding to each delivery address, that is, according to the logistics delivery data set corresponding to each delivery address, a shopping feature matrix corresponding to the delivery address is constructed. Specifically, the signed-in item category and the signed-in time period in each logistics delivery data in the logistics delivery data set are obtained, and the number of logistics delivery data under the same signed-in time period and the same item category, that is, the total frequency, is counted, so as to form a shopping feature matrix of the delivery address according to the signed-in time period, item category and total frequency, that is, a shopping feature matrix Matrix corresponding to the delivery address yes_i is formed. pi , Matrix pi Each column of the matrix represents the distribution of item categories. pi Each row of the matrix represents the distribution of the time period for signing for the items (which can be the order time). The matrix element in the xth row and yth column reflects the total frequency of signing for the yth category of items in the xth signing time period. The depth of the color can be used to represent the total frequency. The visualized heat map of the shopping feature matrix of a delivery address is as follows: Figure 3 As shown. Traverse all p yes_i and q not_j , get the shopping feature matrix Matrix of each delivery feature pi 、Matrix qi .
[0126] In an embodiment of the present invention, determining a personnel relationship graph includes:
[0127] Obtaining a personnel identification and a communication identification corresponding to the personnel identification in each logistics delivery data;
[0128] Taking each person identification as a vertex; for any person identification, determining a first person identification having the same communication identification as any person identification;
[0129] Connecting the vertices of any person identification with the vertices of the first person identification through edges;
[0130] Determine a second quantity of logistics and delivery data including any personnel identification and the same communication identification, determine a third quantity of logistics and delivery data including the first personnel identification and the same communication identification, and determine a weight of the edge according to the second quantity and the third quantity;
[0131] A connected subgraph is formed according to any personnel identification, the first personnel identification, the same communication identification, the edge and the weight of the edge, and a personnel relationship graph is determined according to the connected subgraph.
[0132] In the embodiment of the present invention, the relationship spectrum of the cohabitants is constructed according to each logistics delivery data corresponding to each delivery address, that is, according to the logistics delivery data corresponding to each delivery address p yes_i All corresponding logistics delivery data constructs the personnel relationship graph corresponding to the delivery address pi Specifically, the personnel identification and communication identification of each logistics delivery data corresponding to each delivery address are obtained, that is, the consignee name and the consignee mobile phone number are obtained, and then multiple consignee names and the consignee mobile phone numbers corresponding to each consignee name are obtained. Take each personnel identifier as a vertex, that is, take each consignee's name as a vertex, determine the first personnel identifier with the same communication identifier as each arbitrary personnel identifier, and connect the vertex of the arbitrary personnel identifier with the vertex of the first personnel identifier with an edge, that is, if the consignee name A and the consignee name B share the same mobile phone number C, then connect vertex A and vertex B with an edge, and then determine the second number of logistics and delivery data containing the consignee name A and mobile phone number C, determine the third number of logistics and delivery data containing the consignee name B and the mobile phone number C, and use the smaller of the second number and the third number as the weight of the edge, that is, the frequency of the consignee name A and the consignee name B sharing the mobile phone number C as the weight of the edge, so as to obtain a connected subgraph according to each consignee name, the shared mobile phone number, the edge and the weight of the edge, and form a personnel relationship map according to each connected subgraph, that is, form the following Figure 4 Graph of personnel relationships corresponding to the address yes_i pi, the number of vertices in the personnel relationship graph is the number of personnel under the mailing address, and the number of connected subgraphs is the number of closely related groups under the mailing address, such as Figure 4 There are 3 connected subgraphs in it. Traverse all p yes_i and q not_i , get the corresponding personnel relationship graph pi 、Graph qi , and then obtain the personnel relationship map corresponding to each delivery address.
[0133] In the embodiment of the present invention, according to the logistics delivery features and labels corresponding to each delivery address, a group rental housing recognition model is trained, including:
[0134] Use convolutional neural networks to extract high-dimensional features from the shopping feature matrix, and use graph neural networks to extract personnel relationship features from the personnel relationship graph;
[0135] The high-dimensional features and personnel relationship features are integrated to obtain the rental features corresponding to the logistics delivery data;
[0136] The rental features and labels corresponding to each logistics delivery data are input into the classifier, and the classifier is trained to obtain a group rental recognition model.
[0137] In an embodiment of the present invention, a convolutional neural network is used to extract local and global high-dimensional features from a shopping feature matrix. Specifically, the convolutional layer and the pooling layer in the convolutional neural network are used to extract high-dimensional features to mine the shopping habits of people at each delivery address. The convolutional neural network can be two or more layers. A graph neural network is used to extract fine-grained personnel relationship features from the personnel relationship graph to mine features such as the number of people and personnel relationships at the same delivery address. Then, the high-dimensional features and the personnel relationship features are fused, such as concatenating the high-dimensional features and the personnel relationship features to obtain rental features, and then the rental features are associated with the corresponding labels through a fully connected layer (MLP), and the rental features and the corresponding labels are input into a classifier, and the classifier is trained using a soft-max algorithm to obtain a group rental recognition model.
[0138] Figure 5The present invention is a flowchart of a method for training a group rental housing recognition model according to an embodiment of the present invention. According to the preset time in the preset area, multiple logistics delivery data are obtained from the logistics system, and the logistics delivery data include the delivery address; multiple group rental housing record data are obtained from the group rental housing public platform, and the group rental housing record data include the record address; the delivery address and the record address are respectively standardized to obtain the standard delivery address and the standard record address; then the logistics delivery data are pre-processed, and all standard delivery addresses are traversed. If a standard delivery address contains non-residential words, the logistics delivery data corresponding to the standard delivery address is deleted from the multiple logistics delivery data to obtain the pre-processed logistics delivery data set; then, each logistics delivery data is grouped according to the standard delivery address; the logistics delivery data with a unified standard delivery address are grouped; then, address matching is performed based on AOI location, and the standard delivery address and the standard record address are respectively segmented to obtain the delivery prefix address and the delivery suffix address, the standard prefix address and the standard suffix address, and the delivery prefix address and the delivery suffix address are GeoCoding parsed and converted into longitude and latitude coordinates. If If the delivery prefix address and the delivery suffix address fall within the same AOI area and the text of the delivery suffix address and the record suffix address are the same, then the standard delivery address and the standard record address are a successfully matched address pair, then a matching flag is added to the successfully matched standard delivery address and the flag position is set to 1, and a matching flag is added to the standard record address that fails to match any standard record address and the flag is set to 0; then training data is acquired, all standard delivery addresses with a matching flag of 1 are screened out, and the logistics delivery data corresponding to the standard delivery address is used as the training data labeled as group rental housing, and k standard delivery addresses are randomly collected from the standard delivery addresses with a matching flag of 0, and the logistics delivery data corresponding to the k standard delivery addresses are used as the training data labeled as non-group; then a shopping feature matrix is constructed according to the logistics delivery data corresponding to each standard delivery address, that is, the item attribute-order time feature matrix is constructed, and a relationship map of co-residents is constructed; then the offline model is trained according to the shopping feature matrix and the relationship map of co-residents to obtain a group rental housing recognition model. Figure 6 This is a structural schematic diagram of a group rental housing identification model according to an embodiment of the present invention. The shopping feature matrix and the relationship map of co-residents are input into the offline model, and the local and global features are extracted from the shopping feature matrix using a convolutional neural network (CNN). The personnel relationship features are extracted from the personnel relationship map using a graph neural network (GNN), and then the features of the two networks are fused, and then passed through a fully connected layer (MLP), and then connected to a classifier. The offline model is trained using a back-propagation mechanism, and the trained group rental housing identification model is deployed online.
[0139] According to another aspect of the embodiment of the present invention, Figure 7As shown, a method for identifying a shared rental house is provided, comprising:
[0140] Step S701: obtaining a logistics delivery address to be identified and each target logistics delivery data corresponding to the logistics delivery address to be identified;
[0141] Step S702: determining the target delivery characteristics corresponding to the logistics delivery address to be identified according to each target logistics delivery data;
[0142] Step S703: input the target delivery feature into the group rental housing recognition model to determine the group rental housing recognition result of the logistics delivery address to be identified;
[0143] The group rental housing recognition model is obtained according to the group rental housing recognition model training method of an embodiment of the present invention.
[0144] In an embodiment of the present invention, the group rental housing recognition model obtained through training can be used to identify the logistics delivery address to be identified, so as to obtain a determination result of whether the logistics delivery address to be identified is a group rental housing. Specifically, each target logistics delivery data corresponding to the logistics delivery address to be identified is used, and then the target delivery features corresponding to the logistics delivery address to be identified are determined according to each target logistics delivery data. The target delivery features may include a target shopping feature matrix and / or a target personnel relationship map, and then the target delivery features are input into the group rental housing recognition model to obtain a group rental housing recognition result, such as a group rental housing recognition result, so as to determine whether the logistics delivery address to be identified is a group rental housing according to the group rental housing recognition result.
[0145] In an embodiment of the present invention, target delivery features corresponding to the logistics delivery address to be identified are determined based on each target logistics delivery data, including: determining a target shopping feature matrix and a target personnel relationship map based on each target logistics delivery data; and using the target shopping feature matrix and the target personnel relationship map as target delivery features.
[0146] In an embodiment of the present invention, the target shopping feature matrix and the target personnel relationship map can be constructed by using each target logistics delivery data, so that the target shopping feature matrix and / or the target personnel relationship map can be used as target delivery features.
[0147] In an embodiment of the present invention, determining a target shopping feature matrix includes: obtaining the target receipt item type and target receipt time period in each target logistics delivery data; determining a first target quantity of target delivery logistics data that is the same as the target receipt time period and target receipt item category; and determining the target shopping feature matrix based on the target receipt time period, target receipt item category and the first target quantity.
[0148] In an embodiment of the present invention, by obtaining the target receipt item category and target receipt time period in each target logistics delivery address, the number of target logistics delivery data under the same target receipt time period and the same target item category, that is, the total frequency, is counted, thereby forming a shopping feature matrix of the logistics delivery address to be identified according to the target receipt time period, target item category and total frequency, that is, a visual heat map.
[0149] In an embodiment of the present invention, determining a target personnel relationship graph includes: obtaining a target personnel identifier and a target communication identifier corresponding to the target personnel identifier in each target logistics delivery data; taking each target personnel identifier as a vertex; for any target personnel identifier, determining a second personnel identifier having the same target communication identifier as any target personnel identifier; connecting the vertex of any target personnel identifier with the vertex of the second personnel identifier through a target edge; determining a second target quantity of target logistics delivery data including any target personnel identifier and the same target communication identifier, determining a third target quantity of target logistics delivery data including the second personnel identifier and the same target communication identifier, and determining a weight of the target edge according to the second target quantity and the third target quantity; constructing a target connectivity subgraph according to any target personnel identifier, the second personnel identifier, the same target communication identifier, the target edge, and the weight of the target edge, and determining a target personnel relationship graph according to the target connectivity subgraph.
[0150] In an embodiment of the present invention, a relationship spectrum of cohabiting persons is constructed based on each target logistics delivery data corresponding to the logistics delivery address to be identified. Specifically, the target person identification and target communication identification of each target logistics delivery data, that is, the consignee name and consignee mobile phone number are obtained, and then multiple consignee names and consignee mobile phone numbers corresponding to each consignee name are obtained. Take each target person identifier as a vertex, that is, take each consignee name as a vertex, determine the second person identifier with the same target communication identifier as each arbitrary target person identifier, connect the vertex of the arbitrary target person identifier with the vertex of the second person identifier with an edge, that is, if the consignee name A and the consignee name B share a mobile phone number C, then connect vertex A and vertex B with an edge, and then determine the second target quantity of target logistics delivery data containing consignee name A and mobile phone number C, determine the third target quantity of target logistics delivery data containing consignee name B and mobile phone number C, and use the smaller of the second target quantity and the third target quantity as the weight of the edge, that is, use the frequency of consignee name A and consignee name B sharing mobile phone number C as the weight of the edge, so as to obtain the target connected subgraph according to each consignee name, shared mobile phone number, edge and edge weight, and form a target personnel relationship map according to each target connected subgraph.
[0151] In an embodiment of the present invention, the identification result of a shared rental house for a logistics delivery address to be identified is determined, including: extracting target high-dimensional features from a target shopping feature matrix using a convolutional neural network; extracting target personnel relationship features from a target personnel relationship map using a graph neural network; fusing the target high-dimensional features and the target personnel relationship features to obtain target features; and inputting the target features into a classifier to determine the identification result of the shared rental house.
[0152] In an embodiment of the present invention, after obtaining the target delivery feature, the target delivery feature is input into the group rental housing recognition model to obtain the group rental housing recognition result. Specifically, a convolutional neural network is used to extract local and global target high-dimensional features from the target shopping feature matrix. Specifically, the convolutional layer and pooling layer in the convolutional neural network are used to extract the target high-dimensional features. The convolutional neural network can be two or more layers; a graph neural network is used to extract fine-grained target personnel relationship features from the target personnel relationship graph, and then the target high-dimensional features and the target personnel relationship features are feature fused to obtain the target features. The target features are input into the classifier through the fully connected layer, and the classifier is used to determine the group rental housing recognition result of the logistics delivery address to be identified.
[0153] The method for identifying shared housing provided in an embodiment of the present invention obtains multiple logistics delivery data and multiple shared housing record data within a preset area and a preset time, matches the delivery address with the record address, and determines the label of each delivery address according to the matching result; determines the logistics delivery features corresponding to each delivery address; and then trains a shared housing recognition model through the logistics delivery features and the corresponding labels. The method matches the addresses of logistics delivery data and group rental record data, determines the real label of the delivery address by using the group rental record data, performs supervised model training, and improves the accuracy of the model; the method matches the delivery address and the record address based on AOI placement and precise text matching, thereby improving the accuracy of address matching; the shopping feature matrix is constructed by using the receipt time period and item category in each logistics delivery data corresponding to the delivery address, and the personnel relationship map is constructed by using the personnel identification and communication identification in each logistics delivery data corresponding to the delivery address, and the logistics delivery features are obtained according to the shopping feature matrix and the personnel relationship map, and then the convolutional neural network is used to extract high-dimensional features from the shopping feature matrix, and the graph neural network is used to extract personnel relationship features from the personnel relationship map, so that the rental features obtained by fusion can be comprehensive, and the recognition accuracy of the group rental recognition model obtained is higher. The group rental recognition method based on the group rental recognition model can intelligently recognize group rental houses and improve the efficiency and accuracy of group rental recognition.
[0154] According to another aspect of the embodiment of the present invention, Figure 8As shown, a training device 800 for a shared housing recognition model is provided, comprising:
[0155] The first acquisition module 801 acquires a plurality of logistics delivery data and a plurality of group rental housing record data within a preset area and a preset time; each logistics delivery data includes a delivery address; each group rental housing record data includes a record address of the group rental housing;
[0156] A matching module 802 matches the delivery address with the record address to determine a matching result for each delivery address;
[0157] The first determination module 803 determines a label corresponding to each delivery address according to the matching result of the delivery address; the label indicates group renting or non-group renting;
[0158] The second determination module 804 determines the logistics delivery characteristics corresponding to each delivery address according to each logistics delivery data corresponding to each delivery address;
[0159] The training module 805 trains a group rental housing recognition model based on the logistics delivery features and labels corresponding to each delivery address.
[0160] In the embodiment of the present invention, the matching module 802 is further used to: standardize the delivery address and the record address respectively to determine the standard delivery address and the standard record address; match the standard delivery address and the standard record address to determine the matching result of each standard delivery address, and use the matching result of the standard delivery address as the matching result of the delivery address.
[0161] In an embodiment of the present invention, both the standard delivery address and the standard record address include an address level label, and the matching module 802 is further used to: determine the delivery prefix address and the delivery suffix address corresponding to the standard delivery address according to the address level label, and determine the record prefix address and the record suffix address corresponding to the standard record address; determine whether the delivery prefix address and the record prefix address are within a preset geographical range; if the delivery prefix address and the record prefix address are within the preset geographical range, determine whether the delivery suffix address and the record suffix address are the same; if the delivery suffix address and the record suffix address are the same, determine that the matching result of the standard delivery address is a result indicating a successful match with the standard record address.
[0162] In the embodiment of the present invention, the second determination module 804 is further used to: determine the shopping feature matrix and the personnel relationship map according to various logistics and delivery data; and use the shopping feature matrix and the personnel relationship map as logistics and delivery features.
[0163] In an embodiment of the present invention, the second determination module 804 is further used to: obtain the signing time period and the signing item category in each logistics delivery data; determine the first quantity of logistics delivery data with the same signing time period and signing item category; determine the shopping feature matrix based on the signing time period, signing item category and the first quantity.
[0164] In an embodiment of the present invention, the second determination module 804 is further used to: obtain the personnel identification and the communication identification corresponding to the personnel identification in each logistics and delivery data; take each personnel identification as a vertex; for any personnel identification, determine the first personnel identification having the same communication identification as any personnel identification; connect the vertex of any personnel identification with the vertex of the first personnel identification through an edge; determine the second number of logistics and delivery data including any personnel identification and the same communication identification, determine the third number of logistics and delivery data including the first personnel identification and the same communication identification, and determine the weight of the edge according to the second number and the third number; construct a connected subgraph according to any personnel identification, the first personnel identification, the same communication identification, the edge and the weight of the edge, and determine the personnel relationship map according to the connected subgraph.
[0165] In an embodiment of the present invention, the training module 805 is further used to: extract high-dimensional features from the shopping feature matrix using a convolutional neural network, and extract personnel relationship features from the personnel relationship graph using a graph neural network; fuse the high-dimensional features and the personnel relationship features to obtain rental features corresponding to the delivery address; input the rental features and labels corresponding to each delivery address into a classifier, train the classifier, and obtain a group rental recognition model.
[0166] According to another aspect of an embodiment of the present invention, a device for identifying a shared rental house is provided, comprising:
[0167] The second acquisition module acquires the logistics delivery address to be identified and each target logistics delivery data corresponding to the logistics delivery address to be identified;
[0168] The third determination module determines the target delivery characteristics corresponding to the logistics delivery address to be identified according to each target logistics delivery data;
[0169] The recognition module inputs the target delivery features into the group rental housing recognition model to determine the group rental housing recognition result of the logistics delivery address to be identified;
[0170] The group rental housing recognition model is obtained according to the group rental housing recognition model training method of an embodiment of the present invention.
[0171] In an embodiment of the present invention, the third determination module is further used to: determine the target shopping feature matrix and the target personnel relationship map based on each target logistics delivery data; and use the target shopping feature matrix and the target personnel relationship map as target delivery features.
[0172] In an embodiment of the present invention, the third determination module is further used to: obtain the target receipt item type and target receipt time period in each target logistics delivery data; determine the first target quantity of the target delivery logistics data that is the same as the target receipt time period and target receipt item category; determine the target shopping feature matrix based on the target receipt time period, target receipt item category and the first target quantity.
[0173] In an embodiment of the present invention, the third determination module is further used to: obtain the target personnel identifier and the target communication identifier corresponding to the target personnel identifier in each target logistics delivery data; take each target personnel identifier as a vertex; for any target personnel identifier, determine a second personnel identifier having the same target communication identifier as any target personnel identifier; connect the vertex of any target personnel identifier with the vertex of the second personnel identifier through a target edge; determine the second target quantity of target logistics delivery data including any target personnel identifier and the same target communication identifier, determine the third target quantity of target logistics delivery data including the second personnel identifier and the same target communication identifier, and determine the weight of the target edge according to the second target quantity and the third target quantity; construct a target connectivity subgraph according to any target personnel identifier, the second personnel identifier, the same target communication identifier, the target edge and the weight of the target edge, and determine the target personnel relationship graph according to the target connectivity subgraph.
[0174] In an embodiment of the present invention, the recognition module is further used to: extract target high-dimensional features from the target shopping feature matrix using a convolutional neural network; extract target personnel relationship features from the target personnel relationship map using a graph neural network; perform feature fusion on the target high-dimensional features and the target personnel relationship features to obtain target features; input the target features into a classifier to determine the group rental recognition result.
[0175] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the training method of the group rental housing identification model or the group rental housing identification method provided by the present invention.
[0176] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the training method of the group rental housing identification model or the group rental housing identification method provided by the present invention is implemented.
[0177] Fig. 9 An exemplary system architecture 900 is shown to which a method for training a group rental housing identification model or a device for training a group rental housing identification model, a method for group rental housing identification or a device for group rental housing identification according to an embodiment of the present invention may be applied.
[0178] like Fig. 9 As shown, system architecture 900 may include terminal devices 901, 902, 903, network 904 and server 905. Network 904 is used to provide a medium for communication links between terminal devices 901, 902, 903 and server 905. Network 904 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0179] Users can use terminal devices 901, 902, 903 to interact with server 905 through network 904 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 901, 902, 903, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0180] The terminal devices 901 , 902 , and 903 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0181] The server 905 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 901, 902, and 903. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0182] It should be noted that the training method of the group rental housing recognition model or the group rental housing recognition method provided in the embodiments of the present invention is generally executed by the server 905. Accordingly, the training device of the group rental housing recognition model or the group rental housing recognition device is generally set in the server 905.
[0183] It should be understood that Fig. 9 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0184] Reference below Fig.10 , which shows a schematic diagram of the structure of a computer system 1000 of a terminal device suitable for implementing an embodiment of the present invention. Fig.10 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0185] like Fig.10 As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0186] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0187] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the above-mentioned functions defined in the system of the present invention are executed.
[0188] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0189] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of 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 a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession 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 a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0190] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be provided in a processor. For example, they may be described as follows: a processor includes a first acquisition module, a matching module, a first determination module, a second determination module, and a training module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the first acquisition module may also be described as a "module for acquiring multiple logistics delivery data and multiple group rental record data within a preset area and a preset time."
[0191] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: obtaining multiple logistics delivery data and multiple group rental record data within a preset area and a preset time; each logistics delivery data includes a delivery address; each group rental record data includes a record address of the group rental house; matching the delivery address with the record address to determine the matching result of each delivery address; determining a label corresponding to the delivery address based on the matching result of each delivery address; the label indicates group rental or non-group rental; determining the logistics delivery features corresponding to each delivery address based on the various logistics delivery data corresponding to each delivery address; training a group rental house recognition model based on the logistics delivery features and labels corresponding to each delivery address.
[0192] According to the technical solution of the embodiments of the present invention, the method for identifying shared housing provided by the embodiments of the present invention obtains multiple logistics delivery data and multiple shared housing record data within a preset area and a preset time, matches the delivery address with the record address, and determines the label of each delivery address according to the matching result; determines the logistics delivery features corresponding to each delivery address; and then trains a shared housing recognition model through the logistics delivery features and the corresponding labels. The method matches the addresses of logistics delivery data and group rental record data, determines the real label of the delivery address by using the group rental record data, performs supervised model training, and improves the accuracy of the model; the method matches the delivery address and the record address based on AOI placement and precise text matching, thereby improving the accuracy of address matching; the shopping feature matrix is constructed by using the receipt time period and item category in each logistics delivery data corresponding to the delivery address, and the personnel relationship map is constructed by using the personnel identification and communication identification in each logistics delivery data corresponding to the delivery address, and the logistics delivery features are obtained according to the shopping feature matrix and the personnel relationship map, and then the convolutional neural network is used to extract high-dimensional features from the shopping feature matrix, and the graph neural network is used to extract personnel relationship features from the personnel relationship map, so that the rental features obtained by fusion can be comprehensive, and the recognition accuracy of the group rental recognition model obtained is higher. The group rental recognition method based on the group rental recognition model can intelligently recognize group rental houses and improve the efficiency and accuracy of group rental recognition.
[0193] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A training method for a group rental housing recognition model, characterized in that: include: Obtain multiple logistics delivery data and multiple group rental record data within a preset area and a preset time; Each of the logistics delivery data includes a delivery address; each of the shared rental house record data includes a recorded address of the shared rental house; Matching the delivery address with the record address to determine a matching result for each delivery address; Determine a label corresponding to each delivery address according to the matching result of each delivery address; The label indicates group renting or non-group renting; Determine the logistics delivery characteristics corresponding to each of the delivery addresses according to the logistics delivery data corresponding to each of the delivery addresses; A group rental housing recognition model is trained based on the logistics delivery features and labels corresponding to each of the delivery addresses.
2. The method according to claim 1, characterized in that Determine the matching result of each of the delivery addresses, including: Standardizing the delivery address and the record address respectively to determine a standard delivery address and a standard record address; The standard delivery address and the standard record address are matched to determine the matching result of each standard delivery address, and the matching result of the standard delivery address is used as the matching result of the delivery address.
3. The training method according to claim 2, characterized in that: The standard delivery address and the standard record address both include address level tags, and determining a matching result for each of the standard delivery addresses includes: Determine, according to the address level label, a delivery prefix address and a delivery suffix address corresponding to the standard delivery address, and determine a record prefix address and a record suffix address corresponding to the standard record address; Determining whether the delivery prefix address and the record prefix address are within a preset geographical range; In the case where the delivery prefix address and the record prefix address are within a preset geographical range, determining whether the delivery suffix address and the record suffix address are the same; In the case where the delivery suffix address and the record suffix address are identical, the matching result of the standard delivery address is determined to be a result indicating successful matching with the standard record address.
4. The training method according to claim 1, characterized in that: Determining the logistics delivery characteristics corresponding to each of the delivery addresses, including: Determine a shopping feature matrix and a personnel relationship map based on the various logistics delivery data; The shopping feature matrix and the personnel relationship map are used as the logistics delivery features.
5. The training method according to claim 4, characterized in that: Determine the shopping feature matrix, including: Obtaining the signing time period and the signing item category in each of the logistics delivery data; Determine a first quantity of logistics delivery data that is the same as the signing time period and the signing item category; The shopping feature matrix is determined according to the signing time period, the signing item category and the first quantity.
6. The training method according to claim 4, characterized in that: Determine the personnel relationship map, including: Obtaining a personnel identifier in each of the logistics delivery data and a communication identifier corresponding to the personnel identifier; Taking each personnel identification as a vertex; for any personnel identification, determining a first personnel identification having the same communication identification as the any personnel identification; Connecting the vertices of any one of the personnel identifiers with the vertices of the first personnel identifier through edges; Determine a second quantity of logistics and delivery data including any one of the personnel identifiers and the same communication identifier, determine a third quantity of logistics and delivery data including the first personnel identifier and the same communication identifier, and determine a weight of the edge according to the second quantity and the third quantity; A connected subgraph is formed according to any one of the personnel identifiers, the first personnel identifier, the same communication identifier, the edges, and the weights of the edges, and the personnel relationship graph is determined according to the connected subgraph.
7. The training method according to claim 4, characterized in that: According to the logistics delivery features and labels corresponding to each delivery address, a group rental housing recognition model is trained, including: Using a convolutional neural network to extract high-dimensional features from the shopping feature matrix, and using a graph neural network to extract personnel relationship features from the personnel relationship graph; Fusing the high-dimensional features with the personnel relationship features to obtain rental features corresponding to the delivery address; The rental features and labels corresponding to each of the delivery addresses are input into a classifier, and the classifier is trained to obtain the group rental housing recognition model.
8. A method for identifying shared housing, characterized in that: include: Obtaining a logistics delivery address to be identified and each target logistics delivery data corresponding to the logistics delivery address to be identified; Determine the target delivery characteristics corresponding to the logistics delivery address to be identified according to the target logistics delivery data; Inputting the target delivery feature into the group-rented house identification model to determine the group-rented house identification result of the logistics delivery address to be identified; Wherein, the group rental housing recognition model is obtained according to any one of the training methods described in claims 1 to 7.
9. The method according to claim 8, characterized in that Determining the target delivery characteristics corresponding to the logistics delivery address to be identified includes: Determine a target shopping feature matrix and a target personnel relationship map based on the target logistics delivery data; The target shopping feature matrix and the target personnel relationship map are used as the target delivery features.
10. The method according to claim 9, characterized in that Determine the target shopping feature matrix, including: Obtain the target receipt item type and target receipt time period in each of the target logistics delivery data; Determine a first target quantity of target delivery logistics data that is the same as the target receipt time period and the target receipt item category; The target shopping feature matrix is determined according to the target signing time period, the target signing item category and the first target quantity.
11. The method according to claim 9, characterized in that Determining the target personnel relationship map includes: Obtaining a target person identification and a target communication identification corresponding to the target person identification in each of the target logistics delivery data; Taking each target person identification as a vertex; for any target person identification, determining a second person identification having the same target communication identification as the any target person identification; Connecting the vertex of any target person identification with the vertex of the second person identification through a target edge; Determine a second target quantity of target logistics delivery data including any target person identifier and the same target communication identifier, determine a third target quantity of target logistics delivery data including the second person identifier and the same target communication identifier, and determine a weight of the target edge according to the second target quantity and the third target quantity; A target connected subgraph is formed according to any one of the target person identifiers, the second person identifier, the same target communication identifier, the target edge, and the weight of the target edge, and the target person relationship graph is determined according to the target connected subgraph.
12. The method according to claim 9, characterized in that Determining the group rental housing identification result of the logistics delivery address to be identified includes: Extracting target high-dimensional features from the target shopping feature matrix using the convolutional neural network; Extracting target personnel relationship features from the target personnel relationship graph using the graph neural network; Fusing the target high-dimensional features with the target personnel relationship features to obtain target features; The target feature is input into the classifier to determine the group rental housing identification result.
13. A training device for a group rental housing recognition model, characterized in that: include: The first acquisition module acquires a plurality of logistics delivery data and a plurality of group rental record data within a preset area and a preset time; Each of the logistics delivery data includes a delivery address; each of the shared rental house record data includes a recorded address of the shared rental house; A matching module, matching the delivery address with the record address, and determining a matching result for each delivery address; A first determination module determines a label corresponding to each delivery address according to a matching result of the delivery address; The label indicates group renting or non-group renting; A second determination module determines the logistics delivery characteristics corresponding to each of the delivery addresses according to the logistics delivery data corresponding to each of the delivery addresses; The training module trains the group rental housing recognition model according to the logistics delivery features and labels corresponding to each of the delivery addresses.
14. A device for identifying shared housing, characterized in that: include: A second acquisition module is used to acquire the logistics delivery address to be identified and each target logistics delivery data corresponding to the logistics delivery address to be identified; A third determination module determines the target delivery feature corresponding to the logistics delivery address to be identified according to the target logistics delivery data; The identification module inputs the target delivery feature into the group-rented house identification model to determine the group-rented house identification result of the logistics delivery address to be identified; Wherein, the group rental housing recognition model is obtained according to any one of the training methods described in claims 1 to 7.
15. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 12.
16. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.
