Energy management prediction method based on personnel density

By aligning and transferring records from multiple personnel across different time periods, and generating regional lighting, air conditioning, and budget arrangements, the accuracy of energy management forecasts in large office buildings is solved, thus improving resource utilization efficiency.

CN122242880APending Publication Date: 2026-06-19XIAMEN JINMING ENERGY SAVING TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
XIAMEN JINMING ENERGY SAVING TECH
Filing Date
2026-05-25
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

Existing technologies for energy management forecasting based on personnel density in large office buildings cannot accurately predict the flow of people between adjacent areas and the process of occupancy, resulting in inaccurate energy allocation and waste or shortage of resources in some areas.

Method used

By aligning multi-terminal personnel records by time period, extracting transfer chains, writing stage chains, and calculating continuous usage values, area lighting, air conditioning, and budget arrangements are generated.

🎯Benefits of technology

It improved the accuracy of energy management forecasts, reduced resource waste, and enhanced the connection between management outputs and personnel activities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122242880A_ABST
    Figure CN122242880A_ABST
Patent Text Reader

Abstract

This invention discloses an energy management forecasting method based on personnel density, specifically relating to the field of energy management forecasting. The method involves aligning personnel records from camera terminals, access control terminals, reservation terminals, and check-in terminals in the same area according to their recording times within the current management cycle, merging them into the number of people in each area at each time period to obtain an area population sequence. It then compares the population changes in adjacent areas over consecutive time periods, defining the consecutive time periods where the number of people in the previous area decreases and the number of people in the next area increases as transition periods. This invention generates area lighting arrangements, air conditioning arrangements, and budget arrangements for the next management cycle by aligning multi-terminal personnel records over time periods, extracting transition chains, writing stage chains, and calculating continuous usage values. This addresses the problem that existing technologies cannot determine the actual space usage destination in future time periods based on the transition relationship and occupancy process of personnel density between adjacent areas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of energy management forecasting technology, and more specifically, to an energy management forecasting method based on population density. Background Technology

[0002] In the operation of office buildings, park buildings, and commercial venues, energy management forecasting based on personnel density is usually used to formulate regional energy consumption arrangements for the next period before changes in personnel activity. Current processing generally involves collecting regional personnel, entry and exit records, and time period statistics from camera terminals, access control terminals, reservation terminals, and check-in terminals, and then integrating the results from each terminal into the management side through end-to-end collaboration. Based on the current regional density, historical time period distribution, or the changing trends of adjacent time periods, lighting arrangements, air conditioning arrangements, and budget results for subsequent time periods are generated. In the coordinated operation of meeting floors and public office areas in large office buildings, there are often simultaneous events on the same workday, such as centralized check-in, post-meeting personnel withdrawal, temporary venue changes, and short-term stays across areas. Furthermore, the sampling rhythm of each terminal is different, the regional connectivity is fixed, and the prediction results need to be written before the start of the next management period. Under these circumstances, the existing processing is prone to repeatedly showing that although the density of the entrance area, corridor area, and meeting area increases in adjacent time periods, the judgment of the area that actually enters a continuous use state is inaccurate. Short-term queues are counted as formal occupancy, and the withdrawal after the meeting is counted as subsequent continuous high demand. As a result, the lighting and air conditioning arrangements in some areas are extended in advance, but the actual stay is insufficient. Other areas that subsequently enter stable use are not included in the next time period plan in time. The root cause is that the existing processing mainly extrapolates directly based on the current density results, without distinguishing the personnel transfer relationship and corresponding occupancy process between adjacent areas. Therefore, it is impossible to judge the actual space usage direction in future time periods from the current density changes. Therefore, the technical problem to be solved in this application is how to make more realistic predictions of regional usage demand in the future based on the transfer relationship and occupancy process of personnel density between adjacent areas under end-to-end collaboration, and generate corresponding energy management arrangements accordingly. Summary of the Invention

[0003] To overcome the aforementioned deficiencies of the prior art, embodiments of the present invention provide an energy management forecasting method based on personnel density. By performing time period alignment, transfer chain extraction, stage chain writing, and continuous usage value calculation on multi-terminal personnel records, the method generates regional lighting arrangements, air conditioning arrangements, and budget arrangements for the next management cycle, thereby solving the problems mentioned in the background art.

[0004] To achieve the above objectives, the present invention provides the following technical solution: an energy management forecasting method based on population density, comprising: S1. Within the current management cycle, align the personnel records of camera terminals, access control terminals, reservation terminals, and check-in terminals in the same area according to the recording time, and merge them into the number of people in each area and time period to obtain the area's population sequence. S2. Based on the population sequence of the regions, compare the population changes of adjacent regions in a continuous period of time. Define the continuous period in which the population of the previous region decreases and the population of the next region increases as the transfer period. Then connect each transfer period in sequence according to the region connection direction and the time sequence to obtain the transfer chain. S3. For each region in the transfer chain, compare the number of people in the previous period with the number of people in the next period in the region's population sequence according to the time period. Define the periods when the number of people increases, the number of people changes from increasing to remaining unchanged, the number of people remains unchanged, and the number of people decreases as the forming segment, the establishing segment, the maintaining segment, and the falling segment, respectively. Write them into the transfer chain according to the region order and the time period order to obtain the stage chain. S4. Based on the stage chain, merge adjacent segments that are connected and have the same direction, reconnect the segments that return to the original area in the middle to their original positions, and deduct the round-trip segments that have the same starting area and ending area. Then, based on the time length and sequential position of the segments established and maintained in each area after deduction, calculate the continuous usage value of each area in the next management cycle to obtain the usage result. S5. Based on the usage results, compare the continuous usage values ​​of each area before and after the time period, and generate the lighting arrangement, air conditioning arrangement and budget arrangement of each area in the next management cycle according to the comparison results, so as to obtain the energy management forecast results.

[0005] In a preferred embodiment, S1 includes: S1-1. Extract the recording times of personnel records in each region within the current management cycle, arrange the start of the management cycle, each recording time, and the end of the management cycle in chronological order, and determine the alignment time period between two adjacent times to obtain the alignment sequence; S1-2. Based on the alignment sequence, take the number of people in the previous alignment period as the current number of people. Write the increment of the number of people entering the access control record, the decrement of the number of people leaving the access control record, the increment of the number of people in the reservation record, and the increment of the number of people in the sign-in record in each alignment period into the current number of people in order to obtain the number of people in each alignment period. S1-3. For the number of people in each aligned time period, when a record is encountered by a person at the camera terminal, the number of people recorded by the person at the camera terminal is written into the current number of people result to obtain the regional number of people sequence.

[0006] In a preferred embodiment, S2 includes: S2-1. Read the population results of each region arranged by time period in the population sequence of the region, calculate the population difference of each region between two time periods, and obtain the population difference sequence of each region. S2-2. For two adjacent regions that are connected, compare the difference in the number of people in the previous region and the difference in the number of people in the next region in each time period. Record the same time period in which the difference in the number of people in the previous region is less than zero and the difference in the number of people in the next region is greater than zero as the transfer time period. Then, merge the transfer time periods that are connected end to end in order of time period to obtain the transfer segment.

[0007] In a preferred embodiment, S2 further includes: S2-3. For multiple transfer segments from the same starting area to multiple adjacent areas in the same time period, when the decrease in the number of people in the previous area is less than the increase in the number of people in the next area, the decrease in the number of people in the previous area is recorded as the number of people transferred. When the increase in the number of people in the next area is less than the decrease in the number of people in the previous area, the increase in the number of people in the next area is recorded as the number of people transferred. When the two are equal, the decrease in the number of people in the previous area is recorded as the number of people transferred. The decrease in the number of people in the previous area is then divided according to the proportion of each number of people transferred in the total decrease in the number of people in the previous area to obtain the divided transfer segments. S2-4. Based on the split transfer segments, connect the ending region of the previous split transfer segment to the starting region of the next split transfer segment segment by segment according to the region connection direction. Connect the two segments with the same ending time period as the starting time period directly. Connect the two segments with the ending time period earlier than the starting time period according to the time period sequence to obtain the transfer chain.

