A method and apparatus for generating a rural cluster zone boundary

By using road network semantic fusion and adaptive clustering, and rasterizing road network vector data and rural area vector data, vector boundaries of rural clusters are generated. This solves the difficulty of boundary recognition in low-density rural scenarios using existing technologies and achieves accurate generation of rural cluster boundaries.

CN123179031APending Publication Date: 2026-11-27中国移动通信集团云南有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611295690.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to automatically identify the boundaries of densely populated areas in low-density, discontinuous rural settings. They rely on base station data, lack road network semantic discrimination, cannot distinguish between roads and settlements along them, and are susceptible to noise interference.

Method used

By using road network semantic fusion and adaptive clustering, and rasterizing road network vector data and rural area vector data, a standardized raster vector layer is generated. Based on road attribute information, effective raster units are selected, and connected component aggregation and classification are performed to generate the vector boundary of rural clusters.

Benefits of technology

It achieves accurate boundary generation in low-density rural scenarios without relying on base station data, improves the automation and scenario adaptability of the method, effectively eliminates road interference, and improves the accuracy of boundary recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179031A_ABST
    Figure CN123179031A_ABST
Patent Text Reader

Abstract

The application provides a rural aggregation area boundary generation method and device, acquires mobile network measurement report sampling point data, road network vector data and rural area vector data of a target area; performs rasterization processing based on the above data, generates a standardized raster vector layer containing road attribute information of each raster unit; constructs a spatial index based on the layer, matches the sampling points to the raster units to obtain an enhanced sampling point data set; performs effectiveness screening based on the number of device identifiers of the sampling points in each raster unit and the total number of sampling points, determines effective raster units; performs connected domain aggregation and classification determination on the effective raster units, determines rural aggregation clusters; and generates a vector boundary based on the longitude and latitude coordinate data of the sampling points in each rural aggregation cluster. The application realizes end-to-end accurate generation of rural aggregation area boundaries without relying on base station data, and solves the poor adaptability problem of the prior art in a rural low-density and non-continuous scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of geographic information processing and spatial data analysis technology, and in particular to a method and apparatus for generating boundaries of rural cluster areas. Background Technology

[0002] With the widespread adoption of mobile communication and location-based services, geospatial boundary identification based on massive amounts of spatiotemporal data has become an important research direction in geographic information science and urban planning. However, existing technologies mostly focus on boundary identification in high-density, high-activity areas such as urban commercial districts and business areas, and there is still a lack of effective technical solutions for the automatic extraction of boundaries in rural and underdeveloped densely populated areas.

[0003] Currently, the common approach for identifying regional boundaries is to use a weighted evaluation method based on key base station indicators. This type of approach first divides the target area into grids, obtains indicators such as population density and dwell time for each grid, assigns weights to each indicator, determines the central base station through weighted calculation, and then combines a preset model to select boundary grids and generate the final boundary. Another approach starts from the initial area, generates representative points for the boundary grids, and then fits a new boundary to make the boundary conform to the road direction.

[0004] The main drawbacks of the above technical solutions are: they are highly dependent on base station data and the assumption of high-density urban distribution, and are prone to failure in low-density and discontinuous rural scenarios; they lack road network semantic discrimination and cannot distinguish between roads and settlements along the roads; they lack noise cleaning and time verification mechanisms, cannot eliminate interference from temporary events, and rely on the initial area, making it difficult to automate implementation in areas without historical data. Summary of the Invention

[0005] This application provides a method and apparatus for generating boundaries of rural clustered areas, which achieves accurate end-to-end generation of rural clustered area boundaries without relying on base station data through road network semantic fusion and adaptive clustering, solving the problem of poor adaptability of existing technologies in low-density and discontinuous rural scenarios.

[0006] In a first aspect, embodiments of this application provide a method for generating the boundary of a rural agglomeration area, the method comprising: Acquire mobile network measurement report sampling point data, road network vector data, and rural area vector data for the target area; Based on the road network vector data and the rural area vector data, a rasterization process is performed to generate a standardized raster vector layer; wherein, the standardized raster vector layer contains road attribute information of each raster unit, and the road attribute information is determined based on the spatial correlation between the road network vector data and each raster unit; A spatial index is constructed based on the standardized raster vector layer, and each sampling point in the mobile network measurement report sampling point data is matched to the corresponding raster cell to obtain an enhanced sampling point dataset associated with the spatial index; The enhanced sampling point dataset is summarized and statistically analyzed based on each of the grid cells. Based on the number of device identifiers and the total number of sampling points in each grid cell obtained from the statistics, the validity of each grid cell is filtered to determine the valid grid cells. The effective grid cells are subjected to connected component aggregation processing to generate at least one initial cluster. The initial clusters are then classified and determined according to the road attribute information of the grid cells within each initial cluster to identify rural clusters. Based on the latitude and longitude coordinates of the sampling points within each rural cluster, the vector boundaries of each rural cluster are generated.

[0007] Secondly, embodiments of this application also provide a rural agglomeration area boundary generation device, the device comprising: The data acquisition module is used to acquire mobile network measurement report sampling point data, road network vector data, and rural area vector data of the target area; The vector data gridding module is used to perform rasterization processing on the road network vector data and the rural area vector data to generate a standardized raster vector layer; wherein, the standardized raster vector layer contains road attribute information of each raster unit, and the road attribute information is determined based on the spatial correlation between the road network vector data and each raster unit; The data spatial matching module is used to construct a spatial index based on the standardized raster vector layer, match each sampling point in the mobile network measurement report sampling point data to the corresponding raster cell, and obtain an enhanced sampling point dataset associated with the spatial index; The effective grid filtering module is used to summarize and statistically analyze the enhanced sampling point dataset based on each grid cell, and to perform validity filtering on each grid cell based on the number of device identifiers and the total number of sampling points in each grid cell obtained from the statistics, so as to determine the effective grid cells. The rural cluster determination module is used to perform connected component aggregation processing on the effective grid cells to generate at least one initial cluster, and to classify and determine each initial cluster according to the road attribute information of the grid cells in each initial cluster to determine the rural cluster. The cluster boundary generation module is used to generate the vector boundary of each rural cluster based on the latitude and longitude coordinate data of the sampling points within each rural cluster.

[0008] Thirdly, embodiments of this application also provide an electronic device, which includes: One or more processors; Storage device for storing one or more programs. When one or more programs are executed by one or more processors, the one or more processors implement the rural agglomeration area boundary generation method as described in any of the embodiments of this application.

[0009] Fourthly, embodiments of this application also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a rural agglomeration area boundary generation method as described in any of the embodiments of this application.

[0010] This application provides a method for generating the boundary of a rural cluster area. The method involves acquiring mobile network measurement report sampling point data, road network vector data, and rural area vector data for a target area; performing rasterization processing on the road network vector data and rural area vector data to generate a standardized raster vector layer; wherein the standardized raster vector layer contains road attribute information for each raster unit, and the road attribute information is determined based on the spatial association between the road network vector data and each raster unit; constructing a spatial index based on the standardized raster vector layer, matching each sampling point in the mobile network measurement report sampling point data to its corresponding raster unit, obtaining an enhanced sampling point dataset with associated spatial index; summarizing and statistically analyzing the enhanced sampling point dataset based on each raster unit, and filtering the validity of each raster unit based on the number of device identifiers and the total number of sampling points within each raster unit; performing connected component aggregation processing on the valid raster units to generate at least one initial cluster, and classifying each initial cluster based on the road attribute information of the raster units within each initial cluster to determine rural clusters; and generating the vector boundary of each rural cluster based on the latitude and longitude coordinates of the sampling points within each rural cluster. The technical solution of this application introduces road network vector data and rural area vector data for rasterization processing, annotates road attribute information for raster cells, and establishes spatial association between sampling points and raster cells by combining sampling point data from mobile network measurement reports, thereby achieving structured enhancement and noise removal of sampling point data. Based on a dual-threshold validity screening mechanism of the number of device identifiers and the total number of sampling points, as well as a connected domain aggregation and classification judgment strategy that integrates the proportion of road attributes, it achieves accurate identification of clusters and effective elimination of road interference in low-density, discontinuous rural scenarios. This solves the problems of existing technologies relying on base station data, lacking road network semantic discrimination capabilities, and being difficult to adapt to the strip-shaped settlement scenarios of rural houses built along roads. At the same time, it can generate rural cluster vector boundaries end-to-end without relying on the initial area, improving the automation level, scenario adaptability, and boundary accuracy of the method. Attached Figure Description

[0011] To more clearly illustrate the technical solutions of the exemplary embodiments of this application, the accompanying drawings used in describing the embodiments are briefly introduced below. Obviously, the accompanying drawings described are only a portion of the embodiments to be described in this application, and not all of them. For those skilled in the art, other drawings can be obtained from these drawings without any creative effort.

[0012] Figure 1 A flowchart illustrating a method for generating the boundary of a rural agglomeration area provided in an embodiment of this application; Figure 2 A flowchart illustrating another method for generating rural settlement boundaries provided in this application embodiment; Figure 3 A flowchart illustrating another method for generating the boundary of a rural agglomeration area provided in this application embodiment; Figure 4 A flowchart illustrating another method for generating the boundary of a rural agglomeration area provided in this application embodiment; Figure 5 A flowchart illustrating another method for generating the boundary of a rural agglomeration area provided in this application embodiment; Figure 6 This is a schematic diagram of a rural settlement boundary generation device provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0013] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present application, not the entire structure.

[0014] Before introducing the technical solution provided in the embodiments of this application, the application scenarios of the solution can be described first. This embodiment is applicable to various scenarios that require automated identification of the boundaries of rural settlements. Currently, although boundary identification methods based on base station index weighted evaluation have been applied to some extent in high-density areas such as urban commercial districts, they have significant limitations in rural scenarios. In practical applications, due to the characteristics of rural settlements such as low population density, strip-like extension of houses along roads, and discontinuous settlement space, and the fact that sampling point data generally suffers from signal drift and temporary clustering interference, traditional methods are difficult to effectively adapt to the above spatial distribution characteristics, which can easily lead to problems such as cluster identification deviation, difficulty in distinguishing between road areas and residential areas, and poor accuracy of boundary generation results. Therefore, there is an urgent need for a settlement boundary generation method that can integrate road network semantic information, adaptively process noisy data, and comprehensively consider the spatial distribution characteristics of rural settlements, so as to improve the accuracy and scenario adaptability of boundary identification results.

[0015] Example 1 Figure 1 This is a flowchart illustrating a method for generating the boundary of a rural cluster area provided in an embodiment of this application. This embodiment is applicable to various situations that require automated identification of the boundary of a rural cluster area. The method can be executed by a rural cluster area boundary generation device, which can be implemented in the form of software and / or hardware. The hardware can be a controller, such as a mobile terminal, a PC, or a server.

[0016] like Figure 1 As shown, the method for generating rural agglomeration area boundaries provided in this embodiment of the invention includes the following steps: S110. Obtain mobile network measurement report sampling point data, road network vector data, and rural area vector data for the target area.

[0017] The target area refers to the geographical area where the boundaries of rural settlements need to be delineated, which includes rural residential areas and their surrounding land features.

[0018] Among them, mobile network measurement report sampling point data refers to the measurement report records reported by mobile terminals during communication. For example, this data includes the latitude and longitude location information of the sampling point, sampling time, device identifier, operator information, base station cell identifier, and wireless signal quality parameters.

