A method, apparatus, electronic device and storage medium for fitting thermal trajectories during a hall tour.

CN122574129APending Publication Date: 2026-08-14GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0004]本申请实施例提供一种巡堂热力轨迹拟合方法、装置、电子设备及存储介质,能够准确地绘制教师巡堂热力轨迹,直观、清晰地展示教师巡堂轨迹热力分布,解决巡堂轨迹展示错综复杂的技术问题

Benefits of technology

[0033]通过对拟合轨迹数据进行间隔采样,可以精简教师巡堂轨迹的轨迹点数量,同时通过计算轨迹数据量和轨迹时序值,从而在精简轨迹点数量的同时,保证教师巡堂轨迹的绘制精度,并使得教师巡堂轨迹能够直观地反映出教师课堂过程中的移动位置分布变化。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122574129A_ABST
    Figure CN122574129A_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, electronic device, and storage medium for fitting a teacher's classroom thermal trajectory. The technical solution provided by this application fits the teacher's classroom trajectory point data to the classroom path segment and performs interval sampling on the fitted trajectory data. This avoids the situation where an excessive number of teacher classroom trajectory points leads to a complex and intricate classroom trajectory, thus simplifying the teacher's classroom trajectory. Furthermore, the teacher's classroom trajectory is obtained by connecting the trajectory sampling points according to the trajectory time sequence values. Simultaneously, based on the amount of trajectory data, the thermal distribution of the teacher's classroom trajectory is marked, thereby accurately and intuitively drawing the teacher's classroom thermal trajectory on the classroom seating layout diagram, clearly representing the thermal distribution of the teacher's trajectory during the classroom process. This improves the aesthetics and practicality of the teacher's classroom trajectory drawing and enhances the display effect of the classroom trajectory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for fitting thermal trajectories during a hall tour. Background Technology

[0002] Currently, classroom observation systems utilize visual algorithms to analyze classroom recordings to extract information such as student desk and chair distribution, individual student locations, and classroom details. This information is then plotted on a two-dimensional image on a webpage, resulting in a classroom seating layout diagram. Further, teacher trajectory data is collected; this data is essentially a two-dimensional array with temporal information. Based on this trajectory data, teacher trajectory points are plotted on the seating layout diagram. Connecting these points chronologically yields a classroom observation trajectory diagram representing the teacher's trajectory changes at different points in time.

[0003] However, due to the large number of teacher classroom trajectory points, simply connecting these points in chronological order to draw a classroom circulation trajectory diagram results in complex and messy lines, making it difficult to realistically and intuitively display the heat distribution of the teacher's classroom circulation trajectory. Summary of the Invention

[0004] This application provides a method, device, electronic device, and storage medium for fitting the thermal trajectory of a teacher's classroom patrol, which can accurately draw the thermal trajectory of the teacher's classroom patrol and intuitively and clearly display the thermal distribution of the teacher's classroom patrol trajectory, thus solving the complex technical problem of displaying classroom patrol trajectories.

[0005] In a first aspect, embodiments of this application provide a method for fitting thermal trajectories during a patient's visit, comprising:

[0006] Obtain classroom seating layout diagram and teacher classroom trajectory point data; determine classroom passage segments based on classroom seating layout diagram; fit the teacher classroom trajectory point data to the classroom passage segments to obtain fitted trajectory data.

[0007] The fitted trajectory data is sampled at intervals to obtain trajectory sampling points. Based on the trajectory sampling points, the fitted trajectory data within a set statistical range is statistically analyzed to determine the trajectory data volume and trajectory time series value.

[0008] Based on the trajectory time series values ​​and the trajectory sampling points, the teacher's classroom patrol trajectory is planned on the classroom seating layout diagram, and the heat distribution of the teacher's classroom patrol trajectory is marked based on the trajectory data volume.

[0009] As can be seen, this application fits the teacher's classroom trajectory point data to the classroom passage segment and performs interval sampling on the fitted trajectory data. This avoids the situation where the teacher's classroom circulation trajectory becomes intricate due to an excessive number of trajectory points, thus simplifying the teacher's classroom circulation trajectory. Furthermore, the teacher's classroom circulation trajectory is obtained by connecting the trajectory sampling points according to the trajectory time sequence value. Simultaneously, based on the amount of trajectory data, the teacher's classroom circulation trajectory is marked with a heat map, thereby accurately and intuitively drawing the teacher's classroom circulation heat map on the classroom seating layout diagram, clearly representing the heat map distribution of the teacher's trajectory during the classroom process. This improves the aesthetics and practicality of the teacher's classroom circulation trajectory drawing, enhancing the display effect of the circulation trajectory.

[0010] Furthermore, the step of planning the teacher's classroom circulation trajectory on the classroom seating layout diagram based on the trajectory time series values ​​and the trajectory sampling points includes:

[0011] The trajectory sampling points and the endpoints of the classroom passageway are used as trajectory nodes;

[0012] The connection order of each trajectory node is determined according to the trajectory time sequence value, and the shortest path is used to connect each trajectory node based on the connection order to generate the teacher's classroom patrol trajectory.

[0013] The step of connecting each trajectory node with the shortest path based on the connection order includes:

[0014] Path weighted edges are configured between adjacent trajectory nodes according to the distance of the classroom passage segments, and the weights of path weighted edges whose number of fitted trajectories is lower than a set threshold are increased.

[0015] The shortest path is used to connect each trajectory node according to the path weighted edges and the connection order.

[0016] The heat map identification of the teacher's classroom patrol trajectory based on the trajectory data volume includes:

[0017] According to the amount of trajectory data, each trajectory sampling point is assigned a corresponding color label, and the road segment between two adjacent trajectory sampling points with different color labels is marked with a color transition.

[0018] By planning the shortest path for teachers' classroom rounds, we can accurately map the changes in their movement throughout the lesson. Using different colors to represent the heat distribution of these rounds provides a more intuitive and clear view of how long teachers spend at different locations during class.