[0008] In a preferred embodiment, S3 includes: S3-1. Read the regions and time periods in the transfer chain, and extract the population results of each region and time period from the population sequence of the regions. Compare the population of the previous time period with the population of the next time period in sequence to obtain the population change sequence. S3-2. Based on the sequence of changes in the number of people, write the period when the number of people increases as the forming segment, the period when the number of people changes from increasing to remaining constant as the establishing segment, the period when the number of people remains constant as the maintaining segment, and the period when the number of people decreases as the falling segment, thus obtaining the stage sequence.

[0009] In a preferred embodiment, S3 further includes: S3-3. For the preceding and following stages arranged sequentially in the stage sequence, if there is an unwritten period between the end of the preceding stage and the beginning of the following stage, the unwritten period is written into the preceding stage. If the end of the preceding stage and the beginning of the following stage are the same, the same period is written into the following stage to obtain the successive sequence. S3-4. Based on the successive sequence, according to the regional order and time period order in the transfer chain, write the forming segment, establishing segment, maintaining segment and falling segment into the transfer chain one by one to obtain the stage chain.

[0010] In a preferred embodiment, S4 includes: S4-1. For the previous and next segments in the stage chain, first compare the ending time of the previous segment with the starting time of the next segment. When they are connected, compare the ending region of the previous segment with the starting region of the next segment. When they are the same, align the region order from the starting region to the ending region of the previous segment with the region order from the starting region to the ending region of the next segment. When the alignment results are in the same direction, the previous and next segments are recorded as adjacent segments that are connected and have the same direction. When the alignment results are in the opposite direction, the previous and next segments are recorded as return judgment segments. When the ending time of the previous segment and the starting time of the next segment are not connected, the previous and next segments are recorded as reserved segments, and the judgment result is obtained. S4-2. For adjacent segments in the judgment result that are connected and have the same direction, merge them into one segment according to the time period. For the return judgment segment in the judgment result, compare the termination area of ​​the last segment with the starting area of ​​the previous segment. If they are the same, define the last segment as the segment that returns to the original area in the middle and connect it back to the position of the starting area of ​​the previous segment. If they are different, keep the last segment in its original position. For the retained segment in the judgment result, keep the original position unchanged to obtain the correction chain.

[0011] In a preferred embodiment, S4 further includes: S4-3. For each segment in the correction chain, compare the starting region with the ending region. If they are the same, define the segment as a round trip segment. Then, deduct the length of the establishment segment and the length of the maintenance segment in the round trip segment from the correction chain segment by segment according to the region order and the time period order. If the deduction result is greater than zero, retain the deduction result. If the deduction result is equal to zero, delete the time period. If the deduction result is less than zero, write the deduction result as zero. If the starting region and the ending region are not the same, keep the segment unchanged to obtain the deduction chain. S4-4. For each region in the deduction chain, first read the length of the establishment segment, the length of the maintenance segment, the order of establishment, and the order of maintenance. Then, use the continuous usage value at the end of the previous management cycle as the initial value. Add the length of the establishment segment according to the order of establishment, and add the length of the maintenance segment according to the order of maintenance. If the calculation result of the previous period exists in the later period, write the calculation result of the previous period into the later period. If the calculation result of the previous period does not exist in the later period, write the initial value into the later period to obtain the continuous usage value and form the usage result.

[0012] In a preferred embodiment, S5 includes: S5-1. For each region in the usage results, read the continuous usage value of each time period in the next management cycle, arrange them according to the order of the time period position, and arrange them according to the size of the continuous usage value within the same time period position to obtain the region time period sequence. S5-2. For each region in the regional time period sequence, take the continuous usage value of the previous time period and the continuous usage value of the next time period in order of time period position. When the continuous usage value of the next time period is greater than the continuous usage value of the previous time period, write the next time period as the entry time period. When the continuous usage value of the next time period is equal to the continuous usage value of the previous time period, write the next time period as the hold time period. When the continuous usage value of the next time period is less than the continuous usage value of the previous time period, write the next time period as the exit time period, thus obtaining the state sequence.

[0013] In a preferred embodiment, S5 further includes: S5-3. For each area in the state sequence, write the entry period and the holding period into the lighting arrangement according to the time period position, write the time period before the entry period, the entry period and the holding period into the air conditioning arrangement, and then accumulate the continuous usage value in the entry period and the holding period time by time to obtain the budget arrangement. S5-4. For lighting arrangements, air conditioning arrangements, and budget arrangements, execute and write them in parallel according to the order of region and time period. When lighting arrangements, air conditioning arrangements, and budget arrangements are written at the same time period in the same region, the three results are combined into one arrangement group. If any arrangement is missing in the same time period in the same region, the missing item is written as zero to obtain the energy management forecast result.

[0014] The technical effects and advantages of this invention are as follows: 1. By merging the records of multiple personnel at the recording time, and then extracting the transfer chain along the regional connection relationship and writing it into the formation segment, establishment segment, maintenance segment and fallback segment, the current density change can be further distinguished into cross-regional transfer process and occupancy process. This relatively suppresses the situation where short-term queuing and withdrawal are mistakenly written as subsequent continuous demand, making the prediction of regional usage demand in future periods closer to reality. 2. By splitting the transfer segments from the same starting area to multiple adjacent areas according to the proportion of the number of people transferred, and connecting them into transfer chains according to the direction of regional connection and the time sequence, the number of people in a single area can be more finely distributed to multiple receiving areas, reducing the mixed writing of destinations in one-to-many diversion scenarios, and making the subsequent stage division and regional arrangement generation more targeted. 3. By writing the increase in the number of people, the change from increase to no change in the number of people, the no change in the number of people, and the decrease in the number of people as the forming segment, the establishing segment, the maintaining segment, and the falling segment respectively on the transfer chain, and by handling the unwritten time period between adjacent stages, the changes in area occupancy can be decomposed into traceable time segments, making the stage succession relationship smoother and improving the subsequent use status determination. 4. By merging adjacent segments that are connected in the same direction in the stage chain, reconnecting segments that return to the original area in the middle to their original positions, and deducting segments that are the same in the starting and ending areas, the impact of repeated writing caused by round-trip flow can be reduced, the redundancy accumulation inside the link can be reduced, and the calculation of continuous usage value can be made closer to the actual dwell process. 5. By using the continuous usage value at the end of the previous management cycle as the initial value, and combining the establishment period length, maintenance period length and sequential position to recursively deduce the continuous usage value of each area in the next management cycle, the phase chain results can be further transformed into time-based usage results, providing direct input for lighting arrangements, air conditioning arrangements and budget arrangements, and enhancing the connection between management output and personnel activities. 6. By comparing the continuous usage values ​​of each region before and after the time period, the entry time period, maintenance time period and exit time period are generated, and then written into the lighting arrangement, air conditioning arrangement and budget arrangement respectively. This can put the forecast results into two dimensions: region and time period, reduce the processing burden of subsequent management side to recalculate, and make the energy arrangement output of the next management cycle easier to execute directly. Attached Figure Description

[0015] Figure 1 This is a flowchart of the method steps of the present invention. Detailed Implementation

