Social relationship mining methods, devices, storage media, and computer equipment

By obtaining and analyzing WiFi device connection information in location data, identifying its characteristics and determining social relationships, it solves the problem of location data resources not being effectively utilized and improves the usage rate and application value of data.

CN110377846BActive Publication Date: 2024-10-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910676119.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-25
Publication Date
2024-10-18
Estimated Expiration
2040-04-08

AI Technical Summary

Technical Problem

In the existing technology, location data resources are not effectively used, resulting in low location data usage and waste of location data resources.

Method used

By obtaining the connection information of the WiFi device to be identified in the location data, counting its characteristics, obtaining the category information, and determining the social relationship of the connected user corresponding to the WiFi device based on the category information, the effective use of location data is achieved.

Benefits of technology

It improves the usage of location data and provides personalized recommendations by identifying the business scenarios of WiFi devices and connecting users’ social relationships, thus increasing the application value of the data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110377846B_ABST
    Figure CN110377846B_ABST
Patent Text Reader

Abstract

The present application relates to a social relationship mining method, device, storage medium and computer equipment, the method comprising: obtaining connection information of a to-be-identified WiFi device in location data; counting feature quantities of the to-be-identified WiFi device according to the connection information of the to-be-identified WiFi device; obtaining category information of the to-be-identified WiFi device according to the feature quantity of the to-be-identified WiFi device; and determining the social relationship of a connected user corresponding to the to-be-identified WiFi device according to the category information of the to-be-identified WiFi device. The solution provided by the present application can realize the determination of the social relationship of a connected user corresponding to the to-be-identified WiFi device. Since most location data will include the connection information of the WiFi device, the location data can be effectively utilized in this way, thereby improving the utilization rate of the location data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a social relationship mining method, apparatus, storage medium and computer equipment. Background Art

[0002] With the development of computer technology, social relationship mining technology has emerged. Social relationship mining technology is a hot research area in the era of Internet big data. According to the different basic data, social relationship mining technology can be roughly divided into three categories: mining based on social network data, mining based on user entity behavior data, and mining based on location data. Among them, the most widely used mining based on location data is point of interest data, that is, to create a character portrait of the user based on the information of various points of interest visited by the user, so as to mine the user's various preferences.

[0003] However, in actual applications, only a small part of the location data can be matched with points of interest, and location data resources are not effectively used, resulting in low utilization of location data resources and a waste of location data resources. Summary of the invention

[0004] Based on this, it is necessary to provide a social relationship mining method, device, storage medium and computer equipment to address the technical problem of wasting location data resources.

[0005] A social relationship mining method, comprising:

[0006] Obtain connection information of the WiFi device to be identified in the location data;

[0007] According to the connection information of the WiFi device to be identified, the feature quantity of the WiFi device to be identified is counted;

[0008] According to the characteristic quantity of the WiFi device to be identified, the category information of the WiFi device to be identified is obtained;

[0009] According to the category information of the WiFi device to be identified, the social relationship of the connected user corresponding to the WiFi device to be identified is determined.

[0010] A social relationship mining device, comprising:

[0011] An acquisition module, used to acquire connection information of a to-be-identified WiFi device in the location data;

[0012] A statistical module, used for counting the characteristic quantities of the WiFi devices to be identified according to the connection information of the WiFi devices to be identified;

[0013] An identification module, used to obtain category information of the WiFi device to be identified according to the feature quantity of the WiFi device to be identified;

[0014] The processing module is used to determine the social relationship of the connected user corresponding to the WiFi device to be identified according to the category information of the WiFi device to be identified.

[0015] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0016] Obtain connection information of the WiFi device to be identified in the location data;

[0017] According to the connection information of the WiFi device to be identified, the feature quantity of the WiFi device to be identified is counted;

[0018] According to the characteristic quantity of the WiFi device to be identified, the category information of the WiFi device to be identified is obtained;

[0019] According to the category information of the WiFi device to be identified, the social relationship of the connected user corresponding to the WiFi device to be identified is determined.

[0020] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the following steps are implemented:

[0021] Obtain connection information of the WiFi device to be identified in the location data;

[0022] According to the connection information of the WiFi device to be identified, the feature quantity of the WiFi device to be identified is counted;

[0023] According to the characteristic quantity of the WiFi device to be identified, the category information of the WiFi device to be identified is obtained;

[0024] According to the category information of the WiFi device to be identified, the social relationship of the connected user corresponding to the WiFi device to be identified is determined.

[0025] The above-mentioned social relationship mining method, device, storage medium and computer equipment count the characteristic quantity of the WiFi device to be identified according to the connection information of the WiFi device to be identified in the location data, obtain the category information of the WiFi device to be identified according to the characteristic quantity of the WiFi device to be identified, and determine the social relationship of the connected user corresponding to the WiFi device to be identified according to the category information of the WiFi device to be identified. In the whole process, the connection information of the WiFi device to be identified in the location data is used to determine the social relationship of the connected user corresponding to the WiFi device to be identified. Since most of the location data will include the connection information of the WiFi device, the location data can be effectively used in this way, and the utilization rate of the location data is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 An application environment diagram of a social relationship mining method in an embodiment;

[0027] Figure 2 A schematic diagram of a process of social relationship mining method in one embodiment;

[0028] Figure 3 In one embodiment Figure 2 Schematic diagram of the sub-process of step S206;

[0029] Figure 4 In one embodiment Figure 3 Schematic diagram of the sub-process of step S308;

[0030] Figure 5 A schematic diagram of a flow chart of a social relationship mining method in another embodiment;

[0031] Figure 6 A schematic diagram of a flow chart of a social relationship mining method in yet another embodiment;

[0032] Figure 7 is a structural block diagram of a social relationship mining device in one embodiment;

