Community tree network generation method and system

By generating a list of community members that conforms to the distribution and selecting age-appropriate members as grid leaders and micro-grid members, a community tree network structure is established, which solves the problem that the traditional community management model is difficult to cope with the large population size and diverse needs, and improves community efficiency. Management efficiency.

CN118802408AInactive Publication Date: 2024-10-18YANGZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411112998.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-10-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional community management model is difficult to cope with the challenges of large population size, diverse needs of residents, and frequent emergencies. The existing community grid management has problems with complex levels and unreasonable grid unit division.

Method used

By generating a gender list that conforms to the binomial distribution and an age list that conforms to the Poisson distribution, a list of community member IDs is established, and members of the appropriate age are selected as grid leaders and micro-grid members, and the connection relationship between each micro-grid member and the family is established to form a community. Tree-like network structure rationally allocates community member attributes to improve management efficiency.

Benefits of technology

It effectively generates a community tree network structure, improves the efficiency of community management and services, solves the problems of complex hierarchies and unreasonable grid unit division, and improves resident satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802408A_ABST
    Figure CN118802408A_ABST
Patent Text Reader

Abstract

The invention discloses a community tree network generation method and system. A first community member list is obtained by generating a community member ID list, a gender list and an age list; then generating family members of each family according to the family scale, and adding family member roles into the first community member list to obtain a second community member list; selecting a grid length and a micro-grid member in the second community member list to generate a third community member list; adding the connection relationship between the family members, the connection relationship between the grid length and the micro-grid member, and the connection relationship between the micro-grid member and the household owner into a connection relationship list; and obtaining the community tree network through the third community member list and the connection relation list. According to the invention, the attributes of the community members are reasonably distributed and hierarchically managed, an effective community tree network structure is generated, and the community management and service efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of community management, and in particular to a method and system for generating a community tree network. Background Art

[0002] With the acceleration of urbanization and the continuous development of society, communities, as the basic units of cities, have increasing demands for management and services. Traditional community management models often fail to cope with the challenges of large populations, diverse residents' needs, and frequent emergencies. Grid management is a model in which grid leaders and grid members manage and serve communities, which helps improve community management efficiency and residents' satisfaction. However, due to incomplete community population data, the existing community grid management has problems such as complex hierarchy and unreasonable grid unit division. Summary of the invention

[0003] Purpose of the invention: The purpose of the present invention is to provide a method and system that can effectively generate a tree-like network structure between community grid leaders, grid members and households.

[0004] Technical solution: The community tree network generation method of the present invention comprises the following steps:

[0005] Generate a community member ID list with a length of N according to the total number of community members N, generate a gender list that conforms to the binomial distribution and an age list that conforms to the Poisson distribution, and add them to the community member ID list to form a first community member list;

[0006] Generate a family size list that conforms to the Poisson distribution. For each family, according to its family size T, select T members from the community member list to form a family and set their family identities; add the family to which each member belongs and its family identity to the first community member list to obtain a second community member list; establish connection relationships between family members of each family and add them to the connection relationship list;

[0007] From the second community member list, select N g members of appropriate age as grid leaders; exclude grid leaders from the second community member list, and select N m The appropriate-age member is used as a micro-grid member, and the grid leader and grid member identity are added to the second community member list to obtain the third community member list;

[0008] Generate the number of households managed by microgrid members and the number of microgrid members managed by grid leaders according to Poisson distribution, establish connections between each microgrid member and a corresponding number of households, establish connections between each grid leader and a corresponding number of microgrid members, and add the connection relationship to the connection relationship list;

[0009] A community tree network is established according to the third community member list and the connection relationship list.

[0010] Further, selecting T members from the community member list to form a family and setting their family identities includes: the family identity includes the head of the household and the spouse, parents and children of the head of the household, and each family includes 1 head of the household; and setting the family identity of the members according to their gender and age.

[0011] Furthermore, establishing a connection between each micro-grid member and a corresponding number of households includes: establishing a connection between each micro-grid member and household heads in a corresponding number of households.

[0012] Further, from the second community member list, select N g The appropriate age members serve as grid leaders including:

[0013] According to the total number of community members N and the proportion of the set grid leader population, calculate the number of grid leaders N that conforms to the Poisson distribution g , N g Multiply by the expansion coefficient to get the number of candidate grid leaders N lg ;

[0014] Randomly select N from the second community member list lg The members form a candidate grid long list, and select N from the candidate grid long list. g A member whose age is within the appropriate range will serve as the grid leader.

[0015] Further, the grid leader is excluded from the second community member list, and N m The eligible members as microgrid members include:

[0016] According to the total number of community members N and the proportion of the set micro-grid population, calculate the number of micro-grid members N that conforms to the Poisson distribution m , N m Multiply by the expansion coefficient to calculate the number of candidates N lm ;

