A family identification method and system based on social network and spatiotemporal accompanying behavior

Through the method of social network and spatiotemporal accompanying behavior, mobile phone positioning data is used to construct a spatiotemporal accompanying model and a social network model to identify family relationships, solving the accuracy and refinement problems of family relationship recognition in the existing technology, and achieving fast and accurate Analysis of family relationships advances family research and urban development.

CN118245685BActive Publication Date: 2024-08-30WUHAN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410220091.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-28
Publication Date
2024-08-30
Estimated Expiration
2044-02-28

AI Technical Summary

Technical Problem

Existing technology makes it difficult to accurately identify family relationships through mobile phone positioning data, and cannot refine family relationships. Data acquisition is difficult and has large errors.

Method used

Using a method based on social network and spatio-temporal accompanying behavior, the spatio-temporal accompanying model and social network model are constructed through mobile phone positioning big data, identifying the user's place of residence and spatio-temporal residence behavior, filtering out the spatio-temporal accompanying behavior on weekends and holidays, and combining the number of days of residence and frequency, clustering to form family group clusters, and generational relationships based on age differences and number of visits to educational facilities.

Benefits of technology

It achieves rapid and accurate analysis of family temporal and spatial behavioral characteristics, improves the accuracy and universality of family relationship identification, promotes family research and urban living circle construction, and improves residents' quality of life and sustainable urban development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118245685B
    Figure CN118245685B
Patent Text Reader

Abstract

The present invention provides a family identification method and system based on social network and spatiotemporal accompanying behavior, including constructing a basic attribute data and spatiotemporal residence behavior data set corresponding to all users within a certain time period T in a research area according to mobile phone positioning big data, obtaining the residences of all users, establishing a user pair set for user combinations whose residences meet a distance threshold, establishing a spatiotemporal accompanying model, screening user pairs that may have family relationships by the number of spatiotemporal accompanying residence days and the spatiotemporal accompanying residence frequency, constructing a social network model to cluster user pairs that may have family relationships, forming different groups of connected subgraph clusters, identifying connected subgraph clusters whose number of users meets the number threshold as family group clusters, and finally dividing family intergenerational relationships according to the age difference of users in the family cluster and the number of times users in the cluster temporarily visit educational facilities. The present invention can effectively improve the accuracy of family identification and has the potential for wide application and promotion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of big data analysis, and in particular relates to a family identification method and system based on social networks and spatiotemporal accompanying behaviors. Background Art

[0002] Home is the most basic unit of social life and a key place to understand urban activities, society and space. Previously, family data was mainly obtained in a small range of one or a few typical communities through questionnaire surveys, in-depth interviews, GPS tracking surveys, resident activity log surveys and other methods. The data sample size was relatively limited and the timeliness was also lacking. It was unable to comprehensively, holistically and systematically reflect the interaction between family activities and urban space, and the survey was time-consuming and laborious. Although a small number of technologies have been used in recent years to identify family relationships through residence identification and mobile phone signaling data such as the number of night call days and frequency, data acquisition is difficult due to data privacy protection and other reasons, so the identification method is relatively low in universality and has certain errors.

[0003] As a basic group in social life, the family is essentially composed of a series of social networks such as blood, marriage, and geography, and this social network relationship is often reflected in daily life and travel behavior. With the rapid construction and development of smart cities and digital cities, the big data of time and space residence behavior obtained based on mobile phone positioning has become more massive, accurate, and accessible, thus providing a reliable, effective, and widely applicable new path for the identification of family relationships.

[0004] However, in the existing family identification related technologies, there is no definite method to accurately apply the big data of spatiotemporal residence behavior obtained based on mobile phone positioning to identify family relationships and to make fine divisions of family relationships. Summary of the invention

[0005] In view of the deficiencies in the prior art, the purpose of the present invention is to provide a family identification method and system based on social networks and spatiotemporal accompanying behaviors. The big data family samples identified by the present invention carry the big data of user spatiotemporal resident behaviors, and can quickly and accurately analyze the spatiotemporal behavioral characteristics of family units.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0007] A family identification method based on social network and spatiotemporal accompanying behavior comprises the following steps:

[0008] Based on the mobile phone positioning big data, we build a set of basic attribute data and spatiotemporal residence behavior data corresponding to all users in a certain time period T in the research area;

[0009] According to the basic attribute data and the spatial and temporal residence behavior data set, the residences of all users are obtained, and a user pair set is established for user combinations whose residence distances meet the distance threshold;

[0010] Establish a spatiotemporal companionship model, screen user pairs that have spatiotemporal companionship on weekends and holidays within the time period T, determine that user pairs whose spatiotemporal companionship residence days reach the spatiotemporal companionship residence days threshold and whose spatiotemporal companionship residence frequency reaches the spatiotemporal companionship residence frequency threshold have family relationships, and traverse and obtain all user pairs that may have family relationships;

[0011] Construct a social network model, cluster the user pairs that may have family relationships, form different groups of connected sub-graph clusters, and identify the clusters whose number of users in the connected sub-graph clusters meets the quantity threshold as family group clusters;

[0012] Family intergenerational relationships are divided according to the difference in age between the oldest and youngest users in the family cluster, and the number of times users in the family cluster temporarily visit educational facility spaces during fixed hours on weekdays.

[0013] Furthermore, it is defined that when a user stays at the same location for a time exceeding a threshold, time-space residence behavior data is formed, and the time-space residence behavior data includes the residence location, residence start time, residence end time and residence duration, and the basic attribute data includes the user's unique identification code, age and gender.