[0033] Figure 8 FIG. 4 is a structural block diagram of a computer device in one embodiment. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0035] Figure 1 FIG. 1 is an application environment diagram of a social relationship mining method in an embodiment. Figure 1, the social relationship mining method is applied to a social relationship mining system. The social relationship mining system includes a terminal 110 and a server 120. The terminal 110 and the server 120 are connected via a network. Among them, the server 120 obtains the connection information of the WiFi device to be identified in the location data from the terminal 110, counts the feature quantity of the WiFi device to be identified according to the connection information of the WiFi device to be identified, obtains the category information of the WiFi device to be identified according to the feature quantity of the WiFi device to be identified, and determines the social relationship of the connected user corresponding to the WiFi device to be identified according to the category information of the WiFi device to be identified. The terminal 110 refers to a terminal connected to the WiFi device to be identified, which can be a mobile terminal. The mobile terminal can be at least one of a mobile phone, a tablet computer, a laptop computer, etc. When the user using the terminal 110 allows the server to obtain the location data, the server will obtain the location data, including the connection information of the WiFi device to be identified. The server 120 can be implemented as an independent server or a server cluster composed of multiple servers.

[0036] like Figure 2 As shown, in one embodiment, a social relationship mining method is provided. This embodiment mainly applies the method to the above Figure 1 The server 120 in FIG. Figure 2 The social relationship mining method specifically includes the following steps S202 to S208.

[0037] S202: Acquire connection information of the WiFi device to be identified in the location data.

[0038] Among them, location data refers to the de-privatized user location information obtained by analyzing and mining user location service logs. User location service logs refer to the set of user location information obtained by the server when the user allows the server to obtain location information. For example, location data can be a piece of user location information, which includes the connection information of the WiFi device to be identified. The WiFi device to be identified refers to a WiFi device whose category has not yet been determined. The connection information of the WiFi device to be identified refers to the information corresponding to the connection behavior of the WiFi device to be identified. The connection behavior refers to connecting to the WiFi device to be identified. For example, the connection information can specifically be the connection timestamp and the device identifier of the connected user.

[0039] Specifically, the server obtains the location data, performs data cleaning according to the connection information of each WiFi device in the location data, and obtains the connection information of the WiFi device to be identified in the location data. The connection information includes the location information of the WiFi device, and the location information can specifically be longitude and latitude information. The server can perform data cleaning according to the longitude and latitude information. The method of performing data cleaning according to the longitude and latitude information can be that when the difference between multiple longitude and latitude information of the same WiFi device is greater than a threshold, it can be considered that the location of the WiFi device cannot be determined, and thus the WiFi device cannot be identified. For example, when the first longitude and latitude information of the WiFi device is longitude: 116.40, latitude: 39.90, and the second longitude and latitude information of the WiFi device is longitude: 121.47, latitude: 31.23, it can be considered that the difference between the longitude and latitude information of the WiFi device is large, the location of the WiFi device cannot be determined, and the WiFi device cannot be identified.

[0040] S204: Count the characteristic quantities of the WiFi devices to be identified according to the connection information of the WiFi devices to be identified.

[0041] The connection information refers to the information corresponding to the connection behavior of the WiFi device to be identified, and the connection behavior refers to the connection to the WiFi device to be identified. For example, the connection information may specifically be the connection timestamp and the device identifier of the connected user. The characteristic quantity refers to the connection behavior statistic that can be used to characterize the characteristics of the WiFi device to be identified. For example, the characteristic quantity may specifically be the total number of connected terminal devices, the number of connected terminal devices in each preset time period, the number of fluctuations in connected terminal devices, etc.

[0042] Among them, the connection terminal device refers to a terminal device that has established a connection relationship with the WiFi device to be identified within a preset statistical time period. The preset statistical time period can be set as needed. For example, the preset statistical time period can be specifically one month. The preset time period can be set as needed. For example, the preset time period can be specifically divided into daytime working time and evening leisure time. Further, the daytime working time can be from 8 am to 8 pm, and the leisure time can be from 8 pm to 8 am the next day. The fluctuation number of the connection terminal device refers to the statistical data that can be used to characterize the change of the connection of the WiFi device within the preset statistical time period. For example, if the statistical time period is one month, the connection status of the WiFi device every day within one month can be statistically analyzed in units of days, including calculating the average variance and coefficient of variation of the number of connected terminal devices within one month. The coefficient of variation is a dimensionless quantity in statistics, also known as the dispersion coefficient. It is a normalized measure of the degree of dispersion of the probability distribution, which is defined as the ratio of the standard deviation to the mean.

[0043] In one embodiment, according to the connection information of the WiFi device to be identified, counting the characteristic quantity of the WiFi device to be identified includes:

[0044] According to the connection timestamp in the connection information of the WiFi device to be identified and the device identifier of the connected user, the feature quantity of the WiFi device to be identified is counted.

[0045] Among them, the connection timestamp refers to the time point when the connection between the connecting terminal device and the WiFi device to be identified is established. The connecting terminal device refers to the terminal device that has established a connection relationship with the WiFi device to be identified within the preset statistical time period. The preset statistical time period can be set as needed. The connected user refers to the user who has used the terminal device to establish a connection relationship with the WiFi device to be identified within the preset statistical time period, that is, the user who uses the terminal device to connect to the WiFi device to be identified within the preset statistical time period and accesses the Internet through the WiFi hotspot provided by the WiFi device to be identified. The device identifier refers to the identifier of the terminal device connected to the user within the preset statistical time period. For example, the device identifier can specifically be the device ID (Identity document, identity identification number).

[0046] Among them, the characteristic quantity refers to the connection behavior statistics that can be used to characterize the characteristics of the WiFi device to be identified. For example, the characteristic quantity can be the total number of connected terminal devices, the number of connected terminal devices in each preset time period, the number of fluctuations in connected terminal devices, etc. The total number of connected terminal devices can be used to effectively distinguish business scenarios of different scales. For example, for internal WiFi devices deployed by large companies, the number of connected people is often dozens, hundreds or even thousands of people, while for home scenarios, the total number of connected terminal devices is usually small. The number of connected terminal devices in each preset time period can be used to define the connection behavior of WiFi devices in different time periods, thereby distinguishing business scenarios of different connected user activities. For example, for most physical commercial companies, the number of connected terminal devices during daytime working hours will be significantly greater than that at night, while for some home scenarios or leisure and entertainment business scenarios, the number of connected terminal devices during leisure time at night will exceed that during daytime working hours.

