Urban design scene simulation system and method based on man-machine interaction
By identifying high-interaction-heat areas and adjusting the priority and accuracy of simulation tasks, the problem of unreasonable resource allocation in traditional urban design scenario simulation systems has been solved, achieving more efficient simulation effects and response capabilities.
Patent Information
- Application Number
- CN202511361123.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-23
- Publication Date
- 2025-12-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional urban design scenario simulation systems lack flexible interactive behavior data analysis and regional priority dynamic adjustment mechanisms, resulting in unreasonable allocation of computing resources, insufficient simulation accuracy and response time, and inability to meet the needs of complex and dynamic urban design tasks.
By acquiring user interaction behavior data, calculating regional interaction heat index, identifying high interaction heat areas, adjusting the execution priority and accuracy of simulation tasks, and dynamically optimizing thread scheduling, computing resources are concentrated in key areas.
It improves the operating efficiency and response speed of the simulation system, ensures optimal allocation of computing resources, enhances simulation quality and adaptability to highly dynamic environments, and meets practical needs.
Smart Images

Figure CN121210107A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of scene simulation technology, and in particular to a city design scene simulation system and method based on human-computer interaction. Background Technology
[0002] The field of scene simulation technology primarily researches technical methods for spatial modeling, dynamic interaction, visualization, and behavioral simulation in virtual environments. This field integrates multiple technologies, including computer graphics, geographic information systems, artificial intelligence, multi-body modeling and control, 3D visualization, and physics engine simulation, aiming to achieve high-precision, multi-element simulation of the physical environment, human behavior, and system responses in virtual space. Scene simulation has wide applications in various scenarios such as urban management, traffic scheduling, military exercises, emergency response, and architectural design, supporting key tasks such as decision-making, system testing, and environmental assessment. This field emphasizes the comprehensive modeling capabilities of spatial layout, behavioral logic, and environmental evolution processes, requiring systems to possess core capabilities such as multi-source data access, spatiotemporal dynamic response, simulation control strategy configuration, and multi-dimensional result output.
[0003] The urban design scenario simulation system is a digital simulation system used to construct, display, and evaluate urban spatial layout and functional planning. By integrating urban geographic information, building models, traffic flow data, and pedestrian behavior models, the system simulates urban design schemes under different spatial layouts, usage intensities, and behavioral interactions. Its main uses include assisting urban planners in optimizing spatial functional arrangements, assessing the adaptability of traffic and pedestrian flows, predicting the impact of design schemes on urban operational efficiency and resident experience, and providing decision-making support for governments and development agencies. This system is widely applicable to various urban design tasks, including new urban area development, old city renovation, transportation hub construction, and large-scale public facility planning.
[0004] Traditional simulation systems lack flexible interactive behavior data analysis and dynamic regional priority adjustment mechanisms. This leads to an inability to promptly identify which areas require more simulation accuracy when processing large amounts of user interaction data. Consequently, details in key areas are not adequately displayed, or unimportant areas are over-rendered, resulting in an unreasonable allocation of computing resources. Traditional systems employ globally uniform simulation accuracy settings and uniform computation scheduling methods, which lack sufficient specificity when facing complex and dynamically changing urban design tasks. This results in long system response times, low efficiency, and simulation accuracy that fails to meet actual needs. Furthermore, they ignore the impact of user behavior on simulation task priority, reducing the system's decision support capabilities and practical application effectiveness. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of existing technologies and propose a city design scene simulation system and method based on human-computer interaction.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: a city design scene simulation system based on human-computer interaction, the system comprising: The interaction impact analysis module acquires user interaction behavior data in the city simulation map, calculates the interaction heat index of the city area, identifies high interaction heat areas, extracts the number of task executions, state change triggers and user feedback responses of the simulation tasks, and generates a regional task density sequence through weighted calculation. The regional priority analysis module calls the regional task density sequence to extract the path traffic density, behavior trigger count, and perception node activation frequency within the region. Combined with the regional task density, it calculates the regional simulation priority and obtains the regional priority sequence. The simulation accuracy adjustment module calls the region priority sequence to obtain the corresponding functional overlap degree, boundary overlap length and functional label number, calculates the cross strength index, determines whether the simulation accuracy needs to be adjusted, and generates a list of accuracy adjustment regions. The thread task scheduling module calls the precision adjustment region list, increases the execution priority of threads in the list according to the block sequence, postpones the execution cycle of the remaining threads, updates the execution thread sorting according to the priority table and re-divides the time slice window length, and generates human-computer interaction-oriented thread allocation information.
[0007] As a further aspect of the present invention, the regional task density sequence includes the number of task executions, the number of state change triggers, and the number of user feedback responses; the regional priority sequence includes the regional number, path traversal density, the number of behavior triggers, and the frequency of perception node activation; the precision adjustment regional list includes the regional number, functional overlap degree, boundary overlap length, number of functional labels, and cross-strength index; and the human-computer interaction guidance thread allocation information includes the thread number, scheduling cycle, priority label, and time slice window length.
[0008] As a further aspect of the present invention, the regional priority analysis module includes: The task information extraction submodule calls the regional task density sequence to obtain the geospatial index number corresponding to each simulation task, extracts the path traffic density, behavior trigger count and perception node activation frequency information within the region, integrates each data item, and generates a regional task information set. The heat calculation submodule calculates the heat index of each region based on the regional task information set by weighting and summing the path traffic density, behavior trigger frequency, and perception node activation frequency, and generates a regional heat index sequence. The priority generation submodule calls the regional task information set and the regional heat index sequence, combines the regional task density and heat value, calculates the regional simulation priority, and sorts the regions according to the simulation priority to generate a regional priority sequence.
[0009] As a further aspect of the present invention, the formula for the simulation priority of the computational region is: ; in, Representative area Simulation priority, Representative area The normalized value of the regional task density. Representative area The normalized value of the heat value, Representative area The normalized value of the path traffic density, Representative area The number of times the behavior is triggered. Representative area The activation frequency of sensing nodes and It is the weighting coefficient.
[0010] As a further aspect of the present invention, the simulation accuracy adjustment module includes: The function annotation extraction submodule calls the region priority sequence to extract the function annotation items bound to the region of interest, obtain the corresponding function overlap degree, boundary overlap length and function label number, integrate the data, and generate a function annotation information set. The cross-strength calculation submodule calculates the cross-strength index based on the functional labeling information set, combined with the degree of functional overlap, the boundary overlap length and the number of functional labels, and generates a cross-strength index sequence. The formula for calculating the cross strength index is as follows: ; in, Representative area Cross strength index Representative area Functional overlap value Representative area The normalized value of the boundary overlap length, Representative area The normalized value of the area of the region. Representative area The number of functional tags, Representative area Interaction frequency; The accuracy judgment and adjustment submodule calls the cross-strength index sequence, compares it with the set accuracy improvement threshold, identifies the areas where the cross-strength index exceeds the accuracy improvement threshold, marks the areas where the simulation accuracy needs to be adjusted, and generates a list of accuracy adjustment areas.
[0011] As a further aspect of the present invention, the thread task scheduling module includes: The task information extraction submodule obtains the initial scheduling cycle and priority label corresponding to each simulation thread based on the precision adjustment region list, extracts thread-related task information by combining the region priority information, and integrates the initial scheduling data and priority label corresponding to each thread to obtain the thread task information set. The priority adjustment submodule, based on the thread task information set, adjusts the priority of thread tasks in the precision adjustment region list according to the block sequence, increases the execution priority of threads, and for the remaining thread tasks, it delays the execution cycle and reduces the execution priority according to the set time slice delay rules, generating priority adjustment information. The thread sorting and allocation submodule calls the priority adjustment information, sorts each thread according to its priority, and redistributes the time slice window length of the threads according to the sorting result. For high-priority threads, the time slice length is increased, and for low-priority threads, the time slice length is decreased to optimize resource allocation and generate human-computer interaction-oriented thread allocation information.
[0012] As a further aspect of the present invention, the system further includes: The scene simulation update module calls the human-computer interaction guidance thread allocation information, updates the simulation task execution frequency item by item according to the updated allocation data in the thread scheduling table, rewrites the geometric position attributes, status flag bits and behavior path tables of entity nodes in the affected scene, and re-renders the rewritten data into the simulation environment layer to generate interaction impact simulation information. The interaction impact simulation information includes entity node location, status identifier, behavior path, and simulation task execution frequency.
[0013] As a further aspect of the present invention, the scene simulation update module includes: The task frequency update submodule calls the human-computer interaction-guided thread allocation information, extracts the initial scheduling cycle and priority label of each thread, updates the execution frequency of the simulation task item by item according to the updated information in the thread scheduling table, increases or decreases the task frequency of each thread, and generates a task execution frequency update table. The node data update submodule updates the entity nodes in the affected scene according to the task execution frequency update table, obtains the geometric position attributes, status flags and behavior path table of each node, rewrites the data, updates the status flags and behavior path table of the nodes, and generates updated node data. The rendering and updating submodule, based on the updated node data, re-renders the rewritten data to the simulation environment layer, updates the scene simulation information according to the node data, and generates interactive impact simulation information.
[0014] A method for simulating urban design scenarios based on human-computer interaction, the method being used to implement the aforementioned urban design scenario simulation system based on human-computer interaction, includes the following steps: S1: Obtain user interaction behavior data in the city simulation map, calculate the interaction heat index of the city area, identify high interaction heat areas, extract the number of task executions, state change triggers and user feedback responses of the simulation tasks, and generate a regional task density sequence through weighted calculation; S2: Call the regional task density sequence, extract the path traffic density, behavior trigger count and perception node activation frequency within the region, combine with the regional task density, calculate the regional simulation priority, and obtain the regional priority sequence; S3: Call the region priority sequence to obtain the corresponding functional overlap degree, boundary overlap length and functional label number, calculate the cross strength index, determine whether the simulation accuracy needs to be adjusted, and generate a list of accuracy adjustment regions; S4: Call the precision adjustment region list, prioritize the threads in the list according to the block sequence, delay the cycle of the remaining threads, update the priority table to sort the threads and redistribute the time slice window length, and generate human-computer interaction-oriented thread allocation information. S5: Call the human-computer interaction guidance thread to allocate information, rewrite the geometric position attributes, status flags and behavior path tables of entity nodes in the affected scene, re-render the rewritten data into the simulation environment layer, and generate interactive impact simulation information.
[0015] Compared with the prior art, the advantages and positive effects of the present invention are as follows: In this invention, by acquiring and analyzing user interaction data, high-interaction-heat areas in urban regions can be effectively identified. Regional priorities are calculated based on task density, and simulation accuracy is adjusted to make simulation tasks more precise and targeted. Dynamic optimization of thread scheduling prioritizes simulation tasks in high-interaction areas, ensuring that computational resources and simulation accuracy are more concentrated on areas with greater impact on decision-making. This improves the operating efficiency and response speed of the simulation system. By adjusting the generation of the precision-adjusted region list and task scheduling, the details of high-interaction areas are presented more accurately, avoiding excessive computational resource consumption in unimportant areas. This achieves optimized resource allocation, improves overall responsiveness and simulation quality, avoids wasted computational resources and slow response, ensures simulation results better meet actual needs, and enhances adaptability to highly dynamic environmental changes. Attached Figure Description
[0016] Figure 1 This is a system flowchart of the present invention; Figure 2 This is a schematic diagram of the system framework of the present invention; Figure 3 This is a flowchart of the interaction effect analysis module of the present invention; Figure 4 This is a flowchart of the region priority analysis module of the present invention; Figure 5 This is a flowchart of the simulation accuracy adjustment module of the present invention; Figure 6 This is a flowchart of the thread task scheduling module of the present invention; Figure 7 This is a flowchart of the scene simulation update module of the present invention. Figure 8 This is a schematic diagram of the method steps of the present invention. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0018] In the description of this invention, it should be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships, are based on the orientation or positional relationships shown in the accompanying drawings and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, in the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0019] Please see Figure 1 This invention provides a technical solution: a city design scene simulation system based on human-computer interaction, the system comprising: The interaction impact analysis module acquires user interaction behavior data in the city simulation map. The interaction behavior data includes click coordinates, regional interaction duration and frequency of switching between regions. It calculates the urban regional interaction heat index, identifies high interaction heat areas by comparing with the heat division standard, and extracts the corresponding simulation task information, including the number of task executions, the number of state change triggers and the number of user feedback responses. Through weighted calculation, it generates a regional task density sequence. The regional priority analysis module calls the regional task density sequence to obtain the geospatial index number corresponding to each simulation task, extracts the path traffic density, behavior trigger count and perception node activation frequency within the region, and calculates the regional simulation priority by combining the regional task density to obtain the regional priority sequence. The simulation accuracy adjustment module calls the region priority sequence, extracts the functional labels bound to the regions of interest, obtains the corresponding functional overlap degree, boundary overlap length and number of functional labels, calculates the cross strength index based on the three indicators, and compares it with the set accuracy improvement threshold to determine whether the simulation accuracy needs to be adjusted and generates a list of accuracy adjustment regions. The thread task scheduling module calls the precision adjustment region list, extracts the initial scheduling cycle and priority label corresponding to each simulation thread in the list, performs priority increase on the threads in the list according to the block sequence, postpones the execution cycle of the remaining threads, updates the execution thread sorting according to the priority table and re-divides the time slice window length, and generates human-computer interaction-oriented thread allocation information. The scene simulation update module calls the human-computer interaction-oriented thread allocation information, updates the simulation task execution frequency item by item according to the updated allocation data in the thread scheduling table, rewrites the geometric position attributes, status flag bits and behavior path tables of entity nodes in the affected scene, and re-renders the rewritten data into the simulation environment layer to generate interactive impact simulation information. Click coordinates refer to the user's click location coordinates in the city simulation map, used to determine the city area the user is interested in; area interaction duration refers to the time the user stays in a specific city area, reflecting the user's level of interest in that area; area switching frequency refers to the number of times the user switches between different areas, used to measure the user's browsing behavior in the city simulation map; functional overlap degree describes the degree of overlap in the uses of multiple functional units within a city area, which can be achieved through functional label pairing and counting; boundary overlap length is the spatially shared boundary length between multiple functional blocks, in meters, which can be extracted from GIS boundary data; accuracy improvement threshold is the accuracy adjustment standard set by the simulation system. When the cross-strength value exceeds this threshold, the simulation accuracy of the relevant area is improved; path traffic density represents the occupancy of the path network within a unit area, widely used in traffic simulation; behavior path table is the data structure used in the simulation system to record entity behavior paths; time slice window length refers to the minimum time slice unit occupied by a thread in the operating system or simulation scheduling system. The regional task density sequence includes the number of task executions, the number of state change triggers, and the number of user feedback responses. The regional priority sequence includes the regional number, path traffic density, the number of behavior triggers, and the activation frequency of perception nodes. The precision adjustment regional list includes the regional number, functional overlap, boundary overlap length, number of functional labels, and cross-strength index. The human-computer interaction-oriented thread allocation information includes the thread number, scheduling cycle, priority label, and time slice window length. The interaction impact simulation information includes the entity node location, status identifier, behavior path, and simulation task execution frequency.
[0020] Please see Figure 2 and Figure 3 The interaction impact analysis module includes an interaction data acquisition submodule, a heat calculation submodule, and a task density generation submodule. The interactive data acquisition submodule acquires user interaction behavior data in the city simulation map. The interactive behavior data includes click coordinates, regional interaction duration and frequency of switching between regions. It records the user's click position and frequency in each region, calculates the user's dwell time in each region and the frequency of region switching, constructs an interactive dataset, and generates an interactive behavior dataset. The interactive data acquisition submodule obtains user interaction behavior data in the city simulation map. First, it embeds an event listener function into the simulation map to record each user click, extracting the pixel coordinates (e.g., x=520, y=340) from the click events. These pixel coordinates are then converted to their actual map coordinates based on the map resolution and scale. For example, using 1 pixel = 0.5 meters, the map coordinates are calculated to be (260 meters, 170 meters). Next, the interface is divided into multiple areas, each with a unique number and linked to interactive state monitoring logic. The duration of a user's stay in a given area is calculated by recording the difference between the entry and exit timestamps. For example, if a user enters area A at 10:02:10 and leaves at 10:03:25, their stay is 75 seconds. The recorded time precision is in seconds, and data is stored using the user ID, area ID, and time as a combined primary key. Each area is assigned a unique identifier for subsequent statistics. Finally, the system listens for user transitions from one area to another, comparing changes in area numbers between adjacent transitions to statistically analyze the area changes. Frequency is calculated, for example, if a user switches from area A to area B and then to area C, it is counted as two area switches. Further, the system samples and counts the user's click location and frequency in each area. The click records are aggregated after being classified by area and the frequency is calculated. For example, if a user clicks a total of 12 times in area B, and the area of area B is 1600 square meters, then the click density is 0.0075 times / square meter. The system constructs an interaction dataset according to the statistical period (e.g., from 0:00 to 24:00 every day). Each record in this dataset includes fields such as user identifier, area number, click coordinate list, total number of clicks in the area, click density, dwell time, and number of area switches. The dataset is stored in a structured table and updated daily. Finally, the data is aggregated to generate an interaction behavior dataset.
[0021] The heat calculation submodule is based on the interaction behavior dataset. It evaluates the interaction heat of each city area by weighting the interaction frequency, dwell time and area switching frequency, calculates the heat index of each area, compares it with the set heat classification standard, identifies high interaction heat areas, and generates a set of high interaction heat areas. The popularity calculation submodule, based on the interaction behavior dataset, reads fields such as interaction frequency, dwell time, and area switching frequency. It then sets the normalization method for each parameter. First, it divides the number of clicks for each area by the maximum number of clicks to obtain the click frequency weight. For example, if area A has 90 clicks and a maximum of 150 clicks, the click frequency weight is 0.6. Dwell time is normalized based on the maximum dwell time. For example, if area A has an average dwell time of 180 seconds and a maximum of 300 seconds, the dwell time weight is 0.6. Area switching frequency is normalized based on the maximum number of daily switches. For example, if area A has 12 daily switches and a maximum of 20, the switching frequency weight is 0.6. The weighting coefficients are set as follows: click frequency weight α = 0.5, dwell time weight β = 0.3, and switching frequency weight γ = 0.2. The popularity index H for each area is calculated using the formula H = α·Pf + β·Ts + γ·Sf, where Pf is the normalized click frequency, Ts is the normalized dwell time, and Sf is the normalized switching frequency. Taking region A as an example: H = 0.5×0.6 + 0.3×0.6 + 0.2×0.6 = 0.6. The heat index is set as low heat index [0, 0.3), medium heat index [0.3, 0.6], and high heat index [0.6, 1]. Based on the calculated heat index value, it is determined whether it is a high heat index region. Regions with a heat index greater than or equal to 0.6 are identified as high heat index regions. The region number, heat index value and corresponding statistical data of this type are written into the high interaction heat index region set to generate the high interaction heat index region set.
[0022] The task density generation submodule calls the high-interaction-heat area set to obtain the number of task executions, state change triggers, and user feedback responses for each area. The data is then weighted and aggregated to generate a task density sequence for each area. The task density generation submodule calls a set of high-interaction-frequency regions. For each region, it calls the regional task record database to obtain the number of task executions (T1), the number of status change triggers (T2), and the number of user feedback responses (T3). The corresponding data records are indexed by region number and weighted and summarized. Weighting coefficients are set to w1=0.4, w2=0.3, and w3=0.3, respectively, to calculate the regional task density D using the formula D = w1·T1 + w2·T2 + w3·T3. For example, if region A has 50 task executions, 30 status change triggers, and 20 feedback responses, its task density is D = 0.4×50 + 0.3×30 + 0.3×20 = 20 + 9 + 6 = 35. All calculation results are summarized sequentially by region number to form a regional task density sequence. The original task statistics fields and the final calculated density value for each item are retained in this sequence for subsequent use in visualization and scheduling strategy generation.
[0023] Please see Figure 2 and Figure 4 The regional priority analysis module includes a task information extraction submodule, a heat calculation submodule, and a priority generation submodule; The task information extraction submodule calls the regional task density sequence to obtain the geospatial index number corresponding to each simulation task, extracts the path traffic density, behavior trigger count and perception node activation frequency information within the region, integrates each data item, and generates a regional task information set. The task information extraction submodule calls the regional task density sequence. The system indexes each record in the regional task density sequence according to the regional number, reads the corresponding geospatial index number in the record, extracts the regional numbers with a task density higher than 0.7 and marks them to determine whether they are key areas for task data analysis. Then, for each regional number, it retrieves the corresponding map grid number or latitude and longitude block number from the geographic information database as the spatial index number. For example, the corresponding number for region A is grid_045, and it is bound to subsequent data. Furthermore, it summarizes the daily number of passages in the corresponding travel paths for each region and calculates the path travel density. Specifically, the calculation is the total number of passages for all paths in the region divided by the total path length. For example, the total number of passages for the path in region A is 240, and the total path length is 800 meters. The traffic density is 0.3 times / meter. This density value is associated with the area number and stored. At the same time, the user's click behavior and path selection event in the behavior trigger log are read, and the number of behavior triggers is summarized. For example, the cumulative number of behavior triggers in area A is 95. Then, the daily activation records of the sensing nodes are extracted, and the total frequency of activation of each node in the area is counted. For example, the activation times of sensing nodes 1, 2, and 3 in area A are 18, 22, and 30 times respectively. Then, the activation frequency of sensing nodes in area A is 70 times. The path traffic density, the number of behavior triggers, and the activation frequency of sensing nodes are integrated into a structured record with fields including area number, geospatial index number, path traffic density value, total number of behavior triggers, and sensing node activation frequency. This record is then appended to the area task information set to finally generate the area task information set.
[0024] The heat calculation submodule calculates the heat index for each region based on the regional task information set by weighting and summing the path traffic density, behavior trigger frequency, and perception node activation frequency, and generates a regional heat index sequence. The heat calculation submodule, based on the regional task information set, performs unified normalization on the path traffic density, behavior trigger count, and sensor node activation frequency for each record. Path traffic density is normalized to the maximum traffic density of 0.5; for example, if the path traffic density of a certain region is 0.3, the normalized value is 0.6. Behavior trigger count is normalized to the maximum value of 150; for example, if it is 90, the normalized value is 0.6. Sensor node activation frequency is normalized to the maximum frequency of 100; for example, if it is 60, the normalized value is 0.6. A weighting coefficient is set as follows. , , The corresponding indicators are as follows: , , The system calls the weighted summation formula. Substituting the normalized values above into the calculation, we get... The system writes the calculation result into a new field as a regional heat index and adds the field to the regional task information set. After processing all regions, a regional heat index sequence is formed, and finally, a regional heat index sequence is generated.
[0025] The priority generation submodule calls the regional task information set and the regional heat index sequence, combines the regional task density and heat value, calculates the regional simulation priority, and sorts the regions according to the simulation priority to generate a regional priority sequence. The formula for calculating the simulation priority of a region is: ; in, Representative area Simulation priority, Representative area The normalized value of the regional task density. Representative area The normalized value of the heat value, Representative area The normalized value of the path traffic density, Representative area The number of times the behavior is triggered. Representative area The activation frequency of sensing nodes and These are weighting coefficients; Simulation priority refers to a continuous numerical index obtained by comprehensively calculating regional task load density, user interaction intensity, traffic activity, and sensing node response frequency. It serves as the basis for determining the dynamic allocation order of simulation execution resources, rather than a simple label sorting.
[0026] The priority generation submodule calls the regional task information set and the regional heat index sequence, and the system reads the task density of each region. Heat value Path traffic density Number of times behavior is triggered Frequency of activation of sensing nodes The task density and popularity values are normalized and then substituted into the weighting terms to set the weighting coefficients. , The path traffic density is normalized and treated as the square root term in the denominator. The activation frequency of the sensing node is used as a parameter of the logarithmic function and incremented by 1. If in region B the task density is 0.8, the heat index is 0.7, the path density is 0.36 (0.72 after normalization), the number of behavior triggers is 120, and the frequency of perception node activation is 60, then each part is calculated according to the formula: , ; ; Simulation priority is calculated as follows: ; Substituting the data, we get: ; The system calculates for each region The value was added to the original task information record, with the field being "simulation priority". The system then processed all records according to... Arrange the values in descending order to generate a region priority sequence.
[0027] Please see Figure 2 and Figure 5 The simulation accuracy adjustment module includes a function annotation extraction submodule, a cross strength calculation submodule, and an accuracy judgment and adjustment submodule; The function annotation extraction submodule calls the region priority sequence, extracts the function annotation items bound to the region of interest, obtains the corresponding function overlap degree, boundary overlap length and function label number, integrates the data, and generates a function annotation information set. The function label extraction submodule calls the region priority sequence. The system sequentially reads the number of each region in the priority sequence and loads the corresponding simulation map tile. It then retrieves the function label information table bound to the region and extracts the function labels involved in the region, such as "commercial services," "traffic management," and "living facilities." The number of labels is counted as the number of function labels. The function overlap degree is obtained by scanning areas with the same functional type as adjacent areas in the functional distribution map, calculating their overlapping area and dividing it by the area of the current area. For example, if area B has an area of 2000 square meters and overlaps with surrounding areas in terms of function by 800 square meters, then its Subsequently, based on the boundary coordinate file, the system extracts the set of line segments that overlap with the current region from adjacent regions, calculates the sum of the lengths of these line segments, and normalizes them to the maximum boundary length value to obtain the normalized value of the boundary overlap length. If the total overlap length is 180 meters and the maximum overlap length is 300 meters, then Then, the total area of the region is calculated using the region boundary coordinate file and normalized to the maximum area. If the area of region B is 2000 square meters, and the maximum area is set to 4000 square meters, then... All of the above values are bound to the region ID. Further queries to the user interaction database retrieve the cumulative number of daily clicks, drags, swipes, and other interactive behaviors in that region, which are recorded as the interaction frequency. If region B has a total of 90 interaction records in one day, then ,Will , , , , The values of the five fields are encapsulated into structured records and written into the functional labeling information set, which is then used to generate the functional labeling information set.
[0028] The cross-strength calculation submodule calculates the cross-strength index based on the functional labeling information set, combined with the degree of functional overlap, the boundary overlap length, and the number of functional labels, and generates a cross-strength index sequence. The formula for calculating the cross-strength index is: ; in, Representative area Cross strength index Representative area Functional overlap value Representative area The normalized value of the boundary overlap length, Representative area The normalized value of the area of the region. Representative area The number of functional tags, Representative area Interaction frequency; The cross-strength index is used to quantify the spatial overlap density between functional elements within a region in an urban simulation environment. It comprehensively considers the functional overlap ratio, boundary overlap length, functional label richness, and interaction activity, and serves as the basis for adjusting simulation accuracy. It does not involve the physical material mechanical properties.
[0029] The cross-strength calculation submodule is based on the functional labeling information set. The system sequentially calls the corresponding field values from each record and calculates them according to the cross-strength index formula. To perform the calculation, first extract the degree of functional overlap in each record. Normalized value of boundary overlap length Normalized area values Number of functional tags Frequency of interaction For example, the data for region B is: , , , , The steps for substituting into the formula are executed sequentially as follows: , ; ; final This value indicates that the cross strength index of region B is 0.0112. The system writes the calculation results of each region together with the original field into a new field, marked as "cross strength", and merges them to form a cross strength index sequence, and finally generates a cross strength index sequence.
[0030] The accuracy judgment and adjustment submodule calls the cross strength index sequence, compares it with the set accuracy improvement threshold, identifies the areas where the cross strength index exceeds the accuracy improvement threshold, marks the areas where the simulation accuracy needs to be adjusted, and generates a list of accuracy adjustment areas. The precision judgment and adjustment submodule calls the cross-strength index sequence. The system sets the precision improvement threshold to 0.01, and applies the cross-strength index to each record. A comparison operation is performed to determine if the value exceeds a set threshold. If the condition is met, the region is marked as requiring simulation accuracy adjustment. For example, if the cross strength value of region B is 0.0112, it meets the requirement. Therefore, the region number is marked as the adjustment target, all region data are processed in sequence, the set of numbers that meet the conditions is filtered out, an initial list of adjustment regions is generated, and then the simulation task scheduling parameters are called to prioritize the labeling according to the cross strength and output as a list of precision adjustment regions, and finally a list of precision adjustment regions is generated.
[0031] Please see Figure 2 and Figure 6 The thread task scheduling module includes a task information extraction submodule, a priority adjustment submodule, and a thread sorting and allocation submodule. The task information extraction submodule obtains the initial scheduling cycle and priority label corresponding to each simulation thread based on the precision adjustment region list, extracts thread-related task information by combining the region priority information, and integrates the initial scheduling data and priority label corresponding to each thread to obtain the thread task information set. The task information extraction submodule is based on the precision adjustment region list. The system performs a thread matching operation for each precision adjustment region. First, it indexes the simulation thread allocation table by region number to extract the currently bound simulation thread identifier for each region. Then, it extracts the initial scheduling period of the thread from the thread scheduling data table. With the currently set priority label For example, if the thread ID is thread_12, its initial period is 20ms, and its initial priority tag is 5, then the system calls the region priority record table to read the simulation priority value corresponding to that region number. For example, if the simulation priority of a certain area is 21.04, the system extracts the tasks it undertakes, such as path planning, traffic state simulation, and user behavior feedback synchronization, using a dual index of block number and thread ID. It also obtains the processing cycle and start queuing time for each task, binds this task processing information with the thread's scheduling cycle and priority tag, constructs a task scheduling record, and integrates it into a thread task information structure. The fields include thread number, the set of tasks it contains, the start time of each task, and the thread's initial scheduling cycle. Thread initial priority label Regional priority The threads are sorted by thread number and then summarized and written into the thread task information set, which is the final thread task information set.
[0032] The priority adjustment submodule adjusts the priority of thread tasks within the precision adjustment region list according to the thread task information set and the block sequence, increasing the execution priority of the thread. For the remaining thread tasks, the execution cycle is delayed according to the set time slice delay rules, the execution priority is reduced, and priority adjustment information is generated. The priority adjustment submodule, based on the thread task information set, first filters records in the precision adjustment region list whose region numbers appear in the precision adjustment region list. It then extracts the corresponding thread number set, processes each thread's block number, obtains the block number sorting sequence by looking up a table, and assigns the increased priority label to the matched threads according to this sequence. The priority promotion rule is set to decrease the original label by two levels. If the original label is 5, it is adjusted to 3. The priority value range is limited to integers between 1 and 10, where 1 represents the highest priority. If the upper limit is exceeded, the minimum value of 1 is taken. The adjusted priority value is recorded in the "new priority label" field. For threads outside the precision adjustment range, the system processes their scheduling cycle according to the time slice delay rule, which is set to the initial scheduling cycle. Increase by 15% on the basis. For example, if the initial scheduling period of a certain thread is 20ms, the adjusted value is... ms, set the new priority label for this thread The maximum priority value is limited to 10. All processing results are integrated into a priority adjustment information record. Each record includes fields such as thread number and original priority. New priority Original cycle Adjusted cycle The system takes into account the region number, whether it is a precision adjustment region flag, and finally generates priority adjustment information.
[0033] The thread sorting and allocation submodule calls priority adjustment information, sorts each thread according to its priority, and redistributes the time slice window length of the threads according to the sorting result. For high-priority threads, the time slice length is increased, and for low-priority threads, the time slice length is decreased, thus optimizing resource allocation and generating human-computer interaction-oriented thread allocation information.
[0034] The thread sorting and allocation submodule calls priority adjustment information. The system first reads the new thread priority label for each record. A priority sorting list is constructed based on numerical values from smallest to largest, and a thread index sequence table is generated according to this sequence. The system then reallocates the time slice window length of thread resources based on the sorting results. Set high-priority threads ( The time slice length is increased by 20%. For example, if the original time slice of a thread was 50ms, its adjusted time slice will be... ms, for low-priority threads ( The time slice length is reduced by 25%, that is The time slice length for all threads remains unchanged, with the thread ID as the key. All processed time slice lengths are recorded in a mapping table and added to the scheduling management module. The final fields include thread ID and priority. The original time slice length, the adjusted time slice length, and the priority upgrade flag are all aggregated to generate a structured data table, which ultimately generates the human-computer interaction-oriented thread allocation information.
[0035] Please see Figure 2 and Figure 7The scene simulation update module includes a task frequency update submodule, a node data update submodule, and a rendering and update submodule. The task frequency update submodule calls the human-computer interaction-guided thread allocation information, extracts the initial scheduling cycle and priority label of each thread, updates the execution frequency of the simulation task item by item according to the updated information in the thread scheduling table, increases or decreases the task frequency of each thread, and generates a task execution frequency update table. The task frequency update submodule calls the human-computer interaction-guided thread allocation information. The system reads each thread record sequentially and extracts the thread identifier and initial scheduling period. Adjusted scheduling cycle Initial priority label and current priority tag Compare the initial and updated values to determine if the task scheduling status has changed. or If so, the thread is determined to be a task frequency increase thread, and then... Calculate the updated execution frequency. For example, if the period of a certain thread is adjusted to 25ms, then the corresponding execution frequency is: If every second, or If a thread is identified as having its frequency reduced, its frequency reduction value is calculated using the same logic. If the original period is 30ms and the adjusted period is 36ms, the frequency will decrease from 33.33Hz to 27.78Hz. The system binds the task ID of each thread to the calculated frequency and generates fields including thread ID, task ID, original scheduling period, updated period, initial frequency, updated frequency, adjustment type (upward or downward), and corresponding priority tag change value. These fields are then sorted by thread number and stored in the task execution frequency update table, ultimately generating the task execution frequency update table.
[0036] The node data update submodule updates the table according to the task execution frequency, updates the entity nodes in the affected scene, obtains the geometric position attributes, status flags and behavior path table of each node, rewrites the data, updates the status flags and behavior path table of the nodes, and generates updated node data. The node data update submodule updates the table based on the task execution frequency, updating the entity nodes in the affected scenario. First, it performs an inverted index on the task ID associated with each record in the update table to obtain a list of unique identifiers for all bound entity nodes. Then, it sequentially queries the entity node database to extract the geometric location attributes (such as coordinate point sequence), current status flags (such as activity status code, logical layer flags), and current behavior path table (path number list and step order) for each node. If a node ID is N023, its current status flag is "01" (indicating standby), and its behavior path table is [Path_05, If Path_08 is selected, the system will find the corresponding task's execution cycle adjustment direction based on the frequency update information. If the frequency is increased, the system will update the status identifier to "02" (indicating execution) and update the execution step size of all paths in the path table to 80% of the original value. For example, if the original step size of Path_05 is 5 seconds, it will be updated to 4 seconds. If the frequency is decreased, the status identifier will be updated to "00" (indicating suspension), the step size of the behavior path table will be updated to 120% of the original value, and a new field record "Adjustment Source Task ID" and "Adjustment Type" will be added. All updated data will be constructed into a structure with fields including node ID, location coordinate set, status identifier, path number, path step size, update source and timestamp, and stored in the updated node dataset to finally generate the updated node data.
[0037] The rendering and updating submodule re-renders the rewritten data to the simulation environment layer based on the updated node data, updates the scene simulation information according to the node data, and generates interactive impact simulation information. The rendering and updating submodule, based on the updated node data, first initializes the current simulation environment layer data buffer, reads each record in the updated node dataset, maps its corresponding geometric coordinate attributes to the current environment coordinate system, updates the geometric shape and annotation elements in the original layer that match the node number, and then calls the status identifier field to switch the color, shape, or texture of the node primitives. For example, a node with status code "02" is marked as a red cube, a node with status code "01" as a blue sphere, and a node with status code "00" as a gray cylinder. Subsequently, the node behavior path table is drawn and refreshed, and a dynamic line segment sequence is generated according to the path step length and projected onto the terrain mesh layer. If the path step length is 4 seconds, the length of the drawn unit line segment is the layer scale length corresponding to the corresponding time interval. After all nodes have completed the primitive update, the system writes the entire layer data back to the simulation environment main control module. The updated status and path data are rendered and output in frame form and written to the rendering log file. The fields include node ID, update type, before and after status pair, path change items, and rendering timestamp, and finally, interactive impact simulation information is generated.
[0038] Please see Figure 8A simulation method for urban design scenarios based on human-computer interaction includes the following steps: S1: Obtain user interaction behavior data in the city simulation map, calculate the interaction heat index of the city area, identify high interaction heat areas, extract the number of task executions, state change triggers and user feedback responses of the simulation tasks, and generate a regional task density sequence through weighted calculation; S2: Call the regional task density sequence, extract the path traffic density, behavior trigger count and perception node activation frequency within the region, combine with the regional task density, calculate the regional simulation priority, and obtain the regional priority sequence; S3: Call the region priority sequence to obtain the corresponding functional overlap degree, boundary overlap length and functional label number, calculate the cross strength index, determine whether the simulation accuracy needs to be adjusted, and generate a list of accuracy adjustment regions; S4: Call the precision adjustment region list, increase the priority of the threads in the list according to the block sequence, delay the cycle of the remaining threads, update the execution thread sorting according to the priority table and re-divide the time slice window length, and generate human-computer interaction guidance thread allocation information. S5: Call the human-computer interaction-oriented thread allocation information, update the simulation task execution frequency item by item according to the updated allocation data in the thread scheduling table, rewrite the geometric position attributes, status flag bits and behavior path tables of entity nodes in the affected scene, re-render the rewritten data into the simulation environment layer, and generate interactive impact simulation information.
[0039] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any other way. Any person skilled in the art may make changes or modifications to the above-disclosed technical content to create equivalent embodiments that can be applied to other fields. However, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the protection scope of the present invention.
Claims
1. A city design scenario simulation system based on human-computer interaction, characterized in that, The system includes: The interaction impact analysis module acquires user interaction behavior data in the city simulation map, calculates the interaction heat index of the city area, identifies high interaction heat areas, extracts the number of task executions, state change triggers and user feedback responses of the simulation tasks, and generates a regional task density sequence through weighted calculation. The regional priority analysis module calls the regional task density sequence to extract the path traffic density, behavior trigger count, and perception node activation frequency within the region. Combined with the regional task density, it calculates the regional simulation priority and obtains the regional priority sequence. The simulation accuracy adjustment module calls the region priority sequence to obtain the corresponding functional overlap degree, boundary overlap length and functional label number, calculates the cross strength index, determines whether the simulation accuracy needs to be adjusted, and generates a list of accuracy adjustment regions. The thread task scheduling module calls the precision adjustment region list, increases the execution priority of threads in the list according to the block sequence, postpones the execution cycle of the remaining threads, updates the execution thread sorting according to the priority table and re-divides the time slice window length, and generates human-computer interaction-oriented thread allocation information.
2. The urban design scenario simulation system based on human-computer interaction according to claim 1, characterized in that, The regional task density sequence includes the number of task executions, the number of state change triggers, and the number of user feedback responses. The regional priority sequence includes the regional number, path traffic density, the number of behavior triggers, and the frequency of perception node activation. The precision adjustment regional list includes the regional number, functional overlap degree, boundary overlap length, number of functional labels, and cross-strength index. The human-computer interaction guidance thread allocation information includes the thread number, scheduling cycle, priority label, and time slice window length.
3. The urban design scenario simulation system based on human-computer interaction according to claim 2, characterized in that, The interaction impact analysis module includes: The interactive data acquisition submodule acquires user interaction behavior data in the city simulation map. The interactive behavior data includes click coordinates, regional interaction duration and frequency of switching between regions. It records the user's click position and frequency in each region, calculates the user's dwell time in each region and the frequency of region switching, constructs an interactive dataset, and generates an interactive behavior dataset. Based on the interactive behavior dataset, the heat calculation submodule evaluates the interaction heat of each city area by weighting the interaction frequency, dwell time and area switching frequency, calculates the heat index of each area, compares it with the set heat classification standard, identifies high interaction heat areas, and generates a set of high interaction heat areas. The task density generation submodule calls the set of high-interaction hot areas to obtain the number of task executions, the number of state change triggers, and the number of user feedback responses for each area. The data is then weighted and aggregated to generate a task density sequence for each area.
4. The urban design scenario simulation system based on human-computer interaction according to claim 3, characterized in that, The regional priority analysis module includes: The task information extraction submodule calls the regional task density sequence to obtain the geospatial index number corresponding to each simulation task, extracts the path traffic density, behavior trigger count and perception node activation frequency information within the region, integrates each data item, and generates a regional task information set. The heat calculation submodule calculates the heat index of each region based on the regional task information set by weighting and summing the path traffic density, behavior trigger frequency, and perception node activation frequency, and generates a regional heat index sequence. The priority generation submodule calls the regional task information set and the regional heat index sequence, combines the regional task density and heat value, calculates the regional simulation priority, and sorts the regions according to the simulation priority to generate a regional priority sequence.
5. The urban design scenario simulation system based on human-computer interaction according to claim 4, characterized in that, The formula for the simulation priority of the computational region is: ; in, Representative area Simulation priority, Representative area The normalized value of the regional task density. Representative area The normalized value of the heat value, Representative area The normalized value of the path traffic density, Representative area The number of times the behavior is triggered. Representative area The activation frequency of sensing nodes and It is the weighting coefficient.
6. The urban design scenario simulation system based on human-computer interaction according to claim 5, characterized in that, The simulation accuracy adjustment module includes: The function annotation extraction submodule calls the region priority sequence to extract the function annotation items bound to the region of interest, obtain the corresponding function overlap degree, boundary overlap length and function label number, integrate the data, and generate a function annotation information set. The cross-strength calculation submodule calculates the cross-strength index based on the functional labeling information set, combined with the degree of functional overlap, the boundary overlap length and the number of functional labels, and generates a cross-strength index sequence. The formula for calculating the cross strength index is as follows: ; in, Representative area Cross strength index Representative area Functional overlap value Representative area The normalized value of the boundary overlap length, Representative area The normalized value of the area of the region. Representative area The number of functional tags, Representative area Interaction frequency; The accuracy judgment and adjustment submodule calls the cross-strength index sequence, compares it with the set accuracy improvement threshold, identifies the areas where the cross-strength index exceeds the accuracy improvement threshold, marks the areas where the simulation accuracy needs to be adjusted, and generates a list of accuracy adjustment areas.
7. The urban design scenario simulation system based on human-computer interaction according to claim 6, characterized in that, The thread task scheduling module includes: The task information extraction submodule obtains the initial scheduling cycle and priority label corresponding to each simulation thread based on the precision adjustment region list, extracts thread-related task information by combining the region priority information, and integrates the initial scheduling data and priority label corresponding to each thread to obtain the thread task information set. The priority adjustment submodule, based on the thread task information set, adjusts the priority of thread tasks in the precision adjustment region list according to the block sequence, increases the execution priority of threads, and for the remaining thread tasks, it delays the execution cycle and reduces the execution priority according to the set time slice delay rules, generating priority adjustment information. The thread sorting and allocation submodule calls the priority adjustment information, sorts each thread according to its priority, and redistributes the time slice window length of the threads according to the sorting result. For high-priority threads, the time slice length is increased, and for low-priority threads, the time slice length is decreased to optimize resource allocation and generate human-computer interaction-oriented thread allocation information.
8. The urban design scenario simulation system based on human-computer interaction according to claim 7, characterized in that, The system also includes: The scene simulation update module calls the human-computer interaction guidance thread allocation information, updates the simulation task execution frequency item by item according to the updated allocation data in the thread scheduling table, rewrites the geometric position attributes, status flag bits and behavior path tables of entity nodes in the affected scene, and re-renders the rewritten data into the simulation environment layer to generate interaction impact simulation information. The interaction impact simulation information includes entity node location, status identifier, behavior path, and simulation task execution frequency.
9. The urban design scenario simulation system based on human-computer interaction according to claim 8, characterized in that, The scene simulation update module includes: The task frequency update submodule calls the human-computer interaction-guided thread allocation information, extracts the initial scheduling cycle and priority label of each thread, updates the execution frequency of the simulation task item by item according to the updated information in the thread scheduling table, increases or decreases the task frequency of each thread, and generates a task execution frequency update table. The node data update submodule updates the entity nodes in the affected scene according to the task execution frequency update table, obtains the geometric position attributes, status flags and behavior path table of each node, rewrites the data, updates the status flags and behavior path table of the nodes, and generates updated node data. The rendering and updating submodule, based on the updated node data, re-renders the rewritten data to the simulation environment layer, updates the scene simulation information according to the node data, and generates interactive impact simulation information.
10. A method for simulating urban design scenarios based on human-computer interaction, characterized in that, The method is used to implement the urban design scene simulation system based on human-computer interaction as described in any one of claims 1-9, and includes the following steps: S1: Obtain user interaction behavior data in the city simulation map, calculate the interaction heat index of the city area, identify high interaction heat areas, extract the number of task executions, state change triggers and user feedback responses of the simulation tasks, and generate a regional task density sequence through weighted calculation; S2: Call the regional task density sequence, extract the path traffic density, behavior trigger count and perception node activation frequency within the region, combine with the regional task density, calculate the regional simulation priority, and obtain the regional priority sequence; S3: Call the region priority sequence to obtain the corresponding functional overlap degree, boundary overlap length and functional label number, calculate the cross strength index, determine whether the simulation accuracy needs to be adjusted, and generate a list of accuracy adjustment regions; S4: Call the precision adjustment region list, prioritize the threads in the list according to the block sequence, delay the cycle of the remaining threads, update the priority table to sort the threads and redistribute the time slice window length, and generate human-computer interaction-oriented thread allocation information. S5: Call the human-computer interaction guidance thread to allocate information, rewrite the geometric position attributes, status flags and behavior path tables of entity nodes in the affected scene, re-render the rewritten data into the simulation environment layer, and generate interactive impact simulation information.