[0016] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0017] Refer to the instruction manual appendix Figure 1 The present invention provides an energy management forecasting method based on population density, comprising: S1. Within the current management cycle, align the personnel records of camera terminals, access control terminals, reservation terminals, and check-in terminals in the same area according to the recording time, and merge them into the number of people in each area and time period to obtain the area's population sequence. In this specific embodiment, S1 is used to organize the personnel records generated by the camera terminal, access control terminal, reservation terminal, and check-in terminal within the current management cycle into a sequence of regional personnel numbers arranged by time period. During processing, the records of each terminal are first placed on the same time axis, and then the personnel numbers are calculated segment by segment according to the time period. Afterwards, the personnel records of the camera terminal are used to rewrite the segment calculation results, so that the personnel numbers of the same area in each time period within the management cycle can directly enter the subsequent transfer chain and stage chain processing. Access control entry records, access control exit records, reservation records, and check-in records are used to form the personnel increase and decrease process within the time period, and the personnel records of the camera terminal are used to rewrite the personnel numbers in the time period where the number of people can be directly observed. The implementation process includes the following steps: For S1-1, first, read all personnel records generated by camera terminals, access control terminals, reservation terminals, and check-in terminals within the current management cycle by region, and extract the recording time from each personnel record; for access control terminals, retain the original recording time for entry and exit records, for reservation records, retain the reservation writing time, for check-in records, retain the check-in occurrence time, and for camera terminal personnel records, retain the camera's personnel generation time; then, write the management cycle start point into the time set, write each recording time into the time set one by one, and then write the management cycle end point into the time set, and rearrange them according to time order; when the same time value appears in the arrangement result, only one time position is retained, and all records under that time are... Each record is attached to the corresponding time position. After the arrangement is completed, the interval between two adjacent times is recorded as an alignment period, and the interval between the last time and the end of the management cycle is recorded as the end alignment period. For example, if a certain area has the start of the management cycle at 08:00, an access control entry record at 08:05, a sign-in record at 08:08, a camera terminal personnel record at 08:12, and the end of the management cycle at 08:20, then four alignment periods are obtained: 08:00 to 08:05, 08:05 to 08:08, 08:08 to 08:12, and 08:12 to 08:20, which in turn form an alignment sequence arranged in the order of the time periods. For S1-2, after obtaining the aligned sequence, the number of people is calculated segment by segment according to the time period. First, the first aligned time period is taken as the starting time period. If there are personnel records from camera terminals in the starting time period, the number of people in those records is recorded as the starting number. If there are no personnel records from camera terminals in the starting time period, zero is recorded as the starting number. Then, the starting number is written as the current number of people in the first aligned time period. Within the first aligned time period, the increments of the number of people entering through access control, leaving through access control, making appointments, and checking in are written sequentially according to the order of record appearance. The writing method is as follows: the current number is first added to the increment of the number of people entering through access control, then subtracted from the decrease in the number of people leaving through access control, and then added to the increment of the number of people making appointments. The number of people is calculated by adding the number of people recorded in the sign-in record to obtain the number of people in the first aligned time period. For each subsequent aligned time period, the number of people in the previous aligned time period is used as the current number of people. The access control entry record, access control exit record, appointment record, and sign-in record in the same order are written to obtain the number of people in the current time period. When multiple records of the same type appear in the same aligned time period, the number of people in the records of that type is summed first, and then the current number is written. When the number of people after writing is less than zero, the number of people in the time period is recorded as zero. For example, if the number of people in the previous aligned time period of a certain area is 12, and there are 2 people entering, 1 person leaving, 3 people making appointments, and 1 person signing in in this time period, then the number of people in this time period is calculated as 12 plus 2 minus 1 plus 3 plus 1, which is 17. For S1-3, after calculating the number of people in each aligned time period segment by segment, check whether there are any camera terminal personnel records in each aligned time period in chronological order. When there is a camera terminal personnel record in a certain aligned time period, write the number of people in the camera terminal personnel record directly into the number of people result for that aligned time period, and replace the original number of people result for that aligned time period with the written number of people result. When there are multiple camera terminal personnel records in the same aligned time period, take the number of people in the latest camera terminal personnel record and write it into the number of people result for that time period. When there is no camera terminal personnel record in a certain aligned time period, keep the number of people obtained in S1-2. The number of people remains unchanged; after the number of people recorded by the camera terminal personnel is rewritten in a certain alignment period, the rewritten number of people in that period is used as the current number of people in the next alignment period and is passed on until the camera terminal personnel record again in the subsequent period; for example, if the number of people in a certain area is 17 from 08:08 to 08:12 according to S1-2, and the number of people in the area is recorded as 14 at 08:12, then the number of people in the period from 08:12 to the start of the next period is written as 14, and 14 is used as the starting point of the current number of people in the subsequent alignment period, thus obtaining the sequence of people in the area arranged in the order of the time periods; Through the above processing, S1 transforms the personnel records from multiple terminals at different times into a regional population sequence that is recursively calculated by time period and rewritten by the personnel records from the camera terminal. This provides a directly accessible population base for subsequent determination of transfer time periods, generation of transfer chains, and writing of stage chains. The alignment sequence limits the time boundaries, and the segmented writing limits the order of population changes. The rewriting of the personnel records from the camera terminal limits the intervention position for directly observing the population. When reading the regional population sequence, subsequent steps can directly obtain the population results for each region at each time period without having to go back and process the time differences and population source differences between different terminals. In practical application: Taking a single-floor conference area in a large office building as an example, with the management cycle set to 08:00 to 09:00, if a certain conference room area shows 2 access control entry records at 08:03, 1 sign-in record at 08:05, 6 people recorded by the camera terminal at 08:10, 1 exit record at 08:18, and 2 reservation records at 08:25, then 08:00, 08:03, 08:05, 08:10, 08:18, 08:25, and 09:00 should be written into the time set first. This process forms an alignment sequence. Starting with zero people in the first time period, the system writes in the number of people entering, leaving, making reservations, and checking in segment by segment to obtain the initial number of people in each time period. Then, in the alignment time period at 08:10, the system rewrites the original number of people using the 6 people recorded by the camera terminal personnel and passes these 6 people to the time periods after 08:18. The system then overlays the departure record at 08:18 and the reservation record at 08:25, ultimately forming a time-by-time sequence of the number of people in the area from 08:00 to 09:00, which is then used for subsequent transfer chains and stage chains.