[0047] Specifically, the server will count the total number of connected terminal devices based on the device identification of the connected user, count the number of connected terminal devices in each preset time period based on the device identification of the connected user and the connection timestamp, and count the fluctuation number of connected terminal devices based on the preset statistical time period, the device identification of the connected user and the connection timestamp. The fluctuation number of connected terminal devices includes the average variance, coefficient of variation, etc. of the number of connected terminal devices in the preset statistical time period.

[0048] S206, obtaining category information of the WiFi device to be identified according to the feature quantity of the WiFi device to be identified.

[0049] The category information refers to the business scenario category of the WiFi device to be identified, which corresponds to the business scenario of the WiFi device to be identified. For example, the category information may specifically be office WiFi, home WiFi, etc.

[0050] In one embodiment, Figure 3 As shown, obtaining the category information of the to-be-identified WiFi device according to the feature quantity of the to-be-identified WiFi device includes the following steps S302 to S312.

[0051] Step S302, obtaining a feature vector of the WiFi device to be identified according to the feature quantity of the WiFi device to be identified;

[0052] Step S312, inputting the feature vector of the to-be-identified WiFi device into the trained device classification model to obtain the category information of the to-be-identified WiFi device, wherein the trained device classification model is obtained based on preset sample WiFi device data.

[0053] Among them, the feature vector refers to a vector composed of feature quantities, and each component in the feature vector is a statistical value in the feature quantity of the WiFi device to be identified. The device classification model refers to a model for identifying the category of the WiFi device. The feature vector of the WiFi device to be identified is input into the trained device classification model to obtain the category information of the WiFi device to be identified. The category information refers to the business scenario category of the WiFi device to be identified, which corresponds to the business scenario of the WiFi device to be identified. For example, the category information can specifically be office WiFi, home WiFi, etc. The preset sample WiFi device data refers to the connection information of each WiFi device collected in advance as a sample WiFi device. For example, the sample WiFi device data can specifically be the connection information of each WiFi device as a sample WiFi device. The connection information of each WiFi device as a sample WiFi device includes the connection timestamp, the device identification of the connected user, the device identification of each WiFi device, the longitude and latitude information of each WiFi device, etc.

[0054] Specifically, the server uses each statistical value in the feature quantity of the WiFi device to be identified as a component of the feature vector to obtain the feature vector of the WiFi device to be identified. The feature vector of the WiFi device to be identified is input into the trained device classification model to obtain the category information of the WiFi device to be identified.

[0055] In one embodiment, after obtaining the category information of the WiFi device to be identified, the server will update the sample WiFi device data according to the feature vector and category information of the WiFi device to be identified, and use the feature vector and category information of the WiFi device to be identified as sample WiFi device data to iteratively train the device classification model to continuously improve the device classification model.

[0056] In one embodiment, Figure 3 As shown, before inputting the feature vector of the WiFi device to be identified into the trained device classification model to obtain the category information of the WiFi device to be identified, steps S304 to S310 are also included.

[0057] Step S304, according to the preset sample WiFi device data, counting the characteristic quantity of each WiFi device corresponding to the sample WiFi device data;

[0058] Step S306, obtaining a feature vector of each WiFi device according to the feature quantity of each WiFi device;

[0059] Step S308, performing unsupervised learning based on the feature vectors of each WiFi device to obtain target category information of each WiFi device;

[0060] Step S310, obtaining a device classification model according to target category information of each WiFi device.

[0061] Among them, the preset sample WiFi device data refers to the connection information of each WiFi device collected in advance and used as a sample WiFi device. For example, the sample WiFi device data can specifically be the connection information of each WiFi device used as a sample WiFi device, and the connection information of each WiFi device used as a sample WiFi device includes a connection timestamp, a device identifier of a connected user, a device identifier of each WiFi device, and longitude and latitude information of each WiFi device. Each WiFi device corresponding to the sample WiFi device data refers to each WiFi device used as a sample WiFi device. The characteristic quantity of each WiFi device refers to a connection behavior statistic that can be used to characterize the characteristics of each WiFi device. For example, the characteristic quantity of each WiFi device can specifically be the total number of connected terminal devices, the number of connected terminal devices within each preset time period, the number of fluctuations in connected terminal devices, etc. The characteristic vector of each WiFi device refers to a vector composed of the characteristic quantities of each WiFi device, and each component in the characteristic vector of each WiFi device is a statistical value in the characteristic quantity of each WiFi device.

[0062] Among them, unsupervised learning refers to solving various problems in pattern recognition based on training samples of unknown categories (not labeled). In this application, the feature vector of each WiFi device is a training sample of unknown category (not labeled). The target category information of each WiFi device refers to the business scenario category of each WiFi device, corresponding to the business scenario of each WiFi device. For example, the target category information can specifically be office WiFi, home WiFi, etc.

[0063] In one embodiment, Figure 4 As shown, performing unsupervised learning based on the feature vectors of each WiFi device to obtain target category information of each WiFi device includes steps S402 to S408.

[0064] Step S402, performing unsupervised learning on the feature vectors of each WiFi device to obtain an initial classification recognition model and initial category information of each WiFi device;

[0065] Step S404, randomly selecting initial category information of multiple WiFi devices, and verifying the initial classification recognition model according to the initial category information of the selected WiFi devices and sample WiFi device data;

[0066] Step S406, when the verification is passed, the target category information of each WiFi device is obtained according to the initial category information of each WiFi device;

[0067] Step S408, when the verification fails, return to the step of counting the characteristic quantities of each WiFi device corresponding to the sample WiFi device data according to the sample WiFi device data.

[0068] The initial classification recognition model refers to the recognition model obtained after unsupervised learning of the feature vectors of each WiFi device, the initial category information of each WiFi device refers to the category information of each WiFi device obtained after unsupervised learning of the feature vectors of each WiFi device, and the target category information of each WiFi device refers to the category information of each WiFi device after verification.

[0069] Specifically, after performing unsupervised learning on the feature vectors of each WiFi device to obtain the initial classification recognition model and the initial category information of each WiFi device, the server will randomly select the initial category information of multiple WiFi devices to perform data sampling verification on the initial recognition model. Data sampling verification is to verify the initial category information to check whether the initial category information meets the requirements. The initial category information meets the requirements when the business scenario corresponding to the initial category information is the same as the actual application scenario of the WiFi device. For example, when the initial category information is office WiFi and the actual application scenario of the WiFi device is the office scenario, the initial category information can be considered to meet the requirements. When the initial category information is home WiFi and the actual application scenario of the WiFi device is the home scenario, the initial category information can also be considered to meet the requirements.

