Text event automatic map plotting optimization method and system

By extracting the spatiotemporal semantic element information in the event text and using the earth's discrete grid for gridding, automatic map drawing of text events is realized, which solves the problems of low manual drawing efficiency and difficulty in correlation in the existing technology, and provides Efficient visualization methods for historical geography.

CN118691708APending Publication Date: 2024-09-24Chinese People's Liberation Army Cyberspace Force Information Engineering University
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410797853.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The textual event map drawing process in the prior art relies on manual operations, which is inefficient and costly especially when faced with a large amount of complex and dynamic place name information, and it is difficult for traditional methods to effectively associate events in different documents.

Method used

By extracting the spatiotemporal semantic element information in the event text, using the earth's discrete grid to convert place names, longitude, latitude and spatial relationships into range grids, and gridding based on the natural language processing model, automatic plotting and visualization of the spatiotemporal elements of the event text are realized .

Benefits of technology

It realizes automated map drawing of text events, improves efficiency and accuracy, can effectively correlate different events, provides an automatic visualization solution in historical geography, and has been verified in experiments to be as accurate as manual plotting results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691708A
    Figure CN118691708A
Patent Text Reader

Abstract

The invention relates to the technical field of natural language graph information display, in particular to an automatic graph plotting optimization method and system for a text event, and the method comprises the steps: extracting time-space semantic element information related to a target event in an event text, and carrying out the arrangement and storage of the time-space semantic element information through employing a specified data structure format, thereby achieving the automatic graph plotting optimization of the target event. The spatio-temporal semantic element information comprises event subjects and spatio-temporal relationships of the event subjects; converting the obtained geographic name longitude and latitude of the target event and the spatial relationship in the element information into a range grid by using an earth discrete grid, and converting a grid result into a surface element or a point element according to a semantic text category, so as to determine the longitude and latitude information of the time-space element of the event text; and plotting a target event in the event text on a map according to the time-space element longitude and latitude information and the time-space semantic element information of the event text, and overlapping and displaying event plotting results with time-space intersection so as to visualize different time-space associated events. According to the method, the information in the text information is automatically extracted, different texts and different events can be quickly, efficiently and automatically associated to the grid, and each target event can be conveniently and visually expressed and displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language text and image information display, and in particular to a text event automatic map drawing optimization method and system. Background Art

[0002] Using geographic information to study history, culture, society, military and other issues has a good visualization effect. There are many research results of geography scholars at home and abroad. Taking the study of historical issues with geographic information as an example, the main method used is to mark people and things in historical documents on the map according to location information, and then connect them in chronological order to obtain trajectories. For example, terrain and cost surface analysis (CS) and minimum cost path analysis (LCPA) are used to determine the paths taken by three people in their travel records across the lake area of ​​country A. Through analysis, we can see the cognitive construction of geography in their respective works. For the visualization of military text events, three-dimensional models are often used to simulate battlefield changes. There is an augmented reality system developed in Unity-Vuforia, which uses three-dimensional objects and audio-visual resources to simulate war environments and create real war conflicts.

[0003] However, in the process of mapping textual events, manual mapping is mostly used. In situations where there are not many events, manual mapping can be used. However, when there are too many events to be mapped, the time and energy spent on manual mapping are particularly heavy. For example, historical military events are often associated with geographical locations in large quantities, which makes it very difficult for people to map them. This also leads to the production of many historical atlases. The cursor map work takes experts a long time. This is mainly because the complex, massive and dynamic place name information in historical military events, when the scope of place names is very wide and the geographical location represented by the place names is not familiar, relies on manual search and human brain to process, and the workload is too heavy. Moreover, many place names have multiple names in different periods, which brings more difficulties to manual annotation. Secondly, the use of spatial and temporal association of geographic information is conducive to discovering the historical events hidden behind. Traditional event description methods may be independent of each other, and it is difficult to find the connection between events from different documents. Moreover, due to the ambiguity of the text's description of time and location, it is difficult to associate multiple events. Especially for military events, which involve a large amount of time and location information, the requirements for efficiency and cost are more stringent. Summary of the invention

[0004] To this end, the present invention provides a text event automatic mapping optimization method and system, which automatically extracts information from text information, solves the ambiguity problem of large-scale text event mapping and the association of temporal and spatial information, and can automatically associate different texts and different events on a grid, facilitating the visual expression and display of each target event.

[0005] According to the design scheme provided by the present invention, on the one hand, a text event automatic map drawing optimization method is provided, comprising:

[0006] Extracting spatiotemporal semantic element information related to the target event from the event text, and arranging and storing the spatiotemporal semantic element information using a specified data structure format, wherein the spatiotemporal semantic element information includes an event subject and a spatiotemporal relationship between the event subjects;

[0007] The spatial relationship in the longitude and latitude of the target event place name and feature information is converted into a range grid using the earth discrete grid, and the gridded result is converted into a surface feature or a point feature according to the semantic text category, thereby determining the longitude and latitude information of the spatiotemporal elements of the event text;

[0008] The target events in the event text are plotted on the map based on the latitude and longitude information of the spatiotemporal elements and the spatiotemporal semantic elements of the event text, and the plotting results of events with spatiotemporal intersections are superimposed and displayed to visualize different events related in time and space.