[0019] Further, the step of fitting the teacher's classroom trajectory point data to the classroom path segment to obtain fitted trajectory data includes:

[0020] The teacher's classroom trajectory point data is corrected to the reference coordinate system of the classroom seating layout diagram;

[0021] Traverse the teacher classroom trajectory point data under the reference coordinate system, and aggregate the traversed teacher classroom trajectory point data to the nearest classroom passage segment.

[0022] The step of correcting the teacher's classroom trajectory point data to the reference coordinate system of the classroom seating layout diagram includes:

[0023] Calculate the coordinate scaling parameter and coordinate offset parameter of the bounding box of the student classroom coordinate data relative to the bounding box of the classroom seats in the classroom seating layout diagram. The student classroom coordinate data and the teacher classroom trajectory point data are collected in the same coordinate system.

[0024] The teacher's classroom trajectory point data is corrected to the reference coordinate system of the classroom seating layout diagram based on the coordinate scaling parameter and the coordinate offset parameter.

[0025] Before correcting the teacher's classroom trajectory point data to the reference coordinate system of the classroom seating layout diagram based on the coordinate scaling parameter and the coordinate offset parameter, the method further includes:

[0026] Calculate the transformed coordinate data of the student classroom coordinate data on the classroom seating layout diagram based on the coordinate scaling parameter and the coordinate offset parameter;

[0027] The student classroom coordinate data is collected as actual rendering data on the classroom seating layout diagram. The degree of dispersion between the transformed coordinate data and the actual rendering data is calculated. The coordinate scaling parameter and the coordinate offset parameter are corrected according to the degree of dispersion.

[0028] By adjusting the scaling and offset of the coordinate system and correcting the scaling and offset parameters in conjunction with actual rendering data, the teacher's classroom trajectory point data can be accurately fitted onto the classroom passage, further improving the drawing accuracy of the teacher's classroom circulation trajectory.

[0029] Further, the step of obtaining trajectory sampling points by interval sampling of the fitted trajectory data includes:

[0030] The fitted trajectory data is sampled at fixed intervals. During the interval sampling process, the beginning and end of the set corner range of the classroom passage are sampled, and other sampling positions within the set corner range are ignored to obtain trajectory sampling points.

[0031] The step of performing data statistics on the fitted trajectory data within a set statistical range based on the trajectory sampling points to determine the trajectory data volume and trajectory time series values ​​includes:

[0032] Centered on the trajectory sampling point, the number of fitted trajectory data within a set statistical range is counted to obtain the trajectory data volume, and the smallest time sequence value of the fitted trajectory data within the set statistical range is used as the trajectory time sequence value.

[0033] By sampling the fitted trajectory data at intervals, the number of trajectory points in the teacher's classroom circulation trajectory can be reduced. At the same time, by calculating the amount of trajectory data and the trajectory time series value, the accuracy of the teacher's classroom circulation trajectory can be ensured while reducing the number of trajectory points, and the teacher's classroom circulation trajectory can intuitively reflect the changes in the distribution of the teacher's movement position during the classroom process.

[0034] In a second aspect, embodiments of this application provide a thermal trajectory fitting device for a patient's examination room, comprising:

[0035] The fitting module is used to acquire classroom seating layout diagram and teacher classroom trajectory point data, determine classroom passage segments based on classroom seating layout diagram, and fit the teacher classroom trajectory point data to the classroom passage segments to obtain fitted trajectory data.

[0036] The sampling module is used to perform interval sampling on the fitted trajectory data to obtain trajectory sampling points, and to perform data statistics on the fitted trajectory data within a set statistical range based on the trajectory sampling points to determine the trajectory data volume and trajectory time sequence value.

[0037] The planning module is used to plan the teacher's classroom circulation trajectory on the classroom seating layout diagram based on the trajectory time series value and the trajectory sampling point, and to perform heat distribution identification of the teacher's classroom circulation trajectory based on the trajectory data volume.

[0038] In a third aspect, embodiments of this application provide an electronic device, including:

[0039] Memory and one or more processors;

[0040] The memory is used to store one or more programs;

[0041] When the one or more programs are executed by the one or more processors, the one or more processors implement the thermal trajectory fitting method for the hall as described in the first aspect.

[0042] In a fourth aspect, embodiments of this application provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the thermal trajectory fitting method for the circulation of heat as described in the first aspect. Attached Figure Description

[0043] Figure 1 This is a schematic diagram showing the distribution of teachers' classroom trajectory points;

[0044] Figure 2 It is a classroom patrol trajectory map constructed by connecting the points on the teacher's classroom trajectory;

[0045] Figure 3 A flowchart of a method for fitting thermal trajectories during a hall tour is provided in Embodiment 1 of this application;

[0046] Figure 4 This is a schematic diagram of the classroom passageway in the classroom seating layout of Embodiment 1 of this application;

[0047] Figure 5 This is a schematic diagram of the scaling and offset of student classroom coordinate data in Embodiment 1 of this application;

[0048] Figure 6 This is a schematic diagram illustrating the difference between the transformed coordinate data and the actual rendered data in Embodiment 1 of this application;

[0049] Figure 7 This is a schematic diagram showing that the teacher's classroom trajectory point data in Embodiment 1 of this application has not been corrected to the classroom seating layout diagram;

[0050] Figure 8 This is a schematic diagram of the correction of teacher classroom trajectory point data to classroom seating layout in Embodiment 1 of this application;

[0051] Figure 9 This is a schematic diagram of fitting teacher classroom trajectory point data to the classroom passage segment in Embodiment 1 of this application;

[0052] Figure 10 This is a schematic diagram of the fitted trajectory point data in Embodiment 1 of this application;

[0053] Figure 11 This is a schematic diagram of the sampling of fitted trajectory point data in Embodiment 1 of this application;

[0054] Figure 12 This is a schematic diagram of the path-weighted edges in Embodiment 1 of this application;

