A visual analysis method for time series data based on triple extraction

Through triple extraction and graph structure optimization technology, it solves the problems of low efficiency in processing unstructured text data and incomplete relationship display in the existing technology, realizes detailed time series data visualization and layout optimization, supports user interaction, and provides efficient story line display.

CN113505220BActive Publication Date: 2024-09-20ZHEJIANG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110677044.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-18
Publication Date
2024-09-20
Estimated Expiration
2041-06-18

AI Technical Summary

Technical Problem

Existing time series data story line visualization technology is inefficient when processing unstructured text data and cannot effectively display the specific relationships between entities, resulting in users being unable to obtain a complete story line.

Method used

A method based on triple extraction is used to extract entity-relationship-entity structured representations from text data through dependency syntax analysis, generate an acyclic graph structure grouped by time, and use heuristic vertex sorting and DAG scanning algorithms to optimize the layout , reduce crossovers and swings, and design a story line visualization system.

Benefits of technology

It achieves detailed display of entity relationships in time series data, automatically optimizes layout, reduces the intersection of story lines at different moments and the length of connections between entities, supports real-time user interaction, and provides richer visual information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113505220B
    Figure CN113505220B
Patent Text Reader

Abstract

A visual analysis method for time series data based on triple extraction includes the following steps: using the dependency syntax analysis module in Hanlp to extract triples from time series data; using triples to display the relationship between entities in the form of a story line, and using a heuristic vertex sorting algorithm and a DAG scanning algorithm to sort entities at different times to reduce the swing and intersection of the story line. After completing the above steps, the second-order optimization equation is used for layout optimization. Finally, a visual analysis system is designed to allow users to interactively explore the evolution of the relationship between entities over time. The present invention displays the triples extracted from the time series data in the form of a story line, and uses the extracted triples to enrich the relationship between entities in the story line, so that the obtained story line layout can convey more information, and uses football text live broadcast data for empirical research to analyze the effectiveness of the method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a time series data visual analysis method. Background Art

[0002] Storyline is a powerful tool for communication and conveying ideas, helping people quickly grasp the development context of things. Displaying time series data in the form of storylines has become a research hotspot in the field of visualization. Storyline visualization is an effective way to show the interaction between characters and the evolution of storylines, helping users better understand and analyze a complex story, and has gained wide popularity in presenting complex relationships between characters (or entities). Storyline visualization has the ability to create visual narratives and is suitable for showing the evolution of complex relationships between entities in various time series data, such as movies, Twitter topics, emails, meeting content, software evolution, etc.

[0003] However, designing a storyline visualization is a difficult task because users need to strike a balance between the aesthetics of the storyline and the constraints of entities in the time series data. While reducing the swing and intersection of the storyline and reducing blanks, it is necessary to ensure that the positional relationship between the storylines conforms to the logical relationship between the entities in the time series data.

[0004] In the past, time series data storyline visualization technology has made significant progress. It can not only automatically generate illustrations of complex stories in a short time, but also integrate advanced user interactions, allowing users to modify the automatically generated layout according to their preferences. However, in some applications, the existing technology still has certain limitations. In the past, time series data storyline visualization technology had the following problems: (1) It has high requirements for the format of the data set, consumes a lot of manpower when processing data, and cannot process unstructured text data. (2) It can only show whether the entities are in the same place, but cannot show the specific relationship between the entities. Users cannot get a relatively complete story from it. Summary of the invention

[0005] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to design a visual analysis method for time series data based on triple extraction, to display the triple data extracted from unstructured text in the form of a storyline visualization, and to use the extracted triples to enrich the relationship between entities in the storyline, so that the resulting storyline layout can convey more information.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] A time series data visual analysis method based on triple extraction, the method comprising the following steps:

[0008] 1) Data processing: Extract triples from text data containing time information. Triples are structured representations of specific behaviors between entities. The basic form is entity-relationship-entity. Through dependency syntactic analysis, the syntactic relationship tree of the sentence is obtained. According to the set syntactic rules, the tree is deeply searched to extract semantic triples.

