A power user five-level address data management method and system and a storage medium
By constructing a standard library of power administrative divisions and employing precise matching, regular expression matching, and alias mapping, the problems of multi-source heterogeneity and inconsistent coding of power user address data have been solved, achieving high-precision standardized processing and improved business collaboration efficiency.
Patent Information
- Application Number
- CN202510679143.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2026-11-27
AI Technical Summary
In the power industry, user address data is multi-sourced and heterogeneous, with inconsistent coding rules and weak business relevance. Traditional governance solutions have failed to meet the needs of power business, resulting in inaccurate address positioning and low governance efficiency.
By standardizing matching, business-related association, and intelligent monitoring processes, a standard library for power administrative divisions is constructed. Using precise matching, regular expression matching, and alias mapping, combined with a hierarchical completion algorithm, high-precision standardization processing of five-level administrative divisions is achieved.
It achieves high-precision standardization of power user address data, with a matching accuracy rate of 99.2%, address information availability improved by 89%, positioning efficiency increased by 60%, work order processing time shortened by 30%, governance efficiency improved by 75%, and supports dynamic updates of administrative division adjustments.
Smart Images

Figure CN123178374A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power information technology, specifically to a method, system, and storage medium for managing five-level address data of power users, which is used to improve the standardization, accuracy, and business linkage of address data in power services. Background Technology
[0002] Existing problems: In the digital transformation of the power industry, user address data, as core foundational data, faces the following challenges: Multi-source heterogeneity: Data originates from multiple channels, including civil affairs, statistics, and self-built power systems, with inconsistent coding rules and hierarchical classifications. For example, there are name differences between addresses in the civil affairs system and addresses in power distribution areas. Weak business relevance: Address data lacks effective linkage with business data such as electricity usage categories (high voltage / low voltage), distribution area numbers, and equipment assets, leading to inaccurate address location during fault repair. High manual governance costs: Traditional rule matching struggles to handle dynamic changes in administrative divisions (such as township mergers), relying heavily on manual verification, resulting in low governance efficiency. General address governance solutions lack hierarchical verification rules designed for power scenarios (e.g., high-voltage users need to specify addresses above the county level) and lack deep integration with power business systems (such as SG186 and GIS), resulting in the governed data still failing to meet the business needs of distribution area management and work order scheduling. Summary of the Invention
[0003] This invention provides a method, system, and storage medium for managing five-level address data of electricity users. Through a process of "standardized matching - business-oriented association - intelligent monitoring," it improves data quality and business collaboration efficiency while reducing manual management costs. Specifically, within a preset period, electricity user address data to be managed is obtained from multiple source business systems, including the electricity marketing system (SG186), production management system (PMS), and geographic information system (GIS), via data interfaces. This data includes basic user information (such as user number, electricity type, voltage level), five-level administrative division names (province / city / county / township / village), and detailed address descriptions (such as street name, community name, house number, etc.).
[0004] The system extracts the names of five-level administrative divisions from the original address text. For example, it identifies "Hebei Province", "Shijiazhuang City", "Luquan District", "Tongye Town" and "Nanganzi Village" from "No. 88, Qinglongshan Avenue, Tongye Town, Luquan District, Shijiazhuang City, Hebei Province". After extraction, the system loads the "Electric Power Administrative Division Standard Library" and its matching rules through the configuration file, and stores the standard name, national standard code, electric power extended code and hierarchical relationship in the cache to achieve accurate matching.
[0005] For unmatched items (such as "Jingxing Mining Area" mistakenly written as "Jingxing District"), a preset regular expression (such as "Jingxing.* District") is generated using the historical code array in the configuration for fuzzy matching; if the match is still unsuccessful, a mapping conversion is achieved through an alias array (such as "Huolu County → Luquan District"). At the same time, the missing levels are filled in by combining the hierarchical relationship of the management unit code association, and finally standardized matching processing is achieved.
[0006] In one example, the names of the five-level administrative divisions are matched against a pre-built "Electric Power Administrative Division Standard Library" to determine the standard names of the five-level administrative divisions in the address data. The specific steps are as follows: First, the extracted five-level administrative division names are precisely matched against the pre-built administrative division standard name table, and the existence of administrative division names that are not matched in the first step is checked at each level. If there are any unmatched cases, such as "Shuangluan District" in "Chengde City Shuangluan District" being mistakenly written as "Shuangluan District", then according to the pre-built regular expression matching rules (such as allowing the substitution of common homophones such as "Luan" and "Luan"), the administrative division name that is not matched in the first step is matched a second time in the administrative division standard name table, and its corresponding standard name is determined to be "Shuangluan District" through fuzzy comparison.
[0007] In one example, after a second matching is performed according to the preset regular expression matching rules, if there are still administrative division names that are not matched in the second match (such as the historical name "Shulu County"), then the administrative division name that is not matched in the second match is mapped and converted according to the pre-built administrative division alias table. The administrative division alias table contains alias information such as the historical former names and local customary abbreviations corresponding to the standard names of the five-level administrative divisions in the preset area. For example, "Shulu County" corresponds to the current standard name "Xinji City". The standard name of the five-level administrative division of the address data is determined by the table lookup operation.
[0008] In one example, before matching against a pre-built list of administrative division aliases, the method further includes the specific steps of building such a list: within a preset area (such as the coverage area of a provincial power grid), by collecting historical administrative division adjustment documents from the civil affairs department, local historical records, and historical power system data, the method obtains the category names corresponding to the standard names of the five-level administrative divisions; establishes a first correspondence between the standard names of the five-level administrative divisions and their aliases, for example, "Shijiazhuang City" corresponds to the alias "Shishi"; and simultaneously obtains the latest historically merged standard names corresponding to the standard names of the five-level administrative divisions and their sub-classes. The system records corresponding aliases, such as "Gaocheng District," which was formed by merging the former "Gaocheng City" and "Gaocheng County." It also generates a merger information table of five-level administrative division standard names based on the latest historical mergers and their respective aliases, such as the mapping relationship of "former County A + County B merged into the current District C." A second correspondence is established between the five-level administrative division standard names and the merger information table. Finally, based on the first and second correspondences, an administrative division alias table containing standard names, aliases, and merger history is constructed. This table supports regular updates to adapt to dynamic adjustments in administrative divisions.
[0009] In one example, when matching based on a pre-built list of administrative division aliases, if there is still a third unmatched administrative division name in the alias list (such as a rare dialect name or a non-standard abbreviation), then the semantic association analysis of the third unmatched name is further performed based on the historical evolution records in the merged information table, and GIS spatial location information is used for auxiliary judgment. For example, by using latitude and longitude positioning to determine that the area belongs to a certain merged historical administrative division, the current standard name corresponding to it can be traced.
[0010] In one example, before matching according to the pre-built "Electric Power Administrative Division Standard Library", the method also includes specific steps for constructing the standard library: within a preset area, based on the latest national administrative division code (GB / T2260) and the power industry-specific coding rules, obtain complete five-level administrative division standard names; extract multiple administrative division level information (province, city, county, township, village) from the standard names; by analyzing the geographical inclusion relationship and power business management affiliation relationship between administrative divisions at all levels, establish a hierarchical affiliation table corresponding to the five-level administrative division standard names, for example, "Shijiazhuang City" belongs to "Hebei Province", "Luquan District" belongs to "Shijiazhuang City", etc.; organize the standard names, administrative division codes, hierarchical affiliation relationships and other information in a structured manner to construct an administrative division standard name table containing multi-level indexes, forming the core data structure of the "Electric Power Administrative Division Standard Library".
[0011] In one example, the matching based on the pre-built administrative division standard name table specifically includes the step of determining whether the level of the five-level administrative division name is missing; if a missing level is detected (e.g., the address text only contains "Hebei Province / Shijiazhuang City / Luquan District", missing township and village level information), and the missing level is not the lowest level (i.e., not the village level), then the next lower level of the missing level is determined (e.g., if the township level is missing, the next lower level is the village level); in the pre-built administrative division standard name table, the standard name of the missing level is determined by reverse deduction through the standard name corresponding to the next lower level of the missing level (e.g., the village level name is known to be "Nanganzi Village") and the hierarchical affiliation (e.g., "Nanganzi Village" belongs to "Tongye Town"); based on the standard name of the missing level obtained by reverse deduction, the five-level administrative division name is completed to form complete five-level administrative division information.
[0012] On the other hand, embodiments of this application provide a power user address data governance device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: acquire address data to be governed from multiple power business systems according to a data acquisition strategy within a preset period; perform a five-level administrative division name extraction and standardization matching process, including exact matching, regular expression matching, and alias mapping; label, split, and standardize detailed address data; generate standardized address data in a unified format based on the standardized five-level administrative division names and standardized detailed address data; and synchronize the governance results to each business system to achieve standardized updates of address data.
[0013] On the other hand, embodiments of this application provide a non-volatile computer storage medium for power user address data governance, storing computer-executable instructions. These computer-executable instructions are configured to: acquire power user address data to be governed within a preset period; determine the five-level administrative division names of the address data and perform standardization processing; identify and process detailed address data to generate standardized detailed address components; combine the standardized five-level administrative division names with the standardized detailed address data to generate standardized address data; and record key logs during the governance process, including information such as matching success rate, abnormal data types, and processing results, providing a basis for continuous improvement of data quality.
[0014] The above-mentioned technical solutions adopted in this application embodiment can achieve the following beneficial effects: By constructing a three-level matching mechanism (precise matching → regular expression matching → alias matching) and a hierarchical completion algorithm, high-precision standardized processing of five-level administrative divisions in power user address data is achieved, with a matching accuracy rate of over 99.2%; by using code to modularly decompose and standardize detailed addresses, the structured nature of address data is increased from 45% to 89%, significantly enhancing the usability of address information; in specific business scenarios such as power emergency repair work order dispatch, power grid planning, and customer service, the standardized address data improves positioning efficiency by 60% and shortens work order processing time by 30%; by establishing a dynamically updated administrative division standard library and alias table, the data change problem caused by administrative division adjustments is effectively addressed, and the system supports updating the standard library after provincial administrative division adjustments within one working day; the overall solution realizes full-process automation of power user address data governance, reduces manual intervention by 75%, significantly improves the efficiency and accuracy of address data governance, and provides a solid data foundation for the digital transformation of the power system. Attached Figure Description
[0015] To more clearly illustrate the technical solution of this application, some embodiments of this application will be described in detail below with reference to the accompanying drawings. Figure 1 This is a flowchart illustrating a five-level address data management method, system, and storage medium for power users, provided in an embodiment of this application. Detailed Implementation
[0016] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0017] Figure 1 This is a flowchart illustrating a method, system, and storage medium for managing five-level address data of power users, as provided in an embodiment of this application. The method is applied in the power industry. Certain steps or results in this process allow for manual intervention to help improve accuracy.
[0018] Figure 1 The process may include the following steps: S1 Multi-source data aggregation: Through multi-protocol adaptation, aggregate data from the Ministry of Civil Affairs, the National Bureau of Statistics, and standard addresses, and unify the source names.
[0019] The number of records that meet the rules is counted to assess data quality (such as address matching rate).
[0020] According to the province name, city name, county name, township name, and village name in the address data, the user address is matched with the standard address level by level through the pre-built standard administrative division name table and alias table to determine the names at all levels.
[0021] S2 Five-level administrative division address parsing and matching: By utilizing the fixed length and structure of address codes, the codes at all levels are parsed to associate with standard names.
[0022] In some embodiments of the present application, the codes at all levels are split according to the number of digits of the address code. For example, in the code "650102001003", the first 6 digits "650000" are provincial-level, the first 9 digits "650100" are municipal-level, the first 12 digits "650102" are county-level, the first 15 digits "650102001" are township-level, and the remaining "003" are village-level.
[0023] Then, the standard table is queried by code to obtain the names at all levels. For example, the code "650102" corresponds to "Tianshan District".
[0024] Basic matching: Compare the user address with the names in the standard table level by level from the provincial level to the village level. For example, for the user address "Tianshan District, Urumqi, Xinjiang Uygur Autonomous Region", first match the provincial level "Xinjiang Uygur Autonomous Region", then match the municipal level "Urumqi", and finally match the county level "Tianshan District".
[0025] Regular expression matching and alias mapping: For the non-standard five-level administrative division names in the database table, format conversion is performed. For example, "Wushi" is converted to "Urumqi". When the address name is inconsistent with the administrative division name, the mapping relationship between the standard name, historical name, and abbreviation is recorded based on the constructed administrative division alias table. The aliases in the address are parsed through the arrayMap and splitByString functions.
[0026] S3 Level completion and logical verification: In some embodiments of the present application, since address data may be incomplete, the five-level administrative division names are considered to be completed.
[0027] Specifically, the number of levels of the five-level administrative division names is first determined. The number of levels is judged by length(splitByString(' / ', CODE_PATH)). If it is 5, it includes a complete five-level structure; if not, it indicates missing levels.
[0028] Then, the missing address level is identified and automatically completed according to the affiliation relationship in the standard table. For example, in the standard table, "Tianshan District" belongs to "Urumqi", so when the five-level address has a level address of Tianshan District and the superior level is empty, "Urumqi" is automatically supplemented.
[0029] If the address data is incomplete and the affiliation in the standard library is unclear, the current address data can be returned to the work order for local staff to verify and check, and supplement the address.
[0030] In some embodiments of this application, electricity users are divided into high-voltage users and low-voltage users. When verifying the logical compliance of electricity user address hierarchies, hierarchical jumps are prohibited.
[0031] When verifying the logical compliance of high-voltage user address hierarchy, the address must include administrative divisions at the county level or above. If the high-voltage user hierarchy is less than 3 levels, the verification is marked as failed.
[0032] When verifying the logical compliance of high-voltage user address hierarchies, the addresses need to be refined to the village or community level. If the low-voltage user hierarchy is less than 5 levels, the verification is marked as failed.
[0033] S4 Business Data Association and Audit: In some embodiments of this application, for some scattered user, transformer area, metering device, and other data, a complete dataset including user number, transformer area number, metering address, and administrative division level is formed to support subsequent verification and analysis.
[0034] In some embodiments of this application, power services require the association of multi-source data such as users, distribution areas, metering devices, and administrative divisions to form a complete dataset containing user IDs, address paths, management units, and hierarchical information, supporting services such as address verification and statistical analysis.
[0035] The `RuleLogicSaveService.getView` method maps entities to specific data tables, enabling cross-table data queries. For example, user data is contained in a database table, linked to the substation management unit through the substation database table, and linked to the user through the device code in the device database table to obtain the metering address. This establishes the association between users, substations, metering devices, and administrative divisions. In some embodiments of this application, data requiring manual modification is included; this embodiment can record information on personnel tracking address modifications, thus improving the data audit chain.
[0036] Through the above-mentioned solutions and technologies, this invention achieves full lifecycle governance of power user address data, significantly improves data quality and business collaboration efficiency, and meets the core needs of the digital transformation of the power system.
Claims
1. A method for managing five-level address data of electricity users, characterized in that, Includes the following steps: S1 Multi-source Data Aggregation: Following a preset cycle, electricity user address data is collected from multiple business systems, including the electricity marketing system (SG186), production management system (PMS), and geographic information system (GIS), using data interfaces. This data covers basic user information, five-level administrative division names (province / city / county / township / village), and detailed address descriptions. S2 Five-Level Administrative Division Address Parsing and Matching: The five-level administrative division names are extracted from the collected raw address text, and the "Electricity Administrative Division Standard Library" and related matching rules are loaded. Precise matching is performed first, comparing the extracted administrative division names with the standard names in the standard library level by level. For items that do not match precisely, regular expression fuzzy matching (using regular expressions generated from historical encoding arrays) and alias mapping matching (converting based on the administrative division alias table) are performed sequentially. S3 Hierarchical Completion and Logical Verification: The number of address code bits is parsed to determine if a level is missing. For missing non-lowest levels (such as township level), completion is performed by reverse deduction using the next lower level (such as village level) and hierarchical affiliation. For high-voltage users, verify that their address level is ≥3 levels (county level and above); for low-voltage users, verify that their address level is =5 levels (village level or community level) to prevent level jumps. S4 Business Data Association and Audit: Associate the completed and verified address data with business data such as user number, transformer area number, and metering device address to form a complete dataset; at the same time, audit records are made for the association process and results to facilitate traceability and verification.
2. The method for managing five-level address data of power users according to claim 1, characterized in that, The "Electric Power Administrative Division Standard Library" is constructed as follows: based on the national administrative division code (GB / T 2260) and the electric power industry coding rules, the standard names of the five levels of administrative divisions are obtained. Establish a hierarchical affiliation table to clarify the geographical inclusion relationship and power management affiliation relationship of provinces / cities / counties / townships / villages; construct an administrative division standard name table with multi-level indexes to store standard names, administrative division codes and affiliation relationships.
3. The method for managing five-level address data of power users according to claim 1, characterized in that, In step S2, when performing alias mapping matching, the administrative division alias table includes standard names, historical former names, and merger relationships, and has a regular update mechanism to ensure data accuracy.
4. The method for managing five-level address data of power users according to claim 1, characterized in that, In step S4, when auditing the results of business data association, the audit content includes information such as the association operation time, the operator, and the comparison of the state of the associated data before and after.
5. A five-level address data management system for electricity users, characterized in that, include: The data aggregation module is used to connect to multi-source business systems and collect electricity user address data according to a preset cycle. The address parsing and matching module extracts the names of five levels of administrative divisions from the collected data, loads the standard library and matching rules, and performs exact matching, regular expression fuzzy matching, and alias mapping matching operations. The hierarchical processing and verification module determines and completes missing address hierarchies and verifies address hierarchical logic based on user type (high voltage / low voltage). The business association and auditing module associates the processed address data with business data and audits the association process and results.
6. The power user five-level address data governance system according to claim 5, characterized in that, It also includes a standard library management module, which is used to maintain the "Electric Power Administrative Division Standard Library" and realize functions such as standard library updates and index management.
7. Storage Medium Claim: A non-volatile computer storage medium storing computer-executable instructions, characterized in that, When the instruction is executed by the processor, it implements the five-level address data governance method for power users as described in any one of claims 1-4.