[0055] Figure 13 This is a schematic diagram of the shortest path planning for the court tour trajectory in Embodiment 1 of this application;

[0056] Figure 14 This is a schematic diagram of the color markings corresponding to the court patrol trajectory in Embodiment 1 of this application;

[0057] Figure 15 This is a schematic diagram of the court tour trajectory in Embodiment 1 of this application;

[0058] Figure 16 This is a schematic diagram of the structure of a heat trajectory fitting device for a hall patrol provided in Embodiment 2 of this application;

[0059] Figure 17This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of this application. Detailed Implementation

[0060] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0061] The classroom patrol heat map fitting method provided in this application aims to simplify the teacher's classroom patrol trajectory by fitting the teacher's classroom trajectory point data to the classroom passage segment, performing interval sampling on the fitted trajectory data, and then fitting the teacher's classroom trajectory point data to the classroom passage segment and performing interval sampling on the fitted trajectory data, thereby accurately and intuitively drawing the teacher's classroom patrol heat map on the classroom seating layout diagram.

[0062] In a classroom observation system, visual algorithms can be used to analyze classroom recordings to extract information such as the distribution of student desks and chairs, the location of individual students, and classroom information. This information can then be plotted on a two-dimensional image on a webpage to obtain a classroom seating layout diagram. For example, assuming the classroom seating layout has [8,8,8,8,8,8,8,8,9] rows per column and [[0,1,2],[3,4,5],[6,7,8]], the grouping information indicates which columns form a group. Based on this classroom seating layout information, a corresponding classroom seating layout diagram can be obtained.

[0063] Further data collection focused on teachers' movement within the classroom. This data is essentially a two-dimensional array with temporal information. The two-dimensional array is represented as follows:

[0064] {

[0065] x:number,

[0066] y:number

[0067] timeSec:number

[0068] }

[0069] Where x represents the horizontal axis, y represents the vertical axis, and timeSec represents the time series value.

[0070] Based on the above trajectory data, the teacher's classroom trajectory points can be drawn on the classroom seating layout diagram, such as... Figure 1 As shown, point a represents the teacher's classroom trajectory point on the classroom seating layout diagram. By connecting these points sequentially, a classroom circulation trajectory diagram representing the teacher's trajectory changes at different times can be obtained, as shown in the diagram. Figure 2 As shown.

[0071] Obviously, due to the large number of teacher movement points in the classroom, simply connecting these points in chronological order to draw a classroom movement trajectory diagram results in a complex and messy drawing effect, making it difficult to realistically and intuitively display the heat distribution of the teacher's classroom movement trajectory.

[0072] Based on this, this application provides a method for fitting a classroom patrol heat map to solve the technical problem of complex classroom patrol trajectory display. By fitting teacher classroom trajectory point data to the classroom passage segment, the fitted trajectory data is sampled at intervals. This avoids the situation where an excessive number of teacher classroom trajectory points leads to complex classroom patrol trajectories, thus simplifying the teacher's classroom patrol trajectory. Furthermore, the teacher's classroom patrol trajectory is obtained by connecting the trajectory sampling points according to the trajectory time sequence values. Simultaneously, based on the amount of trajectory data, the heat map distribution of the teacher's classroom patrol trajectory is marked, thereby accurately and intuitively drawing the teacher's classroom patrol heat map on the classroom seating layout diagram, clearly representing the heat map distribution of the teacher's trajectory during the classroom process. This improves the aesthetics and practicality of the teacher's classroom patrol trajectory drawing, enhancing the display effect of the classroom patrol trajectory.

[0073] Example 1:

[0074] Figure 3 A flowchart of a thermal trajectory fitting method for a passageway provided in Embodiment 1 of this application is given. The thermal trajectory fitting method provided in this embodiment can be executed by a thermal trajectory fitting device, which can be implemented by software and / or hardware. The thermal trajectory fitting device can consist of two or more physical entities, or it can consist of a single physical entity. Generally, the thermal trajectory fitting device can be a computer, mobile phone, tablet, or other processing device.

[0075] The following description uses the thermal trajectory fitting device for the circulation of heat as the main body for implementing the thermal trajectory fitting method for circulation of heat as an example. (Refer to...) Figure 3 The specific methods for fitting the thermal trajectory of the hall include:

[0076] S110. Obtain the classroom seating layout diagram and teacher classroom trajectory point data. Determine the classroom passage segment based on the classroom seating layout diagram. Fit the teacher classroom trajectory point data to the classroom passage segment to obtain the fitted trajectory data.

[0077] In constructing the teacher's classroom circulation trajectory, this application uses an interval sampling method to simplify the trajectory points of the teacher's classroom circulation trajectory by fitting the teacher's classroom trajectory point data onto the classroom passage segment. This avoids the situation where the teacher's classroom circulation trajectory is complicated.

[0078] Through analysis of recorded classroom videos, visual algorithms can identify the distribution of student desks and chairs, the specific locations of students, and the overall layout of the classroom. This information is then converted into two-dimensional images, forming a classroom seating layout diagram. This diagram can also be pre-drawn manually for use in subsequent teacher observation and monitoring.

[0079] On the other hand, data on teachers' trajectory points in the classroom is collected through video analytics or pre-configured trajectory acquisition devices (such as motion trackers), and defined as teacher classroom trajectory point data. Teacher classroom trajectory point data is a two-dimensional array with temporal information, containing coordinate points and corresponding temporal values, representing the teacher's coordinate position at different points in time.

[0080] By accurately acquiring classroom layout and teacher movement trajectories, we can provide basic data for subsequent steps, making trajectory analysis more closely resemble the actual teaching environment and improving the accuracy of the analysis.