[0009] As the text event automatic map drawing optimization method of the present invention, further, extracting the spatiotemporal semantic element information related to the target event in the event text includes:

[0010] Setting the entity type related to the target event, wherein the entity type at least includes subject type, subject quantity, event subject, time, place name, spatial topology, spatial direction, spatial distance, event semantic type and event semantic additional direction value;

[0011] According to the entity types related to the target event, the natural language processing model is used to extract the spatiotemporal semantic element information related to the target event in the event text.

[0012] As the text event automatic map drawing optimization method of the present invention, further, the spatial relationship in the acquired target event place name longitude and latitude and element information is converted into a range grid using the earth discrete grid, including:

[0013] Use the place name database in the map service to convert the place names in the spatiotemporal semantic feature information into longitude and latitude, and use the convenient range of the location of the place name in the map service to represent the longitude and latitude range of the place name in the feature information;

[0014] Use a collection of square grids to quantify the latitude and longitude ranges of place names.

[0015] As the text event automatic map drawing optimization method of the present invention, further, according to the semantic text category, the spatial relationship place name position is gridded into surface elements or point elements and the event text spatiotemporal element latitude and longitude information is obtained, including:

[0016] The square discrete grid is used as a structured semantic expression model of geographic space, and the geographic location of the entity in the target event is obtained based on the structured modeling method. The structured modeling method quantifies the fuzzy concept of spatial semantics based on the semantics formed by spatial relationship semantics and its combination, and projects the corresponding uncertain semantic description into the geographic space, and determines the corresponding entity geographic location in the target event through multi-sentence spatial semantics.

[0017] For the additional direction entities of event semantics in the feature information, the direction is marked using the arrow starting point within the grid area corresponding to the entity's geographic location in the target event.

[0018] As the text event automatic mapping optimization method of the present invention, further, obtaining the geographic location of the entity in the target event based on the structured modeling method includes:

[0019] The spatial distance convolution kernel size is set according to the grid level of the gridded longitude and latitude range of the place name and the spatial distance convolution kernel is generated;

[0020] Using the spatial relationship quantized convolution template to generate spatial direction convolution kernels respectively, the spatial direction convolution kernels include multiple directions;

[0021] According to the semantic order of spatial relations in the spatiotemporal semantic element information, the convolution kernel is convolved with the gridded result of the place name to obtain the gridded result of spatial range modeling;

[0022] The modeling gridding results are converted into longitude and latitude to obtain the geographic location of the event text spatiotemporal semantic element information entity.

[0023] As the automatic map drawing optimization method of the text event of the present invention, further, the target event in the event text is plotted on the map according to the latitude and longitude information of the spatiotemporal elements of the event text and the spatiotemporal semantic element information, including:

[0024] Setting plotting parameters, including a plotting purpose statement and plotting colors and icon styles for each entity type;

[0025] The target event is plotted on the map based on the plotting parameters and the latitude and longitude information.

[0026] As the text event automatic map drawing optimization method of the present invention, further, the event drawing results with time intersection are superimposed and displayed, including:

[0027] Use different marking colors to set the marking of different event texts on the map; overlay and display the event markings with overlapping time;

[0028] If the spatial positions of different events are in the same spatial grid, it is determined that the current different events have a spatiotemporal association, and the different events with a spatiotemporal association are colored and displayed at the intersection of the map, and a list of intersection events is returned.

[0029] In another aspect, the present invention further provides a text event automatic map drawing optimization system, comprising: an information extraction module, a spatiotemporal semantic gridding module and an event mapping module, wherein:

[0030] An information extraction module is used to extract the spatiotemporal semantic element information related to the target event in the event text, and arrange and store the spatiotemporal semantic element information using a specified data structure format, wherein the spatiotemporal semantic element information includes the event subject and the spatiotemporal relationship of the event subject;

[0031] The spatiotemporal semantic gridding module is used to grid model the spatiotemporal relationship of the extracted event subjects using the earth's discrete grid, grid the spatial relationship place name location into surface elements or point elements according to the semantic text category, and convert the corresponding grid results into the event text spatiotemporal element latitude and longitude information;

[0032] The event mapping module is used to map the target events in the event text on the map based on the latitude and longitude information of the spatiotemporal elements and the spatiotemporal semantic elements of the event text, and to overlay and display the mapping results of events with time and space intersections to visualize different events related in time and space.

[0033] Beneficial effects of the present invention:

[0034] The present invention extracts the spatiotemporal semantic element information related to the target event in the event text, converts the acquired spatial relationship in the latitude and longitude of the target event place name and the element information into a range grid by using the earth discrete grid, and converts the gridding result into a surface element or a point element according to the semantic text category, so as to determine the latitude and longitude information of the spatiotemporal elements of the event text; plots the target event in the event text on the map according to the latitude and longitude information of the spatiotemporal elements and the spatiotemporal semantic element information of the event text, and superimposes and displays the plotting results of events with spatiotemporal intersections, so as to visualize different events associated with spatiotemporal correlation; on the basis of natural language processing, a structured semantic expression model is established by using the spatiotemporal grid, which is not only suitable for the visualization of ubiquitous natural language, but also provides a new idea for the discovery and positioning of events, and also provides a new method for the automatic visualization of historical events in historical geography, and it is verified through experimental data that the plotting results of the scheme of this case are comparable to the accuracy of the manual plotting results, and has a good application prospect in the field of text event visualization. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a schematic diagram of an optimization process for automatically mapping text events in an embodiment;

