Information extraction and structured processing method and related device for forensic oral record

The Transformer model and large language model process forensic oral audio files, combined with filter preprocessing, and construct a structured database, solving the problems of low efficiency and large errors in forensic oral recording processing, and achieving the accuracy and efficiency of information extraction.

CN119003685APending Publication Date: 2024-11-22XI AN JIAOTONG UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410992223.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the prior art, the processing of forensic oral records relies on manual operations, is inefficient and prone to omissions and errors.

Method used

The Transformer model and large language model are used to conduct text transcription and key information extraction of forensic oral audio files, and a structured database is built, and audio preprocessing is used to improve the signal-to-noise ratio by using the minimum mean square filter or the recursive least square filter.

Benefits of technology

It realizes the automated processing of oral recording information, ensures the accuracy and completeness of information extraction, facilitates subsequent query and analysis, and improves the efficiency and quality of forensic work.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003685A_ABST
    Figure CN119003685A_ABST
Patent Text Reader

Abstract

The invention discloses a forensic oral record information extraction and structural processing method and a related device, and belongs to the technical field of forensic oral information processing. The method comprises the following steps: firstly, inputting a forensic oral audio file into a pre-trained Transform model to obtain text transcription information; key information is extracted from the text transcription information through a large language model; and finally, organizing and integrating the extracted key information according to a data structure, and constructing a structured database of forensic oral records. According to the method, the oral record information can be received and converted into the text data, deep natural language processing is carried out by utilizing an advanced large language model, and the method comprises the steps of accurate word segmentation, part-of-speech tagging, entity recognition and the like, so that key information is extracted from the oral record. The key information is then organized and integrated into a structured database, so that deep data analysis, mining and application are facilitated, and powerful data support is provided for forensic identification, case research and judicial investigation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of forensic oral information processing, and relates to a method for extracting and structuring forensic oral record information and a related device. Background Art

[0002] In forensic professional practice, oral records play a vital role and are an indispensable type of evidence in case investigation. Forensic experts often use oral records at the scene of the case to capture key details, such as time, location, people involved and their relationships, the nature of the case and other core information. However, these oral materials are usually disordered and complex, and urgently need to be carefully refined and structured for efficient retrieval, analysis and subsequent use.

[0003] At present, the processing of forensic oral records still mainly relies on manual operation. This traditional method is not only inefficient, but also often results in omissions and errors in the information extraction process. Therefore, it is urgent to develop a method that relies on artificial intelligence technology to automatically process oral record information. Summary of the invention

[0004] The present invention provides a method and related device for extracting and structuring information from oral forensic records, so as to solve the technical problem that omissions and errors are prone to occur in the manual processing of oral forensic records in the prior art.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, the present invention provides a method for extracting and structuring information from forensic oral records, comprising the following steps:

[0007] Input the forensic audio file into the pre-trained Transformer model to obtain text transcription information;

[0008] Extract key information from text transcription information through a large language model;

[0009] The extracted key information is organized and integrated according to the data structure to build a structured database of forensic oral records.

[0010] In a second aspect, the present invention provides a system for extracting and structuring information from forensic oral records, comprising:

[0011] The text transcription module is used to input the forensic oral audio file into the pre-trained Transformer model to obtain text transcription information;

[0012] The information extraction module is used to extract key information from text transcription information through a large language model;

[0013] The structured processing module is used to organize and integrate the extracted key information according to the data structure and build a structured database of forensic oral records.

[0014] In a third aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0015] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0016] Compared with the prior art, the present invention has the following beneficial effects:

[0017] The present invention discloses a method and related device for extracting and structuring information from oral records of forensic doctors. The method collects oral contents of forensic doctors through recording equipment on site; performs denoising on the collected audio files; uses a Transformer model to perform speech recognition on the audio files after data cleaning to generate text transcription information; uses a large language model to extract and structure the text transcription information; in a preset database, sets a storage interval for each case identifier, stores the case key information and structured data in the corresponding interval, sets up a location information partition, and records the case storage interval location information and key information to the partition. The present invention can automatically process oral record information, ensure accurate and complete information extraction, facilitate subsequent query analysis and processing, and improve the efficiency and quality of forensic work.