[0081] Furthermore, by acquiring the aforementioned pre-determined classroom seating layout and classroom trajectory point data, the main aisle paths within the classroom are identified based on the seating layout and defined as classroom aisle segments. For example... Figure 4 As shown, classroom aisle segment b is the main area where teachers move around in the classroom. Classroom aisle segments can be determined based on the perimeter of each group (including multiple rows of seats) in the classroom seating layout diagram. Classroom aisle segments can also be marked on the classroom seating layout diagram according to pre-configured aisle paths. Depending on actual needs, classroom aisle segments can be determined in various ways. This application does not impose fixed restrictions on the specific methods for determining classroom aisle segments, and will not elaborate further here.

[0082] Furthermore, the collected teacher classroom trajectory point data is fitted onto the classroom passageway segment, and the trajectory points fitted onto the classroom passageway segment are defined as the fitted trajectory data. Specifically, the optimal position of the trajectory points on the classroom passageway segment can be calculated based on the distribution of the trajectory points and the shape of the passageway segment, thus forming the fitted trajectory data.

[0083] Among them, the teacher's classroom trajectory point data is fitted to the classroom path segment to obtain fitted trajectory data, including:

[0084] Correct the teacher's classroom trajectory point data to the reference coordinate system of the classroom seating layout diagram;

[0085] Traverse the teacher classroom trajectory point data under the reference coordinate system and aggregate the traversed teacher classroom trajectory point data to the nearest classroom passage segment.

[0086] The classroom seating layout is established using a reference coordinate system. This system is two-dimensional, where the X and Y axes represent the width and length of the classroom, respectively, and the origin can be set at a fixed location within the classroom (such as the upper left corner or the center). The collected teacher trajectory point data (i.e., two-dimensional coordinate points) is then converted into coordinates within the same reference coordinate system as the classroom seating layout.

[0087] By iterating through each teacher's classroom trajectory point in the reference coordinate system, for each traversed trajectory point, the distance to all classroom passage segments is calculated, i.e., the shortest distance from the point to the line segment is calculated. Based on the calculated distances, the classroom passage segment closest to the current trajectory point is found. The current teacher's classroom trajectory point is then aggregated onto this closest passage segment. The coordinates of the teacher's classroom trajectory point can be adjusted to the coordinates of a point on the passage segment; this point can be the closest point on the passage segment to the teacher's classroom trajectory point, or a point on the passage segment selected according to rules such as equidistant distribution. The above steps are repeated for all teacher's classroom trajectory points until all trajectory points are aggregated onto the nearest classroom passage segment.

[0088] Optionally, when fitting the teacher's classroom trajectory point data to the classroom passage segment, the classroom seating layout map can be divided into zones in advance, and the teacher's classroom trajectory point data falling into different zones can be assigned to the corresponding segments of the classroom passage segment, thereby fitting the teacher's classroom trajectory point data to the classroom passage segment and obtaining the fitted trajectory data.

[0089] By aggregating trajectory points onto the classroom pathway, smoother and more continuous fitted trajectory data can be obtained. This reduces the clutter of trajectory points, making the trajectory more consistent with the actual classroom layout and teacher movement patterns. This provides a more accurate and reliable data foundation for subsequent heat map analysis and trajectory planning.

[0090] Specifically, the teacher's classroom trajectory point data is corrected to the reference coordinate system of the classroom seating layout diagram, including:

[0091] Calculate the coordinate scaling and offset parameters of the bounding box of the student classroom coordinate data relative to the bounding box of the classroom seats in the classroom seating layout diagram. The student classroom coordinate data and the teacher classroom trajectory point data are collected in the same coordinate system.

[0092] The teacher's classroom trajectory point data is corrected to the reference coordinate system of the classroom seating layout diagram based on coordinate scaling and coordinate offset parameters.

[0093] Considering that the coordinate system corresponding to the teacher's classroom trajectory point data is different from the reference coordinate system, it is necessary to correct the teacher's classroom trajectory point data to the reference coordinate system of the classroom seating layout diagram through coordinate transformation. The reference coordinate system... Figure 5 By acquiring student classroom coordinate data (collected via video analysis or pre-configured trajectory acquisition devices) in the same coordinate system as the teacher's classroom trajectory data, this student classroom coordinate data is projected onto the classroom seating layout diagram. At this point, the student classroom coordinate data does not correspond to the actual position in the reference coordinate system; they are not in an approximate reference system. Based on the classroom seating layout diagram, the bounding box c1 of the student classroom coordinate data and the bounding box c2 of the classroom seats in the layout diagram can be determined. The coordinate scaling parameters of c1 relative to c2 on the x-axis and y-axis are calculated. The coordinate scaling parameters are expressed as follows:

[0094] scale.x:(targetMaxX-targetMinX) / (rawMaxX-rawMinX),

[0095] scale.x:(targetMaxY-targetMinY) / (rawMaxY-rawMinY)

[0096] Where scale.x represents the horizontal scaling parameter, scale.x represents the vertical scaling parameter, targetMaxX is the maximum horizontal coordinate of c2, targetMinX is the minimum horizontal coordinate of c2, targetMaxY is the maximum vertical coordinate of c2, targetMinY is the minimum vertical coordinate of c2, rawMaxX is the maximum horizontal coordinate of c1, rawMinX is the minimum horizontal coordinate of c1, rawMaxY is the maximum vertical coordinate of c1, and rawMinY is the minimum vertical coordinate of c1.

[0097] After obtaining the coordinate scaling parameters, it is necessary to determine how much offset c1 needs to increase to match the position of c2. The coordinate offset parameters are expressed as follows:

[0098] origin.x:targetMinX-rawMinX*scale.x,

[0099] origin.y:targetMinY-rawMinY*scale.y,

[0100] Where origin.x represents the x-axis offset parameter and origin.y represents the y-axis offset parameter.

[0101] Furthermore, based on the aforementioned coordinate scaling and offset parameters, since the student classroom coordinate data and the teacher classroom trajectory point data are collected in the same coordinate system, the teacher classroom trajectory point data can be scaled and offset using these parameters to correct it to the reference coordinate system of the classroom seating layout diagram. This precise coordinate transformation ensures spatial consistency and accuracy between the teacher classroom trajectory point data and the classroom seating layout diagram, providing a reliable data foundation for subsequent trajectory fitting, thermal distribution analysis, and trajectory planning.

