Mental health assessment system, method and medium for analyzing natural language
The analysis of natural language texts through deep neural network models solves the problem of the inability of existing technologies to capture the complexity of mental states, achieves efficient and accurate assessment of emotions and mental states, and provides technical support for mental health monitoring.
Patent Information
- Application Number
- CN202410979088.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Existing neural network models are insufficient to capture and understand the complexity and diversity of human psychological states, and are difficult to fully and accurately reflect human emotions and psychological states, especially when dealing with diverse emotional expressions.
Use a deep neural network model, including a mental health probability layer and a mental health weight layer, combined with lexical analysis, syntax analysis and sentiment analysis modules, to preprocess and cluster natural language texts to generate mental health probability values and weight values, and Obtain emotional evaluation results through the sentiment analysis model.
It achieves efficient and accurate analysis of natural language texts, can quickly parse large amounts of text data, extract information related to emotions and mental states, provide precise emotional analysis results, accurately assess users' mental health status, and identify potential psychological problems.
Smart Images

Figure CN118506989B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a mental health assessment system, method and computer-readable storage medium for analyzing natural language. Background Art
[0002] The underlying assumption of the theory of "psychodynamics" is that behavior comes from the movement and interaction of people's psychological world. It emphasizes the way psychology motivates behavior, and how psychology and behavior influence and are influenced by the individual's social environment.
[0003] The main representatives of psychodynamic theory are Bodin, Nachman and Siegel. Based on the personality psychoanalysis theory of Austrian psychologist Freud, they absorbed some concepts and techniques of trait-factor theory and client-centered theory, conducted extensive research on professional groups, and proposed a set of theories of professional needs and guidance in the late 1960s. Psychodynamics includes a variety of classification theories, such as: Anxiety and defense mechanisms include: 1. Anxiety When the id's desire violates the superego principle, the self issues a warning and an unacceptable conflict occurs inside. Anxiety is a painful emotional experience. 2. Defense mechanism The method taken by the self to eliminate unpleasant emotional experiences, including obstructing or concealing unallowed or disapproved desires to reduce inner conflicts.
[0004] With the rapid development of computer science, neural network technology has been able to efficiently analyze the rich emotional information contained in natural language texts and the corresponding psychological states of users, achieving the goals of psychodynamic theory. However, the existing technology has the defect of insufficient processing complexity and diversity when achieving the goals of psychodynamic theory. The existing neural network model is not enough to capture and understand the complexity and diversity of human psychological states. Human emotions and psychological states are multi-dimensional and dynamically changing, while the existing models are too simple or static to fully and accurately reflect this complexity. Emotional diversity, users express their emotions in a variety of ways, including text, expressions, tone and other forms. The existing technology has limitations in processing these diverse emotional expressions, and it is difficult to fully capture the real emotions of users. Specifically, a technology is needed to perform emotional analysis on the network text input by the user, determine its mental health state, and guide doctors or professionals to determine appropriate treatment strategies based on the analysis and evaluation results. Summary of the invention
[0005] In order to achieve the technical problem of efficiently and accurately analyzing natural language text based on neural networks and obtaining mental health monitoring results, the embodiments of the present invention provide a mental health assessment system, method and computer-readable storage medium for analyzing natural language. The technical solution is as follows:
[0006] In a first aspect, a mental health assessment system for analyzing natural language is provided, the system comprising: a lexical analysis module, for acquiring natural language text, preprocessing the natural language text, and obtaining lexical units of the natural language text; a grammatical analysis module, for processing the lexical units using a pre-trained grammatical analysis model; generating a grammatical sequence corresponding to the natural language text according to each lexical unit; performing clustering operations on the grammatical sequences, and inputting the lexical units into a deep neural network model for processing, the deep neural network model comprising: a mental health probability layer and a mental health weight layer; sending the lexical units into the mental health probability layer to obtain the mental health probability values of the lexical units; sending the lexical units into the mental health weight layer to obtain the mental health weight values corresponding to the lexical units; a sentiment analysis module, for inputting the grammatical sequence into a pre-trained sentiment analysis model, the sentiment analysis model generating a context-based word sentiment sequence for the lexical units of the natural language text according to the grammatical sequence, clustering the word sentiment sequences, and generating a sentiment assessment result value of the natural language text.
[0007] Optionally, the system also includes: a model training module, used to train the deep neural network model using the natural language text of the standard sample, and adjust the model parameters of the mental health probability layer and the mental health weight layer during the training process until the output result of the deep neural network model is consistent with the expected result of the natural language text of the standard sample.
[0008] Optionally, the lexical analysis module preprocesses the natural language text to obtain lexical units of the natural language text, including: segmenting the natural language text to generate a sub-text sequence; identifying each sub-text of the sub-text sequence and extracting the sentiment word unit therein as the corresponding lexical unit.
[0009] Optionally, the mental health probability value P of the lexical unit is obtained by the following calculation method:
[0010] (1)
[0011] in, i Represents the number of times the same lexical unit appears. , N is the total number of occurrences of the same lexical unit, P i Representative i The corresponding probability value of mental health is represents a predetermined first compensation coefficient.
[0012] Optionally, the mental health weight value of the lexical unit is obtained by the following calculation method: :
[0013] (2)
[0014] in, j Represents the number of the lexical unit, λ j Representative j The regularization constant for tokens, θ j Representative j The optimization constant for tokens, γ represents a predetermined second compensation coefficient;
[0015] Optionally, the natural language text is segmented to generate a sub-text sequence, including: performing context rule analysis on the natural language text, the context rule analysis including segmenting and recognizing words on the natural language text to generate a sub-text sequence; and re-segmenting and re-recognizing words on ambiguous sub-text sequences.
[0016] Optionally, the sentiment word units are extracted as corresponding lexical units, including the following extraction rules: simplification rule: simplifying the sub-text sequence; and, redundancy removal rule: removing redundant sub-text sequences.
[0017] Optionally, the emotion word units include: positive emotion word units: emotion word units with positive emotion meanings; negative emotion word units: emotion word units with negative emotion meanings; or non-explicit emotion word units: emotion word units with non-explicit emotion meanings.
[0018] In a second aspect, a method for psychological health assessment for analyzing natural language is provided, the method comprising: obtaining natural language text, preprocessing the natural language text to obtain lexical units of the natural language text; processing the lexical units using a pre-trained grammatical analysis model; generating a grammatical sequence corresponding to the natural language text according to each lexical unit; performing clustering operations on the grammatical sequence, and inputting the lexical units into a deep neural network model for recognition, the deep neural network model comprising: a psychological health probability layer and a psychological health weight layer; sending the lexical units into the psychological health probability layer to obtain the psychological health probability value of the lexical units; sending the lexical units into the psychological health weight layer to obtain the psychological health weight value corresponding to the lexical units; inputting the grammatical sequence into a pre-trained sentiment analysis model, the sentiment analysis model generating a context-based word sentiment sequence for the lexical units of the natural language text according to the grammatical sequence, clustering the word sentiment sequences, and generating a sentiment assessment result value of the natural language text.
[0019] In a third aspect, a computer-readable storage medium is provided, in which program code is stored. The program code is loaded by a processor and executes the following functions to implement the above-mentioned mental health assessment method for analyzing natural language.
[0020] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least: realizing the efficient and accurate analysis of natural language text using neural networks, obtaining mental health monitoring results, and providing strong technical support for mental health monitoring and intervention. The present invention uses an advanced neural network model, that is, a deep neural network model, to efficiently process and analyze natural language text. It can quickly parse a large amount of text data and extract information related to emotions and psychological states. The system can accurately analyze the emotional information in the user's text, including emotion type, intensity, etc., and provide detailed emotional analysis results. Through comprehensive analysis of the emotional information in the text, the system can accurately assess the user's mental health status and identify potential psychological problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a schematic block diagram of a mental health assessment for analyzing natural language provided by an embodiment of the present invention;
[0023] Figure 2 is a flowchart of a method for analyzing a mental health assessment of a natural language provided by an embodiment of the present invention;
[0024] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0026] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a concrete way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two. In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the distinction between them is not emphasized, the meanings to be expressed are consistent. In the embodiments of the present invention, sometimes subscripts such as W 1 It may be written in non-subscript form such as W1. When the difference is not emphasized, the meaning is the same.
[0027] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0028] The present invention proposes a mental health assessment system for analyzing natural language, which uses neural network technology to analyze natural language text and obtains mental health monitoring results. In addition, the present invention also provides an electronic device and a computer-readable storage medium to implement a mental health assessment method for analyzing natural language, which uses neural network technology to efficiently and accurately analyze natural language text and obtain mental health monitoring results.
[0029] Specifically, an embodiment of the present invention provides a mental health assessment system for analyzing natural language. Figure 1 The schematic block diagram of a mental health assessment system 100 for analyzing natural language is shown, and the system may include:
[0030] The lexical analysis module 102 is used to obtain natural language text, pre-process the natural language text, and obtain lexical units of the natural language text.
[0031] In some exemplary embodiments of the present invention, a lexical analysis module preprocesses the natural language text to obtain lexical units of the natural language text, including: segmenting the natural language text to generate a sub-text sequence; identifying each sub-text of the sub-text sequence and extracting the sentiment word unit therein as the corresponding lexical unit.
[0032] In some exemplary embodiments of the present invention, the natural language text is segmented to generate a sub-text sequence, including: performing context rule analysis on the natural language text, the context rule analysis including segmenting and recognizing words on the natural language text to generate a sub-text sequence; and re-segmenting and re-recognizing words on ambiguous sub-text sequences.
[0033] In some exemplary embodiments of the present invention, sentiment word units are extracted as corresponding lexical units, including the following extraction rules: simplification rule: simplifying sub-text sequences; and, redundancy removal rule: removing redundant sub-text sequences.
[0034] In some exemplary embodiments of the present invention, the emotional word units include: positive emotional word units: emotional word units with positive emotional meanings; negative emotional word units: emotional word units with negative emotional meanings; or non-explicit emotional word units: emotional word units with non-explicit emotional meanings. For example: (1) Zhang San is a brave and responsible good man, in which "brave", "responsible", and "good man" belong to positive emotional word units; (2) Li Si is timid and afraid of things, in which "timid" and "afraid of things" belong to negative emotional word units; (3) Wang Wu is doing things step by step, in which "step by step" belongs to a non-explicit emotional word unit and does not have obvious positive or negative emotions.
[0035] The grammatical analysis module 104 is used to process the lexical units using a pre-trained grammatical analysis model; generate a grammatical sequence corresponding to the natural language text according to each lexical unit; perform clustering operations on the grammatical sequence, and input the lexical units into a deep neural network model for processing, wherein the deep neural network model includes: a mental health probability layer and a mental health weight layer; send the lexical units into the mental health probability layer to obtain the mental health probability value of the lexical units; send the lexical units into the mental health weight layer to obtain the mental health weight value corresponding to the lexical units.
[0036] In some exemplary embodiments of the present invention, the following calculation method is used to obtain the mental health probability value P of the lexical unit:
[0037] (1)
[0038] in, i Represents the number of times the same lexical unit appears. , N is the total number of occurrences of the same lexical unit, P i Representative i The corresponding probability value of mental health is represents a predetermined first compensation coefficient.
[0039] In some exemplary embodiments of the present invention, the following calculation method is used to obtain the mental health weight value of the lexical unit: :
[0040] (2)
[0041] in,j Represents the number of the lexical unit, λ j Representative j The regularization constant for tokens, θ j Representative j The optimization constant for tokens, γ represents a predetermined second compensation coefficient.
[0042] The sentiment analysis module 106 is used to input the grammatical sequence into a pre-trained sentiment analysis model, and the sentiment analysis model generates a context-based word sentiment for the lexical unit of the natural language text according to the grammatical sequence, clusters the word sentiment sequence, and generates a sentiment evaluation result value of the natural language text.
[0043] In some exemplary embodiments of the present invention, the system also includes: a model training module, used to train the deep neural network model using the natural language text of the standard sample, and adjust the model parameters of the mental health probability layer and the mental health weight layer during the training process until the output result of the deep neural network model is consistent with the expected result of the natural language text of the standard sample.
[0044] The above exemplary embodiments realize the efficient and accurate analysis of natural language texts using neural networks to obtain monitoring results of mental health, and provide strong technical support for mental health monitoring and intervention. The present invention uses an advanced neural network model, that is, a deep neural network model, to efficiently process and analyze natural language texts. It is able to quickly parse large amounts of text data and extract information related to emotions and psychological states. The system can accurately analyze the emotional information in the user's text, including the type and intensity of emotions, and provide sophisticated emotional analysis results. Through comprehensive analysis of the emotional information in the text, the system can accurately assess the user's mental health and identify potential psychological problems.
[0045] Figure 2 A schematic flow chart of a mental health assessment method 200 for analyzing natural language is shown. The mental health assessment method 200 for analyzing natural language may include:
[0046] Step S1: obtaining a natural language text for lexical analysis, that is, obtaining a natural language text, preprocessing the natural language text, and obtaining lexical units of the natural language text;
[0047] Step S2: Syntactic analysis and calculation of mental health probability value and mental health weight value, that is, using a pre-trained grammatical analysis model to process the lexical unit; generating a grammatical sequence corresponding to the natural language text according to each lexical unit; performing clustering operation on the grammatical sequence, inputting the lexical unit into a deep neural network model for recognition, the deep neural network model comprising: a mental health probability layer and a mental health weight layer; sending the lexical unit into the mental health probability layer to obtain the mental health probability value of the lexical unit; sending the lexical unit into the mental health weight layer to obtain the mental health weight value corresponding to the lexical unit;
[0048] Step S3: Obtaining the result through the sentiment analysis model, that is, inputting the grammatical sequence into a pre-trained sentiment analysis model, the sentiment analysis model generates a context-based word sentiment sequence for the lexical units of the natural language text according to the grammatical sequence, clustering the word sentiment sequences, and generating a sentiment evaluation result value of the natural language text.
[0049] Figure 3 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 3 As shown, the electronic device 300 may include a processor 3001 and a memory 3002. Optionally, the electronic device 300 may also include a transceiver 3003. The processor 3001, the memory 3002 and the transceiver 3003 may be connected, for example, via a communication bus. The memory 3002 stores computer-readable instructions, which, when executed by the processor 3001, implement the following functions:
[0050] Acquiring a natural language text for lexical analysis, that is, acquiring a natural language text, preprocessing the natural language text, and obtaining lexical units of the natural language text;
[0051] Syntax analysis is performed to calculate the mental health probability value and the mental health weight value, that is, the lexical unit is processed by using a pre-trained grammatical analysis model; a grammatical sequence corresponding to the natural language text is generated according to each lexical unit; a clustering operation is performed on the grammatical sequence, and the lexical unit is input into a deep neural network model for recognition, wherein the deep neural network model includes: a mental health probability layer and a mental health weight layer; the lexical unit is sequentially input into the mental health probability layer to obtain the mental health probability value of the lexical unit; the mental health probability value is input into the mental health weight layer to obtain the mental health weight value corresponding to the lexical unit;
[0052] The result is obtained through a sentiment analysis model, that is, the grammatical sequence is input into a pre-trained sentiment analysis model, the sentiment analysis model generates a context-based word sentiment for the lexical units of the natural language text according to the grammatical sequence, the word sentiment sequence is clustered, and a sentiment evaluation result value of the natural language text is generated.
[0053] In a specific implementation, as an embodiment, the processor 3001 may include one or more CPUs, such as Figure 3 CPU0 and CPU1 are shown in FIG.
[0054] In a specific implementation, as an embodiment, the electronic device 300 may also include multiple processors, such as Figure 3 3001 and processor 3004 are shown in FIG. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0055] The memory 3002 is used to store the software program for executing the solution of the present invention, and the execution is controlled by the processor 3001. The specific implementation method can refer to the above method embodiment, which will not be repeated here.
[0056] The transceiver 3003 is used to communicate with a network device or a terminal device.
[0057] Optionally, the transceiver 3003 may include a receiver and a transmitter, wherein the receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.
[0058] Optionally, the transceiver 3003 may be integrated with the processor 3001 , or may exist independently and be coupled to the processor 3001 via an interface circuit of the electronic device 300 , which is not specifically limited in the embodiment of the present invention.
[0059] It should be noted that Figure 3 The structure of the electronic device 300 shown in the figure does not constitute a limitation on the electronic device. The actual electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In addition, the technical effects of the electronic device 300 can refer to the technical effects of the above-mentioned method embodiment, which will not be repeated here.
[0060] In an exemplary embodiment, the present invention further provides a computer-readable storage medium, in which a program code is stored, and the program code is loaded by a processor and executes the following functions: obtaining a natural language text for lexical analysis, that is, obtaining a natural language text, preprocessing the natural language text, and obtaining lexical units of the natural language text; performing grammatical analysis and calculating a mental health probability value and a mental health weight value, that is, processing the lexical units using a pre-trained grammatical analysis model; generating a grammatical sequence corresponding to the natural language text according to each lexical unit; performing a clustering operation on the grammatical sequence, and inputting the lexical units into a deep A neural network model is used for identification, and the deep neural network model includes: a mental health probability layer and a mental health weight layer; the lexical units are sequentially sent to the mental health probability layer to obtain the mental health probability values of the lexical units; the mental health probability values are sent to the mental health weight layer to obtain the mental health weight values corresponding to the lexical units; the results are obtained through a sentiment analysis model, that is, the grammatical sequence is input into a pre-trained sentiment analysis model, the sentiment analysis model generates a context-based word sentiment for the lexical units of the natural language text according to the grammatical sequence, the word sentiment sequence is clustered, and the sentiment evaluation result value of the natural language text is generated.
[0061] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0062] References in the specification to "one embodiment", "an embodiment", "an exemplary embodiment", "some embodiments", etc. indicate that the described embodiments may include a particular feature, structure, or characteristic, but not every embodiment may include the particular feature, structure, or characteristic. In addition, when a particular feature, structure, or characteristic is described in conjunction with an embodiment, it should be within the knowledge of a person skilled in the relevant art to implement such feature, structure, or characteristic in conjunction with other embodiments (whether or not explicitly described).
[0063] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0064] In the present invention, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0065] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0066] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0067] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0068] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0069] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0070] The present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention. In order to make the public have a thorough understanding of the present invention, specific details are described in detail in the following preferred embodiments of the present invention, but those skilled in the art can fully understand the present invention without the description of these details. In addition, in order to avoid unnecessary confusion about the essence of the present invention, well-known methods, processes, procedures, components and circuits are not described in detail.
[0071] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A mental health assessment system for analyzing natural language, characterized in that: The system comprises: A lexical analysis module, used to obtain a natural language text, pre-process the natural language text, and obtain lexical units of the natural language text; A grammatical analysis module, used to process the lexical unit using a pre-trained grammatical analysis model; generate a grammatical sequence corresponding to the natural language text according to each lexical unit; perform clustering operations on the grammatical sequence, and input the lexical unit into a deep neural network model for processing, wherein the deep neural network model includes: a mental health probability layer and a mental health weight layer; send the lexical unit into the mental health probability layer to obtain a mental health probability value of the lexical unit; send the lexical unit into the mental health weight layer to obtain a mental health weight value corresponding to the lexical unit; The following calculation method is used to obtain the mental health probability value P of the lexical unit: (1) in, i Represents the number of times the same lexical unit appears. , N is the total number of occurrences of the same lexical unit, P i Representative i The corresponding probability value of mental health is represents a predetermined first compensation coefficient; The mental health weight value of the lexical unit is obtained by the following calculation method: : (2) in, j Represents the number of the lexical unit, λ j Representative j The regularization constant for tokens, θ j Representative j The optimization constant for tokens, γ represents a predetermined second compensation coefficient; A sentiment analysis module, used for inputting the grammatical sequence into a pre-trained sentiment analysis model, wherein the sentiment analysis model generates a context-based word sentiment sequence for the lexical units of the natural language text according to the grammatical sequence, clusters the word sentiment sequence, and generates a sentiment evaluation result value of the natural language text; The system further comprises: The model training module is used to train the deep neural network model using the natural language text of the standard sample, and adjust the model parameters of the mental health probability layer and the mental health weight layer during the training process until the output result of the deep neural network model is consistent with the expected result of the natural language text of the standard sample.
2. The mental health assessment system for analyzing natural language according to claim 1, characterized in that: The lexical analysis module preprocesses the natural language text to obtain lexical units of the natural language text, including: Segmenting the natural language text to generate a sub-text sequence; Each sub-text of the sub-text sequence is identified, and the sentiment word unit therein is extracted as the corresponding lexical unit.
3. The mental health assessment system for analyzing natural language according to claim 2, characterized in that: The natural language text is segmented to generate a sub-text sequence, including: Performing context rule analysis on the natural language text, wherein the context rule analysis includes segmenting and identifying words on the natural language text to generate a sub-text sequence; Re-segment and identify words for ambiguous sub-text sequences.
4. The mental health assessment system for analyzing natural language according to claim 2, characterized in that: Extract the sentiment word units as corresponding lexical units, including the following extraction rules: Simplification rules: simplify the subtext sequence; and Redundancy removal rule: remove redundant subtext sequences.
5. The mental health assessment system for analyzing natural language according to claim 2, characterized in that: The sentiment word unit comprises: Positive emotional word units: emotional word units with positive emotional meanings; Negative sentiment word unit: a sentiment word unit with negative sentiment meaning; or, Non-explicit sentiment word unit: sentiment word unit with non-explicit sentiment meaning.
6. A method for evaluating mental health for analyzing natural language, the method being based on the system according to any one of claims 1 to 5, characterized in that: The method comprises: Acquire a natural language text, and preprocess the natural language text to obtain lexical units of the natural language text; The lexical units are processed using a pre-trained grammatical analysis model; a grammatical sequence corresponding to the natural language text is generated according to each lexical unit; a clustering operation is performed on the grammatical sequence, and the lexical units are input into a deep neural network model for recognition, wherein the deep neural network model includes: a mental health probability layer and a mental health weight layer; the lexical units are input into the mental health probability layer to obtain a mental health probability value of the lexical units; the lexical units are input into the mental health weight layer to obtain a mental health weight value corresponding to the lexical units; The grammatical sequence is input into a pre-trained sentiment analysis model, and the sentiment analysis model generates a context-based word sentiment sequence for the lexical units of the natural language text according to the grammatical sequence, clusters the word sentiment sequences, and generates a sentiment evaluation result value of the natural language text.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which is loaded by the processor and executes the following functions to implement the mental health assessment method for analyzing natural language as described in claim 6.