[0036] Figure 2 It is a schematic diagram of the text event map drawing and spatiotemporal association algorithm framework in the embodiment;

[0037] Figure 3The NLP extraction results and the relationship shown in the embodiment are shown as follows;

[0038] Figure 4 This is a schematic diagram of the data structure format in the embodiment;

[0039] Figure 5 This is a schematic diagram of the modeling process of spatiotemporal semantic classification of specific text in the embodiment;

[0040] Figure 6 This is a schematic diagram of the grid modeling results of the combat action deployment in the embodiment;

[0041] Figure 7 This is a schematic diagram of the grid modeling results for describing combat action information in the embodiment;

[0042] Figure 8 It is a schematic diagram of the combat force deployment description and directional attack grid modeling results in the embodiment;

[0043] Fig. 9 It is a schematic diagram of the combat action information description and directional attack grid modeling results in the embodiment;

[0044] Fig.10 It is a schematic diagram of the process of drawing an event map in the embodiment. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of the present invention clearer and more understandable, the present invention is further described in detail below in conjunction with the accompanying drawings and technical solutions.

[0046] To solve the problem of large-scale text event mapping and temporal and spatial correlation, the present invention embodiment refers to Figure 1 As shown, a method for optimizing automatic map drawing of text events is provided, comprising:

[0047] S101, extracting spatiotemporal semantic element information related to a target event from an event text, and arranging and storing the spatiotemporal semantic element information using a specified data structure format, wherein the spatiotemporal semantic element information includes an event subject and a spatiotemporal relationship between event subjects.

[0048] See also Figure 2 As shown, this solution can establish a structured semantic expression model based on natural language processing methods using the spatiotemporal grid approach to achieve automated geographic information mapping of text semantics and spatiotemporal correlation events. The overall solution consists of three parts: data structure and text extraction of spatiotemporal semantic expression of events, text spatiotemporal semantic classification modeling, and event spatiotemporal correlation.

[0049] Specifically, in text extraction, the target event-related entity type can be set first, and the entity type includes at least subject type, subject number, event subject, time, place name, spatial topology, spatial direction, spatial distance, event semantic type and event semantic additional direction value; based on the target event-related entity type and using the natural language processing model, the spatiotemporal semantic element information related to the target event in the event text is extracted.

[0050] In order to structure the information as completely as possible, taking military text as an example, by summarizing the characteristics of event text, 13 types of entity types are needed to more completely express the spatiotemporal semantics of military events, namely subject belligerent (Combatant), subject nation (nationName), subject number (tObjName_Num), subject type (tObjName_Type), event subject (tObjName), time (tRel), purpose (Aim), place name (Loc), spatial relationship_topology (sRel_1), spatial relationship_direction (sRel_2), spatial relationship_distance (sRel_3), semantic type (SemanticType), semantic additional direction value (SemanticAdd). Among them, the first 11 entity types can be extracted using a language model. The specific manifestation of these 11 entity types in the text is taken as an example of the text "The 21st Army Group, an army unit of our country A, passed 2 miles east of the Siegfried Line in early October 1994", and the relationship between the entities is shown, such as Figure 3 shown.

[0051] Figure 3 In the example, the dotted box represents the entity type and the corresponding example in the text, and the arrow represents the relationship between entities. For example, if the arrow points from the subject belligerent to the event subject, it can be considered that the subject belligerent is bundled with the subject and exists as a sub-item of the event subject. Figure 3The 11 entity types that need to be extracted by the model are shown in the figure, mainly including subject war party (our side), subject country (country A), subject quantity (a team), subject model (army), event subject (21st Army Group), time (early October 1994), purpose (passing by), place name (Siegfried Line), spatial direction (east side), spatial distance (2 miles), and spatial topology (nearby). The arrows in the figure indicate the relationship between entity types. As shown in the figure, the four entities of "subject war party", "subject country", "subject quantity", and "subject model" belong to the "event subject" of the text; "purpose" and "time" belong to "place name"; the three spatial relationships of "spatial topology", "spatial direction", and "spatial distance" belong to "place name"; and finally "place name" and "event subject" are bundled together and belong to the subject. However, even if the relationship is extracted, for the entity type of spatial relationship (topology, direction, distance) that may have multiple semantic combinations, the order of spatial relationship needs to be further refined.

[0052] Therefore, after collecting and reading a large amount of historical military campaign text data, it can be found that with only these 11 entity types, there are situations where combat force deployment and combat action information have the same spatial semantics, but the combat situations are completely different. Therefore, two entities, event semantic type (SemanticType) and event semantic additional direction value (SemanticAdd), can be added to classify the possible spatial relationship combinations as follows:

[0053] 1) Description of combat force deployment: The text sentence mainly describes the distribution of subject entities such as troops, aircraft, and ships before the battle begins. It is a specific description of the location of the subject entity.

[0054] 2) Combat force deployment + directional attack: Based on category 1, add the approximate attack direction or action direction of the subject such as army, aircraft, ships, etc. at the end.

[0055] 3) Description of combat action information: The text sentence mainly describes the process of the subject entity such as the army, aircraft, and ships in different battlefields during the battle, or going to different locations to perform tasks. It is a specific description of the trajectory of the subject entity.