[0070] Specifically, when the verification is passed, the server will use the initial category information of each WiFi device as the target category information of each WiFi device. When the verification is not passed, the server will return to the step of counting the feature quantity of each WiFi device corresponding to the sample WiFi device data according to the sample WiFi device data, and re-learn the sample WiFi data by re-counting the feature quantity of each WiFi device, selecting other classification and recognition models, etc., and obtain the learned classification and recognition model again, and verify the classification and recognition model until the verification is passed and the target category information of each WiFi device is obtained.

[0071] In one embodiment, randomly selecting initial category information of multiple WiFi devices, and verifying the initial classification recognition model according to the initial category information of the selected WiFi devices and sample WiFi device data includes:

[0072] Determine, according to the initial category information of the selected WiFi device, a first service scenario corresponding to the selected WiFi device;

[0073] Acquire connection information of the selected WiFi device from the sample WiFi device data, and determine a second service scenario according to the connection information;

[0074] When the first business scenario is the same as the second business scenario, the verification passes.

[0075] The first business scenario and the second business scenario refer to application scenarios of the WiFi device. For example, the first business scenario may be an office scenario, a home scenario, etc. The connection information includes the location information of the WiFi device. The specific location information may be longitude and latitude information. The location of the WiFi device may be determined based on the location information, and thus the second business scenario may be determined based on the location of the WiFi device. For example, when the location of the WiFi device is an office building in the city center, the second business scenario may be considered an office scenario. When the location of the WiFi device is a residential area, the second business scenario may be considered a home scenario.

[0076] In one embodiment, the unsupervised learning process is described using the Kmeans clustering algorithm, and the steps include:

[0077] The characteristic vectors of each WiFi device are normalized and calculated as follows:

[0078] x′ i =(x i -x min ) / (x max -x i ), where x min Represents the minimum value of the characteristic component of this column, x max Indicates the maximum value of the characteristic component of this column, x i Represents the characteristic components of this column, x′ i Represents each feature component after normalization;

[0079] Specify the number of clusters K, randomly select K cluster centroids, (c1, c2, …c k )∈R n ;

[0080] For each WiFi feature data x′ i , calculate the distance between it and the centroid, and select the class with the closest distance as its class c i ,

[0081] For each class j (j = 1, 2, ... k), calculate the new centroid of the class to which it belongs. The new centroid is the average value of the feature components of all samples in the class.

[0082] Iterative calculation is performed according to a preset iteration number threshold and a new centroid obtained after each iteration. When the iteration number reaches the iteration number threshold, an initial classification recognition model and initial category information of each WiFi device are obtained.

[0083] The preset iteration number threshold can be set as needed.

[0084] In one embodiment, obtaining a device classification model according to target category information of each WiFi device includes:

[0085] Supervised learning is performed based on the target category information of each WiFi device to obtain a device classification model.

[0086] Among them, supervised learning refers to a method of using samples with known certain characteristics as training sets to establish a mathematical model (such as a discriminant model in pattern recognition, a weight model in artificial neural network method, etc.), and then using the established model to predict unknown samples. In this application, the feature vectors of each WiFi device with known target category information are used as training sets to establish a device classification model, so that the category information of the WiFi device to be identified can be predicted through the device classification model.

[0087] S208: Determine the social relationship of the connected user corresponding to the WiFi device to be identified according to the category information of the WiFi device to be identified.

[0088] The social relationship refers to the association relationship between the connected users corresponding to the WiFi device to be identified. For example, the social relationship may be colleagues, friends, family members, etc.

[0089] Specifically, the server can determine the business scenario corresponding to the WiFi device to be identified based on the category information of the WiFi device to be identified, and then determine the social relationship of the connected user corresponding to the WiFi device to be identified based on the business scenario. For example, when the category information is office WiFi, it can be determined that the corresponding business scenario is an office scenario, and the social relationship of the corresponding connected user may be a colleague. When the category information is leisure WiFi, it can be determined that the corresponding business scenario is a leisure scenario, and the social relationship of the corresponding connected user may be a friend. When the category information is home WiFi, it can be determined that the corresponding business scenario is a home scenario, and the social relationship of the corresponding connected user may be a family member.

[0090] The above social relationship mining method counts the feature quantity of the WiFi device to be identified based on the connection information of the WiFi device to be identified in the location data, obtains the category information of the WiFi device to be identified based on the feature quantity of the WiFi device to be identified, and determines the social relationship of the connected user corresponding to the WiFi device to be identified based on the category information of the WiFi device to be identified. In the whole process, the connection information of the WiFi device to be identified in the location data is used to determine the social relationship of the connected user corresponding to the WiFi device to be identified. Since most of the location data will include the connection information of the WiFi device, the location data can be effectively used in this way, and the utilization rate of the location data is improved.

[0091] In one embodiment, the social relationship mining method further includes:

[0092] According to the social relationship of the connected users corresponding to the WiFi device to be identified, personalized recommendations are made to the connected users.

[0093] Among them, personalized recommendation refers to the recommendation of corresponding business content based on the social relationship of the connected users. Business content recommendation includes venue recommendation, activity recommendation, etc. Venue recommendation refers to the recommendation of venues suitable for the connected users to participate in common activities based on the social relationship of the connected users. Activity recommendation refers to the recommendation of activities suitable for the connected users to participate in common based on the social relationship of the connected users. For example, the venue for common activities can be a restaurant, etc., and the common activities can be team building activities, etc.

[0094] In one embodiment, Figure 5 It is a flowchart of a social relationship mining method in another embodiment.