[0009] 2) Hierarchical structure generation: The triple data containing time information is stored as a graph structure grouped by time. There may be loops in the obtained graph structure, but the existence of loops is not conducive to the subsequent research work. Therefore, after obtaining the graph structure, it is necessary to de-loop the cyclic graph. The weight of the edge is set to the sum of the degrees of the two vertices connected by the edge. When the cycle is found using depth-first search, the edge with the largest weight in the cycle will be removed first to achieve the de-looping effect. Finally, a series of acyclic graphs grouped by time are obtained. If an entity has no connection with other entities in a certain time unit, it is regarded as a graph with only one vertex;

[0010] 3) Vertex sorting in the graph: To sort the vertices in an acyclic graph, if the resulting graph is added with direction information to become a directed acyclic graph, directly using the directed acyclic graph topological sorting algorithm will make the lines between the vertices messy. Therefore, the present invention designs a heuristic vertex sorting algorithm based on breadth-first search, so that after the vertex sorting, the lines between the vertices are as short as possible and less intersections are generated. The steps of the heuristic vertex sorting algorithm are as follows:

[0011] (3-1) In a graph G, the weight of vertex i is defined as the order of the entity represented by vertex i in the previous time unit. Select a vertex as the access vertex v, marked as B;

[0012] (3-2){p1…p n} are all vertices adjacent to v, and the chain C n Defined as G with the connections v and p removed n After the edge of n Subgraph G'; S n Defined as the number of vertices in the subgraph G', calculate the chain {C1...C n} weight, C n The weight W n Defined as S n +αK n Here, let α = 0.5. K n Defined as C n The average weight of all included vertices;

[0013] (3-3) According to three different situations, three different response methods are adopted:

[0014] Case 1: If there is only one chain C1 adjacent to vertex v, and vertex v is the first access point, then directly compare the weight w of vertex v v The weight W1 of C1 is the same as that of C1. The one with smaller weight is on top. If access point v is not the first access point, and v is identified as A, C1 is on top of v. If v is identified as B, C1 is on the bottom of v.

[0015] Case 2: If there are an even number of chains adjacent to vertex v, put the ones with larger weights at the outermost positions. When v is marked as B, the one with the largest weight is placed at the last position, the second largest is placed at the first position, and so on. When v is marked as A, the one with the largest weight is placed at the first position, the second largest is placed at the last position, and so on.

[0016] Case 3: If there are an odd number of chains adjacent to vertex v, and the number is greater than 1, it can be regarded as a combination of Case 1 and Case 2. The first n-1 chains with the largest weights are sorted in the same way as in Case 2. The chains with larger weights are placed in the outermost places. The chain with the smallest weight C m The sorting of vertex v is similar to case 1, comparing the weight w of vertex v v With C m The weight W m The chain with the smallest weight is ranked at (n+1) / 2, and the chain with the largest weight is ranked at (n+1) / 2+1. However, if a special case occurs, the chain C with the second smallest weight and the third smallest weight a , C b The corresponding vertex w a 、w b Degree D a , D b , one of them is less than 3 and the other is greater than 3, put C m The order is placed on the chain with greater proximity;

[0017] Thus, we get the chain {C1…C n} and the order relationship between vertex v;

[0018] (3-4) For p i ∈{p1…p n}, if the corresponding C i The order is above v, so put p i As the next access point v' and marked as A, if its corresponding C i If the order is below v, mark it as B, and then repeat steps (3-2), (3-3), and (3-4) until the positional relationships of all vertices are determined;

[0019] 4) Sorting between graphs; sort all graphs within a time unit. Through the heuristic vertex sorting algorithm in the previous step, we get the sorting of vertices within a graph, and then we need to sort all graphs within a time unit so that the line crossing and line swing between the entities representing two adjacent time units are as small as possible. Because the vertices in the graph are sorted first, their relative positions are fixed, so this problem is similar to minimizing the edge crossing of a multi-level directed acyclic graph. It is an NP-hard problem and uses a block-oriented DAG scanning algorithm.

