Pre-training psychological drawing test generation type large model based on fusion network technology
Through the pre-trained psychological painting test generative large model based on the fusion network, the problem that the existing technology cannot effectively infer the characteristics of psychological painting is solved, and the ability to generate psychological test reports through hierarchical data fusion training is achieved, which is suitable for multiple applications. A psychological application scenario.
Patent Information
- Application Number
- CN202410629947.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-30
AI Technical Summary
Existing pre-trained large language models and multi-modal models cannot effectively perform feature inference on psychological painting images, and training these models requires a large amount of psychological painting data and accurate interpretation, resulting in a huge investment of time and energy in data collection and interpretation.
A pre-trained psychological painting test generative large model based on fusion network technology is used, including a data labeling module, a representation rule encoding module and a model training module. Through supervised learning and hierarchical data fusion training, a pre-trained parameter model is generated, using the catalyst layer , aggregation layer and feature representation layer for data preprocessing and psychological feature recognition.
It realizes the ability of large models to generate psychology test reports. Through standard text training of psychology professional knowledge, it solves the demand for massive supervised learning data and is suitable for the generation of conversion models in different psychology application scenarios.
Smart Images

Figure CN118569321A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of neural network deep learning technology, and in particular to a generative large model for pre-training psychology painting tests based on fusion network technology. Background Art
[0002] At present, large language models and multimodal models pre-trained with conversion models can reasonably and accurately infer and interpret text and pictures through a large number of training samples. In the industry, the current pre-training data comes from open Internet data, so these pre-training models can only infer data based on Internet data. It is impossible to infer psychological features of psychological painting images.
[0003] And according to the general large-model pre-training method, to train the psychological painting model, a large amount of psychological painting data needs to be prepared in advance, and these massive paintings need to be accurately interpreted psychologically in order to fully train the model. Obviously, the collection and interpretation of a large amount of psychological painting interpretation data requires a lot of time and energy, which is not easy to implement. Summary of the invention
[0004] The purpose of the present invention is to provide a generative large model for pre-training psychology painting tests based on fusion network technology to solve the problems raised in the above background technology.
[0005] To achieve the above-mentioned object, the present invention provides the following technical solutions: a large generative model for pre-training psychology painting test based on fusion network technology, including a data labeling module, a representation rule encoding module and a model training module;
[0006] The data labeling module is used to label the painting elements and psychological feature descriptions and suggested contents as supervised learning training materials;
[0007] The representation rule encoding module is used to identify and calibrate the label in the representation network after the data labeling module has labeled it, and to preprocess the model data;
[0008] The model training module is used to load the prepared painting annotations and psychology knowledge annotations into the fusion network, and calculate the parameters of the network to generate a pre-trained parameter model.
[0009] A method for generating a large model for pre-training psychology painting test using network technology is provided. The large model is used and the model generation method includes the following steps:
[0010] In the first step, we use the data labeling module to label the data, including labeling the painting elements and labeling the psychological feature descriptions and suggested contents;
[0011] In the second step, the labels marked in the first step are identified and calibrated in the characterization rule coding network through the characterization rule coding module to preprocess the data. The characterization rule coding network includes a catalyst layer, a convergence layer and a feature representation layer from top to bottom.
[0012] In the third step, the painting annotations and psychological knowledge annotations calibrated in the second step are loaded into the fusion network through the model training module, the parameters of the network are calculated, and a pre-trained parameter model is generated.
[0013] Preferably, the marking of the painting elements in the first step is to mark the characteristic elements representing different psychological states in the painting as multiple identifiable elements according to the principles of psychological painting.
[0014] Preferably, the marking of the psychological feature description and suggested content in the first step is to annotate the psychological knowledge one by one according to the needs of the painting representation, combined with the content of the psychological report, and according to the psychological description of each feature.
[0015] Preferably, the data preprocessing in the second step includes data alignment, element classification rules and spatial element rules, and the process of encoding the characterization rules is to encode the psychological knowledge into a coding structure that can be calculated after the model recognizes the image.
[0016] Preferably, the second step of data preprocessing is to process the image matrix data in sequence through a feature representation layer, a convergence layer and a catalyst layer, and finally the feature representation layer outputs the psychological feature data.
[0017] Preferably, the catalyst layer is used to identify and interpret the painting psychology image representation, and is divided into a spatial structure catalyst, a frame structure catalyst and a primitive representation catalyst. The input data of this layer is the primitive structure of the original image, and the output data is the painting psychology feature.
[0018] Preferably, the aggregation layer performs aggregation calculation on the painting psychology features, evaluates the features, outputs the evaluation scores and weights of the features, and simultaneously extracts the gender and age features corresponding to the features.
[0019] Preferably, the feature representation layer infers the content of the feature list output by the aggregation layer one by one, and in this layer infers the evaluated classification, score, etc. into report description and report score, and its output data is connected to the transformation model in a data fusion manner as a Token processed by Embedding.
[0020] Preferably, during the third step of model training, the training of image annotation and the training of psychological knowledge annotation are performed separately, and the training results of the image convolution network are input into the representation network in a data fusion manner;
[0021] The training of the psychology knowledge annotation adopts the corpus matching the output result of the representation network, and is carried out using the conversion model pre-training method, loading all the materials, and using the Embedding algorithm to generate Tokens, and finally performing forward propagation, gradient descent and back propagation in sequence to learn the corpus materials.
[0022] Technical effects and advantages of the present invention:
[0023] The large model of the present invention is composed of a data labeling module, a representation rule encoding module and a model training module. The representation rule encoding module adopts a hierarchical data fusion training method to solve the problem of psychological painting feature training of the large model, so that the large model has the ability to generate psychology test reports through paintings, and uses feature rule catalysts through the fusion network layer to perform rule encoding according to the psychological painting features, and uses standard text corpus to train psychological professional knowledge. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a schematic diagram of the large model structure and data flow of the present invention.
[0025] Figure 2 It is a schematic diagram of the large model encoding process of the present invention.
[0026] Figure 3 Schematic diagram of the large model training method of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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.
[0028] Embodiment 1, the present invention provides as follows Figure 1-2 The large generative model for pre-training psychology painting test based on fusion network technology shown includes a data labeling module, a representation rule encoding module and a model training module;
[0029] The data labeling module is used to label the painting elements, psychological feature descriptions, and suggested content for supervised learning training materials;
[0030] After the data labeling module is labeled, the characterization rule encoding module is used to identify and calibrate the label in the characterization encoding network and preprocess the model data. The characterization rule encoding network includes a catalyst layer, a convergence layer, and a feature representation layer from top to bottom.
[0031] The model training module is used to load the prepared painting annotations and psychology knowledge annotations into the fusion network and calculate the parameters of the network to generate a pre-trained parameter model.
[0032] Embodiment 2, combined with Figure 1 and Figure 2 The present invention provides Figure 3 The method for generating a large model for pre-training psychology painting test using fusion network technology is shown, using the large model in Example 1, and the model generation method includes the following steps:
[0033] In the first step, we use the data labeling module to label the data, including labeling the painting elements and labeling the psychological feature descriptions and suggested contents;
[0034] Specifically, the first step of marking the painting elements is to mark the characteristic elements representing different psychological states in the painting as multiple identifiable elements according to the principles of psychological painting.
[0035] It should be noted that in the above steps, the characteristic elements representing different psychological states in the painting, such as houses, trees, people, animals, etc., are labeled one by one according to the specified classification labels. At the same time, according to the principles of psychological painting, more than 100 identifiable elements need to be labeled in detail, such as windows in the house, branches and crowns of trees, glasses and torsos of people, etc.
[0036] Specifically, the marking of psychological feature descriptions and suggested contents in the first step is to annotate the corpus one by one according to the psychological description of each feature, combining the psychological knowledge with the content of the psychology report according to the needs of the painting representation.
[0037] It should be noted that in the above steps, psychological knowledge, such as depression, anxiety and paranoia, is annotated one by one according to the needs of painting representation, combined with the content of the psychology report and the psychological description of each feature. That is, one psychological feature corresponds to one explanation corpus and then to one suggestion corpus.
[0038] In the second step, the labels marked in the first step are identified and calibrated in the representation rule encoding network through the representation rule encoding module to preprocess the data;
[0039] Specifically, the data preprocessing in the second step includes data alignment, element classification rules and spatial element rules. The process of encoding the representation rules is to encode psychological knowledge into a coding structure that can be calculated after the model recognizes the image, so as to accurately find the corresponding psychological features when encoding the psychological representation and applying the rules.
[0040] It should be noted that the representation rules are derived from theoretical knowledge of painting psychology. For example, the appearance of tree holes or scars on tree trunks may indicate trauma.
[0041] Specifically, the second step of data preprocessing is to process the image matrix data in turn through the feature representation layer, the convergence layer and the catalyst layer, and finally the feature representation layer outputs the psychological feature data.
[0042] Furthermore, the catalyst layer is used to identify and interpret the painting psychology image representation, which is divided into space structure catalyst, frame structure catalyst and graphic element representation catalyst. The input data of this layer is the original image graphic element structure, and the output data is the painting psychology feature.
[0043] Furthermore, the aggregation layer aggregates and calculates the psychological features of the painting, evaluates the features, outputs the evaluation scores and weights of the features, and extracts the gender and age features corresponding to the features.
[0044] Furthermore, the feature representation layer infers the content of the feature list output by the aggregation layer one by one, and in this layer, the evaluated classification, score, etc. are inferred as report description and report score. Its output data is connected to the transformation model in a data fusion manner as a Token processed by Embedding.
[0045] It should be noted that in natural language processing, the tokens processed by Embedding refer to the conversion of text data into vector representations in numerical form. This process usually includes the following steps:
[0046] 1. Word segmentation: split the input text string into words, phrases or other meaningful units, namely tokens;
[0047] 2. Build a vocabulary table and create a vocabulary table that maps each unique token to a unique integer index;
[0048] 3. Embedding Lookup: Use pre-trained word embeddings or initialized embedding matrices to find or generate vector representations of each token based on the index in the vocabulary. These vectors usually have a fixed length and can capture the semantic information of the word;
[0049] 4. Special Token Processing: In Transformer, some special tokens such as [CLS], [SEP], and [PAD] are added to meet the specific needs of the model. These special tokens have unique embedding representations.
[0050] 5. Output. Finally, each Token is converted into a vector of fixed length, and the Token vector of the entire sentence can be concatenated or converted into the input format of the model.
[0051] In the third step, the painting annotations and psychological knowledge annotations calibrated in the second step are loaded into the fusion network through the model training module, the parameters of the network are calculated, and a pre-trained parameter model is generated.
[0052] Specifically, in the third step of model training, the training of image annotation and the training of psychological knowledge annotation are carried out separately, and the training results of the image convolution network are input into the representation network in a data fusion manner;
[0053] The training of psychology knowledge annotation uses corpus that matches the output results of the representation network and is performed using the conversion model pre-training method. All materials are loaded, and the Embedding algorithm is used to generate Tokens. Finally, forward propagation, gradient descent, and back propagation are performed in sequence to learn the corpus materials.
[0054] After the above processing, the representation network converts the image feature data input by the convolutional network into psychological painting feature data, and uses the self-attention mechanism of the conversion model to perform psychological knowledge reasoning to achieve the interpretation and reasoning of psychological paintings.
[0055] It should be noted that the conversion model is a deep learning model based on the self-attention mechanism, which is mainly used to process sequence data, especially in the field of natural language processing, such as machine translation, text summarization, text generation and other tasks. The conversion model uses the self-attention mechanism instead of the traditional recurrent neural network structure to capture long-distance dependencies in the sequence. The self-attention mechanism allows the model to consider all positions in the sequence at the same time when processing the sequence, rather than relying only on a few adjacent positions.
[0056] The main components of the conversion model include: an encoder that converts the input sequence into a continuous vector representation; a decoder that converts the encoder output into a target sequence; a self-attention layer that allows the model to consider all positions in the sequence simultaneously when processing the sequence; a feedforward neural network that performs further nonlinear transformations on the output of the self-attention layer; residual connections and layer normalization that improve the training stability and convergence speed of the model.
[0057] The characteristics of the conversion model include parallelization. Since the self-attention mechanism does not depend on the order of the sequence, all positions in the sequence can be processed in parallel to improve computational efficiency; scalability. The number of layers and attention heads of the model can be expanded according to task requirements to improve the expressiveness of the model; versatility. The conversion model can be applied to various sequence processing tasks, including speech recognition and time series prediction.
[0058] This solution combines the visual convolutional network and the conversion model through the psychological painting feature network, thereby realizing the use of neural network technology for psychological painting reasoning, extracting painting features through the convolutional network, and fusing the painting feature data into the conversion model for psychological feature reasoning, thereby generating psychological evaluation results. This fusion network solves the problem of requiring massive supervised learning data for pre-training, and at the same time achieves the purpose of generating different psychological test reports for conversion models in different psychological application scenarios, so that the invention has a wide range of psychological application scenarios.
[0059] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. Based on the fusion network technology, a large generative model for pre-training psychology painting test is characterized by: It includes data labeling module, representation rule encoding module and model training module; The data labeling module is used to label the painting elements and psychological feature descriptions and suggested contents as supervised learning training materials; The characterization rule encoding module is used to identify and calibrate the label in the characterization encoding network after the data marking module has marked the label, and to pre-process the model data. The characterization rule encoding network includes a catalyst layer, a convergence layer, and a feature representation layer from top to bottom; The model training module is used to load the prepared painting annotations and psychology knowledge annotations into the fusion network, and calculate the parameters of the network to generate a pre-trained parameter model.
2. A generative large model method for pre-training psychology painting test using network technology, characterized in that: Using the large model as claimed in claim 1, the model generation method comprises the following steps: In the first step, we use the data labeling module to label the data, including labeling the painting elements and labeling the psychological feature descriptions and suggested contents; In the second step, the labels marked in the first step are identified and calibrated in the representation rule encoding network through the representation rule encoding module to preprocess the data; In the third step, the painting annotations and psychological knowledge annotations calibrated in the second step are loaded into the fusion network through the model training module, the parameters of the network are calculated, and a pre-trained parameter model is generated.
3. The method for generating a large model by pre-training psychology painting test using fusion network technology according to claim 2 is characterized in that: The marking of the painting elements in the first step is to mark the characteristic elements representing different psychological states in the painting as multiple identifiable elements according to the principles of psychological painting.
4. The method for generating a large model by pre-training psychology painting test using fusion network technology according to claim 2 is characterized in that: The marking of the psychological feature description and suggested content in the first step is to annotate the corpus one by one according to the psychological description of each feature, combining the psychological knowledge with the content of the psychological report according to the needs of the painting representation.
5. The method for generating a large model by pre-training psychology painting test using fusion network technology according to claim 2 is characterized in that: The data preprocessing in the second step includes data alignment, element classification rules and spatial element rules. The process of encoding the representation rules is to encode psychological knowledge into a coding structure that can be calculated after the model recognizes the image.
6. The method for generating a large model by pre-training psychology painting test using fusion network technology according to claim 2, characterized in that: The second step of data preprocessing is to process the image matrix data in sequence through the feature representation layer, the convergence layer and the catalyst layer, and finally the feature representation layer outputs the psychological feature data.
7. The method for generating a large model by pre-training psychology painting test using fusion network technology according to claim 6 is characterized in that: The catalyst layer is used to identify and interpret the painting psychology image representation, and is divided into a spatial structure catalyst, a frame structure catalyst and a primitive representation catalyst. The input data of this layer is the primitive structure of the original image, and the output data is the painting psychology feature.
8. The method for generating a large model by pre-training psychology painting test using fusion network technology according to claim 6 is characterized in that: The aggregation layer performs aggregation calculation on the painting psychology features, evaluates the features, outputs the evaluation scores and weights of the features, and extracts the gender and age features corresponding to the features.
9. The method for generating a large model by pre-training psychology painting test using fusion network technology according to claim 6, characterized in that: The feature representation layer infers the content of the feature list output by the aggregation layer one by one, and in this layer infers the evaluated classification, score, etc. into report description and report score. Its output data is connected to the transformation model in a data fusion manner as a Token processed by Embedding.
10. The method for generating a large model by pre-training psychology painting test using fusion network technology according to claim 2, characterized in that: During the model training in the third step, the training of image annotation and the training of psychological knowledge annotation are performed separately, and the training results of the image convolution network are input into the representation network in a data fusion manner; The training of the psychology knowledge annotation adopts the corpus matching the output result of the representation network, and is carried out using the conversion model pre-training method, loading all the materials, and using the Embedding algorithm to generate Tokens, and finally performing forward propagation, gradient descent and back propagation in sequence to learn the corpus materials.