[0056] 4) Description of combat action information + directional attack: Based on Category 3, add the approximate attack direction or action direction of the subject such as troops, aircraft, ships, etc. at the end.

[0057] The value range of the semantic type (SemanticType) entity attribute is 1 to 4, which respectively indicates which of the four categories the input military text type belongs to. In actual processing, categories one and two are combined as combat force deployment categories, and categories three and four are combined as combat action information categories. It can be observed that category two only adds one direction value to the end of category one, and category four also only adds one direction value to the end of category three. Therefore, the semantic additional direction value (SemanticAdd) entity attribute can be used to indicate the direction value added to categories two and four. Semantic types and semantic additional direction values ​​are also classified and extracted through the model.

[0058] In order to meet the needs of automation, a special data structure is designed for these 13 entity categories in the text. The text input is a military event article, and the output structured text information can be Figure 4 The data structure arrangement shown can be saved in Json format in order to reflect the relationship between entities and facilitate the program to batch process the input text.

[0059] For the input campaign event text, we need to extract the 13 types of entities to the greatest extent possible. When information is missing or the entity is empty in the text sentence, some entities are assigned "NULL" values. However, for the event sentence, at least the subject entity and the place name entity must be present to plot the event on the map. For these 13 entity types, we should try our best to meet the functions of entity disambiguation, reference resolution, and relationship extraction. The specific extraction process can be exemplified as follows:

[0060] tObjName(Event Subject): Extract the subject that appears in the text. It should have entity disambiguation, reference resolution and subject unique identification.

[0061] Subject unique identification: For different subjects in the text but the same name, the extracted subjects need to automatically add an identification to distinguish the two. Example: Country A has two divisions participating in this war, one of which is defending the Ruweisat Ridge and the other is stationed on the Alam Haifa Ridge.

[0062] Combatant: Summarizes the combatant in the campaign text based on the content of the input text. Usually, it has "our side" and "enemy side". If the text information is insufficient and cannot be summarized, combatant is NULL.

[0063] nationName: Extracts the country to which the subject belongs in the text. Entity disambiguation should be available. If there is no country in the text, the country is NULL.

[0064] tObjName_Num (subject quantity): extracts the number of descriptive subjects appearing in the text. Generally refers to the number of aircraft, ships, etc. If there is no quantity in the text, the quantity is NULL.

[0065] tObjName_Type (Subject Type): Extracts the description of the subject category in the text. Generally refers to the category to which the subject belongs: army, aircraft, ship, tank, etc. If there is no subject category in the text, the category is NULL.

[0066] Loc (place name): Extract place names related to the subject that appear in the text. It should have entity disambiguation and reference resolution.

[0067] The following situations may exist for place names: 1. "Passing by the Cayman Islands northwest of Jamaica", the address referred to by the northwest of Jamaica is repeated with the Cayman Islands (the exact place name), so the more accurate Cayman Islands should be selected for extraction; 2. "Passing by the islands northwest of Jamaica", "island" is just a pronoun (not the exact place name), so "northwest of Jamaica" needs to be extracted. When there are repeated place names referring to the same geographical location, the exact place name (the place name that can be searched on the map) should be extracted first.

[0068] Place name format: The format of the extracted place names should try to meet the standard format of xx country xx province xx city xx county. For example, "Zhengzhou, China" should be extracted as "Zhengzhou, Henan Province, China".

[0069] Aim: Extracts the verbs of purpose related to place names that appear in the text. Examples are: "attack", "bomb", "advance", "station", "locate", etc. If there is no description of the purpose action in the text, the purpose is NULL.

[0070] tRel (time): extract the time associated with the place name in the text. Bind the time and the place name by attributes. Fuzzy times such as "early morning", "morning", "evening", "half day" are still extracted and associated with the specific time that appeared in the previous text. If there is no time in the text, the time is NULL.

[0071] sRel_1 (Spatial Relationship_Topology): Extracts topological terms related to place names that appear in the text. When the "type" of sRel is 1, it means that the current spatial relationship is topological.

[0072] The topological relationship is used to describe the spatial topological relationship between the target object and the reference object. The number identifying the topological relationship is used to identify the type of the topological relationship. The corresponding relationship is shown in Table 1:

[0073] Table 1 Specific description of spatial topological relationship

[0074]

[0075] When the location of an object is directly recorded using a place name, it is considered to have an "equal" topological relationship with the location of the place name, and the corresponding topological relationship value is 8.

[0076] sRel_2 (Spatial Relationship_Direction): Extracts direction words related to place names that appear in the text. Direction supplement is required. When the "type" of sRel is 2, it means that the current spatial relationship is direction.

[0077] Direction supplement: Take the following sentence as an example: "To the north of the 6th Army Group and between the Allies is the 12th Army Group." The subject "12th Army Group" needs to automatically supplement the direction information of being located to the south of the Allies based on the information between the two. For the information "between" two locations that appear in the text, the direction information needs to be automatically supplemented, so as to replace the information "between" with two relative directions such as east, west or south, north.

[0078] Secondly, the "12th Army Group" is located "to the north of the 6th Army Group". The 6th Army Group is located at the southern end of the Siegfried Line. The final extraction result shows that "the 12th Army Group is located to the north of the southern end of the Siegfried Line".

