CN108307318B - User information acquisition method and device and electronic equipment - Google Patents
User information acquisition method and device and electronic equipment Download PDFInfo
- Publication number
- CN108307318B CN108307318B CN201711396203.7A CN201711396203A CN108307318B CN 108307318 B CN108307318 B CN 108307318B CN 201711396203 A CN201711396203 A CN 201711396203A CN 108307318 B CN108307318 B CN 108307318B
- Authority
- CN
- China
- Prior art keywords
- user
- wireless access
- access point
- position attribute
- attribute information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/023—Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application relates to a user information acquisition method, belongs to the technical field of computers, and solves the problem that information acquired by the user information acquisition method in the prior art is inaccurate. The user information acquisition method disclosed by the embodiment of the application comprises the following steps: determining at least one user position attribute corresponding to a wireless access point according to the connection data of the wireless access point; determining users accessing the same wireless access point as associated users; and finally, setting user position attribute information of a target user corresponding to the same wireless access point according to the user position attribute information of at least one associated user corresponding to the same wireless access point. According to the method and the device, the users accessing the same wireless access point in the same time period are used as the associated users, and the position attribute information which is lacked or wrong in the associated users is set by supplementing the perfect user position attribute information of part of the associated users, so that the accuracy of obtaining the user position attribute information can be improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for obtaining user information, and an electronic device.
Background
With the increasing abundance of internet applications, the attention degree of user experience is gradually increased, and personalized recommendation or information presentation for users based on portrait information of users is widely applied. In the user portrait information, the position information such as the work information and the place of residence of the user has a great influence on the accuracy of the user portrait, so how to acquire accurate position information becomes a problem to be solved urgently. The methods for acquiring user location information in the prior art mainly include two methods: the first method is that when a user registers, the user is prompted to actively input user information to obtain the user information; and secondly, obtaining the operation behavior track of the user on the platform or the APP through algorithm analysis. However, both of the above methods have certain drawbacks in acquiring the user location information. When the user attribute is acquired through the user registration information, the information actively input by the user is limited, and sometimes the user may input wrong information, so that accurate user position information cannot be acquired. When the user position information is obtained by mining the user online behavior track, the online behavior of the user is usually not necessarily related to the position information such as a residence place, an office place and the like, so that the position information can not be ensured by deducing the online behavior, and the accuracy can not be ensured.
Therefore, the user information acquisition method in the prior art at least has the defect that the acquired information is inaccurate.
Disclosure of Invention
The application provides a user information acquisition method, which solves the problem that the information acquired by the user information acquisition method in the prior art is inaccurate.
In order to solve the above problem, in a first aspect, an embodiment of the present application provides a method for acquiring user information, including:
determining at least one user position attribute corresponding to a wireless access point according to the connection data of the wireless access point;
determining users accessing the same wireless access point as associated users;
and setting user position attribute information of a target user corresponding to the same wireless access point according to the user position attribute information of at least one associated user corresponding to the same wireless access point, wherein the target user is a user of which the user position attribute information corresponding to the same wireless access point in the associated users meets preset conditions.
In a second aspect, an embodiment of the present application provides a user information obtaining apparatus, including:
the wireless access point and position attribute corresponding module is used for determining at least one user position attribute corresponding to the wireless access point according to the connection data of the wireless access point;
the associated user determining module is used for determining users accessed to the same wireless access point as associated users;
and the position attribute information acquisition module is used for setting user position attribute information of a target user corresponding to the same wireless access point according to user position attribute information of at least one associated user corresponding to the same wireless access point, wherein the target user is a user of the associated user, the user position attribute information of the associated user corresponding to the same wireless access point meets preset conditions.
In a third aspect, an embodiment of the present application further discloses an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, and when the processor executes the computer program, the user information obtaining method according to the embodiment of the present application is implemented.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, and the computer program includes steps of the user information obtaining method disclosed in the present application.
According to the user information acquisition method disclosed by the embodiment of the application, at least one user position attribute corresponding to a wireless access point is determined according to the connection data of the wireless access point; then, determining users accessing the same wireless access point as associated users; and finally, setting user position attribute information corresponding to the same wireless access point of a target user according to the user position attribute information corresponding to the same wireless access point of at least one associated user, wherein the target user is a user of the associated user, the user position attribute information corresponding to the same wireless access point of the associated user meets preset conditions, and the problem that the information acquired by the user information acquisition method in the prior art is inaccurate is solved. The users accessing the same wireless access point in the same time period are used as the associated users, and then the user position attribute information lacking or wrong in another part of the associated users is set by supplementing the perfect user position attribute information of the part of the associated users, so that the accuracy of the obtained user position attribute information can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a user information obtaining method according to a first embodiment of the present application;
fig. 2 is a schematic structural diagram of a user information obtaining apparatus according to a second embodiment of the present application;
fig. 3 is a second schematic structural diagram of a user information obtaining apparatus according to a second embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
As shown in fig. 1, the method for acquiring user information disclosed in this embodiment includes: step 110 to step 130.
The user location attribute in the embodiment of the application includes a home address, an office address, a school address, and the like of the user. In the process of using the mobile terminal by a user, a plurality of applications with the positioning function on the mobile terminal can acquire data such as geographical position information, connected wireless access point (WiFi) information, connection time and the like of the user in real time. Meanwhile, the mobile terminal will include at least: and uploading the connection data of the wireless access points including the connection time of the wireless access points (WiFi) and the wireless access point identifications to a preset server. The wireless access point identifier may be a MAC address of the wireless access point.
In specific implementation, the preset server may be a server of a certain application, or may be a data acquisition server that collects connection data of the wireless access points in the whole network.
And when the mobile terminal uploads the connection time of connecting a wireless access point (WiFi) and the wireless access point identification to a preset server, the mobile terminal also uploads the user identification of the mobile terminal user. In specific implementation, the user identifier may be an equipment identifier or a unique identifier on the preset server.
The preset server collects and stores connection data of the wireless access point, wherein the connection data consists of user identification, connection time and wireless access point identification. Then, the wireless access point to which each user has connected is determined based on the connection data of the wireless access points for a period of time (e.g., 1 month). And then, further determining all connection data of a certain user connected with a certain wireless access point according to the connection data of each user connected with the wireless access point. And finally, judging whether the connection times and the connection time distribution of the user for connecting a certain wireless access point accord with the judgment condition of which user position attribute corresponding to the wireless access point according to the connection time in all the connection data of the user for connecting the certain wireless access point, and taking the user position attribute corresponding to the judgment condition as the user position attribute corresponding to the wireless access point.
And step 120, determining the users accessing the same wireless access point as associated users.
After the wireless access point accessed by each user in a period of time and the user position attribute corresponding to the wireless access point are determined according to the wireless access point data accessed by the user in the period of time, all the users or part of the users accessed to the same wireless access point are determined as a social group. For example, a social group is determined as a user whose average daily access time of all users accessing the same wireless access point satisfies a predetermined time threshold (e.g., greater than 2 hours). All users in the social group are associated users. And the users in each social group access the same wireless access point within the same access time period.
The target user is a user of which the user position attribute information corresponding to the same wireless access point in the associated users meets preset conditions.
For all users in each social group, because the users have the commonality of accessing the same wireless access point in the same access time period, the values of a certain user location attribute of all associated users can be determined to be the same. The same user location attribute is the user location attribute corresponding to the same wireless access point accessed by all the associated users in the same access time period. Further, for a user lacking the user location attribute corresponding to the wireless access point or a user having an incomplete or wrong user location attribute corresponding to the wireless access point, the user location attribute information of a certain associated user may be set as the user location attribute information of the associated user. For example, the associated users of user A include users B, C and D, and the user location attributes of user A include: home address, office address; the user location attributes for users B, C and D include: home address, office address. Assuming that the wireless access point WiFi1 corresponds to the home address of the user a and the wireless access point WiFi1 corresponds to the office address of the user B, if the user a lacks the home address information and the user B has a detailed office address, the home address information of the user a can be supplemented according to the office address of the user B.
According to the user information acquisition method disclosed by the embodiment of the application, at least one user position attribute corresponding to a wireless access point is determined according to the connection data of the wireless access point; then, determining users accessing the same wireless access point as associated users; and finally, setting user position attribute information corresponding to the same wireless access point of a target user according to the user position attribute information corresponding to the same wireless access point of at least one associated user, wherein the target user is a user of which the position attribute information corresponding to the same wireless access point in the associated users meets preset conditions, and the problem of inaccurate information acquired by a user information acquisition method in the prior art is solved. The users accessing the same wireless access point in the same time period are used as the associated users, and then the lacking or wrong position attribute information of another part of the associated users is set by utilizing the perfect user position attribute information of the part of the associated users, so that the accuracy of the obtained user position attribute information can be improved.
In specific implementation, each piece of connection data of the wireless access point at least includes: the method for determining at least one user position attribute corresponding to the wireless access point according to the connection data of the wireless access point comprises the following steps: determining a wireless access point corresponding to the wireless access point identification, which is connected with a user corresponding to each user identification; and for each user, determining at least one user position attribute corresponding to each wireless access point connected by the user according to the connection time of the user to each wireless access point.
Firstly, the wireless access point of the connection of each user is determined according to the connection data of the wireless access point. In particular, one piece of access data of a user connecting to a wireless access point can be represented as (U)j,WiFikTime), wherein UjRepresenting user identity, WiFikIndicating the radio access point identity and indicating the connection time. Then, the connection data of the wireless access point may be indexed and grouped according to the user identifier, and the connection data containing the same user identifier is divided into a group as the connection data of the user corresponding to the user identifier. For example, the grouped user is identified as UjIs denoted as DataU1={(U1,WiFi1,201701010101),(U1,WiFi1,201701012001),…,(U1,WiFi2,201701010801)}. Further, the wireless access point which each user has connected is determined by traversing the wireless access point identification in the connection data of the wireless access point of each user. By the user U1Can determine the user U as an example1The connected wireless access points include WiFi1And WiFi2. In one embodiment, each user may have multiple wireless aps connected, for example, at home, and at company, at company.
Then, for each of the users, connecting according to the userAnd determining at least one user position attribute corresponding to each wireless access point connected by the user according to the connection time of each wireless access point. For example, for user U1According to the user U1Connecting wireless access points WiFi1And WiFi2Determining the wireless access point WiFi1And WiFi2Respectively corresponding to the home address or office address or other location attributes of the user.
In specific implementation, the determining at least one user location attribute corresponding to each wireless access point connected by the user according to the connection time of the user connecting each wireless access point includes substep S1 and substep S2.
And a substep S1, determining, for a plurality of wireless access points connected by the user, a confidence degree of a correspondence relationship between the wireless access point and each user location attribute according to the connection time of the user connecting the wireless access points and the access time period matched with each user location attribute one by one.
In a specific implementation, the location attribute of each user corresponds to one wireless access point, but the wireless access point to which the user connects does not necessarily correspond to a certain location attribute of the user. For example, the user has connected to mcdonald's wireless access point for an overly specified period of time, however, mcdonald's is not a location attribute of the user. Therefore, the confidence level of each wireless access point corresponding to each user location attribute needs to be determined according to the data such as the access time period matched with each user location attribute and the connection time of the user connecting each wireless access point.
Determining the confidence of the corresponding relationship between the wireless access point and each user position attribute according to the connection time of the user to connect the wireless access point and the access time period matched with each user position attribute, which comprises the following steps: and determining the corresponding relation confidence of the wireless access point and each user position attribute according to the distribution day information of the connection time of the user to the wireless access point and the connection time distribution information determined by the connection time and the access time period matched with each user position attribute. In specific implementation, determining the confidence of the correspondence between the wireless access point and each user location attribute according to the distribution days information of the connection time when the user connects to the wireless access point and the connection times distribution information determined by the connection time and the access time period matched with each user location attribute may be: determining the confidence of the corresponding relationship between the wireless access point and each user position attribute through a confidence calculation formula, wherein the confidence calculation formula comprises:
confidence(posi,Uj,WiFik)=a*posDays(posi,Uj,WiFik)/sumDays+b*pos Times(posi,Uj,WiFik)/sumTimes(Uj,WiFik) (ii) a Wherein, posiRepresenting a preset user location attribute i, WiFikRepresenting wireless access points K, UjRepresents user j; confidence (pos)i,Uj,WiFik) Representing the confidence of the wireless access point k corresponding to the user position attribute i for the user j; PosDays (pos)i,Uj,WiFik) Representing the number of days of connection data distribution of the user j in the access time period matched with the user position attribute i; sumDays is the number of days of distribution of the connection data; pos Times (pos)i,Uj,WiFik) Representing the times of connecting the wireless access point K by the user j in the access time period matched with the user position attribute i; sumTimes (U)j,WiFik) Representing the number of times that the user j connects the wireless access point K in the distribution time period of the connection data; a and b are adjustment coefficients, a>b>0。
In specific implementation, an access time period matched with the location attribute of each user needs to be preset. In this embodiment, assuming that the location attribute of the user includes a company address and a home address, it is assumed that the location attribute pos of the user1-company address, matching access time period: from 9 o 'clock to 12 o' clock, namely from 13 o 'clock to 18 o' clock in working day; user location attribute pos2-the home address, the matching access time period is: after 20 o 'clock and before 6 o' clock on weekdays. In this embodiment, it is assumed that the coverage time of the connection data of the wireless access point is the latest 30 days, the adjustment coefficients a and b are 0.7 and 0.3, respectively, according to the user U1Accessing wireless access point WiFi1Determines the wireless access point WiFi1The confidence degrees of the correspondence between the two location attributes of the company address and the home address of the user are taken as examples, and a specific scheme of the confidence degrees of the correspondence between the wireless access point and the location attributes of the user is specifically described.
First, take sumDays as 30 as an example, according to the user U1WiFi to wireless access point1The last 30 days of connection record, suppose that of the last 30 days, there are 28 days, user U1The WiFi wireless access points are connected between 9 to 12 points of working day, namely 13 to 18 points190 times, so that pos Days (pos) can be obtained1,U1,WiFi1)=28,posTimes(pos1,U1,WiFi1) 90. At the same time, suppose that user U is also determined1In the last 30 days, the wireless access point WiFi is connected at other times110 times, it represents user U1Connecting wireless access points WiFi within a distribution time period of the connection data1Number of times sumTimes (U)1,WiFi1) 100. Then the confidence calculation formula can be used to derive the confidence for the user U1WiFi Wireless Access Point1With user location attribute pos1The confidence of the correspondence of the company address is:
0.7*28/30+0.3*90/100=0.923。
also take sumDays ═ 30 as an example, according to the user U1WiFi to wireless access point2Of the last 30 days, there are 20 days, user U1WiFi (wireless fidelity) access points are connected together after 20 o 'clock and before 6 o' clock in working day240 times, thus, posDays (pos) was obtained2,U1,WiFi2)=20,posTimes(pos2,U1,WiFi2) 40. At the same time, suppose that user U is also determined1In the last 30 days, the wireless access point WiFi is connected at other times220 times, it represents user U1Connecting wireless access points WiFi within a distribution time period of the connection data2Number of times sumTimes (U)1,WiFi2) 60. Then the formula can be calculated according to the confidenceTo derive U for the user1WiFi Wireless Access Point2With user location attribute pos2The confidence of the corresponding relation of the family address is as follows:
0.7*20/30+0.3*40/60=0.677。
optionally, in order to reduce the amount of computation and improve the information acquisition efficiency, the wireless access points that are not frequently connected are filtered according to the distribution of the number of days of connection times of the wireless access points, and the location attribute of the user is not acquired according to the connection data of the wireless access points that are accidentally connected. In specific implementation, before determining the confidence of the correspondence between the wireless access point and each user location attribute according to the distribution day information of the connection time when the user connects to the wireless access point and the distribution information of the connection times determined by the connection time and the access time period matched with each user location attribute, the method further includes: and if the number of days for connecting the wireless access point by the user in an access time period matched with the user position attribute is larger than a preset number of days threshold, determining the corresponding relation confidence of the wireless access point and the user position attribute according to a confidence formula. In specific implementation, if the number of days for the user to connect the wireless access point within an access time period matched with a certain user position attribute is less than or equal to a preset number of days threshold, the confidence of the corresponding relationship between the wireless access point and the user position attribute is set to be zero. The preset number of days threshold may be set according to the actual user location attribute, for example, the preset number of days threshold is equal to 5.
Take sumDays as 30 as an example, according to the user U1WiFi to wireless access point2If there are only 3 days, the user U1WiFi with wireless access points connected after 20 o 'clock and before 6 o' clock in working day2WiFi the wireless access point2With user location attribute pos2The correspondence confidence of the home address is set to 0.
And a substep S2, determining one of the user location attributes corresponding to the wireless access point according to the confidence level.
Said determining one of said user location attributes corresponding to said wireless access point based on said confidence level comprises: if only one confidence coefficient accords with a preset confidence coefficient condition of the corresponding relationship to which the confidence coefficient belongs, determining that the user position attribute is a user position attribute corresponding to the wireless access point in the corresponding relationship to which the confidence coefficient accords with the preset confidence coefficient condition; and if at least two confidence degrees accord with the preset confidence degree condition of the corresponding relation to which the confidence degree belongs, determining the user position attribute with the maximum number of connection data distribution days connected with the wireless access point in the access time period matched with the user position attribute in the corresponding relation to which the confidence degree accords with the preset confidence degree condition as the user position attribute corresponding to the wireless access point.
In specific implementation, a confidence condition of a corresponding relationship between each user location attribute and the wireless access point may be preset, and confidence conditions of corresponding relationships between different user location attributes may be the same or different, and in this embodiment, it is assumed that the confidence condition of the corresponding relationship between the user location attribute, i.e., the home address and the company address, and the wireless access point, is greater than 0.5. According to the data, for the user U1Wireless access point WiFi connected thereto2With the home address (i.e. location attribute pos) of the user2) Is 0.677 and is greater than 0.5, and thus also determines the wireless access point WiFi2Corresponding to user U1Position attribute pos of2. Similarly, a wireless access point WiFi can be determined1Corresponding to user U1Position attribute pos 1.
In the specific implementation, if the user U1In 18 of the last 30 days, user U1The WiFi wireless access points are connected between 9 to 12 points of working day, namely 13 to 18 points220 times, thus, posDays (pos) was obtained1,U1,WiFi2)=18,posTimes(pos1,U1,WiFi2) 20. Suppose that user U is determined1In the last 30 days, the wireless access point WiFi is connected at other times240 times, it represents user U1Upon distribution of the connection dataInterval connection wireless access point WiFi2Number of times sumTimes (U)1,WiFi2) 60. Then the confidence calculation formula can be used to derive the confidence for the user U1WiFi Wireless Access Point2With user location attribute pos1The confidence of the correspondence of the company address is:
0.7*18/30+0.3*20/60=0.52。
i.e. wireless access point WiFi2Correspondence with the company address of the user, and, a wireless access point WiFi2And if the corresponding relation with the home address of the user meets the preset confidence condition, determining the final corresponding relation according to the distribution days of the access times in the access time period matched with the company address and the home address. In this embodiment, the user U1Connecting wireless access point WiFi within access time period of home address matching2The number of times of the access points is distributed in 20 days, which is more than that of the WiFi which is used for connecting the wireless access points in the access time period matched with the office address2Is distributed for 18 days, and thus, the wireless access point WiFi is finally determined2Corresponding to the home address.
According to the method, the wireless access point corresponding to the position attribute of each user uploading the wireless access point connection data to the server can be determined.
In a specific implementation, the data table for the wireless access point corresponding to the location attribute of each identified user may be recorded, for example, as relationship data { (U)j,WiFik,posi)}. Then, all users connected with the same wireless access point are used as a social group by traversing the data table relationship data. Using relationship data as { (U)1,WiFi1,pos1),(U1,WiFi2,pos2),(U3,WiFi2,pos1),(U3,WiFi1,pos2),(U4,WiFi2,pos2) Connect WiFi as an example1Includes: u shape1And U3Connecting WiFi2Includes: u shape1、U3And U4Then user U1And U3Form a social group, user U1、U3And U4A social group is formed. All users in the same social group, namely all users accessing the same wireless access point, are associated users.
Finally, for a group of associated users simultaneously accessing a certain wireless access point, the user location attribute information of the user having the user location attribute information corresponding to the wireless access point can be used as the location attribute information lacking for the user whose user location attribute information corresponding to the wireless access point meets the preset condition. In specific implementation, the preset conditions may be: the user position attribute information is empty, the number of characters contained in the user position attribute information is less than a preset value, the user position attribute information does not contain Chinese characters, and the like. To connect wireless access points WiFi simultaneously2For example, the associated users in a social group include: user U1、U3And U4. If the user U1Lack of home address, i.e. lack of subscriber location attribute pos2According to the specific information of the user U3Or user U4WiFi with wireless access point2Corresponding user location attribute information supplementing user U1The home address of (1). Suppose a wireless access point, WiFi2Corresponding user U3The home address of the user is the user U1The home address is set as user U3Home address (i.e., user location attribute pos)2) Specific information of (2). For another example, the associated users in the social group include: user U1、U3And U4. If the user U1The home address is as follows: 123456 user location Attribute pos2Is wrong, according to the user U3Or user U4WiFi with wireless access point2Perfecting user U by corresponding user position attribute information1The home address of (1). Suppose a wireless access point, WiFi2Corresponding user U3The home address of the user is the user U1The home address is set as user U3Home address (i.e., user location attribute pos)2) Specific information of (2).
Preferably, in order to further improve the accuracy of the obtained user information, the setting, according to the user location attribute information of the at least one associated user corresponding to the same wireless access point, the user location attribute information of the target user corresponding to the same wireless access point includes: based on the position coordinates, filtering the user position attribute information of the associated user corresponding to the same wireless access point, and determining effective user position attribute information; determining a confidence weight of the effective user position attribute information by a time-decaying voting method; and setting user position attribute information of the target user corresponding to the same wireless access point according to the effective user position attribute information with the maximum confidence weight.
In specific implementation, there may be a case where the user location attribute information corresponding to the same wireless access point is inconsistent, such as a case where a wireless access point WiFi is connected together2User U of3Or user U4Home address inconsistency, first, according to WiFi2To a co-connected wireless access point WiFi2The location attribute information of the user is screened to determine effective location attribute information of the user. For example, when the position coordinates corresponding to the user position attribute information and WiFi2When the distance between the position coordinates of the user is less than 1000 meters, the user position attribute information is determined to be valid user position attribute information, otherwise, the user position attribute information is determined to be invalid user position attribute information. In specific implementation, the position coordinates of the user position attribute information may be obtained by calling an interface of the third map data, which is not described herein again. Then, for the valid user location attribute information, further acquiring the registration time of the user location attribute information, and giving different time weights to the user location attribute information registered in different time periods, wherein the time weight of the user location attribute information with the closer registration time is larger. For example, a corresponding time weight is set by taking one quarter as the information registration time period, the time weight of the user position attribute information registered in the first 1 quarter is 1, and the user position attribute information registered in the first 1 quarterThe time weight of the user position attribute information is 0.8, the time weight is decreased by 0.2 every quarter of forward progress until the time weight is less than 0.2, the time of the registered user position attribute information is further advanced, and the time weights of the corresponding user position attribute information are all set to be 0.1. Then, according to the formula weight ═ Wt1*cnt1+…+Wtn*cntnCalculating confidence weight of each user position attribute information, wherein Wt1Time weight, cnt, representing user location attribute information1Represents Wt1And registering the quantity of the user position attribute information in the corresponding information registration time period. And finally, selecting the effective user position attribute information with the maximum confidence weight, and setting user position attribute information of a target user corresponding to the same wireless access point.
By screening invalid user position attribute information and selecting credible user position attribute information according to the registration time and the registration time period distribution of the user position attribute information to set the user position attribute information of the user to be supplemented with information, the accuracy of the obtained user position attribute information can be improved.
According to the user information acquisition method disclosed by the embodiment of the application, the users connected with the same wireless access point are used as the associated users, and the user position attribute information of part of the associated users is used for perfecting the user position attribute information corresponding to the same wireless access point, which is absent or wrong by other associated users, so that the accuracy of acquiring the user position attribute information of the users is further improved. The user position attributes corresponding to the wireless access points are determined according to the times and time distribution of connecting the wireless access points within a period of time and a preset confidence coefficient calculation formula, the position attribute information of the user, such as family WiFi or office WiFi information, is mined from the wireless access point information set of the long-term connection of the user, the corresponding relation between the WiFi information and the position attributes of the user is established, the user information is mined based on actual data, and the accuracy of the acquired user information is further improved.
Example two
As shown in fig. 2, the apparatus for obtaining user information disclosed in this embodiment includes:
a wireless access point and location attribute corresponding module 210, configured to determine at least one user location attribute corresponding to a wireless access point according to connection data of the wireless access point;
an associated user determining module 220, configured to determine a user accessing the same wireless access point as an associated user;
a location attribute information obtaining module 230, configured to set, according to user location attribute information of at least one associated user corresponding to the same wireless access point, user location attribute information of a target user corresponding to the same wireless access point, where the target user is a user, of the associated users, whose user location attribute information corresponding to the same wireless access point meets a preset condition.
Optionally, as shown in fig. 3, each piece of connection data of the wireless access point at least includes: a user identifier, a connection time, and a wireless access point identifier, the wireless access point and location attribute correspondence module 210 further includes:
a wireless access point determining unit 2101, configured to determine a wireless access point corresponding to the wireless access point identifier, where the user corresponding to each user identifier is connected to;
a corresponding relationship establishing unit 2102, configured to, for each user, determine at least one user location attribute corresponding to each wireless access point to which the user is connected according to connection time for the user to connect to each wireless access point.
Optionally, the determining, according to the connection time of the user connecting to each wireless access point, at least one user location attribute corresponding to each wireless access point connected by the user includes:
for a plurality of wireless access points connected by the user, determining the corresponding relation confidence of the wireless access points and the position attributes of the user one by one according to the connection time of the user for connecting the wireless access points and the access time period matched with the position attributes of the user;
and determining one user position attribute corresponding to the wireless access point according to the confidence.
Optionally, the determining, according to the connection time of the user connecting the wireless access point and the access time period matched with the location attribute of each user, the confidence of the correspondence between the wireless access point and the location attribute of each user includes:
determining the corresponding relation confidence of the wireless access point and each user position attribute according to the distribution day information of the connection time of the user to the wireless access point and the connection time distribution information determined by the connection time and the access time period matched with each user position attribute;
in specific implementation, determining the confidence of the correspondence between the wireless access point and each user location attribute according to the distribution days information of the connection time when the user connects to the wireless access point and the connection times distribution information determined by the connection time and the access time period matched with each user location attribute may be: determining the confidence of the corresponding relationship between the wireless access point and each user position attribute through a confidence calculation formula, wherein the confidence calculation formula comprises:
confidence(posi,Uj,WiFik)=a*posDays(posi,Uj,WiFik)/sumDays+b*pos Times(posi,Uj,WiFik)/sumTimes(Uj,WiFik) (ii) a Wherein, posiRepresenting a preset user location attribute i, WiFikRepresenting wireless access points K, UjRepresents user j; confidence (pos)i,Uj,WiFik) Representing the confidence of the wireless access point k corresponding to the user position attribute i for the user j; PosDays (pos)i,Uj,WiFik) Representing the number of days of connection data distribution of the user j in the access time period matched with the user position attribute i; sumDays is the number of days of distribution of the connection data; pos Times (pos)i,Uj,WiFik) Indicating that user j matches at user location attribute iThe number of times of connecting the wireless access point K in the access time period; sumTimes (U)j,WiFik) Representing the number of times that the user j connects the wireless access point K in the distribution time period of the connection data; a and b are adjustment coefficients, a>b>0。
Optionally, before determining the confidence of the correspondence between the wireless access point and each user location attribute according to the distribution day information of the connection time when the user connects to the wireless access point and the distribution information of the connection times determined by the connection time and the access time period matched with each user location attribute, the method further includes:
and if the number of days for connecting the wireless access point by the user in an access time period matched with the user position attribute is larger than a preset number of days threshold, determining the corresponding relation confidence of the wireless access point and the user position attribute according to a confidence formula. In specific implementation, if the number of days for the user to connect the wireless access point within an access time period matched with a certain user position attribute is less than or equal to a preset number of days threshold, determining the corresponding relationship confidence of the wireless access point and the user position attribute according to a confidence formula, and setting the corresponding relationship confidence of the wireless access point and the user position attribute to be zero.
The wireless access points which are not frequently connected are filtered according to the number-of-days distribution of the connection times of the wireless access points, and the position attribute of the user is not acquired according to the connection data of the wireless access points which are occasionally connected, so that the accuracy of acquiring information is improved, the calculation amount is reduced, and the information acquisition efficiency is improved.
Optionally, the determining, according to the confidence, one of the user location attributes corresponding to the wireless access point includes:
if only one confidence coefficient accords with a preset confidence coefficient condition of the corresponding relationship to which the confidence coefficient belongs, determining that the user position attribute is a user position attribute corresponding to the wireless access point in the corresponding relationship to which the confidence coefficient accords with the preset confidence coefficient condition;
and if at least two confidence degrees accord with the preset confidence degree condition of the corresponding relation to which the confidence degree belongs, determining the user position attribute with the maximum number of connection data distribution days connected with the wireless access point in the access time period matched with the user position attribute in the corresponding relation to which the confidence degree accords with the preset confidence degree condition as the user position attribute corresponding to the wireless access point.
Optionally, the setting, according to the user location attribute information of the at least one associated user corresponding to the same wireless access point, the user location attribute information of the target user corresponding to the same wireless access point includes: based on the position coordinates, filtering the user position attribute information of the associated user corresponding to the same wireless access point, and determining effective user position attribute information; determining a confidence weight of the effective user position attribute information by a time-decaying voting method; and setting user position attribute information of the target user corresponding to the same wireless access point according to the effective user position attribute information with the maximum confidence weight.
By screening invalid user position attribute information and selecting credible user position attribute information according to the registration time and registration time period distribution of the user position attribute information to set the position attribute information of the user to be supplemented with information, the accuracy of the obtained position attribute information can be improved.
The user information acquisition device disclosed by the embodiment of the application determines at least one user position attribute corresponding to a wireless access point according to the connection data of the wireless access point; then, determining users accessing the same wireless access point as associated users; and finally, setting user position attribute information corresponding to the same wireless access point of a target user according to the user position attribute information corresponding to the same wireless access point of at least one associated user, wherein the target user is a user of the associated user, the user position attribute information corresponding to the same wireless access point of the associated user meets preset conditions, and the problem that the information acquired by the user information acquisition method in the prior art is inaccurate is solved. The users accessing the same wireless access point in the same time period are used as the associated users, and then the position attribute information lacking or wrong for another part of the associated users is set by supplementing the perfect position attribute information of the part of the associated users, so that the accuracy of the acquired user position attribute information can be improved.
The user position attributes corresponding to the wireless access points are determined according to the times and time distribution of connecting the wireless access points within a period of time and a preset confidence coefficient calculation formula, the position attribute information of the user, such as family WiFi or office WiFi information, is mined from the wireless access point information set of the long-term connection of the user, the corresponding relation between the WiFi information and the position attributes of the user is established, the user information is mined based on actual data, and the accuracy of the acquired user information is further improved.
Correspondingly, the application also discloses an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the user information acquisition method according to the first embodiment of the application. The electronic device can be a PC, a mobile terminal, a personal digital assistant, a tablet computer and the like.
The present application also discloses a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the user information obtaining method according to the first embodiment of the present application.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The user information obtaining method and device provided by the present application are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Claims (10)
1. A user information acquisition method is characterized by comprising the following steps:
determining at least one user position attribute corresponding to a wireless access point according to the connection data of the wireless access point;
determining users accessing the same wireless access point as associated users;
according to the user position attribute information of at least one associated user corresponding to the same wireless access point, setting the user position attribute information of a target user corresponding to the same wireless access point, wherein the target user is a user of the associated user, the user position attribute information of which corresponds to the same wireless access point meets a preset condition, and the user position attribute information comprises: the system comprises a home address and a company address, wherein the preset conditions are as follows: the user position attribute information is null, or the number of characters contained in the user position attribute information is less than a preset value, or the user position attribute information does not contain Chinese characters;
the step of setting the user position attribute information corresponding to the same wireless access point of the target user according to the user position attribute information corresponding to the same wireless access point of at least one associated user comprises the following steps:
based on the position coordinates, filtering the user position attribute information of the associated user corresponding to the same wireless access point, and determining effective user position attribute information;
determining a confidence weight of the effective user position attribute information by a time-decaying voting method;
and setting user position attribute information of the target user corresponding to the same wireless access point according to the effective user position attribute information with the maximum confidence weight.
2. The method of claim 1, wherein each connection data of the wireless access point comprises at least: the step of determining at least one user location attribute corresponding to the wireless access point according to the connection data of the wireless access point comprises the following steps:
determining a wireless access point corresponding to the wireless access point identification, which is connected with a user corresponding to each user identification;
and for each user, determining at least one user position attribute corresponding to each wireless access point connected by the user according to the connection time of the user to each wireless access point.
3. The method of claim 2, wherein the step of determining at least one user location attribute corresponding to each of the wireless access points to which the user is connected according to the connection time of the user to each of the wireless access points comprises:
for a plurality of wireless access points connected by the user, determining the corresponding relation confidence of the wireless access points and the position attributes of the user one by one according to the connection time of the user for connecting the wireless access points and the access time period matched with the position attributes of the user;
and determining one user position attribute corresponding to the wireless access point according to the confidence.
4. The method according to claim 3, wherein the step of determining the confidence level of the correspondence between the wireless access point and each user location attribute according to the connection time of the user to connect to the wireless access point and the access time period matched with each user location attribute comprises:
and determining the corresponding relation confidence of the wireless access point and each user position attribute according to the distribution day information of the connection time of the user to the wireless access point and the connection time distribution information determined by the connection time and the access time period matched with each user position attribute.
5. The method according to claim 4, wherein before the step of determining the confidence level of the correspondence relationship between the wireless access point and each user location attribute according to the distribution day information of the connection time when the user connects to the wireless access point and the distribution information of the connection times determined by the access time period in which the connection time matches each user location attribute, the method further comprises:
and if the number of days for connecting the wireless access point by the user in an access time period matched with the user position attribute is larger than a preset number of days threshold, determining the corresponding relation confidence of the wireless access point and the user position attribute according to a confidence formula.
6. The method of claim 3, wherein said step of determining said user location attribute corresponding to said radio access point based on said confidence level comprises:
if only one confidence coefficient accords with a preset confidence coefficient condition of the corresponding relationship to which the confidence coefficient belongs, determining that the user position attribute is a user position attribute corresponding to the wireless access point in the corresponding relationship to which the confidence coefficient accords with the preset confidence coefficient condition;
and if at least two confidence degrees accord with the preset confidence degree condition of the corresponding relation to which the confidence degree belongs, determining the user position attribute with the maximum number of connection data distribution days connected with the wireless access point in the access time period matched with the user position attribute in the corresponding relation to which the confidence degree accords with the preset confidence degree condition as the user position attribute corresponding to the wireless access point.
7. A user information acquisition apparatus, comprising:
the wireless access point and position attribute corresponding module is used for determining at least one user position attribute corresponding to the wireless access point according to the connection data of the wireless access point;
the associated user determining module is used for determining users accessed to the same wireless access point as associated users;
a location attribute information obtaining module, configured to set, according to user location attribute information of at least one associated user corresponding to the same wireless access point, user location attribute information of a target user corresponding to the same wireless access point, where the target user is a user, of the associated users, whose user location attribute information corresponding to the same wireless access point meets a preset condition, where the user location attribute information includes: the system comprises a home address and a company address, wherein the preset conditions are as follows: the user position attribute information is null, or the number of characters contained in the user position attribute information is less than a preset value, or the user position attribute information does not contain Chinese characters;
the location attribute information acquisition module is specifically configured to filter, based on the location coordinates, user location attribute information of the associated user corresponding to the same wireless access point, and determine effective user location attribute information; determining a confidence weight of the effective user position attribute information by a time-decaying voting method; and setting user position attribute information of the target user corresponding to the same wireless access point according to the effective user position attribute information with the maximum confidence weight.
8. The apparatus of claim 7, wherein each connection data of the wireless access point comprises at least: the user identification, the connection time and the wireless access point identification, the wireless access point and location attribute corresponding module further comprises:
the wireless access point determining unit is used for determining a wireless access point which is connected with a user corresponding to each user identification and corresponds to the wireless access point identification;
and the corresponding relation establishing unit is used for determining at least one user position attribute corresponding to each wireless access point connected by the user according to the connection time of the user to each wireless access point.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the user information acquisition method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, carries out the steps of the user information acquisition method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711396203.7A CN108307318B (en) | 2017-12-21 | 2017-12-21 | User information acquisition method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711396203.7A CN108307318B (en) | 2017-12-21 | 2017-12-21 | User information acquisition method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108307318A CN108307318A (en) | 2018-07-20 |
CN108307318B true CN108307318B (en) | 2021-03-12 |
Family
ID=62870390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711396203.7A Active CN108307318B (en) | 2017-12-21 | 2017-12-21 | User information acquisition method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108307318B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109348541A (en) * | 2018-11-27 | 2019-02-15 | 浙江每日互动网络科技股份有限公司 | A method of the WIFI information of processing mobile terminal connection |
CN110162692B (en) * | 2018-12-10 | 2021-05-25 | 腾讯科技(深圳)有限公司 | User label determination method and device, computer equipment and storage medium |
CN111314102A (en) * | 2018-12-11 | 2020-06-19 | 北京嘀嘀无限科技发展有限公司 | Group identification method and device, electronic equipment and computer readable storage medium |
CN110390057A (en) * | 2019-06-18 | 2019-10-29 | 深圳壹账通智能科技有限公司 | WIFI data processing method, device, computer equipment and storage medium |
CN110659396B (en) * | 2019-08-14 | 2023-05-23 | 平安科技(深圳)有限公司 | Missing attribute information complementing method, device, computer equipment and storage medium |
CN111988738A (en) * | 2020-07-31 | 2020-11-24 | 北京骑胜科技有限公司 | Vehicle control method, device, vehicle and storage medium |
CN112788539A (en) * | 2020-12-31 | 2021-05-11 | 上海掌门科技有限公司 | Method and equipment for tracking user |
CN118474862B (en) * | 2024-07-12 | 2024-09-06 | 每日互动股份有限公司 | Method, device, equipment and medium for acquiring target position information |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103974410A (en) * | 2013-01-31 | 2014-08-06 | 西门子公司 | Method and device for positioning |
CN104541556A (en) * | 2012-09-17 | 2015-04-22 | 英特尔公司 | Supplemental location-related information transmit in unassociated wireless states |
CN105898835A (en) * | 2015-08-03 | 2016-08-24 | 上海连尚网络科技有限公司 | Wireless access point property information generation method and device |
CN106060785A (en) * | 2016-05-27 | 2016-10-26 | 浙江每日互动网络科技股份有限公司 | Method for judging WiFi Mac properties and carrying out directional information push |
CN106102164A (en) * | 2016-06-12 | 2016-11-09 | 北京三快在线科技有限公司 | A kind of method and apparatus determining access point position |
CN107040886A (en) * | 2017-01-03 | 2017-08-11 | 阿里巴巴集团控股有限公司 | The method and device that a kind of information is determined |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10057717B2 (en) * | 2013-12-27 | 2018-08-21 | Empire Technology Development Llc | Location determining scheme |
-
2017
- 2017-12-21 CN CN201711396203.7A patent/CN108307318B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104541556A (en) * | 2012-09-17 | 2015-04-22 | 英特尔公司 | Supplemental location-related information transmit in unassociated wireless states |
CN103974410A (en) * | 2013-01-31 | 2014-08-06 | 西门子公司 | Method and device for positioning |
CN105898835A (en) * | 2015-08-03 | 2016-08-24 | 上海连尚网络科技有限公司 | Wireless access point property information generation method and device |
CN106060785A (en) * | 2016-05-27 | 2016-10-26 | 浙江每日互动网络科技股份有限公司 | Method for judging WiFi Mac properties and carrying out directional information push |
CN106102164A (en) * | 2016-06-12 | 2016-11-09 | 北京三快在线科技有限公司 | A kind of method and apparatus determining access point position |
CN107040886A (en) * | 2017-01-03 | 2017-08-11 | 阿里巴巴集团控股有限公司 | The method and device that a kind of information is determined |
Also Published As
Publication number | Publication date |
---|---|
CN108307318A (en) | 2018-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108307318B (en) | User information acquisition method and device and electronic equipment | |
CN102104635B (en) | Method and device for updating Internet protocol (IP) address base | |
CN110888866B (en) | Data expansion method and device, data processing equipment and storage medium | |
CN104750879B (en) | Electronic map marking, claiming and error correcting method and processing equipment | |
CN108965951B (en) | Advertisement playing method and device | |
CN103166834A (en) | Method and equipment recommending friends to social network user based on location | |
JP2018514019A (en) | Method and system for identifying unique mobile devices based on changes in mobile device attributes over time | |
CN108366012B (en) | Social relationship establishing method and device and electronic equipment | |
US20130219339A1 (en) | Method and system for managing sharing of content on an online sharing platform | |
CN109525933B (en) | Location privacy protection method and device | |
CN108770057B (en) | Method for determining predetermined fingerprint database, method and device for positioning fingerprint, and storage medium | |
CN110020025A (en) | A kind of data processing method and device | |
CN105653550B (en) | Webpage filtering method and device | |
CN110535943B (en) | Data processing method and device, electronic equipment and storage medium | |
CN111080349B (en) | Method, device, server and medium for identifying multiple devices of same user | |
CN109348260B (en) | Live broadcast room recommendation method, device, equipment and medium | |
CN113556368A (en) | User identification method, device, server and storage medium | |
CN112115382B (en) | Data processing method and device, storage medium and electronic device | |
CN110532254A (en) | The method and apparatus of fused data table | |
CN110297948B (en) | Relational network construction method and device | |
CN112579682A (en) | Data model change notification method and device, electronic device and storage medium | |
JP2011227720A (en) | Recommendation system, recommendation method and recommendation program | |
CN112650946A (en) | Product information recommendation method, device and system and storage medium | |
CN111401023A (en) | Report generation method and device, server and storage medium | |
CN108171559B (en) | User level processing and target object pushing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |