A dynamic playback method, device and medium for Internet of Things time series data
By determining key points and segmented aggregation in the time series data playback of IoT, and generating dynamic playback videos, the problem of inefficient user observation in traditional methods is solved, and the intuitive capture of key information and the consistency of the total duration of the video playback is achieved.
Patent Information
- Application Number
- CN202411302270.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2044-09-18
AI Technical Summary
When facing massive data, traditional IoT time series data playback methods are difficult to identify and aggregate key information, resulting in inefficient user observation and lack of dynamic and interactiveness, which affects in-depth understanding and analysis of data.
By collecting time series data, determining key points, data segmentation and aggregation are performed according to the user's setting of the number of segments and the number of key segments, generating dynamic playback videos, and optimizing playback rules to highlight key information.
Optimize the user observation experience, allowing users to capture key information more intuitively and efficiently, ensuring consistency in the total video duration of time series data playback for different data sources and analysis time ranges.
Smart Images

Figure CN119255062B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things, and specifically to a method, device and medium for dynamic playback of Internet of Things time series data. Background Art
[0002] With the continuous development and popularization of Internet of Things technology, more and more devices are connected to the Internet, which enables us to record a large amount of time series data generated during the operation of the equipment in real time. Time series data records information such as the operating status of the equipment and environmental changes, which is of great significance for equipment monitoring, management, optimization and troubleshooting.
[0003] Traditional playback methods usually display data points one by one in order. This method is acceptable when the data volume is small. However, when faced with massive data, the huge amount of data makes it difficult for users to achieve comprehensive observation in a short period of time, and it is difficult to identify and aggregate key information. The key information is not highlighted enough, resulting in low efficiency when users observe important information in time series data, which affects users' in-depth understanding of the data and accurate analysis of the data. In addition, the data display method is relatively single and lacks the necessary dynamics and interactivity. Summary of the Invention
[0004] To solve the above problems, this application proposes a dynamic playback method for IoT time series data, including:
[0005] Collecting time series data during the operation of the target device and determining key points in the time series data according to preset rules;
[0006] Obtaining the set number of segments, the set number of key segments, and the set total playback time input by the user, dividing the time series data evenly according to the set number of segments, and obtaining the key segments containing key points in the segmented time series data;
[0007] Determine the number of key segments corresponding to the key segment, call a loop body, and loop to determine whether the number of key segments is greater than the set number of key segments;
[0008] If yes, obtain the number of key points contained in the key segments respectively, aggregate the key segments according to the number of key points and the time sequence between the key segments, and determine again whether the number of aggregated key segments is greater than the set number of key segments, until convergence is determined;
[0009] Based on the set total playback time, the aggregated key segments and non-key segments are allocated, and based on the playback rules, the aggregated key segments and the non-key segments are used to generate playback videos, and the playback videos are played through the video operation interface.
[0010] On the other hand, the present application also proposes a dynamic playback device for IoT time series data, comprising:
[0011] at least one processor; and,
[0012] a memory communicatively connected to the at least one processor; wherein,
[0013] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a dynamic playback method for IoT time series data as described in the above example.
[0014] On the other hand, the present application also proposes a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as: a dynamic playback method for IoT time series data as described in the above example.
[0015] This application proposes a dynamic playback method for IoT time series data, which can bring the following beneficial effects:
[0016] Based on the user-set requirements for time series data segmentation and playback, the time series data is segmented, and by determining the key points in the time series data, the segmentation planning of the time series data and the playback duration of each segment are dynamically adjusted according to the distribution and number of key points. This not only optimizes the user's observation experience, allowing users to capture key information in the data more intuitively and efficiently, but also specifically targets time series data from different data sources, different IoT device working states, and different analysis time ranges, ensuring the consistency of the total duration of the generated data playback video. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 This is a flow chart of a method for dynamic playback of IoT time series data in an embodiment of the present application;
[0019] Figure 2 This is a schematic diagram of the execution flow of dynamic playback of IoT time series data in an embodiment of the present application;
[0020] Figure 3 This is a schematic diagram of a scenario of a type of key point in an embodiment of the present application;
[0021] Figure 4 This is a schematic diagram of a dynamic playback device for IoT time series data in an embodiment of the present application. DETAILED DESCRIPTION
[0022] To make the purpose, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the specific embodiments of this application and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0023] The following describes in detail the technical solutions provided by various embodiments of the present application in conjunction with the accompanying drawings.
[0024] It should be noted that the existing segmented display technology is similar to the automatic playback function of PPT. The display time of each segment can be compared to the "delay time" set during automatic playback in PPT, and the display method of each time period can be compared to the effect of all time points within the static image display time period in PPT. It is mainly divided into two categories: general and personalized, each with its own advantages and limitations. The general segmentation method realizes basic dynamic display by evenly distributing data points to each paragraph. This method is simple and easy to implement, and can ensure the consistency of the total playback time, but it also has shortcomings: it cannot distinguish between key information and non-key information in the data, resulting in the inability to focus on the display of important data, and the inability to quickly skip less important data, which affects the user's observation efficiency.
[0025] For example, the patent publication (announcement) number is CN202310156942.8, titled "Data Segmentation Method and Related Apparatus." This patent details an innovative data segmentation method and related apparatus designed to efficiently process high-frequency time series data generated in the Internet of Things (IoT). This method achieves periodic automatic segmentation of data through a series of technical steps, including but not limited to obtaining preset segmentation conditions and target data, evaluating the data's constraints on meeting the conditions, determining a set of ontological periods based on the data's periodic characteristics, determining a target ontological period within the set, and performing data segmentation on the target ontological period to obtain the results. Furthermore, the technology includes validating the segmentation results and utilizing historical segmentation records to generate a rapid segmentation strategy to further optimize segmentation efficiency. This patent provides an efficient and automated data processing solution for applications such as urban rail transit and power monitoring systems. However, the patent lacks a data playback feature and does not further merge the segmented data. Furthermore, segmentation based on the periodicity of high-frequency data may impose stricter data requirements.
[0026] Another example is the patent publication number CN201910282014.X, the patent name is: Time series data segmentation method, device, storage medium and electronic device. This patent proposes an efficient and accurate time series data segmentation method and device, which is suitable for processing panoramic data sequences in electronic devices. The method segments the target time interval by at least two preset time series segmentation rules, merges the segmentation points to generate a second time series, and uses technologies such as support vector machine classification models to detect whether the time interval formed by the segmentation time points meets the preset conditions, so as to delete the segmentation points that do not meet the conditions. Finally, multiple panoramic data subsequences are generated according to the remaining segmentation time points, which effectively improves the accuracy and efficiency of time series data segmentation. The patent also does not conduct further exploration of the data presentation or visualization level for the segmented data, and because of the use of artificial intelligence models, there may be hidden dangers in the interpretability of this method.
[0027] like Figure 1 As shown, the embodiment of the present application provides a dynamic playback method for IoT time series data, including:
[0028] S101: Collecting time series data during the operation of a target device, and determining key points in the time series data according to preset rules.
[0029] Specifically, if Figure 2 As shown, the IoT device is determined as the target device, and the operating data generated during the operation of the target device is the data source, such as the sensor data generated by the sensor device (such as temperature, humidity, pressure, etc.) and the machine operation data generated by the industrial production equipment (such as motor speed, power consumption, etc.).
[0030] During the operation of the target device, the time series data of the target device is collected, wherein the time series data is the device operation data sorted according to the time series in a continuous time. In the embodiment of the present application, the historical time series data corresponding to the collection time can be queried in the database according to the collection time entered by the user to obtain the required time series data.
[0031] Furthermore, key points in the time series data are determined according to preset rules. Key points include data maximum points, trend turning points, outlier points, event markers, etc., and data maximum points include data maximum and minimum points.
[0032] Different key points are extracted according to different features of time series data.
[0033] Specifically, for the data extreme points, the data values of the same type contained in the time series data are compared to obtain the maximum and minimum points. When the operating data reaches the maximum or minimum value, it indicates that the physical device is operating in a state that may indicate overload, idleness, or failure. By extracting the data extreme points during the operation of the physical device and displaying the corresponding extreme value data, it is possible to provide a more intuitive view of the actual operating power of the physical device, timely detect abnormal device behavior, and take emergency measures.
[0034] For trend turning points, a preset segmentation algorithm is used to automatically determine segmentation points, dividing the time series data into several segments so that the overall trend is present in each time series data segment. The preset segmentation algorithm can be a slope threshold method, a segmented aggregation approximation algorithm, a dynamic time warping algorithm, etc. After segmentation is completed, the slope of the segmented time series data segment is obtained by calculating the slope between the corresponding values of adjacent segmentation points. When the slope exceeds the preset slope threshold, the two end points of the time series data segment are determined to be trend turning points, indicating that the trend of the time series data segment exceeds the stable trend and is in a state of large fluctuations. The preset slope threshold can be set based on the stable trend.
[0035] It should be noted that in the embodiments of the present application, for each time series data segment, the data trend can be determined by detecting the slope of each segment after linear approximation of the original data and the time points of the first and last points to determine whether the trend in each time series data segment is upward, downward, or stable. By extracting the turning points of the operating data trend of the physical device and displaying them during playback, users can intuitively understand the changing trends of device performance over time, which helps to formulate more scientific and reasonable operation plans.
[0036] For the abnormal value points, the normal operating range of the target device is obtained, the normal operating interval is set based on the normal operating range, and the data points in the time series data that are outside the normal operating interval are set as abnormal value points. In the embodiment of the present application, the normal operating range of the equipment can be determined according to the industry standard or the manual when the equipment leaves the factory, and can also be modified according to the actual needs of the target device. By collecting the abnormal value points of the time series data and displaying the abnormal value points, these abnormal value points can be discovered and displayed in time, which can quickly attract the attention of maintenance personnel, thereby quickly identifying faults and handling them, reducing downtime and production losses, and avoiding the situation where relevant personnel fail to pay attention to abnormalities in time due to excessive data volume.
[0037] For event marking points, an alarm mechanism is set based on the alarm threshold. When the data value in the time series data is higher or lower than the alarm threshold, an alarm event is responded to, and the start and end points of the alarm event are determined as event marking points.
[0038] In the embodiment of the present application, there are multiple alarm events, such as Figure 3 As shown, there can be an oscillation alarm event. When the data value is lower than the oscillation alarm threshold, an alarm occurs, and the alarm event is monitored to determine the start and end points of the alarm response. At the same time, there are corresponding anti-shake settings for oscillation alarm events. Within the set anti-shake time, if data oscillation occurs, no alarm will be generated, thereby effectively preventing false alarms.
[0039] S102: Obtain the set number of segments, the set number of key segments, and the set total playback time input by the user, divide the time series data evenly according to the set number of segments, and obtain the key segments containing key points in the segmented time series data.
[0040] Specifically, the user inputs the number of segments, the number of key segments, and the total playback duration, and determines the total number of data points, the total number of key points, and the time points corresponding to each key point in the time series data. The number of segments is the number of data segments obtained after segmenting the time series data; the number of key segments is the number of key segments containing key points in the segmented time series data; and the total playback duration is the duration of the playback video obtained after processing the time series data.
[0041] Based on the formula , segmented preprocessing of time series data, where is the total number of data points in the time series data, is the number of data points contained in each time period after average distribution, and a is the set number of segments.
[0042] More specifically, the total number of data points is compared with the set number of segments. When the total number of data points is not greater than the set number of segments, the time series data is divided according to the total number of data points so that the number of data points in each data segment after division is 1. When the total number of data points is greater than the set number of segments, the time series data is evenly divided according to the set number of segments, and key segments containing key points in the segmented time series data are obtained. The number of data points in each data segment after division is the ratio of the total number of data points to the set number of segments, rounded down.
[0043] For example, if the total number of time points in the selected time period is not greater than 1000, it means that each divided time period contains only one data point. (round up), record the start and end time points of the nth segment as and , . The nth time period The points in the time series are , The points in the time series are (when n≤N-1) or (when n=N).
[0044] It should be noted that in the embodiment of the present application, in order to avoid the inability to obtain clear effects due to excessive data volume, it is recommended to set the number of segments to no more than 4000, the number of key segments to no more than 40, and the total playback time to no more than 10 minutes.
[0045] S103: Determine the number of key segments corresponding to the key segment, call a loop body, and cyclically determine whether the number of key segments is greater than the set number of key segments.
[0046] Specifically, after the time series data is segmented, the key segments containing key points are determined, the number of key segments is counted, and the loop body is called to perform a cyclic judgment on whether the number of key segments is greater than the set number of key segments. When the number of key segments is greater than the set number of key segments, the key segments are aggregated to ensure that the playback time of the generated playback video is within the set total playback time.
[0047] If not, that is, the number of key segments is not greater than the set number of key segments, there is no need to aggregate the key segments, and re-encoding is performed directly to execute step S105.
[0048] S104: If yes, obtain the number of key points contained in the key segments respectively, aggregate the key segments according to the number of key points and the time sequence between the key segments, and determine again whether the number of aggregated key segments is greater than the set number of key segments, until convergence is determined.
[0049] Specifically, if the number of key segments is greater than the set number of key segments, it means that the number of key segments after segmentation is too large, which may cause the duration of the generated playback video to exceed the set playback duration, so the excess key segments need to be aggregated.
[0050] More specifically, the key segments adjacent in time sequence are set as a pair of data groups, and the number of non-key segments in the data group is determined. The total number of key points in the data group is obtained, and the cost coefficient is constructed based on the total number of key points and the number of non-key segments. The formula is obtained according to the cost coefficient. ,in is the total number of key points in the data set, The number of non-critical segments in the data group is determined based on the above formula, the number of key points and the time sequence between the critical segments, and the minimum cost coefficient is used to aggregate the critical segments based on the minimum cost coefficient.
[0051] Further, a key data group whose total number of key points is higher than a preset threshold is determined to obtain a portion of the key data groups that are preferentially merged, and then the number of non-key segments in the preferentially merged key data groups is compared to determine the minimum number of non-key segments, and the key data group corresponding to the minimum number of non-key segments is determined. The key group is composed of two key segments with a large number of key points and a close distance, and the two key segments in the key data group corresponding to the minimum number of non-key segments are preferentially merged. In an embodiment of the present application, it can be set according to the average number of key points contained in the key data group.
[0052] Among them, based on the minimum cost coefficient, the key segment aggregation model formula is as follows:
[0053]
[0054] st
[0055] 0,1}
[0056]
[0057] Among them, I is the number of key segments, including the objective function of the number of key segments before aggregation and the number of key segments after aggregation, b is the set number of key segments, By introducing the cost coefficient , two key segments that contain more key points and are closer to each other are merged first, so that all the key segments finally aggregated contain the least number of non-key segments in the original time series.
[0058] It should be noted that when the variable When it is 0, it means that the key segments i and i+1 are not merged, and when it is 1, it means that the key segments i and i+1 are merged. Formula It ensures that the number of key segments after merging is the set number of key segments, which means that the number of key segments to be merged is the difference between the number of key segments before aggregation and the set number of key segments.
[0059] It should be noted that when the calculation result of the key segment aggregation model formula appears =1 and In the case of , based on our merging principle, it means that the three consecutive key segments numbered i 1, 2, and 3 need to be merged into a new key segment. Similarly, 4, 5, and other consecutive key segments need to be aggregated into a new key segment.
[0060] S105: Based on the set total playback time, the aggregated key segments and non-key segments are allocated, and a playback video is generated from the aggregated key segments and the non-key segments based on the playback rules, and the playback video is played through the video operation interface.
[0061] Specifically, the total playback time will be set, and the aggregated key segments and non-key segments will be evenly distributed to determine the key segment duration. Based on the number of aggregated key segments, the number of aggregated non-key segments will be determined. Based on the number of aggregated key segments and the key segment duration, the key segment playback speed will be determined. Based on the number of aggregated non-key segments and the key segment duration, the non-key segment playback speed will be determined.
[0062] Set the non-critical segment playback time to s, the key segment playback time is set to s, T is the total playback time, and the playback time of each non-critical segment is calculated based on the playback time of the non-critical segment and the number of aggregated non-critical segments. The time allocation ratio of each key point is , the average playing time allocated to each key point is , the playback time allocated to the mth key segment after aggregation is , is the number of key points in the mth key segment.
[0063] Furthermore, all the aggregated time periods are re-encoded, and the start and end time points of all the time periods are determined. The data corresponding to each time period is smoothed to obtain smoothed data points. The start and end time points are set as the smoothed time points corresponding to the smoothed data points. Based on the smoothed data points and the smoothed time points, a dynamic line chart is generated.
[0064] Determine the key data segments and non-key data segments in the dynamic line graph respectively, generate a playback video for the dynamic line graph according to the playback speed of the key segments and the playback speed of the non-key segments, play the playback video through the video operation interface, and when the data point running in the dynamic line graph is a key point, the data information and time information corresponding to the key point pop up.
[0065] Based on the user-set requirements for time series data segmentation and playback, the time series data is segmented, and by determining the key points in the time series data, the segmentation planning of the time series data and the playback duration of each segment are dynamically adjusted according to the distribution and number of key points. This not only optimizes the user's observation experience, allowing users to capture key information in the data more intuitively and efficiently, but also specifically targets time series data from different data sources, different IoT device working states, and different analysis time ranges, ensuring the consistency of the total duration of the generated data playback video.
[0066] like Figure 4 As shown, the embodiment of the present application also proposes a dynamic playback device for IoT time series data, including:
[0067] at least one processor; and,
[0068] a memory communicatively connected to the at least one processor; wherein,
[0069] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a dynamic playback method for IoT time series data as described in any of the above embodiments.
[0070] An embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to be: a dynamic playback method for IoT time series data as described in any of the above embodiments.
[0071] The various embodiments in this application are described in a progressive manner. Similar portions between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the device and medium embodiments are generally similar to the method embodiments, so their descriptions are relatively simple. For relevant portions, refer to the descriptions of the method embodiments.
[0072] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects to their corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0073] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0074] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0075] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0076] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0077] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0078] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0079] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can be implemented using any method or technology to store information. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change RAM (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated data signals and carrier waves.
[0080] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0081] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims
1. A dynamic playback method for IoT time series data, characterized in that: include: Collecting time series data during the operation of the target device and determining key points in the time series data according to preset rules; Obtaining the set number of segments, the set number of key segments, and the set total playback time input by the user, dividing the time series data evenly according to the set number of segments, and obtaining the key segments containing key points in the segmented time series data; Determine the number of key segments corresponding to the key segment, call a loop body, and loop to determine whether the number of key segments is greater than the set number of key segments; If yes, obtain the number of key points contained in the key segments respectively, aggregate the key segments according to the number of key points and the time sequence between the key segments, and determine again whether the number of aggregated key segments is greater than the set number of key segments, until convergence is determined; Based on the set total playback time, the aggregated key segments and non-key segments are allocated, a playback video is generated from the aggregated key segments and the non-key segments based on a playback rule, and the playback video is played through a video operation interface; Before evenly dividing the time series data according to the set number of segments, the method further includes: Determining a total number of data points in the time series data, and comparing the total number of data points with the set number of segments; When the total number of data points is not greater than the set number of segments, dividing the time series data according to the total number of data points so that the number of data points in each data segment after division is 1; When the total number of data points is greater than the set number of segments, the time series data is evenly divided according to the set number of segments, and the key segments containing key points in the segmented time series data are obtained. The number of data points in each data segment after division is the ratio of the total number of data points to the set number of segments, rounded down. The allocating the aggregated key segments and non-key segments based on the set total playback duration specifically includes: The set total playback time is evenly distributed among the aggregated key segments and non-key segments to determine the key segment duration and non-key segment duration; Determining the number of non-critical segments after aggregation according to the number of critical segments after aggregation; Determining a playback speed of key segments based on the number of aggregated key segments and the duration of the key segments, and determining a playback speed of non-key segments based on the number of aggregated non-key segments and the duration of the non-key segments; Set the non-critical segment playback time to s, the key segment playback time is set to s, T is the total playback time, and the playback time of each non-critical segment is calculated based on the playback time of the non-critical segment and the number of non-critical segments after aggregation. The time allocation ratio of each key point is , the average playing time allocated to each key point is , the playback time allocated to the mth key segment after aggregation is , is the number of key points in the mth key segment.
2. The method for dynamic playback of IoT time series data according to claim 1, characterized in that: The key points include data maximum value points, trend turning points, abnormal value points, and event marking points; Determining the key points in the time series data according to preset rules specifically includes: Comparing the data values of the time series data to obtain the data maximum value points, wherein the data maximum value points include the maximum value point and the minimum value point; Automatically determine the segmentation point by using a preset segmentation algorithm, divide the time series data into several segments, calculate the slope of the segmented time series data segment, and when the slope exceeds a preset slope threshold, determine the segmentation point corresponding to the time series data segment as a trend turning point; Determining a normal operating range of the target device, and setting data points outside the normal operating range as outlier points; Based on a preset alarm mechanism, in response to an alarm event, the start and end points of the alarm event are determined as event marking points.
3. The method for dynamic playback of IoT time series data according to claim 1, characterized in that: Aggregating the key segments according to the number of key points and the time sequence between the key segments specifically includes: Setting the key segments adjacent in time sequence as a pair of data groups, and determining the number of non-key segments in the data groups; Obtaining a total number of key points in the data group, and constructing a cost coefficient based on the total number of key points and the number of non-key segments; A minimum cost coefficient is determined according to the number of key points and the time sequence between the key segments, and the key segments are aggregated based on the minimum cost coefficient.
4. The method for dynamic playback of IoT time series data according to claim 3, characterized in that: Determining the minimum cost coefficient according to the number of key points and the time sequence between the key segments specifically includes: Determine a key data group in which the sum of the key points exceeds a preset threshold; Comparing the numbers of non-critical segments in the critical data groups, determining a minimum number of non-critical segments, and determining a critical data group corresponding to the minimum number of non-critical segments; The key data groups corresponding to the minimum number of non-key segments are preferentially merged.
5. The method for dynamic playback of IoT time series data according to claim 1, characterized in that: Before generating a playback video from the aggregated key segments and the non-key segments based on the playback rules, the method includes: Re-encoding all aggregated time periods and determining the start and end time points of all the time periods; Smoothing the data corresponding to each time period to obtain smoothed data points, and setting the start and end time points as smoothed time points corresponding to the smoothed data points; A dynamic broken line graph is generated based on the smoothed data points and the smoothed time points.
6. The method for dynamic playback of IoT time series data according to claim 5, characterized in that: Generating a playback video from the aggregated key segments and the non-key segments based on the playback rule specifically includes: Determine the key data segments and non-key data segments in the dynamic line graph respectively, and generate a playback video from the dynamic line graph according to the playback speed of the key segments and the playback speed of the non-key segments; Playing the playback video through the video operation interface specifically includes: The playback video is played through the video operation interface, and when the data point running in the dynamic line graph is a key point, the data information and time information corresponding to the key point are popped up.
7. A dynamic playback device for IoT time series data, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the following operations: Collecting time series data during the operation of the target device and determining key points in the time series data according to preset rules; Obtaining the set number of segments, the set number of key segments, and the set total playback time input by the user, dividing the time series data evenly according to the set number of segments, and obtaining the key segments containing key points in the segmented time series data; Determine the number of key segments corresponding to the key segment, call a loop body, and loop to determine whether the number of key segments is greater than the set number of key segments; If yes, obtain the number of key points contained in the key segments respectively, aggregate the key segments according to the number of key points and the time sequence between the key segments, and determine again whether the number of aggregated key segments is greater than the set number of key segments, until convergence is determined; Based on the set total playback time, the aggregated key segments and non-key segments are allocated, a playback video is generated from the aggregated key segments and the non-key segments based on a playback rule, and the playback video is played through a video operation interface; Before evenly dividing the time series data according to the set number of segments, the method further includes: Determining a total number of data points in the time series data, and comparing the total number of data points with the set number of segments; When the total number of data points is not greater than the set number of segments, dividing the time series data according to the total number of data points so that the number of data points in each data segment after division is 1; When the total number of data points is greater than the set number of segments, the time series data is evenly divided according to the set number of segments, and the key segments containing key points in the segmented time series data are obtained. The number of data points in each data segment after division is the ratio of the total number of data points to the set number of segments, rounded down. The allocating the aggregated key segments and non-key segments based on the set total playback duration specifically includes: The set total playback time is evenly distributed among the aggregated key segments and non-key segments to determine the key segment duration and non-key segment duration; Determining the number of non-critical segments after aggregation according to the number of critical segments after aggregation; Determining a playback speed of key segments based on the number of aggregated key segments and the duration of the key segments, and determining a playback speed of non-key segments based on the number of aggregated non-key segments and the duration of the non-key segments; Set the non-critical segment playback time to s, the key segment playback time is set to s, T is the total playback time, and the playback time of each non-critical segment is calculated based on the playback time of the non-critical segment and the number of non-critical segments after aggregation. The time allocation ratio of each key point is , the average playing time allocated to each key point is , the playback time allocated to the mth key segment after aggregation is , is the number of key points in the mth key segment.
8. A non-volatile computer storage medium storing computer-executable instructions, characterized in that: The computer executable instructions are configured to: Collecting time series data during the operation of the target device and determining key points in the time series data according to preset rules; Obtaining the set number of segments, the set number of key segments, and the set total playback time input by the user, dividing the time series data evenly according to the set number of segments, and obtaining the key segments containing key points in the segmented time series data; Determine the number of key segments corresponding to the key segment, call a loop body, and loop to determine whether the number of key segments is greater than the set number of key segments; If yes, obtain the number of key points contained in the key segments respectively, aggregate the key segments according to the number of key points and the time sequence between the key segments, and determine again whether the number of aggregated key segments is greater than the set number of key segments, until convergence is determined; Based on the set total playback time, the aggregated key segments and non-key segments are allocated, a playback video is generated from the aggregated key segments and the non-key segments based on a playback rule, and the playback video is played through a video operation interface; Before evenly dividing the time series data according to the set number of segments, the method further includes: Determining a total number of data points in the time series data, and comparing the total number of data points with the set number of segments; When the total number of data points is not greater than the set number of segments, dividing the time series data according to the total number of data points so that the number of data points in each data segment after division is 1; When the total number of data points is greater than the set number of segments, the time series data is evenly divided according to the set number of segments, and the key segments containing key points in the segmented time series data are obtained. The number of data points in each data segment after division is the ratio of the total number of data points to the set number of segments, rounded down. The allocating the aggregated key segments and non-key segments based on the set total playback duration specifically includes: The set total playback time is evenly distributed among the aggregated key segments and non-key segments to determine the key segment duration and non-key segment duration; Determining the number of non-critical segments after aggregation according to the number of critical segments after aggregation; Determining a playback speed of key segments based on the number of aggregated key segments and the duration of the key segments, and determining a playback speed of non-key segments based on the number of aggregated non-key segments and the duration of the non-key segments; Set the non-critical segment playback time to s, the key segment playback time is set to s, T is the total playback time, and the playback time of each non-critical segment is calculated based on the playback time of the non-critical segment and the number of non-critical segments after aggregation. The time allocation ratio of each key point is , the average playing time allocated to each key point is , the playback time allocated to the mth key segment after aggregation is , is the number of key points in the mth key segment.
Citation Information
Patent Citations
Time series data segmentation method, device, storage medium and electronic device
CN111797127B
Data segmentation method and related device
CN116226231A
Method and apparatus for processing device state information, device and storage medium
WO2024149208A1
KR20220010239A