[0014] Furthermore, based on the time-space residence behavior data, the residence location with the longest residence time and the highest frequency at night is taken as the user's residence, and a one-to-one user combination of a certain user and the remaining users is constructed. All users are traversed to obtain all user combinations. If the straight-line distance between the residences of the user combination is less than the distance threshold, it is judged as a user pair.

[0015] Furthermore, the method of establishing the spatiotemporal adjoint model is:

[0016] Based on the user's spatial and temporal residence behavior data, the residence start time and residence end time of the two users in the user pair at the same residence location are obtained respectively. If the absolute value of the difference between the two users' residence start time and the absolute value of the difference between the two users' residence end time are both less than the time difference threshold, it is regarded as one spatial and temporal accompanying behavior. Based on this, the spatial and temporal accompanying residence frequency of all user pairs on weekends and holidays in a certain period is calculated, and the spatial and temporal accompanying residence days are obtained and counted according to the date attributes in the residence start time or residence end time corresponding to the spatial and temporal accompanying behavior.

[0017] Furthermore, the method of establishing a social network model is:

[0018] The above user pairs are clustered, and all unvisited users who have spatiotemporal connections with a certain user are recursively traversed to establish an undirected graph of a social network model including all users. Multiple unconnected connected subgraph clusters are extracted through the undirected graph of the social network model. In each of the connected subgraph clusters, a connected subgraph cluster with no more than 6 users is selected as a family group cluster.

[0019] Furthermore, assuming that the value of the difference between the age of the oldest user and the youngest user in the family group cluster is A, when A<A1, the intergenerational relationship of the family is a one-generation family. If the number of people of the same gender is ≥2, the family group cluster is screened out;

[0020] When A1≤A<A2, the intergenerational family relationship is a two-generation family;

[0021] When A≥A2, the intergenerational family relationship is a three-generation family.

[0022] Furthermore, the number of temporary visits to the educational facility space by all users in the family cluster during a fixed time on weekdays in a certain time period is obtained. When the number of temporary visits to the space reaches the space visit threshold, and the age of the youngest user in the family cluster is ≥20 years old, the family intergenerational relationship is upgraded by one level.

[0023] A family identification system based on social network and spatiotemporal accompanying behavior, comprising:

[0024] The data acquisition module is used to construct the basic attribute data and time-space residence behavior data set corresponding to all users in a certain time period T in the study area based on the mobile phone positioning big data;

[0025] A user pair set establishment module is used to obtain the residences of all users based on the basic attribute data and the temporal and spatial residence behavior data set, and establish a user pair set for user combinations whose residence distances meet the distance threshold;

[0026] The spatiotemporal companion model building module is used to build a spatiotemporal companion model, screen user pairs that have spatiotemporal companion behavior on weekends and holidays within the time period T, determine that the user pairs whose spatiotemporal companion residence days reach the spatiotemporal companion residence days threshold and whose spatiotemporal companion residence frequency reaches the spatiotemporal companion residence frequency threshold have family relationships, and traverse and obtain all user pairs that may have family relationships;

[0027] A social network model building module is used to build a social network model, cluster the user pairs that may have family relationships, form different groups of connected sub-graph clusters, and identify the clusters whose number of users in the connected sub-graph clusters meets the quantity threshold as family group clusters;

[0028] The intergenerational relationship identification module is used to divide family intergenerational relationships according to the numerical value of the age difference between the oldest user and the youngest user in the family group cluster, and the number of times the users in the family group cluster temporarily visit the educational facility space during fixed time on weekdays.

[0029] A family identification device based on social network and spatiotemporal accompanying behavior comprises: a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of any one of the family identification methods based on social network and spatiotemporal accompanying behavior are implemented.

[0030] A computer storage medium stores a computer program, which, when executed by a processor, implements the steps of any one of the methods for family identification based on social networks and spatiotemporal accompanying behaviors.

[0031] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0032] The present invention is based on spatiotemporal accompanying behavior and spatiotemporal accompanying algorithm, as well as social network analysis, and uses mobile phone positioning big data (LBS, Location Based Services) to obtain basic attribute data and spatiotemporal residence behavior data sets corresponding to all users. First, on the basis of data integration and preprocessing, the user's residence is identified, and then a user pair set is established for the user combination whose residence meets the distance threshold; then, according to the user's simultaneous and co-local residence behavior in places such as shopping malls and parks on weekends and holidays, user pairs with spatiotemporal accompanying behavior are selected, and user pairs are screened by two indicators: the number of spatiotemporal accompanying residence days and the frequency of spatiotemporal accompanying residence. It is determined that the number of spatiotemporal accompanying residence days reaches the threshold of the number of spatiotemporal accompanying residence days and the frequency of spatiotemporal accompanying residence reaches The user pairs with the time-space accompanying residence frequency threshold have family relationships, and all user pairs that may have family relationships are traversed and obtained; then, a social network model based on the user pairs with time-space accompanying behaviors is constructed, and the above user pairs are clustered to form different connected subgraph clusters, and the clusters whose number of users in the connected subgraph clusters meets the number threshold are identified as family group clusters; then, the family intergenerational relationship is divided according to the value of the difference between the age of the oldest user and the youngest user in the family group cluster, and the number of temporary visits to the educational facility space by users in the family group cluster within a fixed time on weekdays. The method of identifying families through mobile phone positioning big data in the present invention has its own user time-space residence behavior big data, which can quickly and accurately analyze the time-space behavior characteristics of the family as a unit, can be widely used and promoted, and is conducive to the deep integration of big data and small data in family research, and provides a new method for in-depth analysis of the interactive coupling law of activities with the family as a unit and urban time and space, and provides a basis for promoting the construction of a living circle with the family as a unit and the time-space configuration of service facilities, promoting the improvement of residents' quality of life, building a family-friendly city, and promoting the sustainable development of urban society. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The illustrative implementation examples of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0034] Figure 1 A flowchart of a family identification method based on social network and spatiotemporal accompanying behavior provided by the present invention.