[0079] Direction relationship uses radians to describe the spatial direction relationship between two objects. For fuzzy direction relationships such as "due east" and "north", they need to be mapped to radians of corresponding directions. The radian takes due east as the polar axis and counterclockwise as the positive direction. For example, due north corresponds to 1.571.

[0080] sRel_3 (Spatial Relationship_Distance): Extracts distance terms related to place names in the text. Regardless of whether the unit of measurement in the text is miles or nautical miles, it is uniformly converted to kilometers (km). When the "type" of sRel is 3, it means that the current spatial relationship is distance.

[0081] SemanticType: Classify the semantics of the extracted text. The value range is 1 to 4.

[0082] SemanticAdd (semantic additional direction value): has the same value as sRel_2 (spatial relationship_direction), and is used to store the additional attack directions added to categories 2 and 4 in text classification.

[0083] The above are the specific requirements for model structuring. From the above detailed description, it can be seen that the chatGPT4 model proposed by OpenAI can be used to extract key entity information and the relationship between entities. In order to reflect the linear combination of spatial relationships, topology, direction, and distance are uniformly divided into spatial relationships. It is necessary to arrange them in order according to the specific topology, direction, and distance in the text semantics. After extracting the spatial relationship, the spatial relationship needs to be converted into a specific "value". The "value" value corresponding to the topological relationship is 1 to 8, corresponding to the 8 topological relationships in Table 1; the "value" value corresponding to the direction relationship ranges from 0 to 6.2832, corresponding to the range of the spatial direction converted to a specific radian value; the "value" value corresponding to the distance relationship is a specific number of kilometers, and the value range is greater than or equal to 0.

[0084] S102, using the earth discrete grid to convert the acquired longitude and latitude of the target event place name and the spatial relationship in the element information into a range grid, and according to the semantic text category, the gridding result is converted into a surface element or a point element, thereby determining the longitude and latitude information of the event text spatiotemporal elements.

[0085] Specifically, the place name database in the map service can be used to convert the place names in the spatiotemporal semantic element information into longitude and latitude, and the convenient range of the location of the place names in the map service can be used to represent the longitude and latitude range of the place names in the element information; the longitude and latitude range of the place names can be quantified using a square grid set.

[0086] After obtaining the required entity information and its relationship from the text, the structured semantic expression model based on the earth's discrete grid can be used to obtain the fuzzy spatial relationship position of the event subject in the structured text relative to the place name through grid quantization, and the location information can be gridded into two types of surface elements (range) or point elements (determined points) according to the semantic text category. For the category text with additional attack directions, the arrow is modeled separately at the end.

[0087] The square discrete grid can be used as a structured semantic expression model of geographic space, and the geographic location of the entity in the target event can be obtained based on the structured modeling method. Among them, the structured modeling method quantifies the fuzzy concept of spatial semantics based on the semantics formed by spatial relationship semantics and their combination, and projects the corresponding uncertain semantic description into the geographic space. The geographic location of the corresponding entity in the target event is determined through multi-sentence spatial semantics; for the additional direction entity of the event semantics in the feature information, the direction is marked with the arrow starting point within the grid area of ​​the corresponding entity geographic location in the target event.

[0088] Among them, based on the structured modeling method, the spatial distance convolution kernel size is set according to the grid level of the gridded longitude and latitude range of the place name, and the spatial distance convolution kernel is generated; the spatial direction convolution kernel is generated respectively by using the spatial relationship quantization convolution template, and the spatial direction convolution kernel includes multiple directions; according to the spatial relationship semantic order in the spatiotemporal semantic element information, the convolution kernel is convolved with the place name gridding result to obtain the spatial range modeling gridding result; the modeling gridding result is converted into longitude and latitude to obtain the entity geographic location of the spatiotemporal semantic element information of the event text.

[0089] The specific processing flow is as follows: Figure 5 As shown. After text extraction, the spatiotemporal semantic information of the event can be obtained. According to the value of "semantic type" in the data structure, the first category of combat force deployment description and the third category of combat action information description are classified as description texts. By calling the place name database, the "place name" is converted into a specific longitude and latitude range, and then the description text is modeled for spatial range. If the text belongs to the first category of combat force deployment description, the spatial range modeling result is directly output, and the result is a circle of longitude and latitude range, indicating the maximum probability area range of the event subject based on spatiotemporal semantics. If the text belongs to the third category of combat action information description, further modeling and positioning is performed on the basis of the spatial range modeling to obtain specific longitude and latitude point positioning results, indicating the maximum probability trajectory point of the event subject based on spatiotemporal semantics. The second and fourth categories of combat force deployment description + directional attack and combat action information description + directional attack are classified as description + attack direction texts.

[0090] The modeling process of the descriptive text is the same as before. The additional attack direction is modeled separately to obtain the modeling results. Finally, the two parts of the modeling results are merged and output.

[0091] Specifically, in the modeling of descriptive text, you first need to use the place name database in the map service to convert the place names in the text into longitude and latitude ranges. You can use the boundary range of the location of the place name in the map service to represent the place name range. For place names with a smaller geographical range, use the longitude and latitude points of the center of the place name to represent the longitude and latitude range of the place name. For place names such as coastlines and straits, the longitude and latitude lines of the center of the place name are used to represent the longitude and latitude range of the place name. Descriptive texts are divided into two categories: descriptions of combat force deployment and descriptions of combat action information. Both types of texts need to be modeled in spatial scope first. The area with the maximum probability of the event subject appearing relative to the place name is combined with the modeling method of structured semantic quantization convolution, and the following steps are taken for processing:

[0092] 1) The longitude and latitude range of place names is gridded. A square grid set is selected to replace the longitude and latitude range. The grid level can be selected. The higher the level, the finer the square grid division.

[0093] 2) Generate the spatial distance convolution kernel. According to the grid level when the longitude and latitude range of the place name is gridded, the convolution size of the distance is obtained according to formula (1). The membership (weight) of the edge of the convolution kernel is 1, and the rest are 0.

[0094]

[0095] Where L represents the size of the distance convolution kernel, the actual spatial distance represents the actual distance between the event subject extracted from the text and the place name, and the actual distance of a single grid represents the actual scale distance corresponding to a single grid at the selected grid level.

[0096] 3) Generate spatial directional convolution kernels and combine them with the spatial relationship quantization convolution template (SPQCT) to generate spatial directional convolution templates in eight directions: east, west, south, north, northeast, northwest, southwest, and southeast.

[0097] 4) Spatial topological convolution kernel generation: when there is distance, the kernel size is the same as the distance convolution kernel size; when there is no distance relationship, an odd integer multiple of the inner diameter of the circumscribed circle after gridding of the place name is taken, with the center point being 1 and the rest being 0.

[0098] 5) Spatial range modeling: According to the order of spatial semantics in the text extraction result data structure, the corresponding convolution kernel is used to convolve with the place name gridding result, and the intersection is calculated according to the order of the convolution results. The final grid range is the modeling result.

[0099] Each grid in the final spatial range modeling has a membership attribute, which can be output in full or after setting a membership threshold. When the text category is a description of combat force deployment, the gridding result of the modeling only needs to be converted into longitude and latitude to obtain the longitude and latitude range of the event subject relative to the place name.

[0100] When the text category is a description of combat action information, it is necessary to further locate the spatial modeling results to form the final positioning point. The result of spatial range modeling is a continuous grid area with membership, and the modeling result can be located using formula (2). After positioning, a certain grid is obtained, and the longitude and latitude converted from the center point of the grid represent the trajectory point with the maximum probability of the event subject appearing based on spatiotemporal semantics.

[0101]

[0102] Where I represents the row number of the grid after positioning, J represents the column number of the grid after positioning, N is the number of grids with membership greater than 0 in the result of spatial range modeling, i n is the row number of the nth grid, kn is the membership (weight) of the nth grid, j n is the column number of the nth grid.

[0103] like Figure 6 As shown in the figure, the text modeling results of the description of combat force deployment are shown. The top of the figure is a sample of the modeled text input, and the spatial information and place names are highlighted in red. The right side of the figure is the place names involved in the text and the dotted arrows point to the geographical locations in the figure. The final modeling result of the event subject "Country A's Eighth Army" is as follows Figure 6 The blue grid part of the grid shows that the darker the color, the greater the membership of the grid, and the higher the probability of the subject in this grid. The value range of the membership is [0,1].

[0104] Figure 7 The text modeling results of the combat action information description are shown. Since the grid modeling result of the combat action information is a fixed grid, the grid trajectory points can be magnified fifteen times and displayed on Figure 7 The four grids in the figure represent the trajectory of the event subject "USS Alabama".

[0105] Description + attack direction text is also divided into two categories, combat force deployment description + directional attack and combat action information description + directional attack. The spatial range modeling result of the combat force deployment description is a grid area, and the drawing of the arrow requires a starting point and an end point, which are obtained by the following two steps: 1) Determine the end point of the arrow: Based on the spatial range modeling result of the combat force deployment description, perform spatial direction convolution based on the spatial value of the additional direction to obtain a new grid modeling result. Model and locate the new grid modeling result to obtain a certain grid point, and convert the longitude and latitude points into longitude and latitude as the end point of the arrow. 2) Determine the starting point of the arrow: Based on the spatial range modeling result of the combat force deployment description, directly perform modeling and locate to obtain a certain grid point, and convert the longitude and latitude points into longitude and latitude as the starting point of the arrow.

[0106] The modeling result of the combat action information description is a certain grid point, which can be used as the starting point of the arrow; taking the grid point of the starting point of the arrow as the reference, the spatial direction convolution is performed according to the spatial value of the additional direction to obtain a new grid point modeling result, and the new grid point can be used as the end point of the arrow. The two grid points converted into longitude and latitude are the starting and end values ​​of the additional direction in the combat action information description + directional attack category.

[0107] Figure 8 The results and Figure 6 Similarly, the text modeling results of the combat force deployment description + directional attack are displayed. Figure 8From the input text, we know that the starting point of the directional attack of the event subject "Rommel's armored forces" ("his armored forces") is "the gap" and the end point is "the gap to the south". Therefore, the figure not only points out the two place names with dotted arrows, but also points out the starting point and end point of the directional attack arrow visualization.

[0108] Fig. 9 The results and Figure 7 Similarly, the text modeling results of combat action information description + directional attack are shown. Fig. 9 From the input text, we know that the starting point of the directional attack of the event subject "Akagi" is "Hashima Port" and the end point is "South". Therefore, the starting point and end point of the additional directional attack are indicated by dotted arrows in the figure.