[0020] 5) Layout optimization: Given constraints, calculate the y-axis coordinates of entities at different times. Determine the objective function for optimizing the layout, list the constraints, and obtain the second-order optimization equation. The layout optimization problem is essentially a second-order optimization problem, and the accumulation of the square of the swing distance of each story line between adjacent time units is used as the objective function:

[0021]

[0022] And give the constraint function:

[0023] y i,t =y i,t+1 ,if o(i,t)=o(i,t+1) (2)

[0024] y k,t -y j,t =H,if o(k,t)+1=o(j,t)and Conj(t,k,j)=true (3)

[0025] h<y k,t -y j,t <H, if o(k,t)+1=o(j,t)and Conj(t,k,j)=false (4)

[0026] Where n represents the number of entities. T represents the number of time units. i,t represents the y-axis coordinate of entity i at time t, o(i,t) represents the order of entity i at time t, H and h are two constants for adjusting the gap, and Conj(t,k,j) is used to indicate whether there is a connection between entity k and entity j at time t. If there is a connection between entity k and entity j at time t, then Conj(t,k,j) = true. Otherwise, Conj(t,k,j) = false;

[0027] Formula (2) is an alignment constraint. If the order of entity i at time t is the same as that at time t+1, they are aligned, that is, their y coordinates are the same;

[0028] Formula (3) and (4) are order constraints and gap constraints. If the order of entity k is greater than the order of entity j at time t, then the y coordinate of entity k must be greater than the y coordinate of entity j. If entity k and entity j are connected at time t, then the distance between them is H. If entity k and entity j are not connected at time t, the distance between them is between h and H.

[0029] After calculation, the optimal layout solution was obtained. Finally, D3 tools were used to design a visual analysis system, which provides three user interactions: highlighting, moving, and displaying details.

[0030] Furthermore, in step 4), the process of the block-oriented DAG scanning algorithm is as follows: when sorting the entities of the first time unit, all entity weights are set to 1, and the heuristic vertex sorting algorithm is used to obtain the first time unit of each graph {G1...G n}, then for G i ∈[G1...G n ], define G i The weight is G i The average weight of all entities included in {G1...G n}It sorts the entities by weight from small to large, and then it uses the order of the first time unit entity as the weight of the second time unit entity, repeating this step until it reaches the last time unit. When the order of the last time unit is determined, it uses it as the weight of the second-to-last time unit and retraces, improving the sorting result by repeated scanning until the number of line crossings stabilizes or the number of iterations reaches a maximum.

[0031] The present invention has the following beneficial effects: by extracting triples from time series data, combining triples with storylines, the relationship between entities in the data is displayed in more detail and accurately. A series of adjustments are made to the obtained triple data layout, and an automatic layout optimization algorithm is proposed. The algorithm can not only optimize the arrangement order of each entity in different time periods, effectively reduce the intersection of storylines between different moments, but also reduce the length of the connection between related entities at the same moment as much as possible. A storyline visual analysis system is designed to support the presentation of relationships between entities and real-time user interaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is the overall flow chart of the present invention.

[0033] Figure 2 This is an example for explaining the heuristic sorting algorithm proposed by the present invention.

[0034] Figure 3 for Figure 2The result of the topological sorting algorithm.

[0035] Figure 4 It is the visualization system interface of the present invention.

[0036] Figure 5 Three types of interactions are provided for the visualization system of the present invention. DETAILED DESCRIPTION

[0037] The present invention will be further described below in conjunction with the accompanying drawings, and the purpose and effect of the present invention will become more clear. It should be understood that the specific implementation cases described herein are only used to explain the present invention and are not used to limit the present invention.