[0102] Optionally, before correcting the teacher's classroom trajectory point data to the reference coordinate system of the classroom seating layout diagram based on coordinate scaling parameters and coordinate offset parameters, the method further includes:

[0103] Calculate the transformed coordinate data of student classroom coordinates on the classroom seating layout diagram based on coordinate scaling parameters and coordinate offset parameters;

[0104] Collect actual rendering data of student classroom coordinates on the classroom seating layout diagram, calculate the degree of dispersion between the transformed coordinate data and the actual rendering data, and correct the coordinate scaling parameters and coordinate offset parameters according to the degree of dispersion.

[0105] Based on the aforementioned coordinate scaling and offset parameters, these are applied to the student classroom coordinate data. Scaling and offset calculations are performed using the original student classroom coordinate data to obtain the transformed coordinate data of the student classroom coordinate data on the classroom seating layout diagram. Further, by collecting the actual rendered data of the student classroom coordinate data on the classroom seating layout diagram, the actual rendered data can be determined based on the specified position coordinates of each seat in the classroom seating layout diagram (e.g., the center position of the seat). By comparing the differences between the transformed coordinate data and the actual rendered data, the applicability of the aforementioned coordinate scaling and offset parameters can be verified.

[0106] like Figure 6 As shown, d1 represents the transformed coordinate data, and d2 represents the actual rendered data. The difference between the transformed coordinate data and the actual rendered data is calculated, along with the degree of dispersion of this difference. The degree of dispersion can be determined based on methods such as variance, squared difference, and mean absolute deviation. This application characterizes the degree of dispersion by calculating the mean absolute deviation of the coordinate differences along the x and y axes. When the mean absolute deviation exceeds a set threshold, the aforementioned coordinate scaling parameters and coordinate offset parameters can be adaptively adjusted based on the mean absolute deviation; otherwise, no adjustment is made.

[0107] By applying the validated coordinate scaling and offset parameters to the teacher's classroom trajectory point data, the data can be corrected to the reference coordinate system of the classroom seating layout diagram, thereby aggregating it to the nearest classroom passageway segment. For example... Figure 7 As shown, before correction, the teacher's classroom trajectory point data 'a' did not fit the reference coordinate system. By scaling and offsetting the teacher's classroom trajectory point data, the following was obtained: Figure 8 The teacher's classroom trajectory point data 'a' shown is correctly distributed around the classroom path segment. By adjusting the scaling and offset of the coordinate system and correcting the scaling and offset parameters based on the actual rendering data, the teacher's classroom trajectory point data can be accurately fitted onto the classroom path segment, further improving the drawing accuracy of the teacher's classroom circulation trajectory.

[0108] like Figure 9 As shown, for each teacher classroom trajectory point data 'a' corrected to the reference coordinate system, it is aggregated to the nearest classroom passage segment 'b' to obtain the fitted trajectory data A1. The fitted trajectory data A1 is as follows: Figure 10 As shown.

[0109] S120. The fitted trajectory data is sampled at intervals to obtain trajectory sampling points. Based on the trajectory sampling points, the fitted trajectory data within the set statistical range is statistically analyzed to determine the trajectory data volume and trajectory time series value.

[0110] Furthermore, such as Figure 11 As shown, by performing interval sampling on the fitted trajectory data A1, a certain number of representative trajectory points are selected and defined as trajectory sampling points A2. For each trajectory sampling point A2, a range is defined as the set statistical range. Then, the number of fitted trajectory data points within the set statistical range is counted, defined as the trajectory data volume, and the time-series values ​​of the trajectory sampling points are recorded, defined as the trajectory time-series values. Interval sampling reduces the number of trajectory points and lowers computational complexity. Furthermore, determining the trajectory data volume and time-series values ​​provides important information for subsequent thermal distribution identification.

[0111] Specifically, the fitted trajectory data is sampled at intervals to obtain trajectory sampling points, including:

[0112] The fitted trajectory data is sampled at fixed intervals. During the interval sampling process, the beginning and end of the set corner range of the classroom passage are sampled, and other sampling positions within the set corner range are ignored to obtain the trajectory sampling points.

[0113] By sampling the fitted trajectory data at fixed intervals, in order to facilitate the processing of corner data when planning the teacher's classroom patrol trajectory based on the trajectory sampling points in the later process, the sampling positions within the corner range are not sampled, and only the beginning and end of the corner range are sampled.

[0114] Based on the fitted trajectory data within the statistical range defined by the trajectory sampling points, data statistics are performed to determine the trajectory data volume and trajectory time series values, including:

[0115] Centered on the trajectory sampling point, the number of fitted trajectory data within the set statistical range is counted to obtain the trajectory data volume, and the smallest time series value of the fitted trajectory data within the set statistical range is used as the trajectory time series value.

[0116] By using a trajectory sampling point as the center, fitted trajectory data within a set statistical range is obtained, and the number of fitted trajectory data is counted to identify the heat value of that trajectory sampling point, indicating the frequency of teacher dwell at that location. On the other hand, the minimum time series value among the fitted trajectory data within the set statistical range is selected as the trajectory time series value of that trajectory sampling point. Depending on actual needs, the time series mean of the fitted trajectory data can also be calculated as the trajectory time series value. This application does not impose fixed restrictions on the specific amount of trajectory data and the calculation method of the trajectory time series value, and will not elaborate further here.

[0117] By sampling the fitted trajectory data at intervals, the number of trajectory points in the teacher's classroom circulation trajectory can be reduced. At the same time, by calculating the amount of trajectory data and the trajectory time series value, the accuracy of the teacher's classroom circulation trajectory can be ensured while reducing the number of trajectory points, and the teacher's classroom circulation trajectory can intuitively reflect the changes in the distribution of the teacher's movement position during the classroom process.