[0018] S2. Based on the population sequence of the regions, compare the population changes of adjacent regions in a continuous period of time. Define the continuous period in which the population of the previous region decreases and the population of the next region increases as the transfer period. Then connect each transfer period in sequence according to the region connection direction and the time sequence to obtain the transfer chain. In this specific embodiment, S2 is used to identify the time period when people transfer from one region to another from the regional population sequence, and to break down the decrease in the number of people in the previous region in the case of one-to-many splitting, and then connect each split transfer segment into a transfer chain according to the regional connection direction and time period order; during processing, firstly, the change in the number of people between two time periods is calculated within each region, and then the same time period in which the number of people in the previous region decreases and the number of people in the next region increases is found in adjacent regions, thereby determining the transfer time period; then, the transfer time periods that are connected end to end are merged into transfer segments. When the same starting region points to multiple adjacent regions at the same time, the number of people transferred in each transfer segment is determined according to the relationship between the decrease in the number of people and the increase in the number of people, and the decrease in the number of people in the previous region is broken down according to the proportion; finally, the split transfer segments are connected segment by segment according to the regional connection direction and time period order to form a transfer chain that can be processed by subsequent stages. The implementation process includes the following steps: For S2-1, firstly, read the population results for each time period from the population sequence for each region and arrange them in time period order. For each region, starting from the first time period, take the population of the previous time period and the population of the next time period in sequence. Subtract the population of the previous time period from the population of the next time period to obtain the population difference of the region at that time period position. When the population of the next time period is greater than the population of the previous time period, the population difference is positive; when the population of the next time period is less than the population of the previous time period, the population difference is negative; when the two are equal, the population difference is recorded as zero. Then, write the population difference corresponding to each time period position into the region in the original time period order to form the population difference sequence of the region. Then, arrange the population difference sequences of all regions in the region order to form the population difference sequence of each region. For example, if the population results of a region in four time periods are 8, 10, 10, and 7 respectively, then the population difference between the two consecutive time periods is 2, 0, and -3 respectively, thus forming the population difference sequence of the region. For S2-2, after obtaining the population difference sequence for each region, each of two adjacent regions with a regional connection is read sequentially, and the population difference of the preceding region and the population difference of the following region are compared segment by segment according to the time period. When the population difference of the preceding region is less than zero and the population difference of the following region is greater than zero in the same time period, the time period is recorded as a transition time period. When the population difference of the preceding region is not less than zero, or the population difference of the following region is not greater than zero, or there is no regional connection between the two regions in the same time period, the time period is not recorded as a transition time period. After obtaining multiple transition time periods in a pair of adjacent regions, the relationships between the transition time periods are checked sequentially. When the end of one transfer period is adjacent to the start of the next transfer period, the two are merged into one transfer period; when the end of one transfer period is not adjacent to the start of the next transfer period, they are each retained as two separate transfer periods. For example, if region A and region B are connected, and the difference in the number of people in region A between 10:00 and 10:05 and between 10:05 and 10:10 is -2 and -1 respectively, and the difference in the number of people in region B between the same two periods is 3 and 1 respectively, then both of these periods are recorded as transfer periods and are further merged into one transfer period covered by 10:00 to 10:10. For S2-3, when multiple adjacent areas are pointed to from the same starting area during the same time period, forming multiple transfer segments, first read the decrease in the number of people in the starting area during that time period, and then read the increase in the number of people in each adjacent area during that time period; then compare the decrease in the number of people in the previous area with the increase in the number of people in the next area: if the decrease in the number of people in the previous area is less than the increase in the number of people in the next area, record the decrease in the number of people in the previous area as the number of people transferred in that transfer segment; if the increase in the number of people in the next area is less than the decrease in the number of people in the previous area, record the increase in the number of people in the next area as the number of people transferred in that transfer segment; if the two are equal, record the decrease in the number of people in the previous area as the number of people transferred in that transfer segment; after completing the calculation of the number of people transferred in each transfer segment, sum the number of people transferred from the same starting area to all adjacent areas during that time period to obtain the previous... The total decrease in population in each region is calculated by dividing the number of people transferred in each transfer segment by the total decrease in population in the previous region to obtain the splitting percentage for that transfer segment. Finally, the splitting percentage is multiplied by the decrease in population in the previous region to obtain the population splitting result for that transfer segment. This population splitting result replaces the decrease in population in the previous region in the original transfer segment, forming a split transfer segment. For example, if the population decrease in a certain starting region is 6 in a certain period, and it points to two adjacent regions, region B and region C, where the population increase in region B is 4 and the population increase in region C is 3, then the number of people transferred to region B is recorded as 4, and the number of people transferred to region C is recorded as 3. The total decrease in population in the previous region is 7, and the splitting percentages are 4 / 7 and 3 / 7, respectively. Then, 6 is multiplied by 4 / 7 and 3 / 7, respectively, to obtain the population splitting results in the two split transfer segments. For S2-4, after obtaining the split transfer segments, first rearrange all split transfer segments according to the order of their starting time periods, then check the ending region of the previous split transfer segment and the starting region of the next split transfer segment segment by segment according to the region connection direction. If the ending region of the previous split transfer segment is the same as the starting region of the next split transfer segment, and the ending time period of the previous split transfer segment is the same as the starting time period of the next split transfer segment, connect the two segments directly. If the ending region of the previous split transfer segment is the same as the starting region of the next split transfer segment, and the ending time period of the previous split transfer segment is earlier than the starting time period of the next split transfer segment, connect the two segments according to the order of their time periods. If the ending region of the previous split transfer segment is different from the starting region of the next split transfer segment... If the end time of the previous split transfer segment is later than the start time of the next split transfer segment, the two segments are not connected, but are retained separately. After checking all split transfer segments in the above manner, the split transfer segments that can be connected segment by segment are written into a chain result according to the region connection direction and time sequence to obtain the transfer chain. For example, if the first split transfer segment is from region A to region B with an end time of 10:10, and the second split transfer segment is from region B to region C with a start time of 10:10, then the two segments are directly connected. If the start time of the second split transfer segment is 10:15, then it is connected with 10:10 first and 10:15 second. If the starting region of the second split transfer segment becomes region D, then it is not connected with the first split transfer segment. Through the above processing, S2 transforms the population changes in the regional population sequence into a transfer chain arranged according to the regional connection direction and time period order, so that subsequent steps can continue to divide the transfer chain into forming segments, establishing segments, maintaining segments, and falling segments; among them, S2-1 gives the population change values ​​of the preceding and following time periods within each region, S2-2 gives the transfer time period and transfer segment between adjacent regions, S2-3 handles the population splitting when the same starting region points to multiple adjacent regions in the same time period, and S2-4 handles the connection relationship between the split transfer segments, thereby transforming the local increase and decrease changes in the regional population sequence into a chain transfer result that can be passed on to the next. In practical application: Taking the conference floor of an office building as an example, Area A is the elevator lobby, Area B is the conference room entrance area, and Area C is the conference room area. Between 09:00 and 09:05, the difference in the number of people in Area A is -5, in Area B it is 3, and in Area C it is 2. Furthermore, Area A and Area B, Area A and Area C, and Area B and Area C are all connected. Therefore, the transfer periods from 09:00 to 09:05 are first recorded as the transfer times for the two directions from Area A to Area B and from Area A to Area C. Then, the decrease in the number of people (5) and the increase in the number of people are calculated separately. Comparing 3 and 2, the number of people transferred in the two transfer segments is 3 and 2, respectively. The total reduction in the number of people in the previous area is 5, and the split ratios are 3 / 5 and 2 / 5, thus forming two split transfer segments. If a transfer segment from area B to area C occurs between 09:05 and 09:10, and its start time is the same as the end time of the split transfer segment from area A to area B, then the split transfer segment from area A to area B and the split transfer segment from area B to area C will be directly connected to form a transfer chain from area A to area B and then to area C, which will be used for subsequent stage chain processing.