[0038] Reference Figure 1 to Figure 5 , a visual analysis method of time series data based on triple extraction, comprising the following steps:

[0039] 1) Data processing: The dependency syntax analysis module in Hanlp is used to extract triples from text data containing time information. Triples are structured representations of specific behaviors between entities. The basic form is entity-relationship-entity. Through dependency syntax analysis, the syntactic relationship tree of the sentence is obtained. According to the set syntax rules, the tree is deeply searched to extract semantic triples. The data used in the specific implementation case is the text commentary of the first leg of the 2016 Champions League quarter-final between Arsenal and Barcelona. For example, the sentence "Neymar passed the ball to Messi" is extracted through triples to obtain "{Neymar, cross pass, Messi}";

[0040] (2) Hierarchical structure generation: The triple data containing time information is stored as a graph structure grouped by time. There may be loops in the obtained graph structure, but the existence of loops is not conducive to the subsequent research work. Therefore, after obtaining the graph structure, it is necessary to de-loop the cyclic graph. Here, the weight of the edge is set to the sum of the degrees of the two vertices connected by the edge. When a loop is found using depth-first search, the edge with the largest weight in the loop will be removed first to achieve the de-looping effect. Finally, a series of acyclic graphs grouped by time are obtained. If an entity has no connection with other entities in a certain time unit, it is regarded as a graph with only one vertex.

[0041] 3) Vertex sorting in the graph: To sort the vertices in an acyclic graph, if the resulting graph is added with direction information to become a directed acyclic graph, directly using the directed acyclic graph topological sorting algorithm will make the lines between the vertices messy. Therefore, the present invention designs a heuristic vertex sorting algorithm based on breadth-first search, so that after the vertex sorting, the lines between the vertices are as short as possible and less intersections are generated. The steps of the heuristic vertex sorting algorithm are as follows:

[0042] (3-1) In a graph G, the weight of vertex i is defined as the order of the entity represented by vertex i in the previous time unit. Select a vertex as the access vertex v, marked as B;

[0043] (3-2){p1…p n} are all vertices adjacent to v, and the chain C n Defined as G with the connections v and p removed n After the edge of n Subgraph G'; S n Defined as the number of vertices in the subgraph G', calculate the chain {C1...C n} weight, C n The weight W n Defined as S n +αK n Here, let α = 0.5. K n Defined as C n The average weight of all included vertices;

[0044] (3-3) According to three different situations, three different response methods are adopted:

[0045] Case 1: If there is only one chain C1 adjacent to vertex v, and vertex v is the first access point, then directly compare the weight w of vertex v v The weight W1 of C1 is the same as that of C1. The one with smaller weight is on top. If access point v is not the first access point, and v is identified as A, C1 is on top of v. If v is identified as B, C1 is on the bottom of v.

[0046] Case 2: If there are an even number of chains adjacent to vertex v, put the ones with larger weights in the outermost positions. Specifically, when v is marked as B, the one with the largest weight is placed in the last position, the second largest is placed in the first position, and so on; when v is marked as A, the one with the largest weight is placed in the first position, the second largest is placed in the last position, and so on;

[0047] Case 3: If there are an odd number of chains adjacent to vertex v, and the number is greater than 1, it can be regarded as a combination of Case 1 and Case 2. The first n-1 chains with the largest weights are sorted in the same way as in Case 2. The chains with larger weights are placed in the outermost places. The chain with the smallest weight C m The sorting of vertex v is similar to case 1, comparing the weight w of vertex v v With C m The weight W mThe chain with the smallest weight is ranked at (n+1) / 2, and the chain with the largest weight is ranked at (n+1) / 2+1. However, if a special case occurs, the chain C with the second smallest weight and the third smallest weight a , C b The corresponding vertex w a 、w b Degree D a , D b , one of them is less than 3 and the other is greater than 3, put C m The order is placed on the chain with greater proximity;

[0048] Thus, we get the chain {C1…C n} and the order relationship between vertex v;