[0118] S130. Based on the trajectory time series values ​​and trajectory sampling points, plan the teacher's classroom patrol trajectory on the classroom seating layout diagram, and mark the heat distribution of the teacher's classroom patrol trajectory based on the amount of trajectory data.

[0119] Then, based on the trajectory sampling points and trajectory time series values, these trajectory sampling points can be connected sequentially on the classroom seating layout diagram to form the teacher's classroom patrol trajectory. Furthermore, based on the amount of trajectory data near each trajectory sampling point, different colors, shades, and trajectory thicknesses are used to represent the heat distribution of that area. The larger the amount of trajectory data, the longer the teacher stays in that area or the more times they pass through it, thus resulting in a higher heat value.

[0120] As can be seen, this application fits the teacher's classroom trajectory point data to the classroom passage segment and performs interval sampling on the fitted trajectory data. This avoids the situation where the teacher's classroom circulation trajectory becomes intricate due to an excessive number of trajectory points, thus simplifying the teacher's classroom circulation trajectory. Furthermore, the teacher's classroom circulation trajectory is obtained by connecting the trajectory sampling points according to the trajectory time sequence value. Simultaneously, based on the amount of trajectory data, the teacher's classroom circulation trajectory is marked with a heat map, thereby accurately and intuitively drawing the teacher's classroom circulation heat map on the classroom seating layout diagram, clearly representing the heat map distribution of the teacher's trajectory during the classroom process. This improves the aesthetics and practicality of the teacher's classroom circulation trajectory drawing, enhancing the display effect of the circulation trajectory.

[0121] Optionally, the teacher's classroom circulation trajectory is planned on the classroom seating layout diagram based on the trajectory time series values ​​and trajectory sampling points, including:

[0122] The trajectory nodes are the trajectory sampling points and the endpoints of the classroom passageway.

[0123] The connection order of each trajectory node is determined according to the trajectory time sequence value. Based on the connection order, the shortest path is used to connect each trajectory node to generate the teacher's classroom patrol trajectory.

[0124] By using all trajectory sampling points and the endpoints of classroom passageways as trajectory nodes, and sorting them according to the aforementioned trajectory time series values, the sorted trajectory nodes represent the appropriate path order for the teacher's classroom rounds. A path planning algorithm is then used to generate the shortest path from the starting node to the target node. Based on the results of the path planning algorithm, the sorted trajectory nodes are connected according to the shortest path to form a coherent teacher classroom rounds trajectory. Depending on actual needs, an appropriate path planning algorithm can be adaptively selected for teacher classroom rounds trajectory planning; this application does not impose fixed restrictions on the specific path planning algorithm. Through the above steps, a reasonable and accurate teacher classroom rounds trajectory can be planned on the classroom seating layout diagram based on the trajectory time series values ​​and trajectory sampling points.

[0125] Optionally, the shortest path is connected to each trajectory node based on the connection order, including:

[0126] Configure path weighted edges between adjacent trajectory nodes according to the distance of the classroom passage, and adjust the weights of path weighted edges where the number of fitted trajectories is lower than a set threshold.

[0127] Connect each trajectory node with the shortest path according to the path weighted edge sum and connection order.

[0128] like Figure 12As shown, on the classroom passage segment b, path weighted edges are configured according to the distance between each pair of adjacent trajectory nodes, with the weight of the edge representing the distance between nodes. Furthermore, to ensure that the planned trajectory lies primarily on segments with trajectory nodes, the weights of path weighted edges on the classroom passage segment where the number of fitted trajectories is below a set threshold are adjusted by increasing their weights, for example, doubling the weight of the edge. Then, based on the weights of the edges, the path planning process can find the shortest path between the current node and the next node, with edges having higher weights being more likely to be bypassed, thus achieving the shortest path connection for each trajectory node.

[0129] like Figure 13 As shown, by using the shortest path connection method, the trajectory nodes are sorted chronologically, and then connected sequentially along the path to obtain the teacher's circulation trajectory, which reflects the teacher's movement in the classroom. The teacher's circulation trajectory can be animated on the classroom seating layout diagram to demonstrate the sequence of changes. Furthermore, arrows can be used to indicate the direction of movement of the teacher's circulation trajectory, thus showing the sequence of changes.

[0130] Furthermore, based on the amount of trajectory data, the heat map of the teacher's classroom patrol trajectory is labeled, including:

[0131] Each trajectory sampling point is assigned a corresponding color label based on the amount of trajectory data, and a color transition label is applied to the road segment between two adjacent trajectory sampling points with different color labels.

[0132] After obtaining the teacher's classroom observation trajectory, this application assigns corresponding color labels to each trajectory sampling point based on the amount of trajectory data corresponding to that point. For example... Figure 14 As shown, different colors are used to identify different amounts of trajectory data to reflect the duration of the teacher's trajectory dwell time. Dwell time is indicated by different colors from shortest to longest. Furthermore, a color gradient is used to transition between adjacent trajectory sampling points with different colors. Four colors—red, yellow, light green, and dark green—are used for color coding to accurately reflect the dwell time of the teacher's trajectory. The final result is as follows: Figure 15 The teacher's classroom patrol route is shown.

[0133] By planning the teacher's classroom circulation route using the shortest path, the changes in the teacher's trajectory during the classroom can be accurately mapped. Using different colors to represent the heat distribution of the teacher's circulation route provides a more intuitive and clear view of the time the teacher spends at different locations during the classroom.

[0134] Example 2:

[0135] Based on the above embodiments, Figure 16This is a schematic diagram of a thermal trajectory fitting device for a circulation hall, provided in Embodiment 2 of this application. (Reference) Figure 16 The thermal trajectory fitting device for the hall provided in this embodiment specifically includes: a fitting module 21, a sampling module 22, and a planning module 23.