[0035] Figure 2 A schematic diagram of forming a family group cluster according to the present invention.

[0036] Figure 3 A schematic diagram of a family identification system based on social network and spatiotemporal accompanying behavior provided by the present invention. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0038] The present invention provides a family identification method based on social network and spatiotemporal accompanying behavior, such as Figure 1 As shown, the following steps are included:

[0039] Step S1: construct a set of basic attribute data and time-space residence behavior data corresponding to all users within a certain time period T in the study area based on mobile phone positioning big data;

[0040] Step S2: Obtain the residences of all users based on the basic attribute data and the temporal and spatial residence behavior data set, and establish a user pair set for user combinations whose residence distances meet the distance threshold;

[0041] Step S3, establish a spatiotemporal accompaniment model, screen user pairs that have spatiotemporal accompaniment behaviors on weekends and holidays within the time period T, determine that user pairs whose spatiotemporal accompaniment residence days reach the spatiotemporal accompaniment residence days threshold and whose spatiotemporal accompaniment residence frequency reaches the spatiotemporal accompaniment residence frequency threshold have family relationships, and traverse and obtain all user pairs that may have family relationships;

[0042] Step S4: construct a social network model, cluster the user pairs that may have family relationships, form different groups of connected sub-graph clusters, and identify the clusters whose number of users in the connected sub-graph clusters meets the quantity threshold as family group clusters;

[0043] Step S5, dividing the family generational relationship according to the numerical value of the age difference between the oldest user and the youngest user in the family group cluster, and the number of times the users in the family group cluster temporarily visit the educational facility space within a fixed time on weekdays.

[0044] The present invention is based on spatiotemporal accompanying behavior and spatiotemporal accompanying algorithm, as well as social network analysis, and uses mobile phone positioning big data (LBS, Location Based Services) to obtain basic attribute data and spatiotemporal residence behavior data sets corresponding to all users. First, on the basis of data integration and preprocessing, the user's residence is identified, and then a user pair set is established for the user combination whose residence meets the distance threshold; then, according to the user's simultaneous and co-local residence behavior in places such as shopping malls and parks on weekends and holidays, user pairs with spatiotemporal accompanying behavior are selected, and user pairs are screened by two indicators: the number of spatiotemporal accompanying residence days and the frequency of spatiotemporal accompanying residence. It is determined that the number of spatiotemporal accompanying residence days reaches the spatiotemporal accompanying residence days threshold and The user pairs whose spatiotemporal accompaniment residence frequency reaches the spatiotemporal accompaniment residence frequency threshold have family relationships, and all user pairs that may have family relationships are traversed and obtained; then, a social network model based on the spatiotemporal accompaniment behavior user pairs is constructed, and the above user pairs are clustered to form different connected subgraph clusters, and the clusters whose number of users in the connected subgraph clusters meets the number threshold are identified as family group clusters; then, the family intergenerational relationship is divided according to the value of the difference between the age of the oldest user and the youngest user in the family group cluster, and the number of temporary visits to the educational facility space by users in the family group cluster within a fixed time on weekdays. The method of identifying families through mobile phone positioning big data in the present invention has its own user spatiotemporal residence behavior big data, can quickly and accurately analyze the spatiotemporal behavior characteristics of families as units, can be widely used and promoted, and is conducive to the deep integration of big data and small data in family research, and provides a new method for in-depth analysis of the interactive coupling law of activities and urban spatiotemporal activities based on families as units, and provides a basis for promoting the construction of living circles based on families as units and the spatiotemporal configuration of service facilities, promoting the improvement of residents' quality of life, building family-friendly cities, and promoting the sustainable development of urban society.

[0045] In step S1 of the present invention, based on the time-space residence behavior data obtained by the mobile phone positioning big data, it is defined that the time a user stays in the same location exceeds the residence time threshold to form the time-space residence behavior data, and the time-space residence behavior data includes the residence location, residence start time, residence end time and residence duration, and the basic attribute data includes the user's unique identification code, age and gender.

[0046] Specifically, user U i Take this as an example, i is the user's unique identification code, and define user U i Staying at the same location for more than 30 minutes forms the spatial and temporal residence behavior data. The multi-mobile base station weighted algorithm can be used to infer the residence location within the user research area grid. i Monthly time-space residence behavior data, sorted in chronological order, including user U iThe information of all the residence numbers, residence locations, residence start time, residence end time and residence duration in a certain month is used to construct the spatial-temporal residence behavior data set R of each user. i = {U i,1-1 , U i,1-2 , ..., U i,c-d},U i,c-d Indicates that a user U i The d-th time-space residence behavior data on the c-th day of the month is then traversed across all users to form a time-space residence behavior data set S = {R1, R2, ..., R i}, R i Represents all spatial and temporal residence behavior data of a user.

[0047] In step S2 of the present invention, based on the temporal and spatial residence behavior data, the residence location with the longest residence time and the highest frequency at night is taken as the residence. Specifically, before identifying the residence of the user, it is necessary to determine whether the user is a core user:

[0048] Step S21: If the number of days the user stays in the city during the time period T exceeds the threshold, it means that the user is a core user, meaning a user who has been active in the city for a long time and is not likely to visit the city. Otherwise, the user is a non-core user.

[0049] The present invention only identifies the families of core users in the study area. Specifically, in the embodiment of the present invention, the time period T is 1 month, and the day threshold is 20 days.