[0049] (3-4) For p i ∈{p1…p n}, if the corresponding C i The order is above v, so put p i As the next access point v' and marked as A, if its corresponding C i If the order is below v, it is marked as B. Then repeat steps (3-2), (3-3), and (3-4) until the positional relationships of all vertices are determined;

[0050] Use a simple example to show the process of the heuristic algorithm. Figure 2 We sort the graph data and select vertex v4 as the first access point. There are three chains connected to v4, C1, C5 and C6. Since v4 is marked with B, C5 with the largest weight is ranked at the bottom and C6 with the second largest weight is ranked at the top. The degree of v5 in C5 is 3. The edge between v4 and v5 cannot be presented in the form of a straight line, so C1 is ranked between v4 and C5. After determining the relative positions of v4, C1, C5 and C6, we use v1, v5 and v6 as access points respectively, and sort the access points and the chains adjacent to the access points until the positions of all vertices are determined.

[0051] Figure 3 Yes Figure 2 The graph data is obtained by a heuristic vertex sorting algorithm. The heuristic vertex sorting algorithm designed by the present invention uses the order of the previous time unit as the weight, so it can not only reduce the intersection of edges and the length of edges in a graph, but also reduce the line intersection and line swing between each time unit.

[0052] 4) Sorting between graphs; sort all graphs in a time unit, and obtain the order of vertices in a graph through the heuristic vertex sorting algorithm in the previous step. Then, sort all graphs in a time unit so that the line crossing and line swing of the connecting lines representing entities in two adjacent time units are as small as possible. Because the vertices in the graph are sorted first, so that their relative positions are fixed, this problem is similar to minimizing the edge crossing of a multi-level directed acyclic graph, which is an NP-hard problem. In order to solve this problem, a block-oriented DAG scanning algorithm is adopted. The process is as follows: when sorting the entities of the first time unit, set all entity weights to 1, and obtain the first time unit of each graph {G1...G n}, then for G i ∈[G1...G n ], define G i The weight is G i The average weight of all entities included in {G1...G n} Sort by weight from small to large; then it uses the order of the first time unit entity as the weight of the second time unit entity, repeating this step until it reaches the last time unit; when the order of the last time unit is determined, it uses it as the weight of the second-to-last time unit and retrace, improving the sorting result by repeatedly scanning until the number of line crossings stabilizes or the number of iterations reaches a maximum;

[0053] 5) Layout optimization: Given constraints, calculate the y-axis coordinates of the entity at different times, determine the objective function of the optimized layout, list the constraints, and obtain the second-order optimization equation. The layout optimization problem is essentially a second-order optimization problem. The accumulation of the square of the swing distance of each story line between adjacent time units is used as the objective function:

[0054]

[0055] And give the constraint function:

[0056] y i,t =y i,t+ 1, if o(i, t) = o(i, t + 1) (2)

[0057] y k,t -y j,t =H,if o(k,t)+1=o(j,t)and Conj(t,k,j)=true (3)

[0058] h<y k,t -y j,t<H, if o(k,t)+1=o(j,t)and Conj(t,k,j)=false (4)

[0059] Where n represents the number of entities, T represents the number of time units, and y i,t represents the y-axis coordinate of entity i at time t, o(i,t) represents the order of entity i at time t, H and h are two constants for adjusting the gap, Conj(t,k,j) is used to indicate whether there is a connection between entity k and entity j at time t. If there is a connection between entity k and entity j at time t, then Conj(t,k,j) = true. Otherwise, Conj(t,k,j) = false;

[0060] Formula (2) is an alignment constraint. If the order of entity i at time t is the same as that at time t+1, they are aligned, that is, their y coordinates are the same;

[0061] Formula (3) and (4) are order constraints and gap constraints. If the order of entity k is greater than the order of entity j at time t, then the y coordinate of entity k must be greater than the y coordinate of entity j. If entity k and entity j are connected at time t, then the distance between them is H. If entity k and entity j are not connected at time t, the distance between them is between h and H.