[0019] S3. For each region in the transfer chain, compare the number of people in the previous period with the number of people in the next period in the region's population sequence according to the time period. Define the periods when the number of people increases, the number of people changes from increasing to remaining unchanged, the number of people remains unchanged, and the number of people decreases as the forming segment, the establishing segment, the maintaining segment, and the falling segment, respectively. Write them into the transfer chain according to the region order and the time period order to obtain the stage chain. In this specific embodiment, S3 is used to divide the population change stages of each region within each time period on the transfer chain, so that subsequent merging of adjacent segments, segment reconnection to the original region, deduction of round trip segments, and calculation of continuous usage value are based on the segmented results. During processing, the population results of each region and each time period are first extracted from the population sequence of each region in the transfer chain, and the population of the previous time period is compared with the population of the next time period in the order of time periods to form a population change sequence. Then, based on the population change sequence, each time period is written as a forming segment, establishing segment, maintaining segment, and falling segment. Subsequently, the time periods between the previous stage and the next stage that have not yet fallen into any stage are processed so that the stage order can unfold along time. Finally, the stage results after continuation are written back to the transfer chain in the order of region and time period to form a stage chain. The implementation process includes the following steps: For S3-1, first read all regions in the transfer chain and all time periods covered by the transfer chain, and process each region in the order of the regions in the transfer chain. For the current region, extract the population results of each time period within the time period covered by the transfer chain from the region population sequence, and then compare the population of the previous time period with the population of the next time period in the order of the time periods. When the population of the next time period is greater than the population of the previous time period, the position of the time period is recorded as the population increase; when the population of the next time period is equal to the population of the previous time period, the position of the time period is recorded as the population remains unchanged; when the population of the next time period is less than the population of the previous time period, the position of the time period is recorded as the population decrease. Then, write the population increase, population remains unchanged, and population decrease of each time period position into the current region in the original time period order to form the population change sequence of the current region. Then, arrange the population change sequences of all regions in the order of the regions in the transfer chain. For example, if the population results of a region in four time periods are 5, 8, 8, and 6 respectively, then after comparing the two time periods, we get three types of changes: population increase, population remains unchanged, and population decrease, thus forming the population change sequence of the region in three time period positions. For S3-2, after obtaining the population change sequence, the population change results of each region are read segment by segment in time period order. When a certain time period is written as "population increase", that time period is written as the "forming segment". When the previous position of a certain time period is written as "population increase" and the current time period is written as "population unchanged", the current time period is written as the "establishing segment". When the previous position of a certain time period is not written as "population increase" and the current time period is written as "population unchanged", the current time period is written as the "maintaining segment". When a certain time period is written as "population decrease", that time period is written as the "fallback segment". If a certain time period meets both the conditions for writing the establishing segment and the conditions for writing the maintaining segment, the establishing segment is written first, and the maintaining segment is not written. After completing the processing of all time periods in the above manner, the forming segment, establishing segment, maintaining segment and fallback segment are arranged in time period order to form a stage sequence. For example, if the population change of a certain region at five time period positions is "population increase", "population increase", "population unchanged", "population unchanged" and "population decrease", then the first two time periods are written as the forming segment, the third time period is written as the establishing segment, the fourth time period is written as the maintaining segment, and the fifth time period is written as the fallback segment. For S3-3, after obtaining the stage sequence, check the adjacent preceding and following stages in the stage sequence one by one according to the time period order; first read the end time of the preceding stage and the start time of the following stage, and then determine whether there is an unwritten time period between them; when the start time of the following stage is later than the end time of the preceding stage, and there is at least one unwritten time period between them, write the unwritten time periods one by one into the preceding stage, and update the end time of the preceding stage to the last unwritten time period; when the end time of the preceding stage is the same as the start time of the following stage, write the same time period into the following stage. The process involves processing all adjacent stages in the same way to obtain a sequential sequence. For example, if the formation stage ends at 10:05 and the establishment stage begins at 10:07, then 10:06 is an unwritten period, and 10:06 is written into the formation stage. If the establishment stage ends at 10:10 and the maintenance stage also begins at 10:10, then 10:10 is written into the maintenance stage. For S3-4, after obtaining the continuation sequence, regions are processed one by one in the order of the regions in the transfer chain, and then segments are processed one by one in the order of the time periods in the current region. First, the forming segment, establishment segment, maintenance segment, and fallback segment of the current region in the continuation sequence are read, and then each segment is written into the current region and the current time period position in the transfer chain according to the time period position. When different time periods of the same region fall into the forming segment, establishment segment, maintenance segment, and fallback segment respectively, they are written one by one in the order of time periods. When the current time period has been written to the previous stage and is occupied by the next stage, the result written by the next stage overwrites the result of the previous stage. Write the results; after all regions are written, a stage chain is obtained; for example, a certain transfer chain passes through region A, region B, and region C in sequence. In region B, 09:00 to 09:05 is written as the forming segment, 09:05 to 09:10 as the establishment segment, 09:10 to 09:20 as the maintenance segment, and 09:20 to 09:25 as the fallback segment. Then, according to the position of region B in the transfer chain and the order of each time period, the four types of segments are written one by one to the chain position where region B is located; the other regions are also written in the same way, finally forming a stage chain covering all regions and all time periods; Through the above processing, S3 further writes the regional time period results in the transfer chain into forming segments, establishing segments, maintaining segments, and falling segments, transforming the transfer chain from a population change chain into a stage chain. Specifically, S3-1 gives the population change results of each region within the time period covered by the transfer chain, S3-2 writes the population change results into a stage sequence, S3-3 processes the time period connection between adjacent stages, and S3-4 writes the stage results of each region back to the transfer chain segment by segment. This enables subsequent steps to directly process the relationships between adjacent segments, return to the original region relationship, and round-trip segment deduction relationship on the stage chain. In practical application: Taking the conference floor of an office building as an example, the transfer chain consists of three sequentially connected segments: the elevator lobby, the conference room entrance area, and the conference room interior. In the conference room entrance area, the number of people increases from 4 to 7 between 09:00 and 09:05; from 09:05 to 09:10, the number increases from 7 to 9; from 09:10 to 09:15, the number remains at 9; from 09:15 to 09:20, the number remains at 9; and from 09:20 to 09:25, the number decreases to 6. Therefore, first, write out the sequence of number changes in the conference room entrance area: increase, increase, no change, no change, decrease. Then, write out the sequence of numbers: increase, increase, no change, decrease. 09:00 to 09:10 is written as the forming segment, 09:10 to 09:15 as the establishing segment, 09:15 to 09:20 as the maintaining segment, and 09:20 to 09:25 as the falling segment. If there is no gap between 09:10 to 09:15 and 09:15 to 09:20, the stage order is directly maintained. If there is a time period that does not fall into any stage, the time period is written into the previous stage. Finally, the stage results of the conference room entrance area and other areas are written back to the transfer chain in the order of area and time period, forming a stage chain that can be directly read by subsequent processing.