[0019] Road network vector data refers to spatial distribution data of roads stored in vector format, which is used to characterize the geographical location and geometric shape of roads at all levels within the target area. Rural area vector data refers to spatial data of rural administrative divisions or rural land use areas stored in vector format, which is used to define the spatial scope of rasterization processing.

[0020] Specifically, the sampling point data of the mobile network measurement report for the target area is acquired. This data comes from the measurement records reported by the communication terminal. At the same time, road network vector data is acquired to characterize the spatial morphology of roads at all levels in the area, and rural area vector data is acquired to define the geographical scope of rural land use.

[0021] S120. Based on road network vector data and rural area vector data, rasterization processing is performed to generate a standardized raster vector layer.

[0022] The standardized raster vector layer is a rasterized data product that is stored in vector format after the rural area is divided into regular grids. Each raster cell in this layer is a square regular grid, which is used as the basic unit for spatial calculation.

[0023] The standardized raster vector layer contains road attribute information for each raster cell. Road attribute information consists of semantic tags recorded in each raster cell, used to characterize whether the raster cell belongs to a road area. Road attribute information is determined based on the spatial relationship between the road network vector data and each raster cell.

[0024] Specifically, the spatial extent covered by rural area vector data is used as the partitioning boundary. This extent is divided into several regularly arranged raster units according to a uniform scale. These raster units and their spatial indexes together constitute a standardized raster vector layer. After partitioning, the road network vector data is spatially overlaid with each raster unit. By determining whether there is overlap between each raster unit and the road space it covers, it is determined whether the raster unit belongs to a road area. This determination result is recorded in the corresponding raster unit in the form of road attribute information, so that each raster unit in the standardized raster vector layer carries a semantic label that characterizes whether it is a road area.

[0025] S130. Construct a spatial index based on a standardized raster vector layer, match each sampling point in the mobile network measurement report sampling point data to the corresponding raster cell, and obtain an enhanced sampling point dataset with associated spatial index.

[0026] The spatial index refers to the unique identifier assigned to each raster cell in the standardized raster vector layer, used for quickly locating and referencing specific raster cells in spatial calculations. Each sampling point refers to the spatial location corresponding to each record in the mobile network measurement report's sampling point data; each sampling point carries latitude and longitude location information and signal measurement-related attributes.

[0027] The enhanced sampling point dataset refers to a dataset formed by adding a spatial index of the raster cell to each sampling point record based on the original mobile network measurement report sampling point data. This dataset retains both the integrity of the original sampling information and the association of the raster space.

[0028] Specifically, based on the pre-divided grid cells and their spatial indexes in the standardized raster vector layer, the latitude and longitude positions of each sampling point in the mobile network measurement report sampling point data are compared one by one with the spatial range of each grid cell to determine which grid cell each sampling point falls into. Then, the spatial index corresponding to the grid cell it falls into is added to the record of that sampling point, thereby establishing a spatial association between the sampling point and the grid cell. After this association processing, the original sampling point data is expanded into an enhanced sampling point dataset carrying spatial index information. This dataset retains all the measurement attributes of the original sampling points and has spatial positioning capabilities bound to the raster system.

[0029] S140. Summarize and statistically analyze the enhanced sampling point dataset based on each grid cell. Based on the number of device identifiers and the total number of sampling points in each grid cell obtained from the statistics, perform validity screening on each grid cell to determine the valid grid cells.

[0030] The number of device identifiers refers to the number of unique devices obtained by deduplicating the sampling points within each grid cell according to their device identifiers. This number represents the coverage breadth of active user devices within the grid cell. The total number of sampling points refers to the cumulative number of all sampling point records within each grid cell. This number represents the overall intensity of signal sampling activity within the grid cell.

[0031] Among them, an effective grid cell refers to a grid cell whose number of device identifiers and total number of sampling points both reach the preset judgment threshold after validity screening. These grid cells are identified as spatial cells with population activity representation significance.

[0032] Specifically, using the grid cells in the standardized raster vector layer as the grouping basis, the sampling point records in the enhanced sampling point dataset are grouped and summarized according to their respective grid cells. Within each grid cell, the number of duplicate device identifiers among the sampling points associated with that grid cell is counted to obtain the number of device identifiers, and the cumulative number of all sampling point records associated with that grid cell is counted to obtain the total number of sampling points. After completing the above statistics, the validity judgment threshold for each grid cell is determined based on the terrain features and signal coverage of the area where each grid cell is located. This judgment threshold includes two dimensions: the number of devices threshold and the number of sampling points threshold. Then, the statistical results of each grid cell, namely the number of device identifiers and the total number of sampling points, are compared with their respective judgment thresholds. Only grid cells whose number of device identifiers reaches the device number threshold and whose total number of sampling points reaches the sampling point threshold are considered valid grid cells. Grid cells that fail to meet both requirements are considered to lack sufficient population activity representation significance and are removed, thus completing the validity screening of each grid cell.

[0033] S150. Perform connected component aggregation processing on the effective grid cells to generate at least one initial cluster, and classify and determine each initial cluster based on the road attribute information of the grid cells within each initial cluster to identify the rural cluster.

[0034] The initial cluster refers to the temporary cluster identifier assigned to the connected regions that meet the eight-neighbor connectivity condition and whose number of grids reaches the minimum connectivity threshold after performing connected domain aggregation processing on the effective grid cells. It represents the candidate settlement spatial cells.

[0035] Among them, rural clusters refer to the initial clusters that are identified as pure village type or road-through-village type after further classification based on the proportion of road attributes. These clusters are considered to be spatial units that truly have the semantic characteristics of rural settlements.

[0036] Specifically, after obtaining valid grid cells, these valid grid cells are used as inputs, and the connectivity of adjacent valid grid cells is judged by the eight-neighbor connectivity rule. Valid grid cells that meet the eight-neighbor connectivity condition are aggregated into several connected regions. Each connected region is an initial cluster and is assigned a unique cluster identifier. At the same time, a minimum connectivity threshold is set, and initial clusters whose number of grid cells does not reach the threshold are discarded as residual noise.

[0037] Furthermore, for each initial cluster retained after screening, the total number of raster cells contained in each initial cluster and the number of raster cells with true road attribute information are counted. Based on these two statistics, the road attribute proportion of each initial cluster is calculated to characterize the degree of road space occupancy within each initial cluster. On this basis, terrain type and road level information of the area where each initial cluster is located are obtained. According to the terrain type and road level, a corresponding classification threshold is matched and loaded from multiple preset candidate threshold combinations. This classification threshold includes two dimensions: a road removal threshold and a road-village retention threshold. The road attribute proportion of each initial cluster is compared with the loaded road removal threshold and road-village retention threshold respectively. Initial clusters with a road attribute proportion greater than the road removal threshold are classified as pure road types and removed. Initial clusters with a road attribute proportion between the road-village retention threshold and the road removal threshold are classified as road-through-village types and retained as rural clusters. Initial clusters with a road attribute proportion less than the road-village retention threshold are classified as pure village types and retained as rural clusters. This completes the classification of the initial clusters and ultimately determines the rural clusters.

[0038] S160. Based on the latitude and longitude coordinates of the sampling points within each rural cluster, generate the vector boundaries of each rural cluster.

[0039] Among them, latitude and longitude coordinate data refers to the geographical location information carried in the records of each sampling point, which represents the spatial location of the sampling point in the target area in the form of longitude and latitude values.

[0040] Specifically, for each identified rural cluster, the latitude and longitude coordinates of all sampling points within the cluster are extracted according to its cluster identifier. The extracted latitude and longitude coordinates are then converted from the geographic coordinate system to the planar projection coordinate system. Based on the converted planar coordinate point set, a boundary fitting algorithm is used to generate a polygonal boundary that fits the actual spatial distribution of the sampling points. The fitted polygonal boundary is then inversely converted from the planar projection coordinate system back to the geographic coordinate system. The topological validity check and area threshold screening are performed on the inversely converted polygons. The closed polygons that pass the check are output as the vector boundary of the rural cluster.

[0041] This application provides a method for generating the boundary of a rural cluster area. The method involves acquiring mobile network measurement report sampling point data, road network vector data, and rural area vector data for a target area; performing rasterization processing on the road network vector data and rural area vector data to generate a standardized raster vector layer; wherein the standardized raster vector layer contains road attribute information for each raster unit, and the road attribute information is determined based on the spatial association between the road network vector data and each raster unit; constructing a spatial index based on the standardized raster vector layer, matching each sampling point in the mobile network measurement report sampling point data to its corresponding raster unit, obtaining an enhanced sampling point dataset with associated spatial index; summarizing and statistically analyzing the enhanced sampling point dataset based on each raster unit, and filtering the validity of each raster unit based on the number of device identifiers and the total number of sampling points within each raster unit; performing connected component aggregation processing on the valid raster units to generate at least one initial cluster, and classifying each initial cluster based on the road attribute information of the raster units within each initial cluster to determine rural clusters; and generating the vector boundary of each rural cluster based on the latitude and longitude coordinates of the sampling points within each rural cluster. The technical solution of this application introduces road network vector data and rural area vector data for rasterization processing, annotates road attribute information for raster cells, and establishes spatial association between sampling points and raster cells by combining sampling point data from mobile network measurement reports, thereby achieving structured enhancement and noise removal of sampling point data. Based on a dual-threshold validity screening mechanism of the number of device identifiers and the total number of sampling points, as well as a connected domain aggregation and classification judgment strategy that integrates the proportion of road attributes, it achieves accurate identification of clusters and effective elimination of road interference in low-density, discontinuous rural scenarios. This solves the problems of existing technologies relying on base station data, lacking road network semantic discrimination capabilities, and being difficult to adapt to the strip-shaped settlement scenarios of rural houses built along roads. At the same time, it can generate rural cluster vector boundaries end-to-end without relying on the initial area, improving the automation level, scenario adaptability, and boundary accuracy of the method.

[0042] Example 2 Figure 2 This is a schematic diagram of a method for generating the boundary of a rural agglomeration area provided in this application embodiment. Based on the foregoing embodiments, this embodiment will provide a detailed description of steps S120-S130, and the specific implementation method can be found in the technical solution of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.

[0043] like Figure 2 As shown, the method specifically includes the following steps: S210. Obtain mobile network measurement report sampling point data, road network vector data, and rural area vector data for the target area.

[0044] S220. Based on the spatial coupling relationship between the footprint scale of typical farmhouses in rural area vector data and the buffer zone range of roads in road network vector data, determine the optimal spatial resolution from multiple preset candidate spatial resolutions.

[0045] The footprint of a typical rural dwelling refers to the spatial extent occupied by a typical rural house and its attached courtyard, representing the basic spatial scale of a rural residential unit. The buffer zone of a road refers to the strip-shaped area extending a certain distance to both sides of the road centerline, representing the spatial impact of the road on surrounding features. Spatial coupling refers to the degree of correlation between the footprint of a typical rural dwelling and the buffer zone of a road in their spatial distribution, revealing the spatial patterns of rural housing distribution along roads.

[0046] Among them, multiple candidate spatial resolutions refer to several pre-defined raster granularity schemes of different sizes, used to determine the raster size most suitable for rural land cover characteristics through comparative analysis. The optimal spatial resolution refers to the raster size that most effectively balances land cover information preservation and noise removal among multiple candidate spatial resolutions after multi-scale sensitivity analysis.