[0050] Step S22, residence location identification: calculate user U i The residence of the user is defined as the night time period of the user's residence on that day;

[0051] From 21:00 pm to 8:00 am the next day, we take the spatial-temporal residence behavior dataset S of all users as the object, summarize the monthly cumulative residence time of different users in different residence locations, and take the residence location with the longest residence time and the highest frequency as the residence location of user U i Place of residence Recorded as and Represents user U i The longitude and latitude of the place of residence, i.e., the user's residence location within the study area grid generated by the multi-base station weighted algorithm.

[0052] Step S23: Determine the distance threshold of the place of residence: i The remaining user set P = {P1, P2, ..., P s}, P s In addition to user U iFor a user of the set P, the above steps S21 and S22 are repeated to identify the residence location, and the remaining user sets P and user U are calculated respectively. i Straight-line distance between residences In the formula, Indicates place of residence and place of residence The direct distance between For user P s Residential information, and Represents user P s The longitude and latitude of the place of residence are used to select user pairs in the D data set that are less than or equal to the distance threshold (Note: the distance threshold here is 300 meters, which is selected based on the average coverage of mobile phone base stations in the central urban area). From the remaining user set P, select the user set Q that meets the distance threshold condition = {Q1, Q2, ..., Q n}, construct the user pair set U_Q = {U i Q1, U i Q2, ..., U i Q n}, where U i Q n Indicates two users U whose residence distance is less than the distance threshold i and Q n , i≤n (i, n are the unique identification codes of users to avoid repeated calculations between user pairs).

[0053] In step S3 of the present invention, a spatiotemporal accompaniment model is established, and based on the user's spatiotemporal residence behavior data, the residence start time and residence end time of the two users in the user pair at the same residence location are respectively obtained. If the absolute value of the difference between the two users' residence start time and the absolute value of the difference between the two users' residence end time are both less than the time difference threshold, it is regarded as one spatiotemporal accompaniment behavior, and the spatiotemporal accompaniment residence frequency of all user pairs on weekends and holidays within a certain period of time is calculated accordingly, and the spatiotemporal accompaniment residence days are obtained and counted according to the date attribute in the residence start time or residence end time corresponding to the spatiotemporal accompaniment behavior, and it is determined that the user pairs whose spatiotemporal accompaniment residence days reach the spatiotemporal accompaniment residence days threshold and the spatiotemporal accompaniment residence frequency reaches the spatiotemporal accompaniment residence frequency threshold have a family relationship, all user pairs are traversed, and all user pairs that may have a family relationship are obtained.

[0054] The specific steps include the following:

[0055] Step S31, the frequency of users' spatial and temporal accompaniment of staying in parks, shopping malls and other places on weekends and holidays: Compared with non-family members, users with family relationships often have common leisure travel activities, so the "frequency index of users' spatial and temporal accompaniment of staying in parks, shopping malls and other places on weekends and holidays" is proposed. For the user pairs that meet the residence distance threshold in step 2, extract the records with the same spatial residence behavior on weekends and holidays, further obtain the residence start time and calculate to form the residence time difference data set of the user pairs at the residence location in, Represents the research object U i The start time of the stay at a particular stay location, Represents the research object U i The end time of the stay at a particular stay location, represents a user Q in the rest of the user set Q n The start time of the stay at the same stay location, Represents user Q n At the end time of the stay at the same stay location, if The absolute value of The absolute values ​​of are all less than the time difference threshold, considering the time interval of the residence point formation. The time difference threshold is set to 30 minutes according to the time interval of the residence point formation and the actual situation, and finally the user spatiotemporal residence frequency dataset is formed. That is, the user i Q n The number of residence times with significant spatiotemporal accompanying behaviors during the weekends and holidays of a certain month is used to obtain the user Q n With the research object U i The frequency of stay at all times and spaces during multiple weekends and holidays.

[0056] Step S32, time-space accompanying residence days: Since the user's long-term residence behavior in the same place will generate multiple residence locations, using only the "time-space accompanying residence frequency" may have a certain deviation, so the "time-space accompanying residence days" indicator is proposed, recorded as Indicates the user's i Q n A dataset of the number of days of spatiotemporal residence of significant spatiotemporal accompanying behaviors during the holiday period T of a certain month.

[0057] Step S33: Determine whether two users in a user pair have a family relationship: For the user pair U in the user pair set U_Q that meets the residence distance threshold in step S31, i Q n Constructing the feature set of spatiotemporal residence days and spatiotemporal residence frequency According to the number of days of residence in the space-time in the feature set L and time and space with residence frequency The two indicators are used to distinguish family relationships. Based on the knee algorithm, the point with the maximum curvature on the curve is selected as the inflection point: first, a fitting curve of the spatiotemporal association contact pair and the number of days of residence is generated, the curvature of each point is calculated, and the point with the largest curvature is selected as the spatiotemporal association residence day threshold e, that is, Then, on the basis of satisfying the number of days of space-time accompaniment residence, a fitting curve of space-time accompaniment contact pair and residence frequency is generated, and the point with the largest curvature is also selected as the space-time accompaniment residence frequency threshold f, that is, If the two users have a "possible family relationship", it is considered that there is a "possible family relationship" between them, otherwise it is a non-family relationship. Based on this, the user feature set that may have a family relationship is extracted from the spatiotemporal residence days and spatiotemporal residence frequency dataset L. U i F v is the user pair that may have a family relationship after filtering the user pair set U_Q, that is, user U i With user F v .

[0058] Step S34, repeating steps S31 to S33, identifying all user pairs, and obtaining a data set U_F={U i F1, U i F2, ..., U i F v}.