[0136] Among them, the fitting module 21 is used to obtain the classroom seating layout diagram and the teacher's classroom trajectory point data, determine the classroom passage segment based on the classroom seating layout diagram, and fit the teacher's classroom trajectory point data to the classroom passage segment to obtain the fitted trajectory data;

[0137] The sampling module 22 is used to perform interval sampling on the fitted trajectory data to obtain trajectory sampling points, and to perform data statistics on the fitted trajectory data within the set statistical range based on the trajectory sampling points to determine the amount of trajectory data and the trajectory time sequence value.

[0138] The planning module 23 is used to plan the teacher's classroom circulation trajectory on the classroom seating layout map based on the trajectory time series value and trajectory sampling point, and to perform heat distribution marking of the teacher's classroom circulation trajectory based on the trajectory data volume.

[0139] Specifically, the teacher's classroom trajectory point data is fitted to the classroom path segment to obtain fitted trajectory data, including:

[0140] Correct the teacher's classroom trajectory point data to the reference coordinate system of the classroom seating layout diagram;

[0141] Traverse the teacher classroom trajectory point data under the reference coordinate system and aggregate the traversed teacher classroom trajectory point data to the nearest classroom passage segment.

[0142] Correct the teacher's classroom trajectory point data to the reference coordinate system of the classroom seating layout diagram, including:

[0143] Calculate the coordinate scaling and offset parameters of the bounding box of the student classroom coordinate data relative to the bounding box of the classroom seats in the classroom seating layout diagram. The student classroom coordinate data and the teacher classroom trajectory point data are collected in the same coordinate system.

[0144] The teacher's classroom trajectory point data is corrected to the reference coordinate system of the classroom seating layout diagram based on coordinate scaling and coordinate offset parameters.

[0145] Before correcting the teacher's classroom trajectory point data to the reference coordinate system of the classroom seating layout diagram based on coordinate scaling and offset parameters, the process also includes:

[0146] Calculate the transformed coordinate data of student classroom coordinates on the classroom seating layout diagram based on coordinate scaling parameters and coordinate offset parameters;

[0147] Collect actual rendering data of student classroom coordinates on the classroom seating layout diagram, calculate the degree of dispersion between the transformed coordinate data and the actual rendering data, and correct the coordinate scaling parameters and coordinate offset parameters according to the degree of dispersion.

[0148] Specifically, the fitted trajectory data is sampled at intervals to obtain trajectory sampling points, including:

[0149] The fitted trajectory data is sampled at fixed intervals. During the interval sampling process, the beginning and end of the set corner range of the classroom passage are sampled, and other sampling positions within the set corner range are ignored to obtain the trajectory sampling points.

[0150] Based on the fitted trajectory data within the statistical range defined by the trajectory sampling points, data statistics are performed to determine the trajectory data volume and trajectory time series values, including:

[0151] Centered on the trajectory sampling point, the number of fitted trajectory data within the set statistical range is counted to obtain the trajectory data volume, and the smallest time series value of the fitted trajectory data within the set statistical range is used as the trajectory time series value.

[0152] Specifically, the teacher's classroom patrol trajectory is planned on the classroom seating layout diagram based on trajectory time series values ​​and trajectory sampling points, including:

[0153] The trajectory nodes are the trajectory sampling points and the endpoints of the classroom passageway.

[0154] The connection order of each trajectory node is determined according to the trajectory time sequence value. Based on the connection order, the shortest path is used to connect each trajectory node to generate the teacher's classroom patrol trajectory.

[0155] Based on the connection order, the shortest path is connected to each trajectory node, including:

[0156] Configure path weighted edges between adjacent trajectory nodes according to the distance of the classroom passage, and adjust the weights of path weighted edges where the number of fitted trajectories is lower than a set threshold.

[0157] Connect each trajectory node with the shortest path according to the path weighted edge sum and connection order.

[0158] Heatmaps of teacher classroom patrol trajectories based on trajectory data volume include:

[0159] Each trajectory sampling point is assigned a corresponding color label based on the amount of trajectory data, and a color transition label is applied to the road segment between two adjacent trajectory sampling points with different color labels.

[0160] The thermal trajectory fitting device for the circulation hall provided in Embodiment 2 of this application can be used to execute the thermal trajectory fitting method for the circulation hall provided in Embodiment 1 above, and has the corresponding functions and beneficial effects.

[0161] Example 3:

[0162] This application provides an electronic device in embodiment three, referring to... Figure 17 The electronic device includes a processor 31, a memory 32, a communication module 33, an input device 34, and an output device 35. The electronic device may have one or more processors and one or more memories. The processor, memory, communication module, input device, and output device of the electronic device can be connected via a bus or other means.

[0163] Memory, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the thermal trajectory fitting method described in any embodiment of this application (e.g., the fitting module, sampling module, and planning module in the thermal trajectory fitting device). Memory may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device, etc. Furthermore, memory may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0164] The communication module is used for data transmission.

[0165] The processor executes various functional applications and data processing of the device by running software programs, instructions, and modules stored in memory, thereby realizing the above-mentioned method for fitting thermal trajectories in the hall.

[0166] Input devices can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of the device. Output devices may include display devices such as displays.

[0167] The electronic device provided above can be used to execute the thermal trajectory fitting method for the circulation of heat provided in Embodiment 1 above, and has the corresponding functions and beneficial effects.

[0168] Example 4:

[0169] This application embodiment also provides a storage medium containing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to perform a classroom patrol thermal trajectory fitting method. The classroom patrol thermal trajectory fitting method includes: acquiring a classroom seating layout diagram and teacher classroom trajectory point data; determining classroom passage segments based on the classroom seating layout diagram; fitting the teacher classroom trajectory point data to the classroom passage segments to obtain fitted trajectory data; performing interval sampling on the fitted trajectory data to obtain trajectory sampling points; performing data statistics on the fitted trajectory data within a set statistical range based on the trajectory sampling points to determine the trajectory data volume and trajectory time series value; planning the teacher's classroom patrol trajectory on the classroom seating layout diagram based on the trajectory time series value and the trajectory sampling points; and marking the thermal distribution of the teacher's classroom patrol trajectory based on the trajectory data volume.