[0020] S4. Based on the stage chain, merge adjacent segments that are connected and have the same direction, reconnect the segments that return to the original area in the middle to their original positions, and deduct the round-trip segments that have the same starting area and ending area. Then, based on the time length and sequential position of the segments established and maintained in each area after deduction, calculate the continuous usage value of each area in the next management cycle to obtain the usage result. In this specific embodiment, S4 is used to process adjacent segment merging, segment reconnection to the original region, round-trip segment deduction, and continuous usage value calculation on the stage chain. During processing, the previous and next segments are taken in the stage chain according to the time period order. It is then determined whether the two segments are connected and have the same direction. The adjacent segments that meet the conditions are merged. For two segments with opposite directions, it is further determined whether the next segment returns to the starting region of the previous segment. If the condition is met, the next segment is reconnected to the starting region of the previous segment. Subsequently, the round-trip segments with the same starting and ending regions are identified in the corrected chain, and the establishment and maintenance time periods of the round-trip segments are deducted segment by segment. Finally, based on the deducted establishment and maintenance time periods, the establishment and maintenance sequence positions, the continuous usage value of each region in the next management cycle is recursively calculated for each time period, thereby forming the usage result. The implementation process includes the following steps: For S4-1, first read the previous and next segments in the time interval order of the stage chain, and take the start region, end region, start time interval, and end time interval of the previous segment, as well as the start region, end region, start time interval, and end time interval of the next segment. Then, first compare the end time interval of the previous segment with the start time interval of the next segment. When the end time interval of the previous segment and the start time interval of the next segment are connected end-to-end, compare the end region of the previous segment with the start region of the next segment. When the end region of the previous segment and the start region of the next segment are the same, then align the region order from the start region to the end region of the previous segment and the region order from the start region to the end region of the next segment item by item. When the two region orders have the same arrangement direction in the start position, through position, and end position, write the previous and next segments as adjacent segments that are connected and have the same direction. When the position and ending position are interchanged, or the position is reversed, the preceding and following segments are written as return decision segments. When the ending time period of the preceding segment is not connected to the starting time period of the following segment, the process of comparing and aligning the regions is no longer entered; instead, the preceding and following segments are directly written as reserved segments. For example, if a segment is written as region A to region B, ending at 10:10, and the following segment is written as region B to region C, starting at 10:10, then the two time periods are connected, and the ending region of the preceding segment and the starting region of the following segment are both region B. After comparing the region order, if both the preceding and following segments expand along the forward direction of region A, region B, and region C, then they are written as adjacent segments that are connected and have the same direction. If the following segment changes to region B and returns to region A, then it is written as a return decision segment. If the following segment starts at 10:15, then it is written as a reserved segment. For S4-2, after obtaining the judgment result, adjacent segments that are consecutive and in the same direction are first merged according to their time periods. During the process, the starting area of ​​the previous segment is taken as the starting area of ​​the merged segment, and the ending area of ​​the next segment is taken as the ending area of ​​the merged segment. The starting time period of the previous segment is taken as the starting time period of the merged segment, and the ending time period of the next segment is taken as the ending time period of the merged segment. Then, the overlapping time periods of the previous and next segments are sequentially written into the same segment position, thus obtaining the merged segment. Subsequently, the returned judgment segment is processed again. The ending area of ​​the next segment is compared with the starting area of ​​the previous segment. If the starting area of ​​the previous segment and the ending area of ​​the next segment are the same, the next segment is designated as the segment that returns to the original area in the middle, and the next segment is moved from the current segment position to the position where the starting area of ​​the previous segment is located. The starting region, the arriving region, and the returning region of the next segment are written on the same link in time interval order. When the starting region of the previous segment is different from the ending region of the next segment, no reconnection is performed; instead, the next segment remains in its original position. For retained segments, no merging or reconnection is performed; the original position is simply maintained. For example, if the previous segment is from region A to region B, and the next segment is from region B to region A, and the two time intervals are contiguous, then because the ending region of the next segment is region A, which is the same as the starting region of the previous segment, the next segment is written as the segment returning to the original region and reconnected to the position of region A. If the next segment is changed to region B to region D, then the condition of returning to the original region is not met, and the next segment remains in its original position. After processing all the judgment results in the above manner, the corrected chain is obtained. For S4-3, after the correction chain is formed, the start and end regions of each segment are read sequentially, and the start and end regions are compared segment by segment. When the start and end regions are the same, the segment is written as a round-trip segment. Then, the establishment segment length and maintenance segment length are extracted from all time periods covered by the round-trip segment, and subtracted from the correction chain segment by segment according to the region and time period order. During subtraction, the establishment segment length or maintenance segment length of the current time period in the current region of the correction chain is taken first, and then the establishment segment length or maintenance segment length written by the round-trip segment in the same time period in the same region is subtracted to obtain the subtraction result. When the subtraction result is greater than zero, the subtraction result is retained in the current time period of the current region; when the subtraction result is equal to zero, ... Delete the content written in the region during the specified time period; if the deduction result is less than zero, write zero for the region during the specified time period; if the starting region and the ending region are not the same, do not write the segment as a round trip segment, and do not perform deduction processing, but keep the segment unchanged; for example, a segment starts from region A, passes through region B and returns to region A, and writes a segment establishment time period length of 2 from 10:00 to 10:05 in region B, and writes another segment establishment time period length of 1 from 10:05 to 10:10 on the return trip to region B, then after deduction according to region B and the corresponding time period, the remaining segment establishment time period length in region B is 1; if the length of the return trip is 2, then the deduction result is zero, and the content written in that time period is deleted directly; after processing all correction chains in the above way, the deduction chain is obtained; For S4-4, after obtaining the deduction chain, process each region sequentially according to region order, and then process each time period sequentially according to time period order. First, read the establishment segment time period length, maintenance segment time period length, establishment segment sequence position, and maintenance segment sequence position of the current region, and take the continuous usage value of the last time period of the previous management cycle as the initial value and write it into the current value of the first time period of the next management cycle for the current region. Then, add the establishment segment time period length to the current value segment by segment according to the establishment segment sequence position, and then add the maintenance segment time period length to the current value segment by segment according to the maintenance segment sequence position to obtain the calculation result of the current time period. When the calculation result of the previous time period has been obtained, write the calculation result of the previous time period into the next time period as the current value of the next time period, and then continue to add the establishment segment time period length and maintenance segment time period length hit by the next time period. If the current time period does not have a calculation result, write the calculation result of the previous time period into the next time period as the current value of the next time period, and then continue to add the establishment segment time period length and maintenance segment time period length hit by the next time period. When calculating the results, the initial value is written to the next time period as the current value. If a time period has been deleted from the deduction chain, it is not included in the addition process. If a time period is written as zero in the deduction chain, it still retains its position, but the added value is treated as zero. For example, if the continuous usage value of a region at the end of the previous management cycle is 5, and the first time period of the next management cycle hits the establishment segment with a duration of 2, then the continuous usage value of the first time period is 7. If the next time period hits the maintenance segment with a duration of 3, then the result of the previous time period, 7, is written to the next time period, and then 3 is added to get 10. If the next time period is deducted to zero, then 10 is written to that time period, and then zero is added to get 10. After processing all regions and all time periods in the above way, the continuous usage value of each region in the next management cycle is obtained, forming the usage result. Through the above processing, S4 sequentially writes the adjacent segment relationships, return relationships, and round-trip relationships in the stage chain into the same calculation chain, and then, after deduction, it recursively derives the continuous usage value of each region in the next management cycle. Among them, S4-1 gives the judgment results of adjacent segments, return judgment segments, and retention segments that are connected and have the same direction; S4-2 merges adjacent segments and reconnects the segments that return to the original region to their original positions; S4-3 deducts round-trip segments with the same starting region and ending region; S4-4 converts the deducted establishment segment time period length and maintenance segment time period length into continuous usage value, thereby ensuring that the usage result retains the previous segment continuation relationship and removes the duplicate writing effect caused by the round-trip segment. In practical applications: Taking an office building conference floor as an example, a link moves from area A to area B between 09:00 and 09:10, from area B to area C between 09:10 and 09:20, and from area C back to area A between 09:20 and 09:30. First, the segments from area A to area B and from area B to area C are written as adjacent segments with the same direction and time intervals, and then merged. Next, the segment returning from area C to area A is written as the return determination segment. If the terminating area of ​​the return segment and the starting area of ​​the preceding segment are both area A, then the return segment is connected back to the location of area A, forming... A correction chain is formed; then the starting and ending regions of each segment in the correction chain are compared. If a segment starts and ends in region A, it is written as a round trip segment, and the length of the establishment segment and the length of the maintenance segment are deducted segment by segment according to region and time period. Finally, the continuous usage value at the end of the previous management cycle is taken as the initial value, and the length of the establishment segment and the length of the maintenance segment of each region are added segment by segment according to the order of establishment and maintenance segments to obtain the continuous usage value of region A, region B and region C in the next management cycle, which is used for the generation of subsequent lighting arrangements, air conditioning arrangements and budget arrangements.