[0017] Exclude the selected N from the second community member list g The grid length is N, which is randomly selected lm A list of candidate microgrid members is formed by members, and N members are selected from the list of candidate microgrid members. m A member whose age is within the appropriate range will serve as the grid leader.

[0018] The community tree network generation system of the present invention comprises:

[0019] A first community member list establishing unit, configured to generate a community member ID list of length N according to the total number of community members N, generate a gender list conforming to a binomial distribution and an age list conforming to a Poisson distribution, and add the list to the community member ID list to form a first community member list;

[0020] The second community member list establishing unit is used to generate a family size list that conforms to the Poisson distribution. For each family, according to its family size T, T members are selected from the community member list to form a family and their family identities are set; the family to which each member belongs and the family identity are added to the first community member list to obtain a second community member list; a connection relationship is established between the family members of each family and the family members are added to the connection relationship list;

[0021] The third community member list establishing unit is used to select N from the second community member list. g members of appropriate age as grid leaders; exclude grid leaders from the second community member list, and select N m The appropriate-age member is used as a micro-grid member, and the grid leader and grid member identity are added to the second community member list to obtain the third community member list;

[0022] A grid management list establishment unit is used to generate the number of households managed by micro-grid members and the number of micro-grid members managed by grid leaders according to Poisson distribution, establish a connection between each micro-grid member and a corresponding number of households, establish a connection between each grid leader and a corresponding number of micro-grid members, and add the connection relationship to the connection relationship list;

[0023] The community tree network establishing unit is used to establish a community tree network according to the third community member list and the connection relationship list.

[0024] Furthermore, in the second community member list establishing unit, the family identity includes the household head and the household head's spouse, parents and children, and each family includes one household head.

[0025] Furthermore, in the grid management list establishing unit, a connection is established between each micro-grid member and the heads of a corresponding number of households.

[0026] Furthermore, in the third community member list establishment unit, the number of grid leaders N that conforms to the Poisson distribution is calculated according to the total number of community members N and the ratio of the set grid leader population. g , N g Multiply by the expansion coefficient to get the number of candidate grid leaders N lg ;

[0027] Randomly select N from the second community member list lg The members form a candidate grid long list, and select N from the candidate grid long list.g A member whose age is within the appropriate range will serve as the grid leader.

[0028] Furthermore, in the third community member list establishment unit, the number of micro-grid members V that conforms to the Poisson distribution is calculated according to the total number of community members N and the proportion of the set micro-grid member population. m , V m Multiply by the expansion coefficient to calculate the number of candidates N lm ;

[0029] Exclude the selected N from the second community member list g The grid length is N, which is randomly selected lm A list of candidate microgrid members is formed by members, and N members are selected from the list of candidate microgrid members. m A member whose age is within the appropriate range will serve as the grid leader.

[0030] Beneficial effects: Compared with the prior art, the advantages of the present invention are: by reasonably allocating and hierarchically managing the attributes of community members, an effective community tree network structure is generated, thereby improving the efficiency of community management and services. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 This is a schematic diagram of the community tree network of the present invention. DETAILED DESCRIPTION

[0032] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.

[0033] like Figure 1 As shown, the community tree network generation method includes the following steps.

[0034] (1) Generate a community member ID list L of length N u (This embodiment is generated using the arange() function in the python numpy library), where the ID value corresponds to the subscript index of the list, from 0 to N-1.

[0035] Generate a gender list L of length N that conforms to the binomial distribution (generated using the random.binomial() function in the python numpy library in this example) g .

[0036] Generate an age list L of length N that conforms to the Poisson distribution (generated by the random.possion() function in the python numpy library in this embodiment) a .

[0037] L u , L g and L aMerge into the first community member list.

[0038] (2) Set the average household size in the community, C h , taking it as the average expected value of the Poisson distribution, and generating the number of people in each family T. For each family, the head of household identity is generated first, and the remaining T-1 individuals are set according to their age and gender from the identities of spouse, parents, and children, and a connection relationship is established for all family members of each family, and all connection relationships are saved in the connection relationship list RL c Add the identities of each family member to the role list. r .

[0039] L r The member list is combined with the first community member list to form a second community member list.

[0040] (3) Set the ratio of grid leaders to the total number of people in the community N and calculate the number of grid leaders N required g , N g Multiply by the expansion coefficient to calculate the number of candidates N lg ; Randomly select N from the second community member list lg A list of members is prepared as candidate grid leaders, and members whose ages fall within the appropriate age range are selected from the list of candidate grid leaders as grid leaders.