[0018] Furthermore, the present invention uses a minimum mean square filter or a recursive least square filter to pre-process the audio file, which can improve the signal-to-noise ratio and has greater flexibility and adaptability when facing different noise environments and signal characteristics.

[0019] Furthermore, during the training process of the model, the present invention compares the prediction results of the model with the actual text transcription and uses a back propagation algorithm to update the parameters of the model so that the model can better fit the training data. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a flow chart of the method of the present invention;

[0022] Figure 2 is a schematic diagram of the system of the present invention;

[0023] Figure 3 is a flow chart of a method according to an embodiment of the present invention;

[0024] Figure 4 This is a flow chart of speech collection and preprocessing according to an embodiment of the present invention;

[0025] Figure 5 A flowchart of speech recognition according to an embodiment of the present invention;

[0026] Figure 6 A flowchart of text information structuring according to an embodiment of the present invention;

[0027] Figure 7 It is a schematic diagram of the computer device structure of the present invention. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0029] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0031] In the description of the embodiments of the present invention, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. indicate an orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product of the invention is usually placed when in use, it is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0032] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0033] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0034] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0035] See also Figure 1 The present invention discloses a method for extracting and structuring information from forensic oral records, comprising the following steps:

[0036] S1, input the forensic oral audio file into the pre-trained Transformer model to obtain text transcription information;

[0037] S2, extract key information from text transcription information through a large language model (such as chatGLM);

[0038] S3, organizes and integrates the extracted key information according to the data structure to build a structured database of forensic oral records.

[0039] In a feasible implementation of the present invention, the forensic oral audio file is pre-processed for denoising using a least mean square filter (LMS) or a recursive least square filter (RLS) before being input into the Transformer model; the signal-to-noise ratio can be improved, and the audio file can have greater flexibility and adaptability when facing different noise environments and signal characteristics.

[0040] The step of using the least mean square filter to perform denoising preprocessing specifically includes: using the least mean square filter to continuously iterate the adaptive filter, adjusting the weight of the filter to minimize the mean square error between the output signal and the expected signal, and updating the weight of the filter by calculating the product between the error signal and the input signal; the specific iterative update rules are as follows:

[0041] w(n+1)=w(n)+μe(n)x(n)

[0042] Where w(n) is the value of the filter weight vector at the nth iteration; μ is the learning rate; e(n) is the error between the desired output signal and the actual output signal; and x(n) is the input signal vector.

[0043] The least squares filter updates the weight of the filter by recursively calculating the least squares criterion. The specific update rules are as follows:

[0044] w(n)=w(n-1)+K(n)e(n)

[0045]

[0046] Where w(n) is the value of the filter weight vector at the nth iteration; e(n) is the error between the expected output signal and the actual output signal; x(n) is the input signal vector; P(n) is the covariance matrix of the filter weights; K(n) is the recursively updated gain vector; λ is a small positive number, 1×10 -6 ~1×10 -4 , which is used to control numerical stability.

[0047] In a feasible implementation of the present invention, the Transformer model includes an encoder and a decoder; both the encoder and the decoder contain a multi-layer self-attention mechanism and a feedforward neural network; the encoder is responsible for encoding input speech features into context-aware representations, while the decoder converts these representations into text sequences. Speech recognition is a sequence-to-sequence (Seq2Seq) task, and the attention mechanism is implemented in the model so that the model can focus on different parts of the input.

[0048] The training of the Transformer model includes the following steps: defining the loss function as a cross entropy loss function, using training data to train the Transformer model; during the training process, comparing the prediction results of the Transformer model with the actual text transcription, and using the back propagation algorithm to update the model parameters. After the training is completed, the performance of the model is evaluated using a validation set or a test set. Some indicators such as word error rate (WER) or character error rate (CER) are usually used to evaluate the accuracy of the model. After the model training and evaluation are completed, the model can be used for actual speech recognition tasks. Given a new speech input, the model will output the corresponding text transcription.