[0062] After calculation, the optimal layout solution was obtained. Finally, D3 tools were used to design a visual analysis system, which provides three user interactions: highlighting, moving, and displaying details.

[0063] In order to facilitate users to conduct research and analysis, the visual analysis system provides three interactive modes: Figure 5 As shown, Figure 5 (a) is the original image generated by the present invention. When the user wants to take a closer look at an entity, the user can select the line representing the entity, and the selected line will be highlighted. Figure 5 (b) When the user wants to view the interaction content between two entities at a certain moment, the user can select the connection between the two entities. The selected connection will be highlighted and the interaction content will be displayed, as shown in Figure 5 (c) as shown. Figure 5 The interaction method shown in (d) is moving. The user can drag the entity on the y-axis at a certain moment. This allows the user to adjust the layout of the storyline to obtain a visual effect that satisfies the user, and also makes it more convenient and efficient for the user to observe crowded areas.

[0064] What is described above is an implementation case of the present invention, which shows how to help users explore and understand football text live broadcast data through visual analysis technology. Obviously, the present invention is not limited to the above implementation case. Although the invention has been described in detail with reference to the above examples, for those skilled in the art, it is still possible to modify the technical solutions recorded in the above examples, or to replace some of the technical features therein with equivalents. Any modifications and equivalent replacements made within the spirit and principles of the invention should be included in the scope of protection of the invention.

Claims