[0047] Specifically, when determining the spatial granularity of rasterization, the typical farmhouse footprint scale within the coverage area of ​​rural area vector data is used as a benchmark reference, while the buffer zone of roads in road network vector data is used as another benchmark reference. By analyzing the mutual coupling relationship between these two benchmark references in spatial distribution, the spatial dependence pattern between rural residential units and roads is revealed. Based on this, the amount of land cover information that raster units can carry under different candidate spatial resolutions is evaluated according to the above spatial coupling relationship. Finally, the spatial resolution that can maximize the preservation of building information and capture of road spatial association is selected from multiple candidate spatial resolutions as the optimal spatial resolution for subsequent rasterization.

[0048] In determining the optimal spatial resolution, considering the spatial characteristics of rural residential areas, such as the scattered distribution of houses, their strip-like extension along roads, and the varying sizes of individual buildings, directly using a fixed resolution for rasterization can easily lead to semantic confusion between houses and roads due to excessively large raster sizes, or fragmentation of the main building into multiple pieces due to excessively small raster sizes. Therefore, it is necessary to conduct multi-scale sensitivity analysis on multiple preset candidate spatial resolutions to evaluate the comprehensive carrying capacity of raster units at each resolution for key land features such as the main building of the farmhouse, courtyard, and adjacent roads. Based on the above analysis, in this embodiment, optionally, multi-scale sensitivity analysis is performed on multiple preset candidate spatial resolutions, and the optimal spatial resolution is determined from among the candidate spatial resolutions based on the analysis results.

[0049] Multi-scale sensitivity analysis refers to evaluating the comprehensive carrying capacity of raster cells for rural land features at multiple pre-set candidate spatial resolutions of different sizes. By comparing and analyzing the retention and removal effects of different resolutions on key land feature information such as the main body of the house, the scope of the courtyard, the adjacent road segments, and open space noise, the sensitivity of the information carrying efficiency of raster cells at each resolution to the change of resolution scale is examined. Based on the analysis results, the spatial resolution that achieves the optimal balance of information carrying efficiency is selected as the optimal spatial resolution for subsequent raster subdivision.

[0050] By using the above-mentioned multi-scale sensitivity analysis methods, we can ensure that the selected optimal spatial resolution achieves the best balance in terms of information carrying efficiency. It can fully accommodate the main body of the house and the courtyard area, effectively capture the information of the adjacent road segments, and eliminate irrelevant open space noise to the greatest extent possible, thus avoiding semantic mixing and ambiguity or data sparsity and fragmentation problems caused by improper resolution selection.

[0051] S230. Perform regular subdivision of rural area vector data according to the optimal spatial resolution to generate multiple raster cells, and assign a unique spatial index to each raster cell.

[0052] Specifically, after determining the optimal spatial resolution, this optimal spatial resolution is used as the uniform partitioning granularity. The entire spatial range covered by the rural area vector data is divided according to a regular grid, that is, the entire area is cut into several square grid cells of the same shape and size with the same row spacing and column spacing. These grid cells are closely arranged and cover the entire processing range without overlap or gaps. While generating each grid cell, a unique spatial index is assigned to each grid cell. This spatial index is used to quickly locate and reference specific grid cells in subsequent processing, so that each grid cell has the ability to be uniquely identified and retrieved.

[0053] S240. Perform spatial association calculations between the road network vector data and each grid cell. Based on the spatial overlap attributes between each grid cell and the road area, determine the road attribute information of each grid cell. Associate each grid cell with the corresponding spatial index and road attribute information to generate a standardized raster vector layer.

[0054] Among them, the spatial overlap attribute refers to the determination of whether there is an intersection between the spatial range covered by each grid cell and the road area, and the degree of intersection, which is used to determine whether the grid cell belongs to the road area.

[0055] In this embodiment, after completing the rule subdivision and generating each grid cell and its spatial index, the spatial range of the road represented by the road network vector data is overlaid and analyzed with the spatial range of each grid cell. By determining whether there is an intersection between the spatial range covered by each grid cell and the road area, and the degree of intersection, it is determined whether the grid cell belongs to the road area. This determination result is the road attribute information of the grid cell. After determining the road attribute information of each grid cell, the geometric range, the assigned spatial index, and the determined road attribute information of each grid cell are associated and integrated to form a complete attribute record of each grid cell. The attribute records of all grid cells together constitute a standardized grid vector layer.

[0056] S250. Based on each grid cell and corresponding spatial index in the standardized raster vector layer, establish a standard geographic raster fence covering the target area.

[0057] Among them, the standard geographic raster fence refers to a unified spatial partitioning framework covering the entire area, which is composed of each raster unit and its spatial index in the standardized raster vector layer, and is used as a unified reference system for spatial matching of sampling points.

[0058] Specifically, based on a standardized raster vector layer, each raster cell in this layer has been regularly partitioned and assigned its own spatial index. The overall spatial division framework formed by arranging these raster cells according to their spatial position rules serves as a unified spatial positioning reference benchmark, namely a standard geographic raster fence. This standard geographic raster fence covers the entire target area, and each raster cell can be uniquely identified and located through its spatial index. This provides a geometric basis and index reference system for determining spatial attribution of discrete mobile network measurement report sampling points to the corresponding raster cells.

[0059] S260. Perform spatial matching calculations between the latitude and longitude coordinates of each mobile network measurement report sampling point and each grid cell in the standard geographic grid fence to determine the grid cell in which each sampling point falls. Add the spatial index of the determined grid cell to the attribute field of the corresponding sampling point to obtain the enhanced sampling point dataset.

[0060] Specifically, for each sampling point in the mobile network measurement report sampling point data, the geometric inclusion of its latitude and longitude coordinates with the spatial range of each grid cell in the standard geographic grid fence is determined to identify which grid cell the sampling point falls within. After completing the above matching, the spatial index of the identified grid cell is added as a new field to the original attribute record of the sampling point, so that each sampling point, while retaining the original measurement information, is additionally associated with the spatial index identifier of its grid cell. After performing the above spatial matching and attribute addition operations on all sampling points one by one, the original mobile network measurement report sampling point data is expanded into an enhanced sampling point dataset. Each record in this dataset contains the original sampling information and the spatial index of the grid cell to which it belongs, thereby establishing the spatial attribution association between the sampling point and the grid cell, providing a unified data organization basis for subsequent summary statistics by grid cell.

[0061] In the process of matching mobile network measurement report sampling points to standard geographic raster fences, since the location of sampling points is represented by discrete points with latitude and longitude coordinates, while raster units are closed planar spaces represented by regular grid boundaries, geometric inclusion judgment can be used to determine which planar space each discrete point belongs to, thereby establishing a precise spatial correspondence between sampling points and raster units. Based on the above requirements, geometric inclusion judgment between points and areas is performed on the latitude and longitude coordinates of each mobile network measurement report sampling point. It is determined sequentially whether each sampling point falls within the spatial range of each raster unit, and based on the judgment result, the raster unit containing the sampling point is identified as the raster unit to which the sampling point belongs. Through the above point-area geometric inclusion judgment method, discrete sampling points can be accurately mapped to the corresponding raster units, assigning a clear spatial affiliation to each sampling point record. This ensures that subsequent statistical summarization by raster unit has an accurate spatial data foundation and avoids statistical errors caused by matching deviations.

[0062] S270. Summarize and statistically analyze the enhanced sampling point dataset based on each grid cell. Based on the number of device identifiers and the total number of sampling points in each grid cell obtained from the statistics, perform validity screening on each grid cell to determine the valid grid cells.

[0063] S280. Perform connected component aggregation processing on the effective grid cells to generate at least one initial cluster, and classify and determine each initial cluster based on the road attribute information of the grid cells within each initial cluster to identify the rural cluster.

[0064] S290. Based on the latitude and longitude coordinates of the sampling points within each rural cluster, generate the vector boundaries of each rural cluster.

[0065] The technical solution of this application embodiment, when generating a standardized raster vector layer, determines the optimal spatial resolution from a set of multiple candidate spatial resolutions based on the spatial coupling relationship between the footprint scale of typical farmhouses in rural area vector data and the buffer zone range of roads in road network vector data; it then performs regular subdivision of the rural area vector data according to the optimal spatial resolution to generate multiple raster units and assigns a unique spatial index to each raster unit; it performs spatial association calculation between the road network vector data and each raster unit, and determines the road attribute information of each raster unit based on the spatial overlap attribute between each raster unit and the road area; finally, it associates each raster unit with the corresponding spatial index and road attribute information to generate a standardized raster vector layer. Through the above processing methods, the most suitable raster granularity can be adaptively determined based on the spatial characteristics of rural houses distributed along roads and varying scales. This ensures that each raster unit achieves an optimal balance in spatial coverage, fully accommodating the main body and courtyard of typical farmhouses while effectively capturing information from adjacent road segments, and minimizing irrelevant noise from open spaces. Furthermore, by using spatial correlation calculations to label each raster unit with road attribute information, each raster unit in the standardized raster vector layer not only possesses a unique spatial index but also carries a semantic label indicating whether it belongs to a road area. This provides accurate spatial reference and attribute data support for subsequent spatial matching of sampling points and cluster classification.

[0066] The technical solution of this application embodiment, when generating an enhanced sampling point dataset with associated spatial indexes, establishes a standard geographic grid fence covering the target area based on each grid cell in the standardized raster vector layer and its corresponding spatial index; performs spatial matching calculations between the latitude and longitude coordinates of each mobile network measurement report sampling point and each grid cell in the standard geographic grid fence to determine the grid cell to which each sampling point falls; adds the spatial index of the determined grid cell to the attribute field of the corresponding sampling point to obtain the enhanced sampling point dataset. Through the above processing methods, the discrete mobile network measurement report sampling points are spatially matched with the unified standard geographic grid fence, so that each sampling point record obtains the spatial index of its grid cell while retaining the original measurement information, forming an enhanced sampling point dataset that combines the original attributes and spatial association. This provides a unified data organization basis for subsequent summary statistics by grid cell and avoids spatial analysis bias caused by uneven distribution of sampling points or coordinate drift.

[0067] Example 3 Figure 3This is a schematic diagram of a method for generating the boundary of a rural agglomeration area provided in this application embodiment. Based on the foregoing embodiments, this embodiment will provide a more detailed description of step S140. For specific implementation details, please refer to the technical solution of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.

[0068] like Figure 3 As shown, the method specifically includes the following steps: S310. Obtain mobile network measurement report sampling point data, road network vector data, and rural area vector data for the target area.

[0069] S320. Based on road network vector data and rural area vector data, rasterization processing is performed to generate a standardized raster vector layer.

[0070] The standardized raster vector layer contains road attribute information for each raster unit, which is determined based on the spatial relationship between the road network vector data and each raster unit.

[0071] S330. Construct a spatial index based on a standardized raster vector layer, match each sampling point in the mobile network measurement report sampling point data to the corresponding raster cell, and obtain an enhanced sampling point dataset with associated spatial index.

[0072] S340. Based on each grid cell, the enhanced sampling point dataset is grouped and summarized. The number of duplicate device identifiers corresponding to the sampling points in each grid cell is counted to obtain the number of device identifiers. The total number of sampling points in each grid cell is counted to obtain the total number of sampling points.

[0073] Among them, the number of deduplications of different device identifiers refers to the number of independent devices obtained by deduplicating all sampling points contained in each grid cell according to the device identifier field, which is used to characterize the coverage of different terminal devices in the grid cell.