[0049] In a feasible implementation manner of the present invention, the step of extracting key information from the text transcription information through a large language model in S2 specifically includes: first, preparing text data, i.e., text transcription information, and loading the required large language model. Then, the text is transcribed and passed to the model to extract key information. In the post-processing stage, the model output is further processed, such as deduplication or screening, to ensure the accuracy and usability of the extracted information. Finally, the extracted key information is displayed, and the model is evaluated and tuned according to needs. This process is integrated into the application or workflow to achieve automation and continuous improvement of information extraction.

[0050] In a feasible implementation manner of the present invention, the key information includes case time, case location, character relationships and case type.

[0051] The key information extracted is organized and integrated according to the data structure, specifically including:

[0052] Determine the person attributes, event attributes and text categories based on the extracted key information;

[0053] Text data is classified and labeled according to character attributes, event attributes and text categories, and stored based on classification results and labels.

[0054] See also Figure 2 The embodiment of the present invention discloses a system for extracting and structuring information from forensic oral records, including:

[0055] The text transcription module is used to input the forensic oral audio file into the pre-trained Transformer model to obtain text transcription information;

[0056] The information extraction module is used to extract key information from text transcription information through a large language model;

[0057] The structured processing module is used to organize and integrate the extracted key information according to the data structure and build a structured database of forensic oral records.

[0058] See also Figure 7 An embodiment of the present invention discloses a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0059] An embodiment of the present invention discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0060] Example:

[0061] See also Figure 3 The embodiment of the present invention discloses a method for extracting and structuring information from forensic oral records, which is as follows:

[0062] S1, speech acquisition; see Figure 4 ,First, collect audio information through recording equipment;

[0063] S2, preprocessing; see Figure 4 ,Secondly, the speech signal is preprocessed for denoising using the least mean square (LMS) filter and the recursive least square (RLS) filter;,Finally, the cleaned audio file is obtained.

[0064] S3, speech recognition; see Figure 5 , using the transformer model to convert the preprocessed speech signal into text data using natural language processing technology;

[0065] S4, structured processing; see Figure 6 , extract key information such as case time, location, character relationships, case type, etc. through a large language model and convert it into structured data;

[0066] Specifically, they may include:

[0067] Preprocessing: Before starting, preprocess the text, including word segmentation, removal of stop words, case conversion, etc., so that the model can better understand the text content.

[0068] Model training: Use a large amount of labeled data to train a large language model. This data may include titles, paragraphs, articles, etc., as well as the corresponding structured information. Through training, the model learns how to extract useful information from the text.

[0069] Feature extraction: Design specific architectures or steps in the model to extract features from text. For example, named entity recognition (NER) is used to identify specific entities in text, such as names of people, places, organizations, time, etc.

[0070] Relation extraction: Identify the relationships between entities in the text. This can be achieved through the relation extraction task, where the model learns how to determine the associations between entities from a given text.

[0071] Attribute extraction: Extracting attribute information of entities from text, such as a person’s age, position, educational background, etc.

[0072] Event extraction: Identify events and their related elements in text, such as time, place, participants, and outcomes of events.

[0073] Text classification: Using classification models to determine the category or topic to which a text belongs is very important for data classification and labeling of text.

[0074] Summary generation: Use the generative model to extract the main content of the text and present it in the form of a summary for quick browsing and understanding.

[0075] Question Answering: Building systems that can understand natural language questions and retrieve answers from structured data.

[0076] Knowledge graph construction: Convert text information into structured knowledge representations, such as knowledge graphs, for easy storage and query.

[0077] Continuous learning: As new data continues to flow in, the model needs to learn continuously to update its knowledge base and improve the structured effect.

[0078] It should be noted that the advantage of large language models in text data structuring is that they can process large amounts of unstructured text and automatically extract useful information from it, which is of great significance to fields such as data analysis, information retrieval, and knowledge management. With the continuous optimization and development of the model, its application in text structuring will become more extensive and in-depth.

[0079] S5, storage: In the preset storage space, a dedicated storage area is set up for each patient, and the identification information, keywords and structured data of each patient are stored in the corresponding storage interval. A location information partition is set up, and the case storage interval location information and key information are recorded in the partition.