[0041] Set the proportion of microgrid members in the total number of people in the community N, and calculate the number of microgrid members N required m , N m Multiply by the expansion coefficient to calculate the number of candidates N lm ; Randomly select N from the second community member list lm A list of members is prepared as candidate micro-grid members, and members whose ages fall within the appropriate range are selected from the list as micro-grid members.

[0042] Role list L in the second community member list r Corresponding identities are added for grid leaders and micro-grid members to form a third community member list.

[0043] (4) In the third community member list, filter out the household head identity and extract its corresponding ID, and store it in the created household head list L master Similarly, the micro-grid member identities are screened out and their corresponding IDs are extracted and stored in the created micro-grid member list L m-grid middle.

[0044] Set the average number of connections between microgrid workers and household owners As the average expected value of the Poisson distribution, generate the number of household heads to be managed for each micro-grid operator. The micro-grid operator manages the households in its area by establishing connection relationships with the household heads. Generate a list L of the number of households managed by the micro-grid operators h_amount , let n_remaings be equal to the length of the list L of household heads master of household heads. Use a for loop in the list L h_amount to sequentially query the value amount of the number of households managed by the i-th micro-grid operator. If n_remaings > amount, sequentially select amount household heads from the list of household heads and establish connections with the current i-th micro-grid operator, and save the connection relationships between the household heads and the micro-grid operators into RL c . Then n_remaings = n_remaings - amount until n_remaings < amount, and assign the last remaining n_remaings household heads to the last micro-grid operator for management.

[0045] (5) In the list of third community members, filter out the grid leaders' identities and extract their corresponding IDs, and store them in the created list L of grid leaders grid .

[0046] Set the average connection number between the grid leaders and the micro-grid operators as the average expected value of the Poisson distribution, generate the number of micro-grid operators to be managed for each grid leader. The grid leader manages the grid units in its area by establishing connections with the micro-grid operators. Generate a list L of the number of micro-grid operators managed by the grid leaders m_amount , let n_remaings be equal to the length of the list L of micro-grid operators m-grid of micro-grid operators. Use a for loop in the list L m_amount to sequentially query the value amount of the number of micro-grid operators managed by the i-th grid leader. If n_remaings > amount, sequentially select amount micro-grid operators from the list L of micro-grid operators m-grid and establish connections with the current i-th grid leader, and save the connection relationships between the micro-grid operators and the grid leaders into RL c . Then n_remaings = n_remaings - amount until n_remaings < amount, and assign the last remaining n_remaings micro-grid operators to the last grid leader for management.

[0047] (6) An example of the data structure contained in the final RL c is as follows:

[0048] RL c = {"h": {"p1": [1, 1, 2, 2, 3, 3,...],

[0049] "p2":[2,3,1,3,1,2,...]}

[0050] "gm":{"p1":[...],

[0051] "p2": [...]}

[0052] "rm":{"p1":[...],

[0053] "p2": [...]}

[0054] }

[0055] The third community member list and the connection relationship list RL c The combined output is a community tree network structure C = <L u ,L a ,L g ,L r ,RL c >.

[0056] The community tree network generation system of the present invention comprises:

[0057] A first community member list establishing unit, configured to generate a community member ID list of length N according to the total number of community members N, generate a gender list conforming to a binomial distribution and an age list conforming to a Poisson distribution, and add the list to the community member ID list to form a first community member list;

[0058] The second community member list establishing unit is used to generate a family size list that conforms to the Poisson distribution. For each family, according to its family size T, T members are selected from the community member list to form a family and their family identities are set; the family to which each member belongs and the family identity are added to the first community member list to obtain a second community member list; a connection relationship is established between the family members of each family and the family members are added to the connection relationship list;

[0059] The third community member list establishing unit is used to select N from the second community member list. g members of appropriate age as grid leaders; exclude grid leaders from the second community member list, and select N m The appropriate-age member is used as a micro-grid member, and the grid leader and grid member identity are added to the second community member list to obtain the third community member list;

[0060] A grid management list establishment unit is used to generate the number of households managed by micro-grid members and the number of micro-grid members managed by grid leaders according to Poisson distribution, establish a connection between each micro-grid member and a corresponding number of households, establish a connection between each grid leader and a corresponding number of micro-grid members, and add the connection relationship to the connection relationship list;

[0061] The community tree network establishing unit is used to establish a community tree network structure according to the third community member list and the connection relationship list.

Claims