[0074] Specifically, using each grid cell in the standardized raster vector layer as the basis for statistical grouping, each sampling point record in the enhanced sampling point dataset is assigned to the corresponding grid cell group according to its associated spatial index. Within each grid cell group, the device identifier field of all included sampling point records is deduplicated, i.e., after removing duplicate device identifiers, the number of remaining unique device identifiers is counted. This statistical result is the device identifier count of that grid cell. At the same time, the total number of all sampling point records included in each grid cell group is counted, and this statistical result is the total number of sampling points of that grid cell. After performing the above dual statistical operations on all grid cells one by one, each grid cell obtains the corresponding device identifier count and total number of sampling points. These two statistics are used together to characterize the coverage of different terminal devices within the grid cell and the overall intensity of signal sampling activity.

[0075] S350. Determine the validity threshold for each grid cell based on the terrain features of the area where each grid cell is located.

[0076] Among them, topographic features refer to the landform type of the area where each grid cell is located, including plains, basins, mountains, hills, etc., which are used to reflect the degree of surface undulation and settlement distribution in the area.

[0077] The validity threshold is a quantitative critical value used to determine whether a grid cell has significance in representing population activity. This threshold includes two dimensions: the number of devices threshold and the number of sampling points threshold. The number of devices threshold refers to the minimum number of independent devices required to determine the validity of a grid cell, while the number of sampling points threshold refers to the minimum total number of sampling points required to determine the validity of a grid cell.

[0078] Specifically, for each grid cell, the terrain features corresponding to its location are first determined. These terrain features reflect different landform types such as plains, basins, mountains, or hills. The distribution patterns of rural settlements and signal propagation environments differ significantly under different terrain features. Therefore, a corresponding validity threshold can be determined for each grid cell based on the terrain features. This threshold includes two dimensions: the number of devices threshold and the number of sampling points threshold. The number of devices threshold is used to determine whether the number of independent devices in the grid cell meets the minimum requirement for effectively representing population activity. The number of sampling points threshold is used to determine whether the total number of sampling points in the grid cell meets the minimum requirement for effectively representing signal sampling intensity. The two thresholds together constitute a dual judgment standard for grid cell validity screening. This allows for the automatic adaptation of a lower threshold in remote mountainous areas with weak signal coverage and low user activity to prevent real settlements from being missed, while in densely sampled areas, a higher threshold can be automatically adapted to filter out background noise and occasional interference.

[0079] In this embodiment, optionally, the specific implementation of determining the validity threshold corresponding to each grid cell based on the terrain features of the area where each grid cell is located may include the following steps: S3501. Obtain the base station cell identifier corresponding to each grid cell, and estimate the actual coverage radius of the current base station under the current terrain based on the spatial dispersion of the latitude and longitude coordinates of each sampling point belonging to the same base station cell identifier.

[0080] Among them, the base station cell identifier is a logical number used to uniquely identify a cell in a communication network, and each base station cell identifier corresponds to a specific coverage area. Spatial dispersion refers to the degree of spatial dispersion of sampling points belonging to the same base station cell identifier within its coverage area, and is used to reflect the diffusion status of sampling points within the coverage area of ​​that base station cell.

[0081] Here, "current base station" refers to the base station to which the sampling point being analyzed belongs, and its actual coverage radius is used to characterize the effective signal coverage distance of that base station under the current terrain conditions. "Current terrain" refers to the landform type of the area where the current base station is located.

[0082] The actual coverage radius refers to the effective signal coverage distance of the base station under the current terrain, which is estimated by inversion based on the spatial dispersion of the sampling points.

[0083] Specifically, for each grid cell, the base station cell identifier to which it belongs can first be determined. Based on the base station cell identifier field carried by each sampling point in the enhanced sampling point dataset, all sampling points belonging to the same base station cell identifier are grouped together. For the set of sampling points under the same base station cell identifier, the spatial dispersion of their latitude and longitude coordinates is analyzed. This spatial dispersion can reflect the distribution of sampling points within the coverage area of ​​the base station cell. Based on this, the signal coverage capability of the base station under the current terrain conditions is inferred using the analysis results of the spatial dispersion. That is, the effective spatial range that the base station signal can reach is estimated based on the spatial dispersion of the sampling points. This estimation result is the actual coverage radius.

[0084] S3502. Based on the actual coverage radius and the sparsity coefficient of the area where the grid cell is located, determine the critical density threshold of each grid cell.

[0085] The sparsity coefficient is a quantitative parameter used to reflect the sparseness of land cover distribution in rural areas, and its value varies with different regional characteristics. The critical density threshold is a density threshold calculated based on the actual coverage radius and the sparsity coefficient to determine whether a grid cell has the significance of representing population activity.

[0086] Specifically, after obtaining the actual coverage radius of the current base station, which reflects the spatial range in which the base station's signal can effectively cover under the current terrain conditions, the sparsity coefficient of the area where the grid cell is located can also be considered. This sparsity coefficient is used to characterize the sparseness of the distribution of ground features in the area, and the value of the sparsity coefficient varies in different areas. Based on the comprehensive calculation of the actual coverage radius and the sparsity coefficient of the area where the grid cell is located, the critical density threshold of each grid cell is determined. This critical density threshold is used to characterize the minimum level that the sampling point density in the grid cell needs to reach under given coverage conditions and ground feature sparseness. Only grid cells whose sampling point density reaches this critical density threshold have the basic conditions to be further judged as valid grid cells.

[0087] S3503. Based on the critical density threshold, determine the threshold for the number of devices and the threshold for the number of sampling points corresponding to each grid cell.

[0088] Specifically, after calculating the critical density threshold for each grid cell, this critical density threshold represents the minimum level that the sampling point density within the grid cell needs to reach. It can be further transformed into two specific screening thresholds: the device number threshold and the sampling point number threshold, for use in the subsequent dual comparison operation in the grid cell validity determination. The device number threshold is the minimum number of independent devices required to determine the validity of the grid cell based on the critical density threshold, and the sampling point number threshold is the minimum total number of sampling point records required to determine the validity of the grid cell based on the same critical density threshold. The two thresholds together constitute the dual judgment criteria for grid cell validity screening, so that the grid cells that have passed the validity screening meet the minimum requirements corresponding to the critical density threshold in both the dimensions of device coverage breadth and sampling activity intensity.

[0089] In practical applications, the critical density threshold can be converted into minimum quantity requirements in the device dimension and sampling point dimension according to preset conversion rules, serving as the device quantity threshold and sampling point quantity threshold for each grid unit. For example, for a certain grid unit, if the area where the grid unit is located is a remote mountainous area with weak signal coverage and sparse ground features, the critical density threshold calculated based on the actual coverage radius and sparsity coefficient is relatively low. Therefore, the device quantity threshold can be set to 2 independent devices and the sampling point quantity threshold can be set to 10 records to prevent real settlements from being missed due to excessively high thresholds. If the area where the grid unit is located is a plain village area with dense sampling point distribution and relatively regular ground features, the calculated critical density threshold is relatively high. Therefore, the device quantity threshold can be set to 5 independent devices and the sampling point quantity threshold can be set to 20 records to filter out background noise and occasional passing interference.

[0090] S360. Compare the number of device identifiers and the total number of sampling points of each grid cell with the device number threshold and sampling point number threshold of the corresponding grid cell, respectively. Based on the comparison results, perform validity screening on each grid cell to determine the valid grid cells.

[0091] Specifically, for each grid cell, the number of device identifiers is compared with the corresponding device number threshold, and the total number of sampling points is also compared with the corresponding sampling point threshold. Only when both the number of device identifiers and the total number of sampling points meet the device number threshold are the grid cells considered valid. If either the number of device identifiers or the total number of sampling points does not meet the threshold, the grid cell is considered insufficient to represent population activity and is removed. Performing this dual threshold comparison and judgment operation on all grid cells effectively filters out sporadic sampling points caused by signal drift or transient interference. At the same time, the threshold is adaptively adjusted according to the regional terrain characteristics to avoid missing real settlements in remote mountainous areas due to insufficient signal coverage, ensuring that the selected valid grid cells can accurately represent rural residential spaces with actual population activity significance.

[0092] S370. Perform connected component aggregation processing on the effective grid cells to generate at least one initial cluster, and classify and determine each initial cluster based on the road attribute information of the grid cells within each initial cluster to identify the rural cluster.

[0093] S380. Based on the latitude and longitude coordinates of the sampling points within each rural cluster, generate the vector boundaries of each rural cluster.

[0094] The technical solution of this application embodiment, when determining valid grid cells, groups and summarizes the enhanced sampling point dataset based on each grid cell, counts the number of duplicate device identifiers corresponding to the sampling points in each grid cell to obtain the number of device identifiers, and counts the total number of sampling points in each grid cell to obtain the total number of sampling points; determines the validity judgment threshold corresponding to each grid cell based on the terrain features of the area where each grid cell is located; wherein, the validity judgment threshold includes a device number threshold and a sampling point number threshold; compares the number of device identifiers and the total number of sampling points of each grid cell with the device number threshold and the sampling point number threshold of the corresponding grid cell, respectively, and performs validity screening on each grid cell based on the comparison results to determine valid grid cells. Using the above processing methods, with grid cells as the basic statistical unit, the sampling points in the enhanced sampling point dataset are subjected to device deduplication statistics and total sampling point count statistics. This yields a quantitative representation of each grid cell in two dimensions: device coverage breadth and sampling activity intensity. Simultaneously, based on the terrain characteristics of the area where the grid cell is located, the device number threshold and sampling point number threshold corresponding to each grid cell are adaptively determined. Through dual threshold comparison, the effectiveness of the grid cells is screened. This allows for the automatic adaptation of lower thresholds in remote mountainous areas with weak signal coverage and low user activity to prevent real settlements from being missed, while in densely sampled areas, higher thresholds are automatically adapted to filter out background noise and occasional interference. This ensures that the selected effective grid cells can accurately represent rural residential spaces with actual population activity significance.

[0095] Example 4 Figure 4 This is a schematic diagram of a method for generating the boundary of a rural agglomeration area provided in this application embodiment. Based on the foregoing embodiments, this embodiment will provide a more detailed description of step S150. For specific implementation details, please refer to the technical solution of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.

[0096] like Figure 4 As shown, the method specifically includes the following steps: S410. Obtain mobile network measurement report sampling point data, road network vector data, and rural area vector data of the target area; perform rasterization processing on the road network vector data and rural area vector data to generate a standardized raster vector layer.

[0097] The standardized raster vector layer contains road attribute information for each raster unit, which is determined based on the spatial relationship between the road network vector data and each raster unit.

[0098] S420. Construct a spatial index based on a standardized raster vector layer, match each sampling point in the mobile network measurement report sampling point data to the corresponding raster cell, and obtain an enhanced sampling point dataset with associated spatial index.

[0099] S430. Summarize and statistically analyze the enhanced sampling point dataset based on each grid cell. Based on the number of device identifiers and the total number of sampling points in each grid cell obtained from the statistics, perform validity screening on each grid cell to determine the valid grid cells.

[0100] S440. Perform connectivity analysis based on the eight-neighbor connectivity rule on the effective raster cells to aggregate the effective raster cells that satisfy the eight-neighbor connectivity condition into connected regions.

[0101] Among them, the connectivity analysis of the eight-neighbor connectivity rule refers to the spatial aggregation processing of effective grid cells based on the eight-neighbor connectivity condition, and the grid cells that meet the connectivity condition are merged into the same connected region; the eight-neighbor connectivity condition means that there is a spatial adjacency relationship between a grid cell and its eight surrounding adjacent grid cells in the eight directions, namely up, down, left, right, upper left, upper right, lower left, and lower right.