[0109] S103, plotting the target events in the event text on the map according to the latitude and longitude information of the spatiotemporal elements and the spatiotemporal semantic elements of the event text, and superimposing and displaying the plotting results of events with spatiotemporal intersections, so as to visualize different events associated with spatiotemporal correlation.

[0110] Specifically, the mapping parameters may be set first, including a mapping purpose statement and mapping colors and icon styles for each entity type; and the target event may be mapped on the map based on the mapping parameters and in accordance with the latitude and longitude information.

[0111] Use different marking colors to set the marking of different event texts on the map; superimpose the markings of events with time intersections; if the spatial positions of different events are in the same spatial grid, it is determined that the current different events have a spatiotemporal association, and the different events with spatiotemporal associations are colored and displayed at the intersection of the map, and the intersection event list is returned.

[0112] like Fig.10 As shown in the figure, the dotted box represents the entity type extracted from the data structure, the solid box represents the processing flow, the arrow represents the input of the processing flow, and the "longitude and latitude range of space-time surface elements" and "longitude and latitude points of space-time point elements" are the output results of space-time semantic classification modeling. Fig.10 As shown, after obtaining the "subject warring party", "subject country", "subject quantity", "subject type", "event subject" and "purpose" of the event from the data structure of the event spatiotemporal semantic expression, the following steps are performed:

[0113] 1. Plot color selection: The plot color is differentiated by the subject warring party, for example: our party is blue and the enemy is red. When the subject warring party is empty, the subject country is used as the basis, and different countries use different plot colors.

[0114] 2. Icon style selection: Select the icon to be drawn according to the event subject and subject type, then increase the number of icons according to the number of subjects (up to 5 repetitions), and finally determine the icon style.

[0115] 3. Statement of plotting purpose: The purpose is displayed in text form next to the plotted trajectory arrow or within the area.

[0116] 4. Determination of the marking icon: After the marking color selection, icon style selection, and marking purpose statement are determined, the marking icon is also determined.

[0117] 5. Display of plotting results: Different text types will produce different results for structured semantic text positioning. When the text positioning output result is a latitude and longitude range, the icon will hover on the map at the center of the latitude and longitude range within the time range; when the text positioning output result is a latitude and longitude point, the icon will move on the map in the order of the latitude and longitude points within the time range.

[0118] Existing research on the implementation of geographic spatial knowledge services is mainly concentrated at the theoretical level, so achieving the transformation and upgrading from spatiotemporal data services to spatiotemporal knowledge services has become a new challenge facing surveying and mapping work in the new era.

[0119] After you have the ability to plot events on the map, you can try to plot events from different documents on the map with different colors. First, perform structured text extraction, spatiotemporal semantic classification modeling, and plot them on the map for events from different documents at the same time. To reflect that the events come from different documents, the plotting colors are mainly to distinguish the sources, for example: Document A is all red, and Document B is all blue. Secondly, the plotting results of events with time intersections are superimposed and displayed, and spatial grid division is performed. If the spatial positions of different events are in the same grid, it is considered that different events have spatiotemporal associations. Finally, the intersection points of different events with spatiotemporal associations are highlighted on the map and the list of intersection events is returned.

[0120] If there is only one event in a certain time range, the map grid is not divided. When there are multiple events in a certain time range, the map grid can be divided. It can be considered that when the two points closest to the visualization results of two events are in the same grid range, the two events have spatiotemporal correlation characteristics (the grid level can be selected). The two points will be highlighted on the map and the spatiotemporal correlation events will be extracted into the return list. The return list is as follows:

[0121] Table 2 Example of a list of spatiotemporal correlation events

[0122]

[0123]

[0124] The table above shows the structured results extracted by the model, the original text of the event, and the color of the plot on the map. When the plot colors are the same, it means that events from the same document have spatiotemporal correlation results. When the plot colors are different, it means that events from different documents have spatiotemporal correlation results.

[0125] Furthermore, based on the above method, an embodiment of the present invention also provides a text event automatic map drawing optimization system, comprising: an information extraction module, a spatiotemporal semantic gridding module and an event mapping module, wherein:

[0126] An information extraction module is used to extract the spatiotemporal semantic element information related to the target event in the event text, and arrange and store the spatiotemporal semantic element information using a specified data structure format, wherein the spatiotemporal semantic element information includes the event subject and the spatiotemporal relationship of the event subject;

[0127] The spatiotemporal semantic gridding module is used to grid model the spatiotemporal relationship of the extracted event subjects using the earth's discrete grid, grid the spatial relationship place name location into surface elements or point elements according to the semantic text category, and convert the corresponding grid results into the event text spatiotemporal element latitude and longitude information;

[0128] The event mapping module is used to map the target events in the event text on the map based on the latitude and longitude information of the spatiotemporal elements and the spatiotemporal semantic elements of the event text, and to overlay and display the mapping results of events with time and space intersections to visualize different events related in time and space.

[0129] Unless otherwise specifically stated, the relative steps, numerical expressions and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present invention.

[0130] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0131] The units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation is not considered to be beyond the scope of the present invention.

[0132] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits, and accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of software function modules. The present invention is not limited to any specific form of combination of hardware and software.