[0059] In step S4 of the present invention, the method for establishing the social network model is:

[0060] Cluster all user pairs in the user pair data set U_F, recursively traverse all unvisited users who have spatiotemporal connections with a certain user, establish an undirected graph of a social network model including all users, extract multiple unconnected connected subgraph clusters through the undirected graph of the social network model, and in each of the connected subgraph clusters, select the connected subgraph cluster with no more than 6 users as the family group cluster.

[0061] Specifically, step S4 includes the following steps:

[0062] Step S41, constructing an undirected graph of a social network model: Based on the user pair data set U_F with family relationships in step 3,

[0063] The nx.connected_components function in the Python 3.9.7 software library is used to construct an undirected graph of the social network model between users.

[0064] The depth-first search (DFS) algorithm is used to find connected components. The algorithm starts from each unvisited user in the graph, recursively traverses all unvisited users that have temporal and spatial concomitant connections with the user, and marks these nodes as visited. When all users adjacent to the node are traversed, the connected component is found. Then, the algorithm continues to look for the next unvisited user in the graph, and recursively traverses all unvisited users adjacent to it until all users have been visited.

[0065] Step S42: extracting mutually unconnected connected subgraph clusters according to the undirected graph of the social network model, and constructing a connected subgraph cluster set E = {E1, E2, ..., E g}, E g represents the g-th connected subgraph cluster in the connected subgraph cluster set, that is, the cluster connected to user U after conditional screening. i Other users with whom you have a family relationship.

[0066] Step S43: Figure 2 As shown in the figure, considering the intergenerational relationship (three generations), the connected subgraph clusters with "number of users ≤ 6" are extracted as family group clusters, which are recorded as family group cluster set H = {H1, H2, ..., H k}, where H k represents the kth family cluster in the family cluster set.

[0067] In step S5 of the present invention, the intergenerational relationship of the family is divided according to the value of the difference between the age of the oldest user and the youngest user in the family group cluster, and the number of times the users in the family cluster temporarily visit the educational facility space at a fixed time on a certain time period on a working day: based on the family group cluster identified in step S4, the age information of the users in the family group cluster is obtained, and the value of the difference between the age of the oldest user and the youngest user in the family group cluster is calculated to identify the intergenerational relationship of the family group cluster. When A<A1, the intergenerational relationship of the family may be a "one-generation family", and the cluster is marked as "1", but considering the situation of staff dormitories, collective dormitories, etc., the cluster of "number of people of the same gender ≥2" is screened out and marked as "0"; when A1≤A<A2, the intergenerational relationship of the family is a "two-generation family", and the cluster is marked as "2"; when A≥A2, the intergenerational relationship of the family is a "three-generation family", and the cluster is marked as "3".

[0068] Specifically, let A be the difference between the ages of the oldest and youngest users in the family cluster. Considering the legal marriage age in my country, A1 and A2 are 25 and 50 respectively. That is, when A<25, the intergenerational relationship of the family is a one-generation family. If the number of people of the same gender is ≥2, the family cluster will be screened out; when 25≤A<50, the intergenerational relationship of the family is a two-generation family; when 50≤A, the intergenerational relationship of the family is a three-generation family.

[0069] In the present invention, since most children in families do not have mobile phones in kindergarten and primary school, big data cannot identify their user attribute information. Therefore, in the above-mentioned preliminary identification of family intergenerational relationships, users in kindergarten and primary school may be omitted, resulting in inaccurate identification of intergenerational relationships. Therefore, it is necessary to improve family intergenerational identification based on the number of temporary visits to educational facility spaces by users in family group clusters at fixed times on weekdays:

[0070] Get the number of temporary visits to educational facility spaces by all users in the family cluster during fixed hours on weekdays. When the number of temporary visits to educational facility spaces meets the space visit threshold and the age of the youngest user in the family cluster is ≥20 years old, the family intergenerational relationship is upgraded by one level.

[0071] Specifically, the number of times users in the family group cluster temporarily stay in educational facilities such as primary schools and kindergartens during the school and after-school hours from Monday to Friday in a certain month is counted as E_S, and the family intergenerational relationship in step S5 is further subdivided. There are three situations as follows: for a first-generation family, when the number of times any user in the family temporarily visits the educational facility space E_S ≥ 8, and the youngest age of the users in the family is ≥ 20 years old, it indicates that the family has children, so it is transformed from a first-generation family to a second-generation family, and the cluster is re-identified as "2", and the remaining clusters are still first-generation families; for a second-generation family, when the number of times any user in the family temporarily visits the educational facility space E_S ≥ 8, and the youngest age of the users in the family is ≥ 20 years old, it indicates that the family has children, and thus it is transformed from a first-generation family to a second-generation family, and the cluster is re-identified as "2", and the remaining clusters are still first-generation families; for a second-generation family, when the number of times any user in the family temporarily visits the educational facility space E_S ≥ 8, ... the family is transformed from a first-generation family to a second-generation family, and the cluster is re-identified as "2", S When E_S≥8, and the youngest age of the family users is ≥20 years old, it indicates that there are children in the family, so the two-generation family is transformed into a three-generation family, and the cluster is re-identified as "3", and the other clusters are still two-generation families; for three-generation families, when the number of temporary visits to the educational facility space by any user in the family E_S≥8, and the youngest age of the family users is ≥20 years old, it indicates that there are children in the family, so the three-generation family is transformed into a four-generation family, and the cluster is re-identified as "4", and the other clusters are still three-generation families.