[0102] A connected region refers to a set of spatially continuous cells formed by aggregating several effective grid cells that satisfy the eight-neighbor connectivity condition.

[0103] Specifically, after determining the valid grid cells, these valid grid cells are used as the analysis objects. The eight-neighbor connectivity rule is used to determine spatial connectivity. This rule stipulates that each grid cell is considered connected as long as there is a spatial adjacency relationship between it and its eight neighboring grid cells in the surrounding eight directions. The eight directions include up, down, left, right, and the four diagonal directions of upper left, upper right, lower left, and lower right. All valid grid cells are traversed, and the valid grid cells that satisfy the above eight-neighbor connectivity conditions are aggregated into a whole, so that all valid grid cells that are interconnected through direct or indirect connectivity are divided into the same set, which is the connected region. This completes the process of reorganizing discrete valid grid cells into several spatially continuous units.

[0104] S450. Based on the number of grid cells contained in each connected region, each connected region is filtered, and the connected regions retained after filtering are determined as initial clusters, and a unique cluster identifier is assigned to each initial cluster.

[0105] Specifically, after completing the connected component analysis and obtaining several connected regions, the number of raster cells contained in each connected region is counted, and this count is compared with a preset minimum connected size threshold. Only connected regions with the number of raster cells reaching the minimum connected size threshold are retained, while connected regions with the number of raster cells not reaching the threshold are considered residual noise and are removed because their size is too small. For each connected region retained after filtering, it is determined as an initial cluster, and a unique cluster identifier is assigned to each initial cluster. This cluster identifier is used to uniquely identify and reference the initial cluster in subsequent processing, so that each initial cluster has identification information that can be independently tracked and managed.

[0106] After aggregating effective grid cells into several connected regions, isolated small patches may exist in rural areas due to sporadic signal drift or occasional interference. These patches do not have actual settlement representation significance on a spatial scale. Therefore, they can be filtered based on the size of each connected region to eliminate the aforementioned noise interference. Based on the above requirements, the number of grid cells contained in each connected region is counted, and connected regions with the number of grid cells reaching a preset minimum connectivity threshold are determined as initial clusters. Each initial cluster is assigned a unique cluster identifier. Through the above minimum connectivity constraint filtering method, isolated grid patches caused by single-point false alarms or transient signal anomalies can be effectively filtered out, ensuring that the retained initial clusters meet the scale requirements corresponding to the smallest rural residential unit on a spatial scale. This provides basic data objects with actual settlement significance for subsequent classification based on road attribute proportions.

[0107] S460. Based on the terrain type information and road grade information of each initial cluster, the corresponding classification judgment threshold is matched and loaded from multiple preset candidate threshold combinations.

[0108] Among them, terrain type information refers to the landform classification of the area where each initial cluster is located, including plains, basins, mountains, hills, etc. Road grade information refers to the administrative or technical grade of the roads associated with each initial cluster, including high-grade roads and low-grade roads, etc.

[0109] Among them, multiple candidate threshold combinations refer to multiple sets of classification and judgment threshold alternatives pre-set for different terrain types and road grades.

[0110] The classification threshold includes two specific values: a road removal threshold and a road-village retention threshold. The road removal threshold is the percentage of initial clusters that represent a pure road type. The road-village retention threshold is the percentage of initial clusters that represent a road passing through a village or a pure village type.

[0111] For each initial cluster, the terrain type information of the area where the initial cluster is located and the road grade information associated with the initial cluster can be determined first. The terrain type information reflects whether the area belongs to the landform type such as plain, basin, mountain or hill, and the road grade information reflects the administrative or technical grade of the roads involved in the area. After obtaining the above two types of information, the terrain type information and road grade information are used as matching conditions. From a number of pre-set candidate threshold combinations, the set of thresholds that matches the current terrain type and road grade is searched and loaded as the classification judgment threshold of the current initial cluster. Different terrain type and road grade combinations correspond to different candidate threshold combinations, so that the classification judgment threshold can be adaptively matched according to the geographical and road environment of the initial cluster.

[0112] When matching and loading corresponding classification thresholds based on terrain type and road grade information, significant differences exist in the distribution patterns of rural settlements and the spatial relationship between roads and houses under different terrains. Settlements in plains or basins are regular in shape and have dense road networks, while settlements in mountainous or hilly areas are scattered and distributed along narrow valleys or mountain roads. Furthermore, the degree of attachment of houses on both sides of high-grade roads differs from that of low-grade roads. Therefore, differentiated threshold parameters can be set for different terrain types and road grades. Based on the above requirements, when the terrain type is a plain or basin, the road removal threshold is the first road removal threshold (0.75), and the road-village retention threshold is the first road-village retention threshold (0.25). When the terrain type is a mountainous or hilly area, the road removal threshold is the second road removal threshold (0.85), and the road-village retention threshold is the second road-village retention threshold (0.15). When the road grade is high-grade, the road removal threshold is the third road removal threshold (0.90). When the road grade is low-grade, the road-village retention threshold is the third road-village retention threshold (0.70). By employing the aforementioned technical means of setting differentiated threshold parameters for different terrain types and road grades, the criteria for determining pure road exclusion and road-through-village retention can adaptively adapt to the actual land features of different regions. In plains areas with dense road networks, a lower exclusion threshold is used to effectively filter out road interference. In mountainous areas with scattered settlements, a higher exclusion threshold is used to prevent real roadside settlements from being mistakenly excluded. In scenarios with significant differences in road grades, appropriate thresholds are used to accurately distinguish between transit traffic corridors and mixed road-dwelling settlements, thereby comprehensively improving the accuracy and regional adaptability of rural cluster determination.

[0113] S470. Count the number of true value raster cells with true road attribute information in each initial cluster, and determine the proportion of road attributes in each initial cluster based on the ratio between the number of true value raster cells and the total number of raster cells in each initial cluster.

[0114] The number of truth raster cells refers to the total number of raster cells within each initial cluster whose road attribute information is truthful. The road attribute percentage refers to the ratio of the number of truth raster cells to the total number of raster cells in that initial cluster.

[0115] Specifically, for each initial cluster, all raster cells contained in the initial cluster are traversed, and the road attribute information of each raster cell is checked one by one. The number of raster cells whose road attribute information is marked as true is counted. This count is the number of true raster cells, which is used to characterize the scale of raster cells belonging to the road area within the initial cluster. At the same time, the total number of all raster cells contained in the initial cluster is obtained, which is the total number of raster cells. The ratio obtained by dividing the number of true raster cells by the total number of raster cells is the road attribute proportion of the initial cluster. This proportion is used to quantify the proportion of road space in the overall space of the initial cluster, and serves as the core criterion for distinguishing between pure road type, road-through-village type, and pure village type in subsequent classification.

[0116] S480. Compare the road attribute proportion of each initial cluster with the classification threshold, classify each initial cluster according to the comparison results, and determine the initial cluster that is determined to be a rural settlement as a rural cluster.

[0117] Specifically, for each initial cluster, its road attribute proportion is compared with a classification threshold, which includes two specific thresholds: a road removal threshold and a road-village retention threshold. The initial cluster is classified according to the threshold range in which the road attribute proportion falls: initial clusters with a road attribute proportion greater than the road removal threshold are classified as pure road type because roads occupy an absolutely dominant space; initial clusters with a road attribute proportion between the road-village retention threshold and the road removal threshold are classified as road-through-village type because roads and houses are mixed; and initial clusters with a road attribute proportion less than the road-village retention threshold are classified as pure village type because roads occupy a very low space. Both the road-through-village type and the pure village type belong to rural settlement types. Initial clusters classified as either of these two types are determined as the final rural clusters, while the pure road type is removed as interference from transit traffic or in-vehicle signals.

[0118] In this embodiment, rural settlement type is a higher-level classification used to characterize the category to which the initial cluster belongs, specifically including two types: pure village type and road-through village type. Pure village type refers to an initial cluster with a low proportion of road attributes and is mainly composed of houses in space, representing the traditional village form with a clustered distribution. Road-through village type refers to an initial cluster with a road attribute proportion in the middle range and a mixed distribution of roads and houses, representing the linear settlement form with houses built along the road.

[0119] Based on this, the initial clusters are classified and determined according to the comparison results. The specific implementation methods for determining the initial clusters that are determined to be rural settlements as rural clusters may include: (1) Compare the proportion of road attributes of each initial cluster with the road removal threshold and the road-village retention threshold respectively.

[0120] Specifically, for each initial cluster, after calculating its road attribute proportion, this proportion is compared with two specific judgment values ​​in the pre-loaded classification judgment thresholds: the road removal threshold and the road-village retention threshold. The road removal threshold is a high-level critical value used to distinguish between pure road types and non-pure road types, while the road-village retention threshold is a low-level critical value used to distinguish between pure village types and non-pure village types. By comparing the road attribute proportion with the two thresholds, the specific position of the road attribute proportion within the numerical interval divided by the road-village retention threshold and the road removal threshold can be determined. That is, it can be determined whether the road attribute proportion is greater than the road removal threshold, less than the road-village retention threshold, or between the road-village retention threshold and the road removal threshold, thus providing a quantitative basis for subsequent determination of whether the initial cluster belongs to the pure road type, the pure village type, or the road-through-village type.

[0121] (2) Initial clusters with a road attribute ratio greater than the road removal threshold are identified as pure road types and removed.

[0122] Among them, the pure road type refers to the initial cluster with a very high proportion of road attributes and the absolute dominance of road space. It represents the transit traffic or in-vehicle signals generated by highways, empty county roads, etc., and does not belong to the rural settlement type.

[0123] Specifically, for each initial cluster, after comparing its road attribute proportion with the road removal threshold, if the road attribute proportion of the initial cluster is greater than the road removal threshold, it indicates that the grid cells belonging to the road area in the initial cluster are absolutely dominant, while the grid cells corresponding to the main building are extremely low. In this case, the spatial characteristics reflected by the initial cluster do not conform to the typical form of rural settlements. In fact, it is a pure road interference area formed by signal drift caused by through traffic such as highways and empty county roads or in-vehicle sampling points. Therefore, the initial cluster is determined to be a pure road type and is removed in subsequent processing so that it does not participate in the final determination of rural clusters.

[0124] (3) Initial clusters with a road attribute ratio less than the road-village retention threshold are identified as pure village types and determined as rural clusters.

[0125] Specifically, for each initial cluster, after comparing its road attribute proportion with the road-village retention threshold, if the road attribute proportion of the initial cluster is less than the road-village retention threshold, it indicates that the proportion of grid cells belonging to the road area in the initial cluster is extremely low, while the grid cells corresponding to the main building occupy an absolute dominant position. In this case, the spatial characteristics reflected by the initial cluster conform to the typical form of a clustered traditional village, that is, the village space is dominated by buildings and there are few interspersed roads. Therefore, the initial cluster is determined to be a pure village type, which belongs to one of the rural settlement types. It is identified as a rural cluster and retained in the subsequent vector boundary generation stage.

[0126] (4) The initial clusters whose road attribute proportions are between the road-village retention threshold and the road removal threshold are identified as road-through-village types and determined as rural clusters.

[0127] Specifically, for each initial cluster, after comparing its road attribute proportion with the road-village retention threshold and the road removal threshold respectively, if the road attribute proportion of the initial cluster is between the road-village retention threshold and the road removal threshold, that is, neither lower than the road-village retention threshold nor higher than the road removal threshold, it indicates that the grid cells belonging to the road area and the grid cells corresponding to the main building in the initial cluster are mixed and distributed, and the road space and the living space are intertwined. In this case, the spatial characteristics reflected by the initial cluster conform to the typical form of linear settlement with houses built along the road. Therefore, the initial cluster is determined to be a road-through-village type, which belongs to one of the rural settlement types. It is identified as a rural cluster and retained in the subsequent vector boundary generation stage.