1. A method for generating a community tree network. It is characterized in that The steps include: Generate a community member ID list with a length of N according to the total number of community members N, generate a gender list that conforms to the binomial distribution and an age list that conforms to the Poisson distribution, and add them to the community member ID list to form a first community member list; Generate a family size list that conforms to the Poisson distribution. For each family, according to its family size T, select T members from the community member list to form a family and set their family identities; add the family to which each member belongs and its family identity to the first community member list to obtain a second community member list; establish connection relationships between family members of each family and add them to the connection relationship list; From the second community member list, select N g A member of appropriate age serves as the grid leader; In the second community member list, exclude the grid leader and select N m The appropriate-age member is used as a micro-grid member, and the grid leader and grid member identity are added to the second community member list to obtain the third community member list; Generate the number of households managed by microgrid members and the number of microgrid members managed by grid leaders according to Poisson distribution, establish connections between each microgrid member and a corresponding number of households, establish connections between each grid leader and a corresponding number of microgrid members, and add the connection relationship to the connection relationship list; A community tree network is established according to the third community member list and the connection relationship list.

2. The method for generating a community tree network according to claim 1, It is characterized in that Selecting T members from the community member list to form a family and setting their family identities includes: the family identity includes the head of the household and the spouse, parents and children of the head of the household, and each family includes 1 head of the household; setting the family identity of the members according to their gender and age.

3. The community tree network generation method according to claim 2, It is characterized in that Establishing a connection between each micro-grid member and a corresponding number of households includes: establishing a connection between each micro-grid member and the heads of the corresponding number of households.

4. The method for generating a community tree network according to claim 1, It is characterized in that From the second community member list, select N g The appropriate age members serve as grid leaders including: According to the total number of community members N and the proportion of the set grid leader population, calculate the number of grid leaders N that conforms to the Poisson distribution g , N g Multiply by the expansion coefficient to get the number of candidate grid leaders N lg ; Randomly select N from the second community member list lg The members form a candidate grid long list, and select N from the candidate grid long list. g A member whose age is within the appropriate range will serve as the grid leader.

5. The method for generating a community tree network according to claim 1, It is characterized in that In the second community member list, exclude the grid leader and select N m The eligible members as microgrid members include: According to the total number of community members N and the proportion of the set micro-grid population, calculate the number of micro-grid members N that conforms to the Poisson distribution m , N m Multiply by the expansion coefficient to calculate the number of candidates N lm ; Exclude the selected N from the second community member list g The grid length is N, which is randomly selected lm A list of candidate microgrid members is formed by members, and N members are selected from the list of candidate microgrid members. m A member whose age is within the appropriate range will serve as the grid leader.

6. A community tree network generation system, It is characterized in that include: A first community member list establishing unit, configured to generate a community member ID list of length N according to the total number of community members N, generate a gender list conforming to a binomial distribution and an age list conforming to a Poisson distribution, and add the list to the community member ID list to form a first community member list; The second community member list establishing unit is used to generate a family size list that conforms to the Poisson distribution. For each family, according to its family size T, T members are selected from the community member list to form a family and their family identities are set; the family to which each member belongs and the family identity are added to the first community member list to obtain a second community member list; a connection relationship is established between the family members of each family and the family members are added to the connection relationship list; The third community member list establishing unit is used to select N from the second community member list. g A member of appropriate age serves as the grid leader; In the second community member list, exclude the grid leader and select N m The appropriate-age member is used as a micro-grid member, and the grid leader and grid member identity are added to the second community member list to obtain the third community member list; A grid management list establishment unit is used to generate the number of households managed by micro-grid members and the number of micro-grid members managed by grid leaders according to Poisson distribution, establish a connection between each micro-grid member and a corresponding number of households, establish a connection between each grid leader and a corresponding number of micro-grid members, and add the connection relationship to the connection relationship list; The community tree network establishing unit is used to establish a community tree network according to the third community member list and the connection relationship list.

7. The community tree network generation system according to claim 6, It is characterized in that In the second community member list establishing unit, the family identities include the household head and the household head's spouse, parents and children, and each family includes one household head.

8. The method for generating a community tree network according to claim 7, It is characterized in that In the grid management list establishment unit, a connection is established between each micro-grid member and the heads of a corresponding number of households.

9. The method for generating a community tree network according to claim 6, It is characterized in that In the third community member list establishment unit, the number of grid leaders N that conforms to the Poisson distribution is calculated according to the total number of community members N and the set ratio of the grid leader population. g , N g Multiply by the expansion coefficient to get the number of candidate grid leaders N lg ; Randomly select N from the second community member list lg The members form a candidate grid long list, and select N from the candidate grid long list. g A member whose age is within the appropriate range will serve as the grid leader.

10. The method for generating a community tree network according to claim 6, It is characterized in that In the third community member list establishment unit, the number of micro-grid members N that conforms to the Poisson distribution is calculated based on the total number of community members N and the proportion of the set micro-grid member population. m , N m Multiply by the expansion coefficient to calculate the number of candidates N lm ; Exclude the selected N from the second community member list g The grid length is N, which is randomly selected lm A list of candidate microgrid members is formed by members, and N members are selected from the list of candidate microgrid members. m A member whose age is within the appropriate range will serve as the grid leader.