[0072] The following is combined with Figure 3The specific implementation process of the present invention is described in detail. Take a certain city as an example for explanation. Based on the 2023 China Unicom mobile phone signaling data of a certain city provided by China Unicom's "Smart Footprint" big data platform, the invention identified 3,879,480 core users of China Unicom in a certain city, and generated 25,371,462 pieces of time-space residence behavior data (non-residence, non-work place) during weekends and holidays in June 2023, forming a total of 50,571,893 pairs of one-to-one user combinations. In view of the fact that a pair of users may form different residence connections at different times and spaces, 8,050,031 different user pairs are constructed by aggregating the two key indicators of time-space accompanying residence frequency and time-space accompanying residence days, and then screened by the two indicators of time-space accompanying residence days and time-space accompanying residence frequency, retaining 4,049,846 user pairs that may have family relationships, and finally screened out 269,892 users through time-space accompanying models, social network models, etc., forming 105,778 family group clusters. The technical process is shown as follows:

[0073] In the present invention, firstly, the basic attribute information such as the user's unique identification number (uid), age (age), gender (gender) in June 2023 is obtained; then the user's time-space residence behavior data in June 2023 is obtained, including the user's residence (home), employment place (work), residence number (move_id), residence start time (stime), residence end time (etime), residence location grid number (grid_id), residence location grid center point longitude and latitude (grid_id_coordinate), etc. The data description is shown in Table 1:

[0074] Table 1 User basic attribute data and time-space residence behavior data description table

[0075]

[0076] In the present invention, in step S2, based on Table 1, the basic attribute data and time-space residence behavior data of users in the study area are obtained, wherein the residence and work place are determined according to the time-space residence behavior data of the user in June 2023: the residence place is the location with the longest stay time and the highest frequency from 21:00 to 8:00 the next day; the work place is the location with the longest stay time and the highest frequency from 9:00 to 17:00 on the same day and is not a residence. At the same time, based on the geographic spatial data, the boundary range of a city, the spatial range data of kindergartens and primary schools, etc. (the research boundary range data comes from the jurisdiction boundaries announced by the relevant government), the spatial range data of kindergartens and primary schools, etc. (from the AOI data of Gaode Map in June 2023) are obtained and uploaded to the "Smart Footprint" platform.

[0077] In the present invention, the data is preprocessed to form a user time-space residence behavior data set, which specifically includes:

[0078] Define User U i The spatial residence behavior data of staying in the same location for more than 30 minutes is calculated as U i = "575" as an example, extract the user's spatial and temporal residence behavior data in June 2023 and sort them in chronological order, including user U 575 All the information of the residence number, residence location, residence start time, residence end time, etc. in a certain month, construct the user's spatial and temporal residence behavior data set S = {S 575,1-1 , S 575,1-2 , ..., S 575,30-20},S 575,30-20 Represents user U 575 In the 20th time-space residence behavior data on the 30th day of June 2023, it is statistically found that user No. 575 has a total of 650 residence data in June 2023. Through the weighted algorithm of multiple mobile phone base stations, it can be inferred that the user is in the AREA within the mobile phone base station grid in the central urban area. c,d The above data is shown in Table 2:

[0079] Table 2U i =“575” user space residence behavior data description table in June 2023

[0080]

[0081] In the present invention, step S2 will identify the location of residence, which specifically includes:

[0082] Identify the user's residence and define the user's nighttime stay period as 21:00 p.m. to 8:00 a.m. the next day. 575 The total monthly residence time of users at different residence locations is summarized, and the residence point with the longest nighttime residence time and the highest residence frequency is taken as the residence point of user U 575 The place of residence is The mobile phone base station grid area where the user lives is calculated to be AREA = "3089". The monthly data multi-base station weighted algorithm is used to infer the user's residential location within the grid.

[0083] In the present invention, the residence distance relationship between different users is judged, a one-to-one user combination of a certain user and other users is constructed, and all user combinations are obtained by traversing all users. If the straight-line distance of the residence of the user combination is less than the distance threshold, it is judged that there may be a family relationship user pair, which specifically includes:

[0084] Except for user U 575 All other users P = {P1, P2, ..., P3879480}, loop the above steps to identify the location of residence, and calculate all other user data sets Q and user U respectively 575 Straight-line distance between residences Select users in the D data set that are less than or equal to 0.3 kilometers away (the average coverage accuracy of base stations in a central urban area of ​​a certain city is 300*300 meters). Through calculation, there are 5 users who meet the conditions. After calculation, P 103781 , P 4257 , P 163 , P 918809 , P 533628 With user U 575 The straight-line distance between the residences (km) is D = {0.3, 0.1, 0.2, 0.2}. The users who meet the residence distance threshold conditions are selected to form a user data set Q. It is believed that these six users may have family relationships, and the user pair set U is constructed. 575 Q={U 575 Q 103781 , U 575 Q 4257 , U 575 Q 163 , U 575 Q 918809 , U 575 Q 533628}.

[0085] In the present invention, step S3 determines whether there is a spatiotemporal accompanying behavior between the user pairs based on the set of user pairs that may have a family relationship in step S2 above by using a spatiotemporal accompanying algorithm. Specifically, it includes:

[0086] Compared with non-family members, users with family relationships tend to have joint leisure travel activities on weekends and holidays, so the "spatiotemporal frequency of users' stay in parks, shopping malls and other places on weekends" is proposed. 575 Q, extract the residence point records at the same location on weekends and holidays in June 2023 (including June 3, June 4, June 10, June 11, June 17, June 18, June 24, and June 25), further obtain the residence start and end time data and calculate the residence point time difference data set Make and The absolute value of ≤30 (minutes), finally forming a user residence time and space accompanied by residence frequency data set That is, the user 575QThe frequency of spatiotemporal accompaniment of significant spatiotemporal accompaniment behaviors on weekends and holidays in June 2023.