[0133] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A text event automatic map drawing optimization method, characterized in that: Include: Extracting spatiotemporal semantic element information related to the target event from the event text, and arranging and storing the spatiotemporal semantic element information using a specified data structure format, wherein the spatiotemporal semantic element information includes an event subject and a spatiotemporal relationship between the event subjects; The spatial relationship in the longitude and latitude of the target event place name and feature information is converted into a range grid using the earth discrete grid, the gridded result is converted into a surface feature or a point feature according to the semantic text category, and the longitude and latitude information of the event text spatiotemporal elements is determined; The target events in the event text are plotted on the map based on the latitude and longitude information of the spatiotemporal elements and the spatiotemporal semantic elements of the event text, and the plotting results of events with spatiotemporal intersections are superimposed and displayed to visualize different events related in time and space.

2. The text event automatic map drawing optimization method according to claim 1, characterized in that: Extract the spatiotemporal semantic elements related to the target event in the event text, including: Setting the entity type related to the target event, wherein the entity type at least includes subject type, subject quantity, event subject, time, place name, spatial topology, spatial direction, spatial distance, event semantic type and event semantic additional direction value; According to the entity types related to the target event, the natural language processing model is used to extract the spatiotemporal semantic element information related to the target event in the event text.

3. The text event automatic map drawing optimization method according to claim 1, characterized in that: The spatial relationship in the acquired target event place name longitude and latitude and feature information is converted into a range grid using the earth discrete grid, including: Use the place name database in the map service to convert the place names in the spatiotemporal semantic feature information into longitude and latitude, and use the convenient range of the location of the place name in the map service to represent the longitude and latitude range of the place name in the feature information; Use a collection of square grids to quantify the latitude and longitude ranges of place names.

4. The text event automatic map drawing optimization method according to claim 1 or 3, characterized in that: According to the semantic text category, the spatial relationship place name location is gridded into surface features or point features and the latitude and longitude information of the event text spatiotemporal features is obtained, including: The square discrete grid is used as a structured semantic expression model of geographic space, and the geographic location of the entity in the target event is obtained based on the structured modeling method. The structured modeling method quantifies the fuzzy concept of spatial semantics based on the semantics formed by spatial relationship semantics and its combination, and projects the corresponding uncertain semantic description into the geographic space, and determines the corresponding entity geographic location in the target event through multi-sentence spatial semantics. For the additional direction entities of event semantics in the feature information, the direction is marked using the arrow starting point within the grid area corresponding to the entity's geographic location in the target event.

5. The text event automatic map drawing optimization method according to claim 4, characterized in that: Obtain the geographic location of entities in the target event based on a structured modeling method, including: The spatial distance convolution kernel size is set according to the grid level of the gridded longitude and latitude range of the place name and the spatial distance convolution kernel is generated; Using the spatial relationship quantized convolution template to generate spatial direction convolution kernels respectively, the spatial direction convolution kernels include multiple directions; According to the semantic order of spatial relations in the spatiotemporal semantic element information, the convolution kernel is convolved with the gridded result of the place name to obtain the gridded result of spatial range modeling; The modeling gridding results are converted into longitude and latitude to obtain the geographic location of the event text spatiotemporal semantic element information entity.

6. The text event automatic map drawing optimization method according to claim 1, characterized in that: The target events in the event text are plotted on the map based on the latitude and longitude information of the event text's spatiotemporal elements and the spatiotemporal semantic elements, including: Setting plotting parameters, including a plotting purpose statement and plotting colors and icon styles for each entity type; The target event is plotted on the map based on the plotting parameters and the latitude and longitude information.

7. The text event automatic map drawing optimization method according to claim 1, characterized in that: Overlay and display the event plotting results with time-space intersection, including: Use different marking colors to set the marking of different event texts on the map; overlay and display the event markings with overlapping time; If the spatial positions of different events are in the same spatial grid, it is determined that the current different events have a spatiotemporal association, and the different events with a spatiotemporal association are colored and displayed at the intersection of the map, and a list of intersection events is returned.

8. A text event automatic map drawing optimization system, characterized in that: It includes: information extraction module, spatiotemporal semantic gridding module and event mapping module, among which, An information extraction module is used to extract the spatiotemporal semantic element information related to the target event in the event text, and arrange and store the spatiotemporal semantic element information using a specified data structure format, wherein the spatiotemporal semantic element information includes the event subject and the spatiotemporal relationship of the event subject; The spatiotemporal semantic gridding module is used to grid model the spatiotemporal relationship of the extracted event subjects using the earth's discrete grid, grid the spatial relationship place name location into surface elements or point elements according to the semantic text category, and convert the corresponding grid results into the event text spatiotemporal element latitude and longitude information; The event mapping module is used to map the target events in the event text on the map based on the latitude and longitude information of the spatiotemporal elements and the spatiotemporal semantic elements of the event text, and to overlay and display the mapping results of events with time and space intersections to visualize different events related in time and space.

9. An electronic device, characterized in that: include: at least one processor, and a memory coupled to the at least one processor; The memory stores a computer program, and the computer program can be executed by the at least one processor to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program. When the computer program is executed, the method according to any one of claims 1 to 7 can be implemented.

Citation Information

Cited By

  • Major language model-based map plotting method, apparatus and device, and medium

    CN120104716A

  • Map drawing method, device, equipment and medium based on large language model

    CN120104716B

  • Map construction method and system based on judicial case spatio-temporal data

    CN120892493A