[0095] The server first obtains the de-privacy, preset sample WiFi device data from the original location big data log, standardizes the sample WiFi device data, performs feature heat map visualization analysis based on the standardized sample WiFi device data, counts the feature quantities of each WiFi device corresponding to the sample WiFi device data, and constructs feature engineering based on the feature quantities of each WiFi device to obtain the feature vector of each WiFi device. Among them, de-privacy refers to filtering the personal information of the connected users in the sample WiFi device data, and feature heat map visualization analysis refers to performing correlation analysis on the sample WiFi device data and making a complete analysis chart, and statistically obtaining the feature quantities of each WiFi device corresponding to the sample WiFi device data. Then, model training is performed based on the feature vectors of each WiFi device, that is, unsupervised learning is performed on the feature vectors of each WiFi device to obtain the initial classification recognition model and the initial category information of each WiFi device. Model evaluation and verification are performed based on the initial classification recognition model and the initial category information of each WiFi device. When the model passes the verification, that is, it meets the business expectations, the target category information of each WiFi device is obtained. When the model fails to pass the verification, that is, it does not meet business expectations, the parameters can be adjusted, and the characteristic quantities of each WiFi device corresponding to the sample WiFi device data can be returned and the steps of visual analysis can be performed based on the characteristic quantities of each WiFi device. The sample WiFi device data can also be adjusted. Then the model is deployed according to the target category information, that is, supervised learning is performed according to the target category information to obtain the device classification model. After obtaining the device classification model, the location scene is distinguished, that is, the category information of the WiFi device to be identified is determined according to the device classification model. Finally, monitoring and debugging are carried out. When the identification is completed, the feature vector and category information of the WiFi device to be identified are used as increments to update the sample WiFi device data.

[0096] In one embodiment, Figure 6 As shown, a most specific embodiment is used to illustrate the social relationship mining method in the present application. The method includes the following steps S602 to S626.

[0097] Step S602: Acquire the connection information of the WiFi device to be identified in the location data.

[0098] Step S604: Count the characteristic quantities of the WiFi device to be identified according to the connection timestamp in the connection information of the WiFi device to be identified and the device identifier of the connected user.

[0099] Step S606: Obtain a feature vector of the WiFi device to be identified according to the feature quantity of the WiFi device to be identified.

[0100] Step S608: According to the preset sample WiFi device data, the characteristic quantity of each WiFi device corresponding to the sample WiFi device data is counted.

[0101] Step S610: obtaining a feature vector of each WiFi device according to the feature quantity of each WiFi device.

[0102] Step S612: performing unsupervised learning on the feature vectors of each WiFi device to obtain an initial classification recognition model and initial category information of each WiFi device.

[0103] Step S614: randomly select initial category information of multiple WiFi devices, and verify the initial classification recognition model according to the initial category information of the selected WiFi devices and the sample WiFi device data.

[0104] Step S616: when the verification is passed, the target category information of each WiFi device is obtained according to the initial category information of each WiFi device.

[0105] Step S618, when the verification fails, return to the step of counting the characteristic quantities of each WiFi device corresponding to the sample WiFi device data based on the sample WiFi device data.

[0106] Step S620: Perform supervised learning based on the target category information of each WiFi device to obtain a device classification model.

[0107] Step S622: Input the feature vector of the WiFi device to be identified into the trained device classification model to obtain the category information of the WiFi device to be identified.

[0108] Step S624: determining the social relationship of the connected user corresponding to the WiFi device to be identified according to the category information of the WiFi device to be identified.

[0109] Step S626: Perform personalized recommendations for the connected users based on the social relationships of the connected users corresponding to the WiFi devices to be identified.

[0110] Figure 6 FIG. 1 is a flow chart of a social relationship mining method in one embodiment. It should be understood that although Figure 6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 6 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0111] like Figure 7 As shown, in one embodiment, a social relationship mining device is provided, which includes an acquisition module 702 , a statistics module 704 , an identification module 706 , and a processing module 708 .

[0112] The acquisition module 702 is used to acquire the connection information of the WiFi device to be identified in the location data.

[0113] Among them, location data refers to the de-privatized user location information obtained by analyzing and mining user location service logs. User location service logs refer to the set of user location information obtained by the server when the user allows the server to obtain location information. For example, location data can be a piece of user location information, which includes the connection information of the WiFi device to be identified. The WiFi device to be identified refers to a WiFi device whose category has not yet been determined. The connection information of the WiFi device to be identified refers to the information corresponding to the connection behavior of the WiFi device to be identified. The connection behavior refers to connecting to the WiFi device to be identified. For example, the connection information can specifically be the connection timestamp and the device identifier of the connected user.

[0114] Specifically, the acquisition module acquires the location data, performs data cleaning according to the connection information of each WiFi device in the location data, and obtains the connection information of the WiFi device to be identified in the location data. The connection information includes the location information of the WiFi device, and the location information can specifically be longitude and latitude information. The server can perform data cleaning according to the longitude and latitude information. The method of performing data cleaning according to the longitude and latitude information can be that when the difference between multiple longitude and latitude information of the same WiFi device is greater than a threshold, it can be considered that the location of the WiFi device cannot be determined, and thus the WiFi device cannot be identified. For example, when the first longitude and latitude information of the WiFi device is longitude: 116.40, latitude: 39.90, and the second longitude and latitude information of the WiFi device is longitude: 121.47, latitude: 31.23, it can be considered that the difference between the longitude and latitude information of the WiFi device is large, the location of the WiFi device cannot be determined, and the WiFi device cannot be identified.

[0115] The statistics module 704 is used to count the characteristic quantities of the WiFi devices to be identified according to the connection information of the WiFi devices to be identified.

[0116] The connection information refers to the information corresponding to the connection behavior of the WiFi device to be identified, and the connection behavior refers to the connection to the WiFi device to be identified. For example, the connection information may specifically be the connection timestamp and the device identifier of the connected user. The characteristic quantity refers to the connection behavior statistic that can be used to characterize the characteristics of the WiFi device to be identified. For example, the characteristic quantity may specifically be the total number of connected terminal devices, the number of connected terminal devices in each preset time period, the number of fluctuations in connected terminal devices, etc.