[0087] The indicator of “time-space accompanying residence days” is proposed, denoted as That is, users The number of days of spatiotemporal accompaniment with significant spatiotemporal accompaniment behavior on weekends in June 2023. 575 The set U of five user pairs with whom the user may have a family relationship 575 Q, its spatiotemporal residence frequency and spatiotemporal residence days are described in Table 3.

[0088] Table 3 Dataset U 575 Description table of the frequency and days of space-time accompaniment residence by users in Q

[0089]

[0090] The spatial-temporal accompaniment relationship is determined based on the spatial-temporal accompaniment behavior of the weekend in June 2023, which is U 575 For each user pair in Q, we construct a dataset of spatiotemporal residence frequency and spatiotemporal residence days. And further identify the family relationship. Based on the knee algorithm, the point with the maximum curvature on the curve is selected as the inflection point: first generate a fitting curve of the space-time accompanying contact pair and the number of days of residence, calculate the curvature of each point, and select the point with the largest curvature as the space-time accompanying residence threshold e, and then generate a fitting curve of the space-time accompanying contact pair and the residence frequency on the basis of satisfying the space-time accompanying residence days. Similarly, select the point with the largest curvature as the space-time accompanying residence frequency threshold f. Here, the values ​​of e and Ding are set to 2 and 5 respectively, then it is considered that "there may be a family relationship" between the two users, otherwise it is a non-family relationship. Based on this, the user feature set that may have a family relationship is extracted

[0091] In the present invention, step S4 is used to obtain and use H 575 Related family group clusters H 575 = {U 575 , Q 918809 , Q 333628}.

[0092] In the present invention, the difference between the age of the oldest user and the youngest user in the cluster and the number of times the users in the cluster temporarily visit the educational facility space within a fixed time on a weekday are also used. Specifically, it includes:

[0093] Identify the family generation type based on gender and age. Based on the possible family group clusters identified in step 6, obtain the gender and age attributes of the users in the cluster, and calculate the absolute value of the age difference of the users in the cluster, which is recorded as The maximum age difference value is selected to identify the generational differences in family relationships. For this user cluster, considering the legal age of marriage in my country, the age difference between the first and second generations is 25 and 50 respectively. It is defined that when A < 25, the family intergenerational relationship may be a "one-generation family", and the cluster is marked as "1". However, considering the situation of staff dormitories and collective dormitories, the "same-sex number ≥ 2" cluster is screened out and marked as "0"; when 25 ≤ A < 50, the family intergenerational relationship is a "two-generation family", and the cluster is marked as "2"; when 50 ≤ A, the family intergenerational relationship is a "three-generation family", and the cluster is marked as "3". According to this method, the age difference of users in cluster A is A = {30, 0, 25}, that is, the age difference between the oldest user and the youngest user is 30 years old, and the family intergenerational relationship may be a "two-generation family", marked as "2".

[0094] Refine the identification of intergenerational relationships based on the number of stays in educational facilities. Since most children in my country do not have mobile phones in kindergarten and primary school, big data cannot identify their user attribute information. Therefore, based on the identification of intergenerational types in step 701, statistics H 575 The number of times users in the cluster stayed in educational facilities such as primary schools and kindergartens from Monday to Friday in June 2023 (derived from the AOI data of Amap in June 2023) is The intergenerational family relationships in step 701 are further subdivided. Statistics show that H 575 Cluster "U 575 , Q 918809 , Q 533628 "Three users stayed in educational facilities for And the age of the youngest user in the family, Q533628, is ≥ 25 years old, indicating that the family has children, so the family changes from a two-generation family to a three-generation family, and the cluster is re-identified as "3". The above method can be extended to all users and the intergenerational relationship of the family can be refined.

[0095] The present invention also provides a family identification system based on social network and spatiotemporal accompanying behavior, such as Figure 3 As shown, including:

[0096] The data acquisition module is used to construct the basic attribute data and time-space residence behavior data set corresponding to all users in a certain time period T in the study area based on the mobile phone positioning big data;

[0097] A user pair set establishment module is used to obtain the residences of all users based on the basic attribute data and the temporal and spatial residence behavior data set, and establish a user pair set for user combinations whose residence distances meet the distance threshold;

[0098] The spatiotemporal companion model building module is used to build a spatiotemporal companion model, screen user pairs that have spatiotemporal companion behavior on weekends and holidays within the time period T, determine that the user pairs whose spatiotemporal companion residence days reach the spatiotemporal companion residence days threshold and whose spatiotemporal companion residence frequency reaches the spatiotemporal companion residence frequency threshold have family relationships, and traverse and obtain all user pairs that may have family relationships;

[0099] A social network model building module is used to build a social network model, cluster the user pairs that may have family relationships, form different groups of connected sub-graph clusters, and identify the clusters whose number of users in the connected sub-graph clusters meets the quantity threshold as family group clusters;

[0100] The intergenerational relationship identification module is used to divide family intergenerational relationships according to the numerical value of the age difference between the oldest user and the youngest user in the family group cluster, and the number of times the users in the family group cluster temporarily visit the educational facility space during fixed time on weekdays.

[0101] The present invention also provides a family identification device based on social networks and spatiotemporal accompanying behaviors, comprising: a processor and a memory, wherein a computer program is stored on the memory, and when the computer program is executed by the processor, the steps of the above-mentioned family identification method based on social networks and spatiotemporal accompanying behaviors are implemented.

[0102] The present invention also provides a computer storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the family identification method based on social network and spatiotemporal accompanying behavior are implemented.

