Hollow village identification method and device based on power data heat map
By using an identification method based on power data heat maps, combined with machine learning algorithms, the accuracy and privacy protection problems of hollow village identification in the existing technology are solved, and low-cost and efficient hollow village identification is achieved.
Patent Information
- Application Number
- CN202010749835.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-07-30
AI Technical Summary
Existing hollow village identification methods cannot effectively determine the population's residential situation, have poor timeliness, are cumbersome to operate, and have the problem of leaking user privacy information.
An identification method based on power data heat maps is used to generate village heat maps by obtaining village boundary information and electricity user data, and a machine learning algorithm is used to build an identification model to achieve accurate identification of hollow villages.
The identification cost is reduced, the identification accuracy is improved, the leakage of user privacy information is avoided, and the operation is simple and efficient.
Smart Images

Figure CN111861257B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to a method and device for identifying hollow villages based on a power data thermal map. Background Art
[0002] With the further development of my country's urban and rural economy, the export of rural labor has increased, and the ways for rural people to increase their income have become diversified. At the same time, the spatial layout of rural housing and the spatial layout of residents of different ages in the village have changed greatly. Many new buildings have emerged on the outskirts of many villages, while the villages are basically old-style or even vacant old houses. This phenomenon of prosperous construction on the periphery, deserted villages and a large number of idle settlements is called "hollow villages". The existence of rural "hollow villages" has largely wasted the country's limited land resources, affected the improvement of the quality of living environment of rural residents, and also affected the development of the rural economy. Therefore, how to effectively identify "hollow villages" is also an important research direction.
[0003] The existing methods for identifying "hollow villages" are mainly through drone image recognition, mobile phone signal recognition or field surveys. However, the existing identification methods are unable to determine the population living situation, have poor timeliness, are cumbersome to operate, consume manpower and material resources, and leak user privacy information. Summary of the invention
[0004] In view of the above problems, the present invention provides a hollow village identification method and device based on the power data heat map, which achieves the purpose of low implementation cost and improved identification accuracy.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] A hollow village identification method based on power data heat map, the method comprising:
[0007] Identify target villages in the area to be studied;
[0008] Obtaining village boundary information of the target village;
[0009] generating a village heat map of the target village according to the power data of the target village and the village boundary information;
[0010] The village heat map is input into a pre-created recognition model to obtain a hollow village recognition result, wherein the recognition model has the ability to make the hollow village recognition result corresponding to the input village heat map tend to the actual hollow village result corresponding to the village heat map.
[0011] Optionally, the acquiring the village boundary information of the target village includes:
[0012] Obtaining a village map of the target village, and determining the coordinates of the target location on the village map;
[0013] Obtaining the village electricity meter coordinates of the target village, and marking the village electricity meter coordinates on the village map;
[0014] In the village map, a target circle is obtained with the coordinates of the target location as the center and a preset radius as the center;
[0015] Searching for electricity users in the target circle to obtain coordinate information of the electricity users;
[0016] A closed area is formed based on the connection of the electricity users' coordinate information, and the closed area is determined as village boundary information.
[0017] Optionally, generating a village heat map of the target village according to the power data of the target village and the village boundary information includes:
[0018] Obtaining basic user information and user power data of the target village, wherein the basic user information includes user coordinates;
[0019] Based on the user power data, calculating the user's accumulated power data over an accumulated time period;
[0020] The user's accumulated power data and the user's coordinates are set on a heat map to obtain a village heat map of a target village.
[0021] Optionally, the method further comprises:
[0022] Create a recognition model based on the village heat map sample, including:
[0023] Obtaining each village heat map of the village heat map sample and the village hollowness level corresponding to each village heat map;
[0024] Using each village heat map and the village hollowness level corresponding to each village heat map as training data;
[0025] The training data is trained to obtain a recognition model.
[0026] Optionally, the method further comprises:
[0027] Testing the recognition model through a test sample to obtain a test result;
[0028] If the test result does not meet the preset conditions, the recognition model is optimized to obtain an optimized recognition model.
[0029] A hollow village identification device based on power data heat map, the device comprising:
[0030] Determination of units, which are used to identify target villages in the area to be studied;
[0031] An acquisition unit, used for acquiring village boundary information of the target village;
[0032] A generating unit, configured to generate a village heat map of the target village according to the power data of the target village and the village boundary information;
[0033] An input unit is used to input the village heat map into a pre-created recognition model to obtain a hollow village recognition result, wherein the recognition model has the ability to make the hollow village recognition result corresponding to the input village heat map tend to the actual hollow village result corresponding to the village heat map.
[0034] Optionally, the acquiring unit includes:
[0035] A first acquisition subunit is used to acquire a village map of the target village and determine the coordinates of the target location on the village map;
[0036] A second acquisition subunit is used to acquire the village electricity meter coordinates of the target village and mark the village electricity meter coordinates on the village map;
[0037] A third acquisition subunit is used to obtain a target circle in the village map with the coordinates of the target location as the center and a preset radius as the center;
[0038] A search subunit, used to search for electricity users in the target circle to obtain coordinate information of the electricity users;
[0039] A determination subunit is used to connect and form a closed area based on the coordinate information of the electricity users, and determine the closed area as village boundary information.
[0040] Optionally, the generating unit includes:
[0041] A fourth acquisition subunit is used to acquire basic user information and user power data of a target village, wherein the basic user information includes user coordinates;
[0042] A calculation subunit, configured to calculate the user's accumulated power data over a cumulative period of time based on the user's power data;
[0043] A subunit is set, which is used to set the user's accumulated power data and the user's coordinates on a heat map to obtain a village heat map of a target village.
[0044] Optionally, the device further comprises:
[0045] A creation unit is used to create a recognition model based on the village heat map sample, and the creation unit includes:
[0046] A fifth acquisition subunit is used to acquire each village heat map of the village heat map sample and a village hollowness level corresponding to each village heat map;
[0047] A training data generating subunit is used to use each village heat map and the village hollowness level corresponding to each village heat map as training data;
[0048] The training subunit is used to train the training data to obtain a recognition model.
[0049] Optionally, the device further comprises:
[0050] A testing subunit, used to test the recognition model through a test sample to obtain a test result;
[0051] The optimization subunit is used to optimize the recognition model to obtain an optimized recognition model if the test result does not meet the preset conditions.
[0052] Compared with the prior art, the present invention provides a hollow village identification method and device based on power data heat map, which determines the target village in the area to be studied; obtains the village boundary information of the target village; generates the village heat map of the target village according to the power data of the target village and the village boundary information; inputs the village heat map into the pre-created recognition model to obtain the hollow village identification result. The present invention uses the electricity consumption data of village users combined with geographic information and combines machine learning to obtain an effective recognition model, which reduces the recognition cost and improves the recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0054] Figure 1 A schematic flow chart of a hollow village identification method based on a power data heat map provided by an embodiment of the present invention;
[0055] Figure 2 A schematic diagram of village boundary determination provided by an embodiment of the present invention;
[0056] Figure 3 A schematic structural diagram of a hollow village identification device based on a power data heat map provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] The terms "first" and "second" and the like in the specification and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0059] In an embodiment of the present invention, a method for identifying hollow villages based on a power data heat map is provided. Data mining is performed through power data, geographic location, time period, and user information. Computer image recognition and machine learning algorithms as well as related heat map data analysis are used to determine whether a village is a hollow village. The hollowness level of the hollow village can also be determined.
[0060] See also Figure 1 , the method may include the following steps:
[0061] S101. Determine the target villages in the area to be studied.
[0062] First determine which hollow villages may be actually verified in the end, and then select the upper n-level administrative regions to which they belong as the research area. The value of n can be adjusted as needed, such as 1<=n<=5. The administrative level refers to: township / district-county-city-province-nation. For example, a village in a certain city is selected as the administrative area to be studied. In the selected research area, the latest administrative scale data provided by the official website of the National Bureau of Statistics is used to query the village committee codes and names of all the villages in the research area, and then use a third-party map service to query the village committee coordinates based on the village committee data, and use random sampling to extract a certain proportion of villages.
[0063] S102: Obtain village boundary information of the target village.
[0064] See also Figure 2, which shows a schematic diagram of village boundary determination provided by an embodiment of the present invention, obtaining a village map of the target village, determining the coordinates of the target location on the village map; obtaining the village meter coordinates of the target village, and marking the village meter coordinates on the village map; obtaining a target circle in the village map with the coordinates of the target location as the center and a preset radius as the center; searching for electricity users in the target circle to obtain coordinate information of electricity users; connecting to form a closed area based on the coordinate information of electricity users, and determining the closed area as village boundary information.
[0065] Specifically, mark the coordinates and name of the village committee of each target village extracted from the map, obtain the village meter coordinates from the power grid company's marketing system, and mark these meter coordinates on the map. One meter represents one household. Then, with the village committee coordinates as the center of the circle and a preset radius (such as 100*n) meters as the radius, search for electricity users within this circle and make a record. Among them, the initial value of n is 1, and the value increases by 1 each time a search is completed. Each search needs to record the electricity users included in the search area. The search after the first time also needs to calculate the set difference between the two searches, that is, the electricity users and the number Δ included in the n-1th circle to the nth circle. After each search, check whether the condition Δ=0 is met; if it is met, the outermost part of the village has been searched, and the villages in the previous Δ are located at the outermost part. So far, all the electricity users included in this village have been searched, and finally the closed area formed by the coordinate points of the outermost electricity users in four directions (northeast, southeast, northwest, southwest) is used as the boundary of the village; if the condition Δ=0 is not met and the search must be terminated when another village committee is found, the electricity users will be divided into corresponding villages using the perpendicular bisector of the connecting line of the two village committees or the road or the river or mountain range, and the subsequent operations are the same as above.
[0066] S103: Generate a village heat map of the target village based on the power data of the target village and the village boundary information.
[0067] In an embodiment of the present invention, basic user information and user power data of a target village can be obtained, wherein the basic user information includes user coordinates; based on the user power data, the user's cumulative power data over a cumulative period of time is calculated; the user's cumulative power data and the user coordinates are set on a heat map to obtain a village heat map of the target village.
[0068] The heat maps of these villages are rendered using electricity consumption data in the map, and the heat maps of each village are extracted separately. Residential electricity users in villages refer to customers who have registered with the power company and have their electricity consumption metered and calculated. The data needs to be extracted from the power grid marketing system. The detailed data includes the following categories:
[0069] (1) Basic user information: including user name, user number, user address, user status, power supply date, account cancellation date, etc.
[0070] (2) User electricity bill data: including the year and month of the electricity bill, electricity price, electricity consumption, electricity bill, etc. Currently, the known methods for identifying hollow villages do not use electricity bill data, and electricity bill data can be obtained online or offline in batches by contacting relevant departments. Other types of data such as water bill data have no access channels, and it is unclear what data items are included in the water bill data, such as household coordinates.
[0071] (3) Information on electricity consumption collection equipment (electricity meter): including equipment coordinates, equipment number, equipment status, equipment address, etc.
[0072] (4) The relationship between electricity consumption collection equipment and users: including equipment number, user number, etc.
[0073] The above is the user's electricity consumption related data. There are two specific ways to access the data: 1. Through consultation with the power marketing system, call its relevant data query interface to obtain electricity consumption data online; 2. Through consultation with the power marketing system, extract offline data through data batch export and import tools.
[0074] The specific operation of rendering heat map is: calculate the cumulative electricity consumption of each village resident in the past n months. The statistical time n is at least 12, that is, one year. The statistical time can be adjusted according to the actual situation. It is recommended to count the electricity consumption in the past 5 years. The cumulative electricity consumption in 5 years can basically reflect whether the user has long-term electricity consumption. If the cumulative electricity consumption is far lower than k% (k<=10) of the average electricity consumption of village residents, it is judged as a vacant residential user, and the electricity consumption is set to 0 in the heat map to enhance the contrast. Use the heat map component to zoom in the map to the village level, set the coordinates of each electricity user and the calculated cumulative electricity consumption into the heat map, and depict the village boundary using the above method.
[0075] The specific operation of extracting heat map is: using the map clipping method based on the village boundary, each village heat map can be extracted as a separate picture. These heat maps are the training data for building the recognition model. At this point, the village heat map based on the electricity consumption data of each village is completed. The amount of electricity consumption in the heat map is depicted by color. The colors corresponding to the electricity consumption from most to least are red, yellow, green, and blue. That is, the red area represents the highest electricity consumption, and the blue area represents the vacant user area. If there is a large blue area in the center of the village, it is considered to be a hollow village of a certain level.
[0076] S104: Input the village heat map into a pre-created recognition model to obtain hollow village recognition results.
[0077] The recognition model has the ability to make the hollow village recognition results corresponding to the input village heat map tend to the actual hollow village results corresponding to the village heat map.
[0078] In an embodiment of the present invention, a method for creating a recognition model is also provided, the method comprising:
[0079] Obtaining each village heat map of the village heat map sample and the village hollowness level corresponding to each village heat map;
[0080] Using each village heat map and the village hollowness level corresponding to each village heat map as training data;
[0081] The training data is trained to obtain a recognition model.
[0082] The heat map is generated according to the above embodiment, and the village hollowness level is calculated according to the following method.
[0083] First calculate the score of each vacant house p = (1 / total number of houses in the village) * (average radius of the village - distance from the current vacant household to the village center) / average radius of the village, where the average radius of the village is the village area that delineates the village divided by π and then squared. The village center can be calculated using the village boundary points searched above.
[0084] Then all p values are accumulated and summed as the central vacancy rate score of the entire village (the value range is [0%, 100%)). The higher the score, the more vacant houses there are and the closer they are to the center. According to this score, the hollow village level is divided into 6 levels: scores in the range of [5%, 10%) are level 1, [10%, 20%) are level 2, [20%, 30%) are level 3, [30%, 40%) are level 4, [40%, 50%) are level 5, and [50%, 100%) are level 6. The higher the level, the more vacant houses there are in the center of the village. Villages at levels 4, 5, and 6 are considered to be hollow villages because at least nearly half of the houses in the center of the village are vacant. Levels 1-3 also indicate a certain central vacancy rate.
[0085] The extracted heat map images of all villages and the calculated hollowness levels were used as training data. The Convolutional Neural Networks (CNN) algorithm, which is widely used in the field of image recognition, was used to train the data, and a hollow village recognition model with a high accuracy (>95%) was obtained.
[0086] In the embodiment of the present invention, the recognition model may be tested by a test sample to obtain a test result; if the test result does not meet a preset condition, the recognition model is optimized to obtain an optimized recognition model.
[0087] Among them, the test sample can be the information corresponding to the village to be verified on the spot. The village to be verified is selected in the further determined area to be studied. Then, the power heat map of these villages is generated according to the method for generating the heat map in the above embodiment. The heat map is input into the recognition model to obtain the recognition result. Using the heat map as the model input is more accurate and convenient for verification, because this type of picture will aggregate, calculate and summarize the user's electricity bill data from the image angle, and the hollow degree can be intuitively seen from the picture, which is convenient for people to judge the accuracy of the model output result. Under normal circumstances, the more and more typical the number of training sample villages randomly extracted for constructing the recognition model, the more accurate the recognition model finally trained. If the accuracy rate is found to be low, it may be that the selected sample range is not comprehensive enough, and the sample village extracted needs to be adjusted, or it may be that the formula for calculating the hollow grade of the village using electricity consumption data is not accurate enough, so it is necessary to optimize the formula calculation method, such as adding weights to a certain parameter, and finally constructing the recognition model again until the actual verification result meets the higher accuracy.
[0088] The present invention utilizes the long-term electricity consumption data and geographic information data of village users, combined with a unique and scientific village vacancy rate calculation method and village boundary recognition method, as well as a convolutional neural network machine learning algorithm related to image recognition, to illustrate how to construct a high-accuracy "hollow village" recognition model. This method has high hollow village recognition accuracy, low cost, and the recognition model can be repeatedly constructed and verified relatively quickly.
[0089] See also Figure 3 In an embodiment of the present invention, a hollow village identification device based on a power data heat map is also provided, and the device includes:
[0090] A determination unit 10, for determining a target village in the area to be studied;
[0091] An acquisition unit 20, configured to acquire village boundary information of the target village;
[0092] A generating unit 30, configured to generate a village heat map of the target village according to the power data of the target village and the village boundary information;
[0093] The input unit 40 is used to input the village heat map into a pre-created recognition model to obtain a hollow village recognition result, wherein the recognition model has the ability to make the hollow village recognition result corresponding to the input village heat map tend to the actual hollow village result corresponding to the village heat map.
[0094] Based on the above embodiment, the acquisition unit includes:
[0095] A first acquisition subunit is used to acquire a village map of the target village and determine the coordinates of the target location on the village map;
[0096] A second acquisition subunit is used to acquire the village electricity meter coordinates of the target village and mark the village electricity meter coordinates on the village map;
[0097] A third acquisition subunit is used to obtain a target circle in the village map with the coordinates of the target location as the center and a preset radius as the center;
[0098] A search subunit, used to search for electricity users in the target circle to obtain coordinate information of the electricity users;
[0099] A determination subunit is used to connect and form a closed area based on the coordinate information of the electricity users, and determine the closed area as village boundary information.
[0100] Based on the above embodiment, the generating unit includes:
[0101] A fourth acquisition subunit is used to acquire basic user information and user power data of a target village, wherein the basic user information includes user coordinates;
[0102] A calculation subunit, configured to calculate the user's accumulated power data over a cumulative period of time based on the user's power data;
[0103] A subunit is set, which is used to set the user's accumulated power data and the user's coordinates on a heat map to obtain a village heat map of a target village.
[0104] Based on the above embodiment, the device further includes:
[0105] A creation unit is used to create a recognition model based on the village heat map sample, and the creation unit includes:
[0106] A fifth acquisition subunit is used to acquire each village heat map of the village heat map sample and a village hollowness level corresponding to each village heat map;
[0107] A training data generating subunit is used to use each village heat map and the village hollowness level corresponding to each village heat map as training data;
[0108] The training subunit is used to train the training data to obtain a recognition model.
[0109] Based on the above embodiment, the device further includes:
[0110] A testing subunit, used to test the recognition model through a test sample to obtain a test result;
[0111] The optimization subunit is used to optimize the recognition model to obtain an optimized recognition model if the test result does not meet the preset conditions.
[0112] The present invention provides a hollow village identification device based on a power data heat map, wherein a determination unit determines a target village in a research area; an acquisition unit acquires village boundary information of the target village; a generation unit generates a village heat map of the target village according to the power data of the target village and the village boundary information; an input unit inputs the village heat map into a pre-created identification model to obtain a hollow village identification result. The present invention utilizes the electricity consumption data of village users in combination with geographic information and combines it with machine learning to obtain an effective identification model, which reduces the identification cost and improves the identification accuracy.
[0113] Based on the foregoing embodiments, an example of the present invention further provides an electronic device, the electronic device comprising:
[0114] Memory, used to store programs;
[0115] A processor is used to execute the program, wherein the program is specifically used to:
[0116] Identify target villages in the area to be studied;
[0117] Obtaining village boundary information of the target village;
[0118] generating a village heat map of the target village according to the power data of the target village and the village boundary information;
[0119] The village heat map is input into a pre-created recognition model to obtain a hollow village recognition result, wherein the recognition model has the ability to make the hollow village recognition result corresponding to the input village heat map tend to the actual hollow village result corresponding to the village heat map.
[0120] The processor is also used to execute the method steps of hollow village identification based on power data thermal map and its associated steps of the present invention.
[0121] Furthermore, the obtaining of the village boundary information of the target village includes:
[0122] Obtaining a village map of the target village, and determining the coordinates of the target location on the village map;
[0123] Obtaining the village electricity meter coordinates of the target village, and marking the village electricity meter coordinates on the village map;
[0124] In the village map, a target circle is obtained with the coordinates of the target location as the center and a preset radius as the center;
[0125] Searching for electricity users in the target circle to obtain coordinate information of the electricity users;
[0126] A closed area is formed based on the connection of the electricity users' coordinate information, and the closed area is determined as village boundary information.
[0127] Further, generating a village heat map of the target village according to the power data of the target village and the village boundary information includes:
[0128] Obtaining basic user information and user power data of the target village, wherein the basic user information includes user coordinates;
[0129] Based on the user power data, calculating the user's accumulated power data over an accumulated time period;
[0130] The user's accumulated power data and the user's coordinates are set on a heat map to obtain a village heat map of a target village.
[0131] Furthermore, the method further comprises:
[0132] Create a recognition model based on the village heat map sample, including:
[0133] Obtaining each village heat map of the village heat map sample and the village hollowness level corresponding to each village heat map;
[0134] Using each village heat map and the village hollowness level corresponding to each village heat map as training data;
[0135] The training data is trained to obtain a recognition model.
[0136] Furthermore, the method further comprises:
[0137] Testing the recognition model through a test sample to obtain a test result;
[0138] If the test result does not meet the preset conditions, the recognition model is optimized to obtain an optimized recognition model.
[0139] Based on the aforementioned embodiments, an embodiment of the present invention provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the hollow village identification method based on the power data thermal map as described in any of the above items.
[0140] It should be noted that the processor or CPU may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that the electronic device that implements the functions of the processor may also be other, which is not specifically limited in the embodiments of the present invention.
[0141] It should be noted that the above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) and other memories; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0142] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0143] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0144] In addition, all functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units. A person of ordinary skill in the art may understand that all or part of the steps of the above-mentioned method embodiments may be completed by hardware related to program instructions, and the above-mentioned program may be stored in a computer-readable storage medium, and when the program is executed, the steps of the above-mentioned method embodiments are executed; and the above-mentioned storage medium includes: mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks, and other media that can store program codes.
[0145] The methods disclosed in the several method embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments.
[0146] The features disclosed in several product embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new product embodiments.
[0147] The features disclosed in several method or device embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0148] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A hollow village identification method based on power data heat map, characterized in that: The method comprises: Identify target villages in the area to be studied; Obtaining village boundary information of the target village; A village heat map of the target village is generated according to the power data of the target village and the village boundary information; wherein the cumulative power consumption of each household in the village in the past n months is calculated, the map is enlarged to the village level using a heat map component, the coordinates of each power user and the calculated cumulative power consumption are set in the heat map, and each village heat map is extracted as a separate picture based on the village boundary information using a map clipping method; the village heat map is input into a pre-created recognition model to obtain a hollow village recognition result, wherein the recognition model has the ability to make the hollow village recognition result corresponding to the input village heat map tend to the actual hollow village result corresponding to the village heat map; the recognition model is obtained by training data using a convolutional neural network algorithm; Wherein, the obtaining of the village boundary information of the target village includes: Obtaining a village map of the target village, and determining the coordinates of the target location on the village map; Obtaining the village electricity meter coordinates of the target village, and marking the village electricity meter coordinates on the village map; In the village map, a target circle is obtained with the coordinates of the target location as the center and a preset radius as the center; Searching for electricity users in the target circle to obtain coordinate information of the electricity users; A closed area is formed based on the connection of the electricity users' coordinate information, and the closed area is determined as village boundary information.
2. The method according to claim 1, characterized in that: The step of generating a village heat map of the target village according to the power data of the target village and the village boundary information includes: Obtaining basic user information and user power data of the target village, wherein the basic user information includes user coordinates; Based on the user power data, calculating the user's accumulated power data over an accumulated time period; The user's accumulated power data and the user's coordinates are set on a heat map to obtain a village heat map of a target village.
3. The method according to claim 1, characterized in that The method further comprises: Create a recognition model based on the village heat map sample, including: Obtaining each village heat map of the village heat map sample and the village hollowness level corresponding to each village heat map; Using each village heat map and the village hollowness level corresponding to each village heat map as training data; The training data is trained to obtain a recognition model.
4. The method according to claim 3, characterized in that The method further comprises: Testing the recognition model through a test sample to obtain a test result; If the test result does not meet the preset conditions, the recognition model is optimized to obtain an optimized recognition model.
5. A hollow village identification device based on power data heat map, characterized in that: The device comprises: Determination of units, which are used to identify target villages in the area to be studied; An acquisition unit, used for acquiring village boundary information of the target village; A generating unit, configured to generate a village heat map of the target village according to the power data of the target village and the village boundary information; wherein the cumulative power consumption of each household in the village in the past n months is calculated, the map is zoomed in to the village level using a heat map component, the coordinates of each power user and the calculated cumulative power consumption are set in the heat map, and each village heat map is extracted as a single picture based on the village boundary information using a map clipping method; An input unit is used to input the village heat map into a pre-created recognition model to obtain a hollow village recognition result, wherein the recognition model has the ability to make the hollow village recognition result corresponding to the input village heat map tend to the actual hollow village result corresponding to the village heat map; the recognition model is obtained by training data using a convolutional neural network algorithm; Wherein, the acquisition unit includes: A first acquisition subunit is used to acquire a village map of the target village and determine the coordinates of the target location on the village map; A second acquisition subunit is used to acquire the village electricity meter coordinates of the target village and mark the village electricity meter coordinates on the village map; A third acquisition subunit is used to obtain a target circle in the village map with the coordinates of the target location as the center and a preset radius as the center; A search subunit, used to search for electricity users in the target circle to obtain coordinate information of the electricity users; A determination subunit is used to connect and form a closed area based on the coordinate information of the electricity users, and determine the closed area as village boundary information.
6. The device according to claim 5, characterized in that The generating unit comprises: A fourth acquisition subunit is used to acquire basic user information and user power data of a target village, wherein the basic user information includes user coordinates; A calculation subunit, configured to calculate the user's accumulated power data over an accumulated time based on the user's power data; A subunit is set, which is used to set the user's accumulated power data and the user's coordinates on a heat map to obtain a village heat map of a target village.
7. The device according to claim 5, characterized in that The device also includes: A creation unit is used to create a recognition model based on the village heat map sample, and the creation unit includes: A fifth acquisition subunit is used to acquire each village heat map of the village heat map sample and a village hollowness level corresponding to each village heat map; A training data generating subunit is used to use each village heat map and the village hollowness level corresponding to each village heat map as training data; The training subunit is used to train the training data to obtain a recognition model.
8. The device according to claim 7, characterized in that The device also includes: A testing subunit, used to test the recognition model through a test sample to obtain a test result; The optimization subunit is used to optimize the recognition model to obtain an optimized recognition model if the test result does not meet the preset conditions.