[0128] S490. Based on the latitude and longitude coordinates of the sampling points within each rural cluster, generate the vector boundaries of each rural cluster.

[0129] The technical solution of this application embodiment, when generating at least one initial cluster, performs connectivity analysis based on the eight-neighbor connectivity rule on the effective grid cells to aggregate the effective grid cells that meet the eight-neighbor connectivity condition into connected regions; based on the number of grid cells contained in each connected region, each connected region is filtered, and the filtered connected regions are determined as initial clusters, and each initial cluster is assigned a unique cluster identifier. Through the above processing method, the eight-neighbor connectivity rule is used to spatially aggregate the effective grid cells, allowing grid cells in the diagonal direction to be considered connected. This can adapt to the complexity of rural settlement morphology, including morphological features such as oblique extension and irregular clusters. Compared with the four-neighbor connectivity rule, it maintains the spatial continuity of the settlement more completely. At the same time, by filtering out isolated small patches with fewer than a preset threshold grid cells through the minimum connectivity size constraint, it effectively filters out residual noise caused by sporadic signal drift or occasional interference, ensuring that the retained initial clusters meet the scale requirements corresponding to the smallest rural residential unit in terms of spatial scale, providing basic data objects with actual settlement significance for subsequent classification and determination.

[0130] The technical solution of this application embodiment, when determining rural clusters, matches and loads corresponding classification judgment thresholds from a preset combination of multiple candidate thresholds based on the terrain type information and road grade information of each initial cluster; wherein, the classification judgment thresholds include road removal thresholds and road-village retention thresholds; counts the number of true value raster cells with true road attribute information in each initial cluster, and determines the road attribute proportion of each initial cluster based on the ratio between the number of true value raster cells and the total number of raster cells in each initial cluster; compares the road attribute proportion of each initial cluster with the classification judgment thresholds, classifies each initial cluster based on the comparison results, and determines the initial clusters that are determined to be of the rural settlement type as rural clusters. Through the above processing methods, the corresponding classification and judgment thresholds are adaptively matched and loaded from multiple preset candidate threshold combinations for different terrain types and road grades. This allows the values ​​of the road removal threshold and the road-village retention threshold to be adapted to the spatial features of different regions. At the same time, the road attribute ratio of each initial cluster is accurately quantified based on the ratio of the number of ground truth raster cells to the total number of raster cells in each initial cluster. This ratio is compared with the classification and judgment threshold to achieve refined classification and judgment of pure road type, pure village type, and road-through-village type. This can effectively identify and remove pure road interference areas caused by highways, empty county roads, etc., and accurately retain two rural settlement forms: clustered traditional villages and linear settlements built along roads. Thus, while ensuring the recall rate, the accuracy of rural cluster judgment is improved.

[0131] Example 5 Figure 5This is a schematic diagram of a method for generating the boundary of a rural agglomeration area provided in this application embodiment. Based on the foregoing embodiments, this embodiment will provide a more detailed description of step S160. For specific implementation details, please refer to the technical solution of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here.

[0132] like Figure 5 As shown, the method specifically includes the following steps: S510. Obtain mobile network measurement report sampling point data, road network vector data, and rural area vector data of the target area; perform rasterization processing on the road network vector data and rural area vector data to generate a standardized raster vector layer.

[0133] The standardized raster vector layer contains road attribute information for each raster unit, which is determined based on the spatial relationship between the road network vector data and each raster unit.

[0134] S520. Construct a spatial index based on a standardized raster vector layer, match each sampling point in the mobile network measurement report sampling point data to the corresponding raster cell, and obtain an enhanced sampling point dataset with associated spatial index.

[0135] S530. Summarize and statistically analyze the enhanced sampling point dataset based on each grid cell. Based on the number of device identifiers and the total number of sampling points in each grid cell obtained from the statistics, perform validity screening on each grid cell to determine the valid grid cells.

[0136] S540. Perform connected component aggregation processing on the effective grid cells to generate at least one initial cluster, and classify and determine each initial cluster based on the road attribute information of the grid cells within each initial cluster to identify the rural cluster.

[0137] S550. Based on the cluster identifier of each rural cluster, extract the latitude and longitude coordinate data of all sampling points contained in each rural cluster, and construct the coordinate point set corresponding to each rural cluster.

[0138] The cluster identifier is a unique identification number assigned to each rural cluster when determining the rural clusters, used to distinguish and reference each rural cluster in subsequent processing. The coordinate point set refers to the set of latitude and longitude coordinates of all sampling points belonging to the same rural cluster extracted from the enhanced sampling point dataset according to the cluster identifier.

[0139] Specifically, after identifying rural clusters, each rural cluster is assigned a unique cluster identifier. Each sampling point record in the enhanced sampling point dataset carries its cluster identifier information, which serves as the basis for data extraction. For each rural cluster, using the cluster identifier as the query condition, all sampling point records carrying that cluster identifier are retrieved and extracted from the enhanced sampling point dataset. Then, the latitude and longitude coordinates of each sampling point are read from the extracted sampling point records, and these latitude and longitude coordinates are aggregated to form the coordinate point set corresponding to the rural cluster. The above extraction operation is performed on all rural clusters one by one, so that each rural cluster obtains a coordinate point set consisting of the latitude and longitude coordinates of all sampling points within it, providing basic data input for subsequent boundary fitting.

[0140] S560. Transform the latitude and longitude coordinate data of each coordinate point set from the geographic coordinate system to the plane projection coordinate system to obtain the plane coordinate point set corresponding to each rural cluster.

[0141] Geographic coordinate system transformation refers to converting the latitude and longitude coordinate data of a coordinate point set from its original geographic coordinate system to its numerical representation in a planar projected coordinate system, according to projection transformation rules. A planar projected coordinate system is a coordinate reference system that maps latitude and longitude positions on the Earth's surface to a two-dimensional plane, and the distance dimension in this coordinate system is length.

[0142] Among them, the planar coordinate point set refers to the set of coordinates of each sampling point obtained after transformation to the geographic coordinate system, with the planar projected coordinate system as the reference.

[0143] Specifically, after constructing the coordinate point set corresponding to each rural cluster, the location of each sampling point in the coordinate point set is expressed in the form of latitude and longitude values ​​in the geographic coordinate system. The subsequent boundary fitting process can be performed geometrically based on planar distance. Therefore, the latitude and longitude coordinate data in the coordinate point set can be transformed from the geographic coordinate system to the planar projected coordinate system. This transformation process maps the latitude and longitude positions on the Earth's surface to the coordinate positions on a two-dimensional plane by selecting an appropriate projection method. The mapped coordinates are in units of length. The set of coordinate points obtained after the transformation with the planar projected coordinate system as a reference is the planar coordinate point set. Each rural cluster corresponds to a planar coordinate point set, providing coordinate data that meets the calculation requirements for the subsequent boundary fitting process based on Euclidean distance.

[0144] S570. Based on the set of coordinate points on each plane, perform boundary fitting processing to generate the initial polygonal boundaries corresponding to each rural cluster.

[0145] The initial polygon boundary refers to the polygonal geometry generated by the boundary fitting algorithm based on the set of planar coordinate points, which has not yet undergone inverse transformation and validity verification.

[0146] Specifically, after obtaining the planar coordinate point set corresponding to each rural cluster, for each planar coordinate point set, a boundary fitting parameter is set based on the scale characteristics of the rural settlement. Using the planar coordinate point set and the boundary fitting parameter as input, a boundary fitting algorithm is used to extract the geometric contour of the sampling point distribution in the planar coordinate point set, generating a closed polygon that fits the actual spatial distribution of the rural cluster. This closed polygon is the initial polygon boundary. If the fitting result is an empty or multi-part polygon, the connected sub-region with the largest area is selected from the fitting result as the initial polygon boundary of the rural cluster. If a valid fitting polygon cannot be generated, a convex hull algorithm is used to generate the initial polygon boundary of the rural cluster. This serves as a fallback strategy to ensure that each rural cluster can obtain a corresponding initial polygon boundary.

[0147] After obtaining the planar coordinate point set corresponding to each rural cluster, since the sampling points in each set are discretely distributed, a boundary fitting algorithm can be used to enclose these discrete points into a closed polygon that reflects their actual spatial distribution, thus forming the geometric boundary of the rural cluster. Based on the above requirements, firstly, boundary fitting parameters are set based on the scale characteristics of rural settlements. Then, using each planar coordinate point set and the boundary fitting parameters as input, the boundary fitting algorithm is used to perform boundary fitting on each planar coordinate point set, generating the fitted polygon boundary corresponding to each rural cluster. When the fitting result is an empty or multi-part polygon, the connected sub-region with the largest area is selected from the fitting result as the initial polygon boundary of the corresponding rural cluster. When an effective fitted polygon cannot be generated, the convex hull algorithm is used to generate the initial polygon boundary of the corresponding rural cluster. Through the above boundary fitting and anomaly backoff mechanism, a closed boundary that fits the actual distribution of sampling points can be generated, effectively avoiding boundary fragmentation when the sampling point distribution is irregular or there are gaps. At the same time, in case of fitting anomalies, the convex hull fallback strategy ensures that each rural cluster can obtain an effective initial polygon boundary, thus balancing the accuracy and robustness of boundary generation.

[0148] After generating the vector boundaries of each rural cluster, each vector boundary has passed topological validity verification and area threshold screening, meeting the conditions for being a valid geometric result. To facilitate subsequent application, storage, and exchange, the vector boundaries can be organized according to a unified format standard. Based on the above requirements, the vector boundaries of each rural cluster are encapsulated according to a preset format to generate standardized boundary result data containing cluster identifiers, boundary type identifiers, number of sampling points, boundary fitting parameter values, and coverage area attribute information. Through the above standardized encapsulation process, the vector boundary result of each rural cluster not only contains geometric information but also associates key metadata such as its cluster identifier, boundary generation method, original data scale, and area attributes, forming a standardized data result with a unified structure and complete attributes, facilitating subsequent data exchange, visualization, and spatial analysis in different application scenarios.

[0149] S580. Inversely transform each initial polygon boundary from the planar projection coordinate system back to the geographic coordinate system, and verify the validity of each polygon boundary after inverse transformation. Determine the polygon boundaries that pass the verification as the vector boundaries of each rural cluster.

[0150] Specifically, after generating the initial polygonal boundaries corresponding to each rural cluster, these initial polygonal boundaries are geometric figures expressed in units of length under a planar projected coordinate system. They can be restored to geometric figures expressed in latitude and longitude under a geographic coordinate system. Therefore, each initial polygonal boundary is transformed from the planar projected coordinate system back to the geographic coordinate system according to the inverse transformation rules corresponding to the aforementioned transformation, resulting in candidate geographic polygonal boundaries corresponding to each rural cluster. For each candidate geographic polygonal boundary, a topological validity check is performed. This check includes checking whether the polygon is a single polygon type, whether it is self-intersecting, and whether it is closed. Candidate geographic polygonal boundaries that meet all the above check requirements are determined as valid geographic polygonal boundaries, and the coverage area enclosed by the valid geographic polygonal boundaries is calculated. Valid geographic polygonal boundaries whose coverage area reaches a preset area threshold are determined as the vector boundaries of the rural cluster. Valid geographic polygonal boundaries whose coverage area does not reach the preset area threshold are discarded as invalid small patches. This completes the full transformation and verification process of each rural cluster from a set of planar coordinate points to valid vector boundaries under a geographic coordinate system.