[0021] S5. Based on the usage results, compare the continuous usage values ​​of each area before and after the time period, and generate the lighting arrangement, air conditioning arrangement and budget arrangement of each area in the next management cycle according to the comparison results, so as to obtain the energy management forecast results; In this specific implementation, S5 is used to transform the usage results into lighting arrangements, air conditioning arrangements, and budget arrangements for each area in the next management cycle, and further write them into energy management forecast results. During processing, the continuous usage value is first read according to the time period position within each area, and then the areas are sorted under the same time period position to form a regional time period sequence. Then, the continuous usage value of the previous time period and the continuous usage value of the next time period are compared in the time period order within each area, and each time period is written as an entry time period, a maintenance time period, and an exit time period. Then, the lighting arrangement, air conditioning arrangement, and budget arrangement are generated according to the state sequence. Finally, the three arrangements are written into the same output structure according to the area and time period to form the energy management forecast results. The implementation process includes the following steps: For S5-1, first read the continuous usage values ​​of all regions in the next management cycle for each time period from the usage results, and process each region sequentially. For the current region, read the continuous usage values ​​of each time period from front to back according to the time period position, forming a time period value arrangement for the current region in the next management cycle. Then, under the same time period position, extract the continuous usage values ​​of all regions at that time period position, and rearrange them in descending order of value. When two regions have the same continuous usage value at the same time period position, the region with the earlier time period position is placed first. This completes the process for all time period positions. After arranging the positions, the regional arrangement results under each time period position are written sequentially to form a regional time period sequence. For example, the next management cycle includes three time periods: T1, T2, and T3. The continuous usage values ​​of region A in the three time periods are 8, 10, and 7, and the continuous usage values ​​of region B in the three time periods are 6, 11, and 7. Then, at position T1, region A is placed before region B, at position T2, region B is placed before region A, and at position T3, the continuous usage values ​​of the two are the same. Therefore, region A is placed before region B according to the regional order, thus obtaining the regional time period sequence expanded according to the time period position. For S5-2, after obtaining the regional time period sequence, each region is processed sequentially according to its region order. Within the current region, the continuous usage value of the previous time period is compared with the continuous usage value of the next time period in order of time period position. When the continuous usage value of the next time period is greater than that of the previous time period, the next time period is written as the entry time period; when the continuous usage value of the next time period is equal to that of the previous time period, the next time period is written as the hold time period; when the continuous usage value of the next time period is less than that of the previous time period, the next time period is written as the exit time period. For the first time period, the continuous usage value of the last time period of the previous management cycle is read first, and then the continuous usage value of the first time period is compared with that of the last time period of the previous management cycle. The continuous usage values ​​of each time period are compared. If the continuous usage value of the first time period is greater than that of the last time period at the end of the previous management cycle, the first time period is designated as the entry time period. If they are equal, the first time period is designated as the maintenance time period. If the continuous usage value of the first time period is less than that of the last time period at the end of the previous management cycle, the first time period is designated as the exit time period. After all areas are processed, a state sequence is formed. For example, if the continuous usage value of a certain area at the end of the previous management cycle is 4, and the continuous usage values ​​of the three time periods in the next management cycle are 6, 6, and 3 respectively, then the first time period is designated as the entry time period, the second time period as the maintenance time period, and the third time period as the exit time period. For S5-3, after obtaining the state sequence, it processes each region sequentially, and then processes each segment sequentially according to the time period position. When the current time period is written as an entry time period, it is written into the lighting schedule, and the previous time period and the current time period are written into the air conditioning schedule. If the current time period is the first time period, only the current time period is written into the air conditioning schedule. When the current time period is written as a hold time period, it is written into both the lighting and air conditioning schedules. When the current time period is written as an exit time period, it is neither written into the lighting nor the air conditioning schedule. In the budget arrangement processing, the continuous usage values ​​of the entry and hold time periods in the current region are read time by time period, and then processed according to... The budget is calculated by accumulating the usage values ​​in the order of the time periods. The continuous usage value of the first entry or maintenance period is directly written as the current budget value. The continuous usage values ​​of subsequent entry or maintenance periods are added to the previous budget value to form the next budget value. Exit periods are not included in the accumulation and the previous budget value is not rewritten. For example, if the status of a certain area in the four time periods is entry period, maintenance period, exit period, and entry period, and the continuous usage values ​​are 5, 7, 4, and 6 respectively, then the lighting arrangement is written in the 1st, 2nd, and 4th time periods, and the air conditioning arrangement is written in the 1st, 2nd, and 4th time periods. The 1st time period is the first time period and is not extended forward. The budget arrangement is formed in the manner of 5, 5+7, maintaining the previous value of 12, 12+6. For S5-4, after obtaining the lighting arrangement, air conditioning arrangement, and budget arrangement, process them one by one according to the region, and then process them one by one according to the time period location. Within the same region and time period location, first write the lighting arrangement result, then the air conditioning arrangement result, and then the budget arrangement result. When all three results exist, write the lighting arrangement, air conditioning arrangement, and budget arrangement in the same time period record, forming the arrangement group for that region and time period. When any of the three results is missing, write the missing item as zero, and then write the remaining two or one items together with zero in the same time period record. The record forms an arrangement group for that region and time period. After writing all regions and all time periods, all arrangement groups are arranged in the order of region and time period to form the energy management forecast result. For example, if a region has lighting arrangement 1, air conditioning arrangement 1, and budget arrangement 5 in time period T1, then the three results are written into one arrangement group. If there is only budget arrangement 12 in time period T2, and no lighting or air conditioning arrangements, then the lighting arrangement is written as 0, the air conditioning arrangement is written as 0, the budget arrangement is written as 12, and the three results are written into one arrangement group. Through the above processing, S5 transforms the usage results into lighting arrangements, air conditioning arrangements, and budget arrangements by region and time period, and further generates energy management forecast results. Specifically, S5-1 sorts the regions under each time period, S5-2 divides the time period status within each region, S5-3 generates individual arrangements, and S5-4 merges and writes the three arrangements, thereby enabling the direct output of lighting, air conditioning, and budget information that each region should implement in each time period during the next management cycle. In practical application: Taking the conference floor of an office building as an example, the next management cycle is divided into four time periods: 08:00 to 08:15, 08:15 to 08:30, 08:30 to 08:45, and 08:45 to 09:00. The continuous usage values ​​of area A are 3, 6, 6, and 2 respectively, and the continuous usage values ​​of area B are 5, 4, 4, and 1 respectively. First, areas A and B are sorted within the same time period to form a sequence of time periods. Then, in area A, the four time periods are written as the entry time period, the hold period after the entry time period, and the hold period. In Zone B, the four time periods are designated as entry period, exit period, maintenance period, and exit period. Then, the entry and maintenance periods of Zone A are written into the lighting schedule, and the period preceding the entry period, as well as the entry and maintenance periods, are written into the air conditioning schedule. The continuous usage values ​​within the entry and maintenance periods are accumulated period by period to form the budget schedule. Zone B is processed in the same way. Finally, the lighting, air conditioning, and budget schedules for each time period in each zone are grouped together to obtain energy management forecast results that can be directly used for subsequent implementation.

[0022] Working Principle: This solution first, under end-to-end collaboration, maps personnel records generated by camera terminals, access control terminals, reservation terminals, and check-in terminals in each area onto the same timeline according to the recording time, obtaining a sequence of people in each area for each time period. Then, based on the increase or decrease in the number of people in adjacent areas within consecutive time periods, it identifies the time periods when people transfer from one area to the next, and connects these time periods sequentially to form a transfer chain. Subsequently, it continues to determine on the transfer chain whether the number of people in each area is increasing, increasing and then remaining constant, remaining constant, or decreasing, thus writing out the formation segment, establishment segment, maintenance segment, and fallback segment, obtaining a stage chain. Then, it further analyzes the stage chain... The process involves merging adjacent segments, reconnecting segments returning to their original areas, deducting segments that travel back and forth, and then calculating the continuous usage value for each area in the next management cycle based on the position and length of the established and maintained segments. Finally, based on the changes in continuous usage value in different time periods, each area is written into lighting arrangements, air conditioning arrangements, and budget arrangements, and the energy management forecast results are output. The output of the previous step directly serves as the input of the next step. Therefore, the entire scheme does not directly estimate energy consumption based on the current number of people, but first organizes the changes in the number of people into a transfer process, then organizes the transfer process into a usage process, and finally converts the usage process into a management arrangement. For example, in an office building conference room scenario, the flow of people in the elevator lobby, conference room entrance area, and conference room area often differs before, during, and after a meeting: some people gather in the elevator lobby first, then enter the entrance area, then enter the conference room area, and after the meeting ends, they return from the conference room to the entrance area and elevator lobby. This solution, through end-to-end collaboration, first organizes access control records, sign-in records, reservation records, and camera headcount records into the number of people in each area by time period, then identifies which area people moved from to which area, then determines whether each area is in use, entering use, maintaining use, or exiting use, and then deducts the repeated impact caused by short-term back-and-forth trips to obtain the continuous usage value of each area in the next time period. In this way, the system does not wait until a certain area is crowded before processing, but can predict in advance which areas should turn on the lighting first, which areas should turn on the air conditioning in advance, and which areas should have their budgets increased in the next management cycle, so that the energy arrangement of different areas such as conference areas, office areas, and corridor areas follows the actual personnel activity process.

[0023] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. An energy management forecasting method based on population density, characterized in that, include: S1. Within the current management cycle, align the personnel records of camera terminals, access control terminals, reservation terminals, and check-in terminals in the same area according to the recording time, and merge them into the number of people in each area and time period to obtain the area's population sequence. S2. Based on the population sequence of the regions, compare the population changes of adjacent regions in a continuous period of time. Define the continuous period in which the population of the previous region decreases and the population of the next region increases as the transfer period. Then connect each transfer period in sequence according to the region connection direction and the time sequence to obtain the transfer chain. S3. For each region in the transfer chain, compare the number of people in the previous period with the number of people in the next period in the region's population sequence according to the time period. Define the periods when the number of people increases, the number of people changes from increasing to remaining unchanged, the number of people remains unchanged, and the number of people decreases as the forming segment, the establishing segment, the maintaining segment, and the falling segment, respectively. Write them into the transfer chain according to the region order and the time period order to obtain the stage chain. S4. Based on the stage chain, merge adjacent segments that are connected and have the same direction, reconnect the segments that return to the original area in the middle to their original positions, and deduct the round-trip segments that have the same starting area and ending area. Then, based on the time length and sequential position of the segments established and maintained in each area after deduction, calculate the continuous usage value of each area in the next management cycle to obtain the usage result. S5. Based on the usage results, compare the continuous usage values ​​of each area before and after the time period, and generate the lighting arrangement, air conditioning arrangement and budget arrangement of each area in the next management cycle according to the comparison results, so as to obtain the energy management forecast results.