[0080] Specific modules may include:

[0081] Storage controller, used to control the allocation and management of storage space;

[0082] An identification information storage area, used to store identification information of each patient;

[0083] A keyword storage area, used to store keywords related to each patient;

[0084] A structured data storage area for storing structured data of each patient;

[0085] Location information partition, used to record case storage interval location information and key information.

[0086] The method for extracting and structuring forensic oral record information proposed in the embodiment of the present invention is intended to overcome the problems of low processing efficiency, incomplete and inaccurate information extraction in the prior art. The method consists of a speech acquisition module, a preprocessing module, a speech recognition module, a structuring module and a storage module. It can receive and convert oral record information into text data, and use advanced large language models to perform in-depth natural language processing, including accurate word segmentation, part-of-speech tagging and entity recognition steps, so as to extract key information from the oral record. This key information is then organized and integrated into a structured database to facilitate in-depth data analysis, mining and application, thereby providing strong data support for forensic identification, case research and judicial investigation.

[0087] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0088] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0089] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for extracting and structuring information from forensic oral records, characterized in that: The following steps are involved: Input the forensic audio file into the pre-trained Transformer model to obtain text transcription information; Extract key information from text transcription information through a large language model; The extracted key information is organized and integrated according to the data structure to build a structured database of forensic oral records.

2. The method for extracting and structuring information from forensic oral records according to claim 1, characterized in that: The forensic audio file is pre-processed by denoising using a least mean square filter or a recursive least square filter before being input into the Transformer model.

3. The method for extracting and structuring information from forensic oral records according to claim 2, characterized in that: The step of using the least mean square filter to perform denoising preprocessing specifically includes: using the least mean square filter to continuously iterate the adaptive filter, adjusting the weight of the filter to minimize the mean square error between the output signal and the expected signal, and updating the weight of the filter by calculating the product between the error signal and the input signal; the specific iterative update rules are as follows: w(n+1)=w(n)+μe(n)x(n) Where w(n) is the value of the filter weight vector at the nth iteration; μ is the learning rate; e(n) is the error between the desired output signal and the actual output signal; and x(n) is the input signal vector.

4. The method for extracting and structuring information from forensic oral records according to claim 2, characterized in that: The least squares filter updates the weight of the filter by recursively calculating the least squares criterion. The specific update rules are as follows: w(n)=w(n-1)+K(n)e(n) Where w(n) is the value of the filter weight vector at the nth iteration; e(n) is the error between the desired output signal and the actual output signal; x(n) is the input signal vector; P(n) is the covariance matrix of the filter weights; K(n) is the recursively updated gain vector; and λ is a small positive number.

5. The method for extracting and structuring information from forensic oral records according to claim 1, characterized in that: The Transformer model includes an encoder and a decoder; the encoder and the decoder both include a multi-layer self-attention mechanism and a feedforward neural network; The training of the Transformer model includes the following steps: defining the loss function as a cross entropy loss function, and using training data to train the Transformer model; during the training process, comparing the prediction results of the Transformer model with the actual text transcription, and using the back propagation algorithm to update the model parameters.

6. The method for extracting and structuring information from forensic oral records according to claim 1, characterized in that: The key information includes case time, case location, character relationships and case type.

7. The method for extracting and structuring information from forensic oral records according to claim 1, characterized in that: The step of organizing and integrating the extracted key information according to the data structure to construct a structured database of forensic oral records specifically includes: Determine the person attributes, event attributes and text categories based on the extracted key information; The text data is classified and labeled according to the person attributes, event attributes and text categories, and stored according to the classification results and labels to obtain a structured database of forensic oral records.

8. A system for extracting and structuring information from forensic oral records, characterized in that: include: The text transcription module is used to input the forensic audio file into the pre-trained Transformer model to obtain text transcription information; The information extraction module is used to extract key information from text transcription information through a large language model; The structured processing module is used to organize and integrate the extracted key information according to the data structure and build a structured database of forensic oral records.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Construction industry construction safety intelligent log recording method based on large language model

    CN116910104A

  • Industrial data knowledge extraction method and device, computer equipment and storage medium

    CN116956923A