[0151] After generating the initial polygonal boundaries corresponding to each rural cluster, these boundaries are geometric figures expressed in length units under a planar projected coordinate system. However, in practical applications, the boundaries of rural clusters are usually expressed and stored in latitude and longitude in a geographic coordinate system. Therefore, the initial polygonal boundaries can be restored to the geographic coordinate system. Simultaneously, the fitted polygonal boundaries may have topological defects or insufficient area, requiring quality checks and screening to ensure the validity of the final results. Based on these requirements, the initial polygonal boundaries are inversely transformed from the planar projected coordinate system back to the geographic coordinate system to obtain candidate geographic polygonal boundaries corresponding to each rural cluster. A topological validity check is performed on each candidate geographic polygonal boundary, including checking whether the polygon is a single polygon type, whether it is self-intersecting, and whether it is closed. Candidate geographic polygonal boundaries that pass the topological validity check are determined as valid geographic polygonal boundaries. The coverage area enclosed by each valid geographic polygonal boundary is calculated, and valid geographic polygonal boundaries whose coverage area reaches a preset area threshold are determined as the vector boundaries of each rural cluster. Through the above inverse transformation and validity verification process, the accurate positioning of the boundary results in the geographic coordinate system is guaranteed. At the same time, the invalid geometry such as self-intersection, non-closure or multi-part, as well as invalid patches with too small area, are eliminated by topological validity check and area threshold screening, so as to ensure that the final output vector boundary meets the quality requirements in terms of geometric topology and spatial scale.

[0152] The technical solution of this application embodiment, when generating the vector boundary of each rural cluster, extracts the latitude and longitude coordinate data of all sampling points contained in each rural cluster based on the cluster identifier of each rural cluster, and constructs the coordinate point set corresponding to each rural cluster; transforms the latitude and longitude coordinate data in each coordinate point set from the geographic coordinate system to the planar projection coordinate system to obtain the planar coordinate point set corresponding to each rural cluster; performs boundary fitting processing based on each planar coordinate point set to generate the initial polygon boundary corresponding to each rural cluster; inversely transforms each initial polygon boundary from the planar projection coordinate system back to the geographic coordinate system, and performs validity verification on each polygon boundary after inverse transformation, and determines the polygon boundary that passes the verification as the vector boundary of each rural cluster. Using the above processing methods, the latitude and longitude coordinates of sampling points within each rural cluster are accurately extracted using the cluster identifier as an index. The bidirectional transformation between the geographic coordinate system and the planar projected coordinate system ensures the accuracy of distance calculation during the boundary fitting process and the geographic positioning accuracy of the output results. The boundary fitting algorithm is used to reconstruct the discrete sampling points into closed polygonal boundaries that fit the actual distribution pattern. Invalid geometry is eliminated by topological validity verification and area threshold screening after inverse transformation. Finally, the vector boundaries of each rural cluster that meet the requirements of topological quality and spatial scale are output, realizing the complete geometric reconstruction from discrete sampling points to continuous closed vector boundaries.

[0153] Example 6 Figure 6 This is a schematic diagram of a rural settlement boundary generation device provided in an embodiment of this application. The device includes: Data acquisition module 610 is used to acquire mobile network measurement report sampling point data, road network vector data and rural area vector data of the target area; The vector data gridding module 620 is used to perform rasterization processing on the road network vector data and the rural area vector data to generate a standardized raster vector layer; wherein, the standardized raster vector layer contains road attribute information of each raster unit, and the road attribute information is determined based on the spatial association between the road network vector data and each raster unit; The data spatial matching module 630 is used to construct a spatial index based on the standardized raster vector layer, match each sampling point in the mobile network measurement report sampling point data to the corresponding raster cell, and obtain an enhanced sampling point dataset associated with the spatial index; The effective grid filtering module 640 is used to summarize and statistically analyze the enhanced sampling point dataset based on each grid cell, and to perform validity filtering on each grid cell according to the number of device identifiers and the total number of sampling points in each grid cell obtained from the statistics, so as to determine the effective grid cells. The rural cluster determination module 650 is used to perform connected component aggregation processing on the effective grid cells to generate at least one initial cluster, and to classify and determine each initial cluster according to the road attribute information of the grid cells in each initial cluster to determine the rural cluster. The cluster boundary generation module 660 is used to generate the vector boundary of each rural cluster based on the latitude and longitude coordinate data of the sampling points within each rural cluster.

[0154] This application provides a rural agglomeration area boundary generation device. When applied, this device acquires mobile network measurement report sampling point data, road network vector data, and rural area vector data for the target area. Based on the road network vector data and rural area vector data, it performs rasterization processing to generate a standardized raster vector layer. The standardized raster vector layer contains road attribute information for each raster unit, which is determined based on the spatial correlation between the road network vector data and each raster unit. Based on the standardized raster vector layer, a spatial index is constructed to match each sampling point in the mobile network measurement report sampling point data to its corresponding... Raster cells are used to obtain an enhanced sampling point dataset with associated spatial indexes. The enhanced sampling point dataset is then summarized and statistically analyzed based on each raster cell. The validity of each raster cell is determined by filtering the number of device identifiers and the total number of sampling points within each raster cell. Connectivity aggregation is performed on the valid raster cells to generate at least one initial cluster. Each initial cluster is then classified based on the road attribute information of the raster cells within it, identifying rural clusters. Finally, the vector boundaries of each rural cluster are generated based on the latitude and longitude coordinates of the sampling points within each rural cluster. The technical solution of this application introduces road network vector data and rural area vector data for rasterization processing, annotates road attribute information for raster cells, and establishes spatial association between sampling points and raster cells by combining sampling point data from mobile network measurement reports, thereby achieving structured enhancement and noise removal of sampling point data. Based on a dual-threshold validity screening mechanism of the number of device identifiers and the total number of sampling points, as well as a connected domain aggregation and classification judgment strategy that integrates the proportion of road attributes, it achieves accurate identification of clusters and effective elimination of road interference in low-density, discontinuous rural scenarios. This solves the problems of existing technologies relying on base station data, lacking road network semantic discrimination capabilities, and being difficult to adapt to the strip-shaped settlement scenarios of rural houses built along roads. At the same time, it can generate rural cluster vector boundaries end-to-end without relying on the initial area, improving the automation level, scenario adaptability, and boundary accuracy of the method.

[0155] Based on the above-mentioned device, optionally, a vector data gridding module 620 is used to determine the optimal spatial resolution from a set of candidate spatial resolutions based on the spatial coupling relationship between the footprint scale of typical farmhouses in the rural area vector data and the buffer zone range of roads in the road network vector data; to perform regular partitioning of the rural area vector data according to the optimal spatial resolution to generate multiple raster cells, and to assign a unique spatial index to each raster cell; to perform spatial association calculation between the road network vector data and each raster cell, and to determine the road attribute information of each raster cell based on the spatial overlap attribute between each raster cell and the road area; and to associate each raster cell with the corresponding spatial index and road attribute information to generate a standardized raster vector layer.

[0156] Based on the above-mentioned device, optionally, a data spatial matching module 630 is used to establish a standard geographic grid fence covering the target area based on each grid cell in the standardized raster vector layer and its corresponding spatial index; perform spatial matching calculations on the latitude and longitude coordinates of each mobile network measurement report sampling point and each grid cell in the standard geographic grid fence to determine the grid cell in which each sampling point falls; and add the spatial index of the determined grid cell to the attribute field of the corresponding sampling point to obtain an enhanced sampling point dataset.

[0157] Based on the above-mentioned device, optionally, an effective grid filtering module 640 is used to group and summarize the enhanced sampling point dataset based on each grid cell, count the number of duplicate device identifiers corresponding to the sampling points in each grid cell to obtain the number of device identifiers, and count the total number of sampling points in each grid cell to obtain the total number of sampling points; determine the validity judgment threshold corresponding to each grid cell according to the terrain features of the area where each grid cell is located; wherein, the validity judgment threshold includes a device number threshold and a sampling point number threshold; compare the number of device identifiers and the total number of sampling points of each grid cell with the device number threshold and the sampling point number threshold of the corresponding grid cell, respectively, and perform validity filtering on each grid cell according to the comparison results to determine the effective grid cells.

[0158] Based on the above-mentioned device, optionally, the effective grid filtering module 640 is further used to obtain the base station cell identifier corresponding to each grid cell, estimate the actual coverage radius of the current base station under the current terrain based on the spatial dispersion of the latitude and longitude coordinates of each sampling point belonging to the same base station cell identifier; determine the critical density threshold of each grid cell based on the actual coverage radius and the sparsity coefficient of the area where the grid cell is located; and determine the device number threshold and the sampling point number threshold corresponding to each grid cell based on the critical density threshold.

[0159] Based on the above-mentioned device, optionally, the rural cluster determination module 650 includes: an initial cluster determination unit, specifically used to perform connected domain analysis based on the eight-neighbor connectivity rule on the effective grid cells, so as to aggregate the effective grid cells that meet the eight-neighbor connectivity condition into connected regions; to filter each connected region based on the number of grid cells contained in each connected region, to determine each connected region retained after filtering as an initial cluster, and to assign a unique cluster identifier to each initial cluster.

[0160] Based on the above-mentioned device, optionally, a rural cluster determination module 650 includes: a rural cluster determination unit, specifically used to match and load corresponding classification judgment thresholds from a preset combination of multiple candidate thresholds based on the terrain type information and road grade information of each initial cluster; wherein, the classification judgment thresholds include a road elimination threshold and a road-village retention threshold; count the number of true value raster cells with true road attribute information in each initial cluster, determine the road attribute proportion of each initial cluster based on the ratio between the number of true value raster cells and the total number of raster cells in each initial cluster; compare the road attribute proportion of each initial cluster with the classification judgment threshold, classify each initial cluster based on the comparison result, and determine the initial clusters that are determined to be of the rural settlement type as rural clusters.

[0161] Based on the above-mentioned device, optionally, the rural cluster determination unit is more specifically used to compare the road attribute ratio of each initial cluster with the road elimination threshold and the road-village retention threshold respectively; the initial clusters with a road attribute ratio greater than the road elimination threshold are determined as pure road type and eliminated; the initial clusters with a road attribute ratio less than the road-village retention threshold are determined as pure village type and identified as rural clusters; the initial clusters with a road attribute ratio between the road-village retention threshold and the road elimination threshold are determined as road-through-village type and identified as rural clusters.

[0162] Based on the above-mentioned device, optionally, a cluster boundary generation module 660 is used to extract the latitude and longitude coordinate data of all sampling points contained in each rural cluster based on the cluster identifier of each rural cluster, and construct a coordinate point set corresponding to each rural cluster; convert the latitude and longitude coordinate data in each coordinate point set from the geographic coordinate system to the planar projection coordinate system to obtain a planar coordinate point set corresponding to each rural cluster; perform boundary fitting processing based on each planar coordinate point set to generate an initial polygon boundary corresponding to each rural cluster; inversely convert each initial polygon boundary from the planar projection coordinate system back to the geographic coordinate system, and perform validity verification on each polygon boundary after inverse conversion, and determine the polygon boundary that passes the verification as the vector boundary of each rural cluster.