2. The energy management forecasting method based on population density according to claim 1, characterized in that: S1 includes: S1-1. Extract the recording times of personnel records in each region within the current management cycle, arrange the start of the management cycle, each recording time, and the end of the management cycle in chronological order, and determine the alignment time period between two adjacent times to obtain the alignment sequence; S1-2. Based on the alignment sequence, take the number of people in the previous alignment period as the current number of people. Write the increment of the number of people entering the access control record, the decrement of the number of people leaving the access control record, the increment of the number of people in the reservation record, and the increment of the number of people in the sign-in record in each alignment period into the current number of people in order to obtain the number of people in each alignment period. S1-3. For the number of people in each aligned time period, when a record is encountered by a person at the camera terminal, the number of people recorded by the person at the camera terminal is written into the current number of people result to obtain the regional number of people sequence.

3. The energy management forecasting method based on population density according to claim 2, characterized in that: S2 includes: S2-1. Read the population results of each region arranged by time period in the population sequence of the region, calculate the population difference of each region between two time periods, and obtain the population difference sequence of each region. S2-2. For two adjacent regions that are connected, compare the difference in the number of people in the previous region and the difference in the number of people in the next region in each time period. Record the same time period in which the difference in the number of people in the previous region is less than zero and the difference in the number of people in the next region is greater than zero as the transfer time period. Then, merge the transfer time periods that are connected end to end in order of time period to obtain the transfer segment.

4. The energy management forecasting method based on population density according to claim 3, characterized in that: S2 further includes: S2-3. For multiple transfer segments from the same starting area to multiple adjacent areas in the same time period, when the decrease in the number of people in the previous area is less than the increase in the number of people in the next area, the decrease in the number of people in the previous area is recorded as the number of people transferred. When the increase in the number of people in the next area is less than the decrease in the number of people in the previous area, the increase in the number of people in the next area is recorded as the number of people transferred. When the two are equal, the decrease in the number of people in the previous area is recorded as the number of people transferred. The decrease in the number of people in the previous area is then divided according to the proportion of each number of people transferred in the total decrease in the number of people in the previous area to obtain the divided transfer segments. S2-4. Based on the split transfer segments, connect the ending region of the previous split transfer segment to the starting region of the next split transfer segment segment by segment according to the region connection direction. Connect the two segments with the same ending time period as the starting time period directly. Connect the two segments with the ending time period earlier than the starting time period according to the time period sequence to obtain the transfer chain.

5. The energy management forecasting method based on population density according to claim 4, characterized in that: S3 includes: S3-1. Read the regions and time periods in the transfer chain, and extract the population results of each region and time period from the population sequence of the regions. Compare the population of the previous time period with the population of the next time period in sequence to obtain the population change sequence. S3-2. Based on the sequence of changes in the number of people, write the period when the number of people increases as the forming segment, the period when the number of people changes from increasing to remaining constant as the establishing segment, the period when the number of people remains constant as the maintaining segment, and the period when the number of people decreases as the falling segment, thus obtaining the stage sequence.

6. The energy management forecasting method based on population density according to claim 5, characterized in that: S3 further includes: S3-3. For the preceding and following stages arranged sequentially in the stage sequence, if there is an unwritten period between the end of the preceding stage and the beginning of the following stage, the unwritten period is written into the preceding stage. If the end of the preceding stage and the beginning of the following stage are the same, the same period is written into the following stage to obtain the successive sequence. S3-4. Based on the successive sequence, according to the regional order and time period order in the transfer chain, write the forming segment, establishing segment, maintaining segment and falling segment into the transfer chain one by one to obtain the stage chain.

7. The energy management forecasting method based on population density according to claim 6, characterized in that: S4 includes: S4-1. For the previous and next segments in the stage chain, first compare the ending time of the previous segment with the starting time of the next segment. When they are connected, compare the ending region of the previous segment with the starting region of the next segment. When they are the same, align the region order from the starting region to the ending region of the previous segment with the region order from the starting region to the ending region of the next segment. When the alignment results are in the same direction, the previous and next segments are recorded as adjacent segments that are connected and have the same direction. When the alignment results are in the opposite direction, the previous and next segments are recorded as return judgment segments. When the ending time of the previous segment and the starting time of the next segment are not connected, the previous and next segments are recorded as reserved segments, and the judgment result is obtained. S4-2. For adjacent segments in the judgment result that are connected and have the same direction, merge them into one segment according to the time period. For the return judgment segment in the judgment result, compare the termination area of ​​the last segment with the starting area of ​​the previous segment. If they are the same, define the last segment as the segment that returns to the original area in the middle and connect it back to the position of the starting area of ​​the previous segment. If they are different, keep the last segment in its original position. For the retained segment in the judgment result, keep the original position unchanged to obtain the correction chain.

8. The energy management forecasting method based on population density according to claim 7, characterized in that: S4 further includes: S4-3. For each segment in the correction chain, compare the starting region with the ending region. If they are the same, define the segment as a round trip segment. Then, deduct the length of the establishment segment and the length of the maintenance segment in the round trip segment from the correction chain segment by segment according to the region order and the time period order. If the deduction result is greater than zero, retain the deduction result. If the deduction result is equal to zero, delete the time period. If the deduction result is less than zero, write the deduction result as zero. If the starting region and the ending region are not the same, keep the segment unchanged to obtain the deduction chain. S4-4. For each region in the deduction chain, first read the length of the establishment segment, the length of the maintenance segment, the order of establishment, and the order of maintenance. Then, use the continuous usage value at the end of the previous management cycle as the initial value. Add the length of the establishment segment according to the order of establishment, and add the length of the maintenance segment according to the order of maintenance. If the calculation result of the previous period exists in the later period, write the calculation result of the previous period into the later period. If the calculation result of the previous period does not exist in the later period, write the initial value into the later period to obtain the continuous usage value and form the usage result.

9. The energy management forecasting method based on population density according to claim 8, characterized in that: S5 includes: S5-1. For each region in the usage results, read the continuous usage value of each time period in the next management cycle, arrange them according to the order of the time period position, and arrange them according to the size of the continuous usage value within the same time period position to obtain the region time period sequence. S5-2. For each region in the regional time period sequence, take the continuous usage value of the previous time period and the continuous usage value of the next time period in order of time period position. When the continuous usage value of the next time period is greater than the continuous usage value of the previous time period, write the next time period as the entry time period. When the continuous usage value of the next time period is equal to the continuous usage value of the previous time period, write the next time period as the hold time period. When the continuous usage value of the next time period is less than the continuous usage value of the previous time period, write the next time period as the exit time period, thus obtaining the state sequence.

10. The energy management forecasting method based on population density according to claim 9, characterized in that: The S5 also includes: S5-3. For each area in the state sequence, write the entry period and the holding period into the lighting arrangement according to the time period position, write the time period before the entry period, the entry period and the holding period into the air conditioning arrangement, and then accumulate the continuous usage value in the entry period and the holding period time by time to obtain the budget arrangement. S5-4. For lighting arrangements, air conditioning arrangements, and budget arrangements, execute and write them in parallel according to the order of region and time period. When lighting arrangements, air conditioning arrangements, and budget arrangements are written at the same time period in the same region, the three results are combined into one arrangement group. If any arrangement is missing in the same time period in the same region, the missing item is written as zero to obtain the energy management forecast result.