[0117] Among them, the connection terminal device refers to a terminal device that has established a connection relationship with the WiFi device to be identified within a preset statistical time period. The preset statistical time period can be set as needed. For example, the preset statistical time period can be specifically one month. The preset time period can be set as needed. For example, the preset time period can be specifically divided into daytime working time and evening leisure time. Further, the daytime working time can be from 8 am to 8 pm, and the leisure time can be from 8 pm to 8 am the next day. The fluctuation number of the connection terminal device refers to the statistical data that can be used to characterize the change of the connection of the WiFi device within the preset statistical time period. For example, if the statistical time period is one month, the connection status of the WiFi device every day within one month can be statistically analyzed in units of days, including calculating the average variance and coefficient of variation of the number of connected terminal devices within one month. The coefficient of variation is a dimensionless quantity in statistics, also known as the dispersion coefficient. It is a normalized measure of the degree of dispersion of the probability distribution, which is defined as the ratio of the standard deviation to the mean.

[0118] In one embodiment, the statistical module is further used to count the characteristic quantities of the WiFi device to be identified according to the connection timestamp in the connection information of the WiFi device to be identified and the device identification of the connected user.

[0119] The connection timestamp refers to the time point when the connection between the connected terminal device and the WiFi device to be identified is established. The connected terminal device refers to the terminal device that has established a connection relationship with the WiFi device to be identified within a preset statistical time period. The preset statistical time period can be set as needed. The connected user refers to the user who has used the terminal device to establish a connection relationship with the WiFi device to be identified within the preset statistical time period, that is, the user who uses the terminal device to connect to the WiFi device to be identified within the preset statistical time period and accesses the Internet through the WiFi hotspot provided by the WiFi device to be identified. The device identifier refers to the identifier of the terminal device connected to the user within the preset statistical time period. For example, the device identifier can specifically be a device ID.

[0120] Among them, the characteristic quantity refers to the connection behavior statistics that can be used to characterize the characteristics of the WiFi device to be identified. For example, the characteristic quantity can be the total number of connected terminal devices, the number of connected terminal devices in each preset time period, the number of fluctuations in connected terminal devices, etc. The total number of connected terminal devices can be used to effectively distinguish business scenarios of different scales. For example, for internal WiFi devices deployed by large companies, the number of connected people is often dozens, hundreds or even thousands of people, while for home scenarios, the total number of connected terminal devices is usually small. The number of connected terminal devices in each preset time period can be used to define the connection behavior of WiFi devices in different time periods, thereby distinguishing business scenarios of different connected user activities. For example, for most physical commercial companies, the number of connected terminal devices during daytime working hours will be significantly greater than that at night, while for some home scenarios or leisure and entertainment business scenarios, the number of connected terminal devices during leisure time at night will exceed that during daytime working hours.

[0121] Specifically, the statistical module will count the total number of connected terminal devices based on the device identification of the connected user, count the number of connected terminal devices in each preset time period based on the device identification of the connected user and the connection timestamp, and count the fluctuation number of connected terminal devices based on the preset statistical time period, the device identification of the connected user and the connection timestamp. The fluctuation number of connected terminal devices includes the average variance, coefficient of variation, etc. of the number of connected terminal devices in the preset statistical time period.

[0122] The identification module 706 is used to obtain the category information of the WiFi device to be identified according to the feature quantity of the WiFi device to be identified.

[0123] The category information refers to the business scenario category of the WiFi device to be identified, which corresponds to the business scenario of the WiFi device to be identified. For example, the category information may specifically be office WiFi, home WiFi, etc.

[0124] In one embodiment, the identification module is further used to obtain a feature vector of the WiFi device to be identified based on a feature quantity of the WiFi device to be identified, to count the feature quantities of each WiFi device corresponding to the sample WiFi device data based on preset sample WiFi device data, to obtain a feature vector of each WiFi device based on the feature quantity of each WiFi device, to perform unsupervised learning based on the feature vector of each WiFi device to obtain target category information of each WiFi device, to obtain a device classification model based on the target category information of each WiFi device, to input the feature vector of the WiFi device to be identified into the trained device classification model to obtain category information of the WiFi device to be identified, and the trained device classification model is obtained based on the preset sample WiFi device data.

[0125] Among them, the preset sample WiFi device data refers to the connection information of each WiFi device collected in advance and used as a sample WiFi device. For example, the sample WiFi device data can specifically be the connection information of each WiFi device used as a sample WiFi device, and the connection information of each WiFi device used as a sample WiFi device includes a connection timestamp, a device identifier of a connected user, a device identifier of each WiFi device, and longitude and latitude information of each WiFi device. Each WiFi device corresponding to the sample WiFi device data refers to each WiFi device used as a sample WiFi device. The characteristic quantity of each WiFi device refers to a connection behavior statistic that can be used to characterize the characteristics of each WiFi device. For example, the characteristic quantity of each WiFi device can specifically be the total number of connected terminal devices, the number of connected terminal devices within each preset time period, the number of fluctuations in connected terminal devices, etc. The characteristic vector of each WiFi device refers to a vector composed of the characteristic quantities of each WiFi device, and each component in the characteristic vector of each WiFi device is a statistical value in the characteristic quantity of each WiFi device.

[0126] Among them, unsupervised learning refers to solving various problems in pattern recognition based on training samples of unknown categories (not labeled). In this application, the feature vector of each WiFi device is a training sample of unknown category (not labeled). The target category information of each WiFi device refers to the business scenario category of each WiFi device, corresponding to the business scenario of each WiFi device. For example, the target category information can specifically be office WiFi, home WiFi, etc.

[0127] In one embodiment, the identification module is also used to perform unsupervised learning on the feature vectors of each WiFi device to obtain an initial classification and identification model and initial category information of each WiFi device, randomly select initial category information of multiple WiFi devices, and verify the initial classification and identification model based on the initial category information of the selected WiFi devices and sample WiFi device data. When the verification is successful, the target category information of each WiFi device is obtained based on the initial category information of each WiFi device. When the verification fails, the step of returning to the sample WiFi device data and counting the feature quantities of each WiFi device corresponding to the sample WiFi device data is performed.

[0128] The initial classification recognition model refers to the recognition model obtained after unsupervised learning of the feature vectors of each WiFi device, the initial category information of each WiFi device refers to the category information of each WiFi device obtained after unsupervised learning of the feature vectors of each WiFi device, and the target category information of each WiFi device refers to the category information of each WiFi device after verification.