[0103] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A family identification method based on social network and spatiotemporal accompanying behavior, characterized in that: The following steps are involved: Based on the mobile phone positioning big data, we build a set of basic attribute data and spatiotemporal residence behavior data corresponding to all users in a certain time period T in the research area; According to the basic attribute data and the spatial and temporal residence behavior data set, the residences of all users are obtained, and a user pair set is established for user combinations whose residence distances meet the distance threshold; Establish a spatiotemporal companionship model, screen user pairs that have spatiotemporal companionship on weekends and holidays within the time period T, determine that user pairs whose spatiotemporal companionship residence days reach the spatiotemporal companionship residence days threshold and whose spatiotemporal companionship residence frequency reaches the spatiotemporal companionship residence frequency threshold have family relationships, and traverse and obtain all user pairs that may have family relationships; Construct a social network model, cluster the user pairs that may have family relationships, form different groups of connected sub-graph clusters, and identify the clusters whose number of users in the connected sub-graph clusters meets the quantity threshold as family group clusters; Family intergenerational relationships are divided according to the difference in age between the oldest and youngest users in the family cluster, and the number of times users in the family cluster temporarily visit educational facility spaces during fixed hours on weekdays.

2. The family identification method based on social network and spatiotemporal accompanying behavior according to claim 1, characterized in that: It is defined that the time a user stays at the same location exceeds the residence time threshold to form temporal and spatial residence behavior data, which includes the residence location, residence start time, residence end time and residence duration, and the basic attribute data includes the user's unique identification code, age and gender.

3. The family identification method based on social network and spatiotemporal accompanying behavior according to claim 1, characterized in that: According to the time-space residence behavior data, the residence location with the longest residence time and the highest frequency at night is taken as the user's residence, and a one-to-one user combination of a certain user and the remaining users is constructed. All users are traversed to obtain all user combinations. If the straight-line distance between the residences of the user combination is less than the distance threshold, it is judged as a user pair.

4. The family identification method based on social network and spatiotemporal accompanying behavior according to claim 1, characterized in that: The method to establish the space-time adjoint model is: Based on the user's spatial and temporal residence behavior data, the residence start time and residence end time of the two users in the user pair at the same residence location are obtained respectively. If the absolute value of the difference between the two users' residence start time and the absolute value of the difference between the two users' residence end time are both less than the time difference threshold, it is regarded as one spatial and temporal accompanying behavior. Based on this, the spatial and temporal accompanying residence frequency of all user pairs on weekends and holidays in a certain period is calculated, and the spatial and temporal accompanying residence days are obtained and counted according to the date attributes in the residence start time or residence end time corresponding to the spatial and temporal accompanying behavior.

5. The family identification method based on social network and spatiotemporal accompanying behavior according to claim 1, characterized in that: The method to build a social network model is: The above user pairs are clustered, and all unvisited users who have spatiotemporal connections with a certain user are recursively traversed to establish an undirected graph of a social network model including all users. Multiple unconnected connected subgraph clusters are extracted through the undirected graph of the social network model. In each of the connected subgraph clusters, a connected subgraph cluster with no more than 6 users is selected as a family group cluster.

6. The family identification method based on social network and spatiotemporal accompanying behavior according to claim 1, characterized in that: Assume that the value of the difference between the oldest and youngest users in the family group cluster is A. When A<A1, the intergenerational relationship of the family is a one-generation family. If the number of people of the same gender is ≥2, the family group cluster is screened out. When A1≤A<A2, the intergenerational family relationship is a two-generation family; When A≥A2, the intergenerational family relationship is a three-generation family.

7. The family identification method based on social network and spatiotemporal accompanying behavior according to claim 1, characterized in that: Get the number of temporary visits to educational facility spaces by all users in the family cluster during a fixed time on weekdays during a certain time period. When the number of temporary visits to educational facility spaces reaches the space visit threshold, and the age of the youngest user in the family cluster is ≥20 years old, the family intergenerational relationship is upgraded by one level.

8. A family identification system based on social network and spatiotemporal accompanying behavior, characterized in that: include: The data acquisition module is used to construct the basic attribute data and time-space residence behavior data set corresponding to all users in a certain time period T in the study area based on the mobile phone positioning big data; A user pair set establishment module is used to obtain the residences of all users based on the basic attribute data and the temporal and spatial residence behavior data set, and establish a user pair set for user combinations whose residence distances meet the distance threshold; The spatiotemporal companion model building module is used to build a spatiotemporal companion model, screen user pairs that have spatiotemporal companion behavior on weekends and holidays within the time period T, determine that the user pairs whose spatiotemporal companion residence days reach the spatiotemporal companion residence days threshold and whose spatiotemporal companion residence frequency reaches the spatiotemporal companion residence frequency threshold have family relationships, and traverse and obtain all user pairs that may have family relationships; A social network model building module is used to build a social network model, cluster the user pairs that may have family relationships, form different groups of connected sub-graph clusters, and identify the clusters whose number of users in the connected sub-graph clusters meets the quantity threshold as family group clusters; The intergenerational relationship identification module is used to divide family intergenerational relationships according to the numerical value of the age difference between the oldest user and the youngest user in the family group cluster, and the number of times the users in the family group cluster temporarily visit the educational facility space during fixed time on weekdays.

9. A family identification device based on social network and spatiotemporal accompanying behavior, characterized in that: include: A processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the steps of the family identification method based on social network and spatiotemporal accompanying behavior described in any one of claims 1 to 7 are implemented.

10. A computer storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the family identification method based on social network and spatiotemporal accompanying behavior described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method for identifying family relationship by using mobile phone signaling data

    CN114501420A

  • System and method for the storage, management and sharing of spatial-temporal based information

    US20020069312A1