[0163] The rural settlement boundary generation device provided in this application embodiment can execute the rural settlement boundary generation method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects of the execution method.

[0164] It is worth noting that the various units and modules included in the above system are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this application.

[0165] Example 7 Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 7 A block diagram is shown of an exemplary electronic device 70 suitable for implementing embodiments of the present application. Figure 7 The electronic device 70 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0166] like Figure 7 As shown, the electronic device 70 is presented in the form of a general-purpose computing device. The components of the electronic device 70 may include, but are not limited to: one or more processors or processing units 701, system memory 702, and bus 703 connecting different system components (including system memory 702 and processing unit 701).

[0167] Bus 703 represents one or more of several bus architectures, including memory buses or memory electronics, peripheral buses, graphics acceleration ports, processors, or local buses using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0168] Electronic device 70 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 70, including volatile and non-volatile media, removable and non-removable media.

[0169] System memory 702 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 704 and / or cache memory 707. Electronic device 70 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 706 may be used to read and write non-removable, non-volatile magnetic media (… Figure 7 Not shown (usually referred to as a hard drive). Although Figure 7As not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a floppy disk) and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 703 via one or more data media interfaces. Memory 702 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this application.

[0170] A program / utility 708 having a set (at least one) of program modules 707 may be stored, for example, in memory 702. Such program modules 707 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 707 typically perform the functions and / or methods described in the embodiments of this application.

[0171] Electronic device 70 can also communicate with one or more external devices 709 (e.g., keyboard, pointing device, display 710, etc.), and with one or more devices that enable a user to interact with the electronic device 70, and / or with any device that enables the electronic device 70 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 711. Furthermore, electronic device 70 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 712. As shown, network adapter 712 communicates with other modules of electronic device 70 via bus 703. It should be understood that, although... Figure 7 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 70, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0172] The processing unit 701 executes various functional applications and page processing by running programs stored in the system memory 702, such as implementing the rural cluster area boundary generation method provided in the embodiments of this application.

[0173] Example 8 This application embodiment also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a method for generating the boundary of a rural agglomeration area, the method comprising: Acquire mobile network measurement report sampling point data, road network vector data, and rural area vector data for the target area; Based on the road network vector data and the rural area vector data, a rasterization process is performed to generate a standardized raster vector layer; wherein, the standardized raster vector layer contains road attribute information of each raster unit, and the road attribute information is determined based on the spatial correlation between the road network vector data and each raster unit; A spatial index is constructed based on the standardized raster vector layer, and each sampling point in the mobile network measurement report sampling point data is matched to the corresponding raster cell to obtain an enhanced sampling point dataset associated with the spatial index; The enhanced sampling point dataset is summarized and statistically analyzed based on each of the grid cells. Based on the number of device identifiers and the total number of sampling points in each grid cell obtained from the statistics, the validity of each grid cell is filtered to determine the valid grid cells. The effective grid cells are subjected to connected component aggregation processing to generate at least one initial cluster. The initial clusters are then classified and determined according to the road attribute information of the grid cells within each initial cluster to identify rural clusters. Based on the latitude and longitude coordinates of the sampling points within each rural cluster, the vector boundaries of each rural cluster are generated.

[0174] The computer storage medium in this application embodiment can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0175] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0176] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0177] Computer program code for performing the operations of the embodiments of this application can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, and C++—and conventional procedural programming languages—such as C or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0178] Note that the above description is merely a preferred embodiment and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments. Many other equivalent embodiments may be included without departing from the concept of this application, and the scope of this application is determined by the scope of the appended claims.

Claims

1. A method for generating the boundary of a rural agglomeration area, characterized in that, The method includes: Acquire mobile network measurement report sampling point data, road network vector data, and rural area vector data for the target area; Based on the road network vector data and the rural area vector data, a rasterization process is performed to generate a standardized raster vector layer; wherein, the standardized raster vector layer contains road attribute information of each raster unit, and the road attribute information is determined based on the spatial correlation between the road network vector data and each raster unit; A spatial index is constructed based on the standardized raster vector layer, and each sampling point in the mobile network measurement report sampling point data is matched to the corresponding raster cell to obtain an enhanced sampling point dataset associated with the spatial index; The enhanced sampling point dataset is summarized and statistically analyzed based on each of the grid cells. Based on the number of device identifiers and the total number of sampling points in each grid cell obtained from the statistics, the validity of each grid cell is filtered to determine the valid grid cells. The effective grid cells are subjected to connected component aggregation processing to generate at least one initial cluster. The initial clusters are then classified and determined according to the road attribute information of the grid cells within each initial cluster to identify rural clusters. Based on the latitude and longitude coordinates of the sampling points within each rural cluster, the vector boundaries of each rural cluster are generated.

2. The method according to claim 1, characterized in that, The step of rasterizing the road network vector data and the rural area vector data to generate a standardized raster vector layer includes: Based on the spatial coupling relationship between the footprint scale of typical farmhouses in the rural area vector data and the buffer zone range of roads in the road network vector data, the optimal spatial resolution is determined from a number of preset candidate spatial resolutions. The rural area vector data is partitioned according to the optimal spatial resolution to generate multiple raster cells, and a unique spatial index is assigned to each raster cell. The road network vector data is spatially correlated with each grid cell, and the road attribute information of each grid cell is determined based on the spatial overlap attribute between each grid cell and the road area. Each raster cell is associated with its corresponding spatial index and road attribute information to generate a standardized raster vector layer.

3. The method according to claim 1, characterized in that, The step of constructing a spatial index based on the standardized raster vector layer, matching each sampling point in the mobile network measurement report sampling point data to its corresponding raster cell, and obtaining an enhanced sampling point dataset associated with the spatial index includes: Based on each grid cell and corresponding spatial index in the standardized raster vector layer, a standard geographic raster fence covering the target area is established. The latitude and longitude coordinates of each sampling point in the mobile network measurement report are spatially matched with each grid cell in the standard geographic grid fence to determine the grid cell in which each sampling point falls. The spatial index of the determined raster cell is added to the attribute field of the corresponding sampling point to obtain the enhanced sampling point dataset.

4. The method according to claim 1, characterized in that, The process of summarizing and statistically analyzing the enhanced sampling point dataset based on each of the grid cells, and then filtering the validity of each grid cell based on the number of device identifiers and the total number of sampling points within each grid cell, to determine valid grid cells, includes: The enhanced sampling point dataset is grouped and summarized based on each grid cell. The number of duplicate device identifiers corresponding to the sampling points in each grid cell is counted to obtain the number of device identifiers. The total number of sampling points in each grid cell is counted to obtain the total number of sampling points. Based on the terrain features of the area where each grid cell is located, a validity threshold is determined for each grid cell; wherein, the validity threshold includes a device number threshold and a sampling point number threshold; The number of device identifiers and the total number of sampling points in each grid cell are compared with the device number threshold and the sampling point number threshold of the corresponding grid cell, respectively. Based on the comparison results, each grid cell is filtered for validity to determine the valid grid cells.

5. The method according to claim 4, characterized in that, The step of determining the validity threshold for each grid cell based on the terrain features of the area where each grid cell is located includes: Obtain the base station cell identifier corresponding to each grid cell, and estimate the actual coverage radius of the current base station under the current terrain based on the spatial dispersion of the latitude and longitude coordinates of each sampling point belonging to the same base station cell identifier. Based on the actual coverage radius and the sparsity coefficient of the region where the grid cell is located, the critical density threshold of each grid cell is determined. Based on the critical density threshold, determine the device quantity threshold and the sampling point quantity threshold corresponding to each grid cell.

6. The method according to claim 1, characterized in that, The process of performing connected component aggregation on the effective raster cells to generate at least one initial cluster includes: Perform connectivity analysis based on the eight-neighbor connectivity rule on the effective grid cells to aggregate the effective grid cells that satisfy the eight-neighbor connectivity condition into connected regions; Each connected region is filtered based on the number of grid cells contained in each connected region. The connected regions that are retained after filtering are determined as initial clusters, and each initial cluster is assigned a unique cluster identifier.

7. The method according to claim 1, characterized in that, The step of classifying and determining rural clusters based on road attribute information of grid cells within each initial cluster includes: Based on the terrain type and road grade information of each initial cluster, a corresponding classification judgment threshold is matched and loaded from multiple preset candidate threshold combinations; wherein, the classification judgment threshold includes a road removal threshold and a road-village retention threshold. The number of true value raster cells with true road attribute information in each initial cluster is counted. The proportion of road attributes in each initial cluster is determined based on the ratio between the number of true value raster cells and the total number of raster cells in each initial cluster. The road attribute proportion of each initial cluster is compared with the classification threshold. Based on the comparison results, each initial cluster is classified and determined, and the initial clusters that are determined to be rural settlements are identified as rural clusters.

8. The method according to claim 7, characterized in that, The rural settlement types include: pure village type and road-through village type. The process of classifying and determining each initial cluster based on the comparison results, and identifying the initial clusters determined to be rural settlement types, includes: The proportion of road attributes in each initial cluster is compared with the road removal threshold and the road-village retention threshold, respectively. Initial clusters with a road attribute ratio greater than the road removal threshold are identified as pure road types and removed. The initial clusters with a road attribute ratio less than the road-village retention threshold are identified as the pure village type and determined as rural clusters. The initial clusters whose road attribute proportions are between the road-village retention threshold and the road removal threshold are identified as the road-through-village type and determined as rural clusters.

9. The method according to claim 1, characterized in that, The process of generating vector boundaries for each rural cluster based on latitude and longitude coordinate data of sampling points within each cluster includes: Based on the cluster identifier of each rural cluster, the latitude and longitude coordinate data of all sampling points contained in each rural cluster are extracted to construct the coordinate point set corresponding to each rural cluster; The latitude and longitude coordinate data of each coordinate point set are transformed from the geographic coordinate system to the plane projection coordinate system to obtain the plane coordinate point set corresponding to each rural cluster. Boundary fitting is performed based on the set of planar coordinate points to generate the initial polygonal boundaries corresponding to each rural cluster. The initial polygon boundaries are inversely transformed from the planar projection coordinate system back to the geographic coordinate system, and the validity of each polygon boundary after inverse transformation is verified. The polygon boundaries that pass the verification are determined as the vector boundaries of each rural cluster.

10. A device for generating the boundary of a rural settlement area, characterized in that, The device includes: The data acquisition module is used to acquire mobile network measurement report sampling point data, road network vector data, and rural area vector data of the target area; The vector data gridding module is used to perform rasterization processing on the road network vector data and the rural area vector data to generate a standardized raster vector layer; wherein, the standardized raster vector layer contains road attribute information of each raster unit, and the road attribute information is determined based on the spatial correlation between the road network vector data and each raster unit; The data spatial matching module is used to construct a spatial index based on the standardized raster vector layer, match each sampling point in the mobile network measurement report sampling point data to the corresponding raster cell, and obtain an enhanced sampling point dataset associated with the spatial index; The effective grid filtering module is used to summarize and statistically analyze the enhanced sampling point dataset based on each grid cell, and to perform validity filtering on each grid cell based on the number of device identifiers and the total number of sampling points in each grid cell obtained from the statistics, so as to determine the effective grid cells. The rural cluster determination module is used to perform connected component aggregation processing on the effective grid cells to generate at least one initial cluster, and to classify and determine each initial cluster according to the road attribute information of the grid cells in each initial cluster to determine the rural cluster. The cluster boundary generation module is used to generate the vector boundary of each rural cluster based on the latitude and longitude coordinate data of the sampling points within each rural cluster.