[0129] Specifically, after unsupervised learning is performed on the feature vectors of each WiFi device to obtain the initial classification recognition model and the initial category information of each WiFi device, the recognition module will randomly select the initial category information of multiple WiFi devices to perform data sampling verification on the initial recognition model. Data sampling verification is to verify the initial category information to check whether the initial category information meets the requirements. The initial category information meets the requirements when the business scenario corresponding to the initial category information is the same as the actual application scenario of the WiFi device. For example, when the initial category information is office WiFi and the actual application scenario of the WiFi device is the office scenario, the initial category information can be considered to meet the requirements. When the initial category information is home WiFi and the actual application scenario of the WiFi device is the home scenario, the initial category information can also be considered to meet the requirements.

[0130] Specifically, when the verification is passed, the identification module will use the initial category information of each WiFi device as the target category information of each WiFi device. When the verification is not passed, the identification module will return to the step of counting the feature quantity of each WiFi device corresponding to the sample WiFi device data according to the sample WiFi device data, and re-learn the sample WiFi data by re-counting the feature quantity of each WiFi device, selecting other classification and recognition models, etc., and obtain the learned classification and recognition model again, and verify the classification and recognition model until the verification is passed and the target category information of each WiFi device is obtained.

[0131] In one embodiment, the identification module is also used to determine a first business scenario corresponding to the selected WiFi device based on the initial category information of the selected WiFi device, obtain connection information of the selected WiFi device from sample WiFi device data, determine a second business scenario based on the connection information, and when the first business scenario is the same as the second business scenario, the verification is successful.

[0132] The first business scenario and the second business scenario refer to application scenarios of the WiFi device. For example, the first business scenario may be an office scenario, a home scenario, etc. The connection information includes the location information of the WiFi device. The specific location information may be longitude and latitude information. The location of the WiFi device may be determined based on the location information, and thus the second business scenario may be determined based on the location of the WiFi device. For example, when the location of the WiFi device is an office building in the city center, the second business scenario may be considered an office scenario. When the location of the WiFi device is a residential area, the second business scenario may be considered a home scenario.

[0133] In one embodiment, the identification module is further used to perform supervised learning according to target category information of each WiFi device to obtain a device classification model.

[0134] Among them, supervised learning refers to a method of using samples with known certain characteristics as training sets to establish a mathematical model (such as a discriminant model in pattern recognition, a weight model in artificial neural network method, etc.), and then using the established model to predict unknown samples. In this application, the feature vectors of each WiFi device with known target category information are used as training sets to establish a device classification model, so that the category information of the WiFi device to be identified can be predicted through the device classification model.

[0135] In one embodiment, the identification module is also used in one embodiment to update sample WiFi device data according to the feature vector and category information of the WiFi device to be identified after obtaining the category information of the WiFi device to be identified, and to use the feature vector and category information of the WiFi device to be identified as sample WiFi device data to iteratively train the device classification model to continuously improve the device classification model.

[0136] The processing module 708 is used to determine the social relationship of the connected user corresponding to the WiFi device to be identified according to the category information of the WiFi device to be identified.

[0137] The social relationship refers to the association relationship between the connected users corresponding to the WiFi device to be identified. For example, the social relationship may be colleagues, friends, family members, etc.

[0138] Specifically, the processing module can determine the business scenario corresponding to the WiFi device to be identified based on the category information of the WiFi device to be identified, and then determine the social relationship of the connected user corresponding to the WiFi device to be identified based on the business scenario. For example, when the category information is office WiFi, it can be determined that the corresponding business scenario is an office scenario, and the social relationship of the corresponding connected user may be a colleague. When the category information is leisure WiFi, it can be determined that the corresponding business scenario is a leisure scenario, and the social relationship of the corresponding connected user may be a friend. When the category information is home WiFi, it can be determined that the corresponding business scenario is a home scenario, and the social relationship of the corresponding connected user may be a family member.

[0139] The above social relationship mining device counts the feature quantity of the WiFi device to be identified based on the connection information of the WiFi device to be identified in the location data, obtains the category information of the WiFi device to be identified based on the feature quantity of the WiFi device to be identified, and determines the social relationship of the connected user corresponding to the WiFi device to be identified based on the category information of the WiFi device to be identified. In the whole process, the connection information of the WiFi device to be identified in the location data is used to determine the social relationship of the connected user corresponding to the WiFi device to be identified. Since most of the location data will include the connection information of the WiFi device, the location data can be effectively used in this way, and the utilization rate of the location data is improved.

[0140] In one embodiment, the processing module is further used to make personalized recommendations to the connected users according to the social relationships of the connected users corresponding to the WiFi devices to be identified.

[0141] Among them, personalized recommendation refers to the recommendation of corresponding business content based on the social relationship of the connected users. Business content recommendation includes venue recommendation, activity recommendation, etc. Venue recommendation refers to the recommendation of venues suitable for the connected users to participate in common activities based on the social relationship of the connected users. Activity recommendation refers to the recommendation of activities suitable for the connected users to participate in common based on the social relationship of the connected users. For example, the venue for common activities can be a restaurant, etc., and the common activities can be team building activities, etc.

[0142] Figure 8 The internal structure diagram of a computer device in one embodiment is shown. The computer device may specifically be Figure 1 The server 120 in FIG. Figure 8As shown, the computer device includes a processor, a memory, a network interface, an input device and a display screen connected through a system bus. Among them, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor can implement a social relationship mining method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor can execute a social relationship mining method. The display screen of the computer device may be a liquid crystal display or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0143] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0144] In one embodiment, the social relationship mining device provided by the present application can be implemented in the form of a computer program. The computer program can be Figure 8 The computer device is run on the computer device shown. The memory of the computer device can store various program modules that constitute the social relationship mining device, such as: Figure 7 The acquisition module, statistical module, identification module and processing module shown in the figure. The computer program composed of various program modules enables the processor to execute the steps of the social relationship mining method of each embodiment of the present application described in this specification.

[0145] For example, Figure 8 The computer device shown can be Figure 7 The acquisition module in the social relationship mining device shown in the figure acquires the connection information of the WiFi device to be identified in the location data. The computer device can perform statistics of the feature quantity of the WiFi device to be identified based on the connection information of the WiFi device to be identified through the statistical module. The computer device can perform the category information of the WiFi device to be identified based on the feature quantity of the WiFi device to be identified through the identification module. The computer device can determine the social relationship of the connected user corresponding to the WiFi device to be identified based on the category information of the WiFi device to be identified through the processing module.