1. A visual analysis method for time series data based on triple extraction, characterized in that: The method comprises the following steps: 1) Data processing: Extract triples from text data containing time information. Triples are structured representations of specific behaviors between entities. The basic form is entity-relationship-entity. Through dependency syntactic analysis, the syntactic relationship tree of the sentence is obtained. According to the set syntactic rules, the tree is deeply searched to extract semantic triples. 2) Hierarchical structure generation: The triple data containing time information is stored as a graph structure grouped by time. The weight of the edge is set to the sum of the degrees of the two vertices connected by the edge. When a cycle is found using depth-first search, the edge with the largest weight in the cycle will be removed first to achieve the effect of removing the cycle. Finally, a series of acyclic graphs grouped by time are obtained. If an entity has no connection with other entities in a certain time unit, it is regarded as a graph with only one vertex. 3) Vertex sorting in the graph: Sort the vertices in an acyclic graph using a heuristic vertex sorting algorithm based on breadth-first search so that after the vertices are sorted, the lines between the vertices are as short as possible and produce fewer intersections. The steps of the heuristic vertex sorting algorithm are as follows: (3-1) In a graph G, the weight of vertex i is defined as the order of the entity represented by vertex i in the previous time unit. Select a vertex as the access vertex v, marked as B; (3-2){p1…p n } are all vertices adjacent to v, and the chain C n Defined as G without the connections v and p n After the edge of n Subgraph G'; S n Defined as the number of vertices in the subgraph G', calculate the chain {C1...C n } weight, C n The weight W n Defined as S n +αK n Here, let α = 0.5, K n Defined as C n The average weight of all included vertices; (3-3) According to three different situations, three different response methods are adopted: Case 1: If there is only one chain C1 adjacent to vertex v, and vertex v is the first access point, then directly compare the weight w of vertex v v The weight W1 of C1 is the same as that of C1. The one with smaller weight is on top. If access point v is not the first access point, and v is identified as A, C1 is on top of v. If v is identified as B, C1 is on the bottom of v. Case 2: If there are an even number of chains adjacent to vertex v, put the ones with larger weights at the outermost positions. When v is marked as B, the one with the largest weight is placed at the last position, the second largest is placed at the first position, and so on. When v is marked as A, the one with the largest weight is placed at the first position, the second largest is placed at the last position, and so on. Case 3: If there are an odd number of chains adjacent to vertex v, and the number is greater than 1, it can be regarded as a combination of cases 1 and 2. The first n-1 chains with the largest weights are sorted in the same way as in case 2. The chains with larger weights are placed in the outermost places. The chain C with the smallest weight is m The sorting of vertex v is similar to case 1, comparing the weight w of vertex v v With C m The weight W m The chain with the smallest weight is ranked at (n+1) / 2, and the chain with the largest weight is ranked at (n+1) / 2+1. However, if a special case occurs, the chain with the second smallest weight and the chain with the third smallest weight C a , C b The corresponding vertex w a 、w b Degree D a , D b , one of them is less than 3 and the other is greater than 3, put C m The order is placed on the chain with greater proximity; Thus, we get the chain {C1…C n } and the order relationship between vertex v; (3-4) For p i ∈{p1…p n }, if the corresponding C i The order is above v, so put p i As the next access point v' and marked as A, if its corresponding C i If the order is below v, mark it as B, and then repeat steps (3-2), (3-3), and (3-4) until the positional relationships of all vertices are determined; 4) Sorting between graphs: sort all graphs in a time unit, and get the order of vertices in a graph through the heuristic vertex sorting algorithm in the previous step. Then sort all graphs in a time unit so that the line crossing and line swing of the connecting lines representing entities of two adjacent time units are as small as possible. Because the vertices in the graph are sorted first, so that their relative positions are fixed, this problem belongs to minimizing the edge crossing of multi-level directed acyclic graphs, which is an NP-hard problem. A block-oriented DAG scanning algorithm is used. 5) Layout optimization: Given constraints, calculate the y-axis coordinates of the entity at different times, determine the objective function of the optimized layout, list the constraints, and obtain the second-order optimization equation. The layout optimization problem is essentially a second-order optimization problem. The accumulation of the square of the swing distance of each story line between adjacent time units is used as the objective function: And give the constraint function: y i,t =y i,t+1 ,if o(i,t)=o(i,t+1) (2) y k,t -y j,t =H,if o(k,t)+1=o(j,t)and Conj(t,k,j)=true (3) h<y k,t -y j,t <H,if o(k,t)+1=o(j,t)and Conj(t,k,j)=false (4) Where n represents the number of entities, T represents the number of time units, and y i,t represents the y-axis coordinate of entity i at time t, o(i,t) represents the ranking of entity i at time t, H and h are two constants for adjusting the gap, Conj(t,k,j) is used to indicate whether there is a connection between entity k and entity j at time t. If there is a connection between entity k and entity j at time t, then Conj(t,k,j) = true, otherwise Conj(t,k,j) = false; Formula (2) is an alignment constraint. If the order of entity i at time t is the same as that at time t+1, they are aligned, that is, their y coordinates are the same; Formulas (3) and (4) are order constraints and gap constraints. If the order of entity k is greater than that of entity j at time t, then the y coordinate of entity k must be greater than the y coordinate of entity j. If entity k and entity j are connected at time t, then the distance between them is H. If entity k and entity j are not connected at time t, the distance between them is between h and H. After calculation, the optimal layout solution was obtained. Finally, D3 tools were used to design a visual analysis system, which provides three types of user interactions: highlighting, moving, and displaying details.

2. The method for visual analysis of time series data based on triple extraction according to claim 1, characterized in that: In step 4), the process of the block-oriented DAG scanning algorithm is as follows: when sorting the entities of the first time unit, all entity weights are set to 1, and the heuristic vertex sorting algorithm is used to obtain the first time unit of each graph {G1...G n }, then for G i ∈[G1...G n ], define G i The weight is G i The average weight of all entities included in {G1...G n }Sort by weight from small to large; then it takes the order of the first time unit entity as the weight of the second time unit entity, and repeats this step until it reaches the last time unit; when the order of the last time unit is determined, it takes it as the weight of the second-to-last time unit and retrace, improving the sorting result by repeated scanning until the number of line crossings stabilizes or the number of iterations reaches a maximum.