[0170] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROM, floppy disk, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. Storage medium may also include other types of memory or combinations thereof. Furthermore, storage medium may reside in a first computer system in which the program is executed, or it may reside in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term “storage medium” can include two or more storage media residing in different locations (e.g., in different computer systems connected via a network). Storage medium may store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.

[0171] Of course, the computer-executable instructions provided in the embodiments of this application are not limited to the thermal trajectory fitting method for the circulation of heat as described above, but can also perform related operations in the thermal trajectory fitting method for the circulation of heat provided in any embodiment of this application.

[0172] The thermal trajectory fitting device, storage medium, and electronic device provided in the above embodiments can execute the thermal trajectory fitting method for the circulation of heat provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to the thermal trajectory fitting method for the circulation of heat provided in any embodiment of this application.

[0173] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart 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, and may include more other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.

Claims

1. A method for fitting thermal trajectories during a hall tour, characterized in that, include: Obtain classroom seating layout diagram and teacher classroom trajectory point data; determine classroom passage segments based on classroom seating layout diagram; fit the teacher classroom trajectory point data to the classroom passage segments to obtain fitted trajectory data. The fitted trajectory data is sampled at intervals to obtain trajectory sampling points. Based on the trajectory sampling points, the fitted trajectory data within a set statistical range is statistically analyzed to determine the trajectory data volume and trajectory time series value. Based on the trajectory time series values ​​and the trajectory sampling points, the teacher's classroom patrol trajectory is planned on the classroom seating layout diagram, and the heat distribution of the teacher's classroom patrol trajectory is marked based on the trajectory data volume.

2. The method for fitting the thermal trajectory of a patient's examination room according to claim 1, characterized in that, The step of planning the teacher's classroom circulation trajectory on the classroom seating layout diagram based on the trajectory time series values ​​and the trajectory sampling points includes: The trajectory sampling points and the endpoints of the classroom passageway are used as trajectory nodes; The connection order of each trajectory node is determined according to the trajectory time sequence value, and the shortest path is used to connect each trajectory node based on the connection order to generate the teacher's classroom patrol trajectory.

3. The method for fitting the thermal trajectory of a patient's examination room according to claim 2, characterized in that, The step of connecting each trajectory node with the shortest path based on the connection order includes: Path weighted edges are configured between adjacent trajectory nodes according to the distance of the classroom passage segments, and the weights of path weighted edges whose number of fitted trajectories is lower than a set threshold are increased. The shortest path is used to connect each trajectory node according to the path weighted edges and the connection order.

4. The method for fitting the thermal trajectory of a patient's examination room according to claim 1, characterized in that, The heat map identification of the teacher's classroom patrol trajectory based on the trajectory data volume includes: According to the amount of trajectory data, each trajectory sampling point is assigned a corresponding color label, and the road segment between two adjacent trajectory sampling points with different color labels is marked with a color transition.

5. The method for fitting the thermal trajectory of a patient's examination room according to claim 1, characterized in that, The step of fitting the teacher's classroom trajectory point data to the classroom path segment to obtain fitted trajectory data includes: The teacher's classroom trajectory point data is corrected to the reference coordinate system of the classroom seating layout diagram; Traverse the teacher classroom trajectory point data under the reference coordinate system, and aggregate the traversed teacher classroom trajectory point data to the nearest classroom passage segment.

6. The method for fitting the thermal trajectory of a patient's examination room according to claim 5, characterized in that, The step of correcting the teacher's classroom trajectory point data to the reference coordinate system of the classroom seating layout diagram includes: Calculate the coordinate scaling parameter and coordinate offset parameter of the bounding box of the student classroom coordinate data relative to the bounding box of the classroom seats in the classroom seating layout diagram. The student classroom coordinate data and the teacher classroom trajectory point data are collected in the same coordinate system. The teacher's classroom trajectory point data is corrected to the reference coordinate system of the classroom seating layout diagram based on the coordinate scaling parameter and the coordinate offset parameter.

7. The method for fitting the thermal trajectory of a patient's room according to claim 6, characterized in that, Before correcting the teacher's classroom trajectory point data to the reference coordinate system of the classroom seating layout diagram based on the coordinate scaling parameter and the coordinate offset parameter, the method further includes: Calculate the transformed coordinate data of the student classroom coordinate data on the classroom seating layout diagram based on the coordinate scaling parameter and the coordinate offset parameter; The student classroom coordinate data is collected as actual rendering data on the classroom seating layout diagram. The degree of dispersion between the transformed coordinate data and the actual rendering data is calculated. The coordinate scaling parameter and the coordinate offset parameter are corrected according to the degree of dispersion.

8. The method for fitting the thermal trajectory of a patient's examination room according to any one of claims 1-7, characterized in that, The step of obtaining trajectory sampling points by interval sampling of the fitted trajectory data includes: The fitted trajectory data is sampled at fixed intervals. During the interval sampling process, the beginning and end of the set corner range of the classroom passage are sampled, and other sampling positions within the set corner range are ignored to obtain trajectory sampling points.

9. The method for fitting the thermal trajectory of a patient's room according to any one of claims 1-7, characterized in that, The step of performing data statistics on the fitted trajectory data within a set statistical range based on the trajectory sampling points to determine the trajectory data volume and trajectory time series values ​​includes: Centered on the trajectory sampling point, the number of fitted trajectory data within a set statistical range is counted to obtain the trajectory data volume, and the smallest time sequence value of the fitted trajectory data within the set statistical range is used as the trajectory time sequence value.

10. An electronic device, characterized in that, include: Memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the thermal trajectory fitting method for the hall as described in any one of claims 1-9.

11. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the thermal trajectory fitting method for the hall as described in any one of claims 1-9.