[0146] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned social relationship mining method. The steps of the social relationship mining method here may be the steps of the social relationship mining method in the above-mentioned various embodiments.

[0147] In one embodiment, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the processor executes the steps of the social relationship mining method described above. The steps of the social relationship mining method here can be the steps of the social relationship mining method in the above-mentioned various embodiments.

[0148] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0149] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0150] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A social relationship mining method, include: Obtain connection information of the WiFi device to be identified in the location data; According to the connection information of the to-be-identified WiFi device, counting the characteristic quantity of the to-be-identified WiFi device; The characteristic quantity refers to a connection behavior statistic used to characterize the characteristics of the WiFi device to be identified, including at least one of the total number of connected terminal devices, the number of connected terminal devices in each preset time period, and the number of fluctuations in the number of connected terminal devices; Obtaining a feature vector of the WiFi device to be identified according to the feature quantity of the WiFi device to be identified; Inputting the feature vector of the to-be-identified WiFi device into a trained device classification model to obtain category information of the to-be-identified WiFi device, wherein the trained device classification model is obtained based on preset sample WiFi device data; According to the category information of the WiFi device to be identified, a business scenario corresponding to the WiFi device to be identified is determined, and according to the business scenario corresponding to the WiFi device to be identified, a social relationship of a connected user corresponding to the WiFi device to be identified is determined.

2. The method according to claim 1, It is characterized in that The counting of the characteristic quantities of the to-be-identified WiFi devices according to the connection information of the to-be-identified WiFi devices comprises: According to the connection timestamp in the connection information of the to-be-identified WiFi device and the device identifier of the connected user, the characteristic quantity of the to-be-identified WiFi device is counted.

3. The method according to claim 1, It is characterized in that Before inputting the feature vector of the to-be-identified WiFi device into the trained device classification model to obtain the category information of the to-be-identified WiFi device, the method further includes: According to the preset sample WiFi device data, counting the characteristic quantity of each WiFi device corresponding to the sample WiFi device data; Obtaining a feature vector of each WiFi device according to a feature quantity of each WiFi device; Perform unsupervised learning based on the feature vectors of each of the WiFi devices to obtain target category information of each of the WiFi devices; A device classification model is obtained according to the target category information of each WiFi device.

4. The method according to claim 3, It is characterized in that The unsupervised learning is performed according to the feature vectors of each of the WiFi devices to obtain the target category information of each of the WiFi devices, including: Performing unsupervised learning on the feature vectors of each of the WiFi devices to obtain an initial classification recognition model and initial category information of each of the WiFi devices; Randomly select initial category information of multiple WiFi devices, and verify the initial classification recognition model according to the initial category information of the selected WiFi devices and the sample WiFi device data; When the verification is passed, the target category information of each WiFi device is obtained according to the initial category information of each WiFi device; When the verification fails, the process returns to the step of counting the characteristic quantities of each WiFi device corresponding to the sample WiFi device data according to the sample WiFi device data.

5. The method according to claim 3, It is characterized in that The obtaining of the device classification model according to the target category information of each WiFi device includes: Supervised learning is performed according to the target category information of each WiFi device to obtain a device classification model.

6. The method according to claim 1, It is characterized in that The method further comprises: According to the social relationship of the connected user corresponding to the to-be-identified WiFi device, a personalized recommendation is made to the connected user.

7. A social relationship mining device, It is characterized in that The device comprises: An acquisition module, used to acquire connection information of a to-be-identified WiFi device in the location data; A statistical module, used for counting characteristic quantities of the to-be-identified WiFi devices according to the connection information of the to-be-identified WiFi devices; the characteristic quantities refer to connection behavior statistics used to characterize the characteristics of the to-be-identified WiFi devices, including at least one of the total number of connected terminal devices, the number of connected terminal devices in each preset time period, and the number of fluctuations in the number of connected terminal devices; an identification module, configured to obtain a feature vector of the WiFi device to be identified according to a feature quantity of the WiFi device to be identified, input the feature vector of the WiFi device to be identified into a trained device classification model, and obtain category information of the WiFi device to be identified, wherein the trained device classification model is obtained according to preset sample WiFi device data; The processing module is used to determine the business scenario corresponding to the WiFi device to be identified according to the category information of the WiFi device to be identified, and determine the social relationship of the connected user corresponding to the WiFi device to be identified according to the business scenario corresponding to the WiFi device to be identified.

8. The device according to claim 7, It is characterized in that The statistical module is further used to count the characteristic quantities of the to-be-identified WiFi device according to the connection timestamp in the connection information of the to-be-identified WiFi device and the device identifier of the connected user.

9. The device according to claim 7, It is characterized in that The identification module is also used to count the feature quantities of each WiFi device corresponding to the sample WiFi device data according to preset sample WiFi device data, obtain the feature vector of each WiFi device according to the feature quantity of each WiFi device, perform unsupervised learning according to the feature vector of each WiFi device to obtain the target category information of each WiFi device, and obtain the device classification model according to the target category information of each WiFi device.

10. The device according to claim 9, It is characterized in that The identification module is also used to perform unsupervised learning on the feature vectors of each of the WiFi devices to obtain an initial classification and identification model and initial category information of each of the WiFi devices, randomly select initial category information of multiple WiFi devices, and verify the initial classification and identification model based on the initial category information of the selected WiFi devices and the sample WiFi device data. When the verification is successful, the target category information of each of the WiFi devices is obtained based on the initial category information of each of the WiFi devices. When the verification fails, the step of returning to the sample WiFi device data and counting the feature quantity of each WiFi device corresponding to the sample WiFi device data is performed.

11. The device according to claim 9, It is characterized in that The identification module is also used to perform supervised learning according to the target category information of each WiFi device to obtain a device classification model.

12. The device according to claim 7, It is characterized in that The processing module is further configured to make personalized recommendations to the connected users according to the social relationships of the connected users corresponding to the WiFi devices to be identified.

13. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 6.

14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Internet of things communication method and apparatus, and internet of things communication system

    CN105553921A

  • Information pushing method and device, network access device, terminal and social server

    CN107896235A