Intelligent psychological description system for sandbox game

This sandplay game image generation algorithm, which combines graph neural networks and Transformer networks with a psychological sandplay knowledge graph, solves the problem of monotonous report generation in automated sandplay game description systems. It achieves accurate description of the psychological state of the subjects and is suitable for mobile deployment.

CN115222008BActive Publication Date: 2026-11-27INST OF AUTOMATION CHINESE ACAD OF SCI
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110401993.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-14
Publication Date
2026-11-27
Estimated Expiration
2041-04-14

AI Technical Summary

Technical Problem

Existing automated sandplay description systems generate reports with a monotonous language style, lack accurate descriptions of the participants' psychological states, and there is a shortage of psychoanalysts in the market with varying levels of expertise.

Method used

An image generation algorithm for sandplay games using graph neural networks and long short-term memory networks, combined with a psychological sandplay knowledge graph and Transformer network, generates detailed image description reports of sandplay games through image feature extraction and psychological attribute analysis.

Benefits of technology

It improves the accuracy and vividness of image descriptions in sandbox games, is suitable for deployment in scenarios with limited data, has fast processing speed and training speed, and reduces time costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115222008B_ABST
    Figure CN115222008B_ABST
Patent Text Reader

Abstract

The application provides a general sandbox game intelligent psychological description system, which comprises the following steps: performing feature extraction on a sandbox game image by a trained image feature extraction unit to obtain sand tools in the sandbox game image; taking the sand tools as entities, inputting the entities and the relationship between the entities into the image feature extraction unit to obtain a sandbox game image scene graph and a distance matrix between the entities; performing feature representation and vector characterization on nodes in the sandbox game image scene graph to obtain node feature vectors; embedding the node feature vectors into the sandbox game image scene graph to obtain a feature vector embedded scene graph; the feature vector embedded scene graph and the distance matrix between the entities constitute a spatial vector feature; inputting the node feature vectors and the spatial vector feature into an encoder and then into a decoder to obtain a decoded feature vector; and inputting the decoded feature vector into an image description unit to obtain a description report of the sandbox game image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence, and more particularly to an intelligent psychological description system for sandplay games. Background Technology

[0002] Image captioning, also known as image annotation, involves providing a machine with an image, requiring the machine to perceive objects within the image, capture relationships within the scene, and ultimately generate a descriptive text. To effectively describe an image, as much information as possible needs to be extracted. Most current image captioning algorithms employ an encoder-decoder architecture, encoding image features as input and decoding them using natural language generation techniques to obtain an accurate description of the image.

[0003] Sandplay therapy, also known as sandbox therapy, is a nonverbal therapeutic intervention that uses sandboxes, toy figures, and sometimes water to create a miniature world that reflects a person's inner thoughts, struggles, and anxieties. This form of play therapy is conducted alongside talk therapy, using the sandbox and numbers as communication tools. Sandplay therapy is often used for those who have experienced some form of trauma, neglect, or abuse. While sandplay is particularly well-suited for working with young children, who often cannot express their feelings verbally, it is also a technique that can be helpful for some adolescents and adults who have difficulty expressing themselves, as well as those who may have experienced some form of severe trauma.

[0004] With the development of internet and computer technology, digital sandplay software based on 3D sandplay models can now replace traditional sand trays and sandplay objects. Players can create their own sandplay works using electronic touchscreens. However, after creation, a sandplay therapist still needs to analyze the work to understand the player's psychological state as reflected in the sandplay scene. Currently, there is a severe shortage of therapists, and their skill levels vary greatly. Therefore, there is an urgent need to develop an automated psychological sandplay description system to replace the work of therapists and assist therapists in psychotherapy. Existing automated sandplay description reports are mostly template-based, resulting in monotonous and unengaging language that lacks accurate description of the participant's psychological state.

[0005] To obtain intelligent psychological descriptions of sandplay images, in addition to automatically identifying and describing the sandplay objects in the artwork, we also need to further explore the psychological meanings represented by the sandplay scenes. First, we need to apply image description generation, a currently popular research technology at the intersection of computer vision and natural language processing. Next, we need to provide corresponding psychological descriptions for the sandplay objects with psychological meanings.

[0006] Application publication number CN102298661A discloses a sandplay therapy management system, belonging to the field of therapy data management. The system includes: a sandplay tool management module for managing data on the sandplay tools used in the sandplay therapy process, including inputting, modifying, and deleting data; a sandplay therapy management module for recording relevant activities of the therapist during the sandplay therapy process; and a psychotherapy management module for selecting a corresponding psychologist based on the therapist's relevant activity information during the sandplay therapy process. Through this sandplay therapy management system, users can not only systematically archive and manage the sandplay tools, but also record and save the therapist's information and the sandplay therapy process. Furthermore, the system can link the sandplay arrangement images and the therapist's psychological activities with the therapist's information during the therapy process, providing relevant psychologists for reference and generating reports in a standardized format.

[0007] Application publication number CN109584992A discloses an interaction method, device, server, computer-readable storage medium, and VR-based sandplay therapy system. The method includes: acquiring interaction data collected by a first user terminal between a first user and a pre-constructed 3D virtual scene via a VR interaction device; obtaining interaction results based on the interaction data and feeding the interaction results back to the first user terminal, so that the first user terminal displays the interaction results to the first user via a VR display device; and transmitting the interaction process information between the first user and the 3D virtual scene to a second user terminal, so that the second user terminal displays the interaction process information to the second user. The embodiments of this application can improve the effectiveness, controllability, privacy, and convenience of sandplay therapy. Summary of the Invention

[0008] In view of this, the present invention provides an intelligent psychological description system for sandbox games, comprising: a psychological sandbox data acquisition unit, an image feature extraction unit, a psychological sandbox knowledge graph, an encoder, a decoder, and an image description unit; the psychological sandbox data acquisition unit measures psychological indicators through an electronic psychological sandbox game device to obtain sandbox game images, and inputs the sandbox game images into the image feature extraction unit and the psychological sandbox knowledge graph;

[0009] The trained image feature extraction unit extracts features from the sandplay image to obtain the sandplay figures in the sandplay image. The psychological sandplay knowledge graph treats the sandplay figures in the sandplay image as entities, obtains the relationships between entities and the psychological attributes of the entities, and inputs the entities and the relationships between entities into the image feature extraction unit to obtain a sandplay image scene graph with entities as nodes and the relationships between entities as edges and a distance matrix between entities. The relationships between entities are learned by TransR in the psychological sandplay knowledge graph. Through the knowledge representation learned by TransR in the psychological sandplay knowledge graph, the nodes in the sandplay image scene graph are represented by features to obtain node features. The node features are then represented by vectors to obtain node feature vectors. The node feature vectors are embedded into the sandplay image scene graph to obtain feature vector embedded scene graphs. The feature vector embedded scene graphs and the distance matrix between entities constitute spatial vector features.

[0010] The node feature vector and the spatial vector feature are input into the encoder to obtain the encoded features; the encoded features are input into the decoder to obtain the decoded feature vector; the decoded feature vector is input into the image description unit to obtain a description report of the sandbox game image; the encoder is a deep learning network; the decoder is a deep learning network; the image description unit uses a beam search algorithm.

[0011] Preferably, the node features include: name, category, size, location, and psychological attributes; the vector representation is the transformation of the node features into vector or matrix form.

[0012] Preferably, the encoder employs a graph neural network; the graph neural network embeds the feature vector into the scene graph and performs graph convolution operation to obtain the encoded features.

[0013] Preferably, the graph neural network is a graph convolutional neural network or a graph attention network.

[0014] Preferably, the decoder includes an attention mechanism and a long short-term memory network; the encoded features are input into the attention mechanism, and the output of the attention mechanism is then input into the long short-term memory network to obtain the decoded feature vector.

[0015] Preferably, the graph neural network employs a graph attention network.

[0016] Preferably, the encoder is a Transformer network encoder, which includes a self-attention layer and a feedforward neural network.

[0017] Preferably, the node feature vector is input into the self-attention layer to obtain a self-attention feature vector, the self-attention feature vector is multiplied by the distance matrix between the entities, and the result of the matrix multiplication is input into the feedforward neural network to obtain the encoded features.

[0018] Preferably, the decoder is a decoder using a Transformer network.

[0019] Preferably, the TransR learning is: a knowledge graph representation method that learns entity embeddings, projects entities into corresponding relation spaces, and then establishes vector relations from head entity to tail entity. It can model entities and relations in different spaces, namely entity space and multiple relation spaces, and can be transformed in relation space.

[0020] The technical solutions provided in this application have the following advantages compared with the prior art:

[0021] An image generation algorithm for sandplay games based on graph neural networks and long short-term memory networks offers several advantages: First, the algorithm is intuitive and highly interpretable. Second, the graph-based feature representation method possesses strong representational capabilities and performs well even with sparse data. Finally, the attention-based graph embedding method better focuses on the sandplay objects of interest, increasing the accuracy of the description.

[0022] The Transformer network description generation algorithm based on the distance matrix encoding between entities has the following advantages: First, its network structure is relatively simple, its operation speed is fast, and it is easy to deploy on mobile devices; second, its training speed is fast and its time cost is low; finally, it also has a strong fitting ability for small sample data, making it very suitable for deployment in scenarios with a small amount of data. Attached Figure Description

[0023] Figure 1 A functional block diagram of an intelligent psychological description system for sandplay games provided in an embodiment of the present invention;

[0024] Figure 2 A functional structure block diagram of an intelligent psychological description system based on graph neural networks and long short-term memory networks provided in an embodiment of the present invention;

[0025] Figure 3 Functional structure block diagram of an intelligent psychological description system based on Transformer network with inter-entity distance matrix encoding provided in an embodiment of the present invention;

[0026] Figure 4 This is a flowchart illustrating the data acquisition process of the psychological sandplay data acquisition unit provided in an embodiment of the present invention. Detailed Implementation

[0027] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0028] Example 1:

[0029] like Figure 1 The embodiment of this application provides an intelligent psychological description system for sandplay, comprising: a psychological sandplay data acquisition unit, an image feature extraction unit, a psychological sandplay knowledge graph, an encoder, a decoder, and an image description unit; the psychological sandplay data acquisition unit measures psychological indicators through an electronic psychological sandplay device to obtain a sandplay image, and inputs the sandplay image into the image feature extraction unit and the psychological sandplay knowledge graph;

[0030] The trained image feature extraction unit extracts features from the sandplay image to obtain the sandplay figures in the sandplay image. The psychological sandplay knowledge graph treats the sandplay figures in the sandplay image as entities, obtains the relationships between entities and the psychological attributes of the entities, and inputs the entities and the relationships between entities into the image feature extraction unit to obtain a sandplay image scene graph with entities as nodes and the relationships between entities as edges and a distance matrix between entities. The relationships between entities are learned by TransR in the psychological sandplay knowledge graph. Through the knowledge representation learned by TransR in the psychological sandplay knowledge graph, the nodes in the sandplay image scene graph are represented by features to obtain node features. The node features are then represented by vectors to obtain node feature vectors. The node feature vectors are embedded into the sandplay image scene graph to obtain feature vector embedded scene graphs. The feature vector embedded scene graphs and the distance matrix between entities constitute spatial vector features.

[0031] The node feature vector and the spatial vector feature are input into the encoder to obtain the encoded features; the encoded features are input into the decoder to obtain the decoded feature vector; the decoded feature vector is input into the image description unit to obtain a description report of the sandbox game image; the encoder is a deep learning network; the decoder is a deep learning network; the image description unit uses a beam search algorithm.

[0032] like Figure 4 As shown, the specific method for data acquisition by the psychological sandplay data acquisition unit is as follows:

[0033] Participants first complete the SCL-90 scale for psychological measurement, then create sandplay games within a specified time. After completion, professional psychological sandplay game analysts annotate the sandplay game images with psychological descriptions. Following annotation, qualified annotated works are added to the psychological sandplay dataset.

[0034] Before the psychological sandplay knowledge graph treats the sandplay figures in the sandplay game images as entities, data storage is required. The specific method is as follows:

[0035] The psychological sandplay data acquisition unit acquires images of the sandplay game using an electronic psychological sandplay game device, obtains the sandplay figures in the images, and has psychologists annotate the psychological attributes of the sandplay figures. Simultaneously, psychological annotations are also performed on the spatial relationships and character relationships between the sandplay figures. The relationships between entities include spatial relationships and character relationships. Based on existing entities, relevant entities are recursively crawled from the ConceptNet general knowledge graph to enrich the content of the psychological sandplay knowledge graph. Additionally, 34 relationships crawled from the ConceptNet general knowledge graph are added as supplements. Finally, entity-relationship-entity triples are established and stored in the knowledge base of the psychological sandplay knowledge graph as a TransR learning retrieval library.

[0036] The TransR learning method is a knowledge graph representation method that learns entity embeddings, projects entities into corresponding relation spaces, and then establishes vector relations from head entity to tail entity. It can model entities and relations in different spaces, namely entity space and multiple relation spaces, and can be transformed in relation space.

[0037] like Figure 2 As shown, the encoder employs a graph neural network; the graph neural network embeds the feature vector into the scene graph and performs graph convolution operations to obtain the encoded features; the decoder includes an attention mechanism and a long short-term memory network; the encoded features are input into the attention mechanism, and the output of the attention mechanism is then input into the long short-term memory network to obtain the decoded feature vector. The graph neural network can be either a graph convolutional neural network or a graph attention network. Results show that the graph attention network has superior feature fusion capabilities.

[0038] like Figure 3As shown, the encoder is a Transformer network encoder, which includes a self-attention layer and a feedforward neural network; the node feature vector is input into the self-attention layer to obtain a self-attention feature vector, the self-attention feature vector is multiplied by the distance matrix between the entities, and the result of the matrix multiplication is input into the feedforward neural network to obtain the encoded features; the decoder is a Transformer network decoder.

[0039] Example 2:

[0040] Digital sandplay game software was used to collect sandplay game images from 200 college students from universities in Beijing. Each work was annotated with psychological analysis descriptions by 5 different psychological counselors.

[0041] The trained image feature extraction unit extracts features from the sandplay image to obtain the sandplay figures in the sandplay image. The psychological sandplay knowledge graph treats the sandplay figures in the sandplay image as entities, obtains the relationships between entities and the psychological attributes of the entities, and inputs the entities and the relationships between entities into the image feature extraction unit to obtain a sandplay image scene graph with entities as nodes and the relationships between entities as edges and a distance matrix between entities. The relationships between entities are learned by TransR in the psychological sandplay knowledge graph. Through the knowledge representation learned by TransR in the psychological sandplay knowledge graph, the nodes in the sandplay image scene graph are represented by features to obtain node features. The node features are then represented by vectors to obtain node feature vectors. The node feature vectors are embedded into the sandplay image scene graph to obtain feature vector embedded scene graphs. The feature vector embedded scene graphs and the distance matrix between entities constitute spatial vector features.

[0042] The graph neural network embeds the feature vector into the scene graph and performs graph convolution to obtain the encoded features. The graph attention network has a maximum input dimension of 1000 and an output dimension of 20. The encoded features are then input into the attention mechanism, and the output of the attention mechanism is input into a long short-term memory network to obtain the decoded feature vector. The long short-term memory network has an input dimension of 20, 128 hidden layers, and a maximum output of 1000 characters. The decoded feature vector is then input into the image description unit to obtain a description report of the sandbox game image.

[0043] Example 3:

[0044] Digital sandplay game software was used to collect sandplay game images from 200 college students from universities in Beijing. Each work was annotated with psychological analysis descriptions by 5 different psychological counselors.

[0045] The trained image feature extraction unit extracts features from the sandplay image to obtain the sandplay figures in the sandplay image. The psychological sandplay knowledge graph treats the sandplay figures in the sandplay image as entities, obtains the relationships between entities and the psychological attributes of the entities, and inputs the entities and the relationships between entities into the image feature extraction unit to obtain a sandplay image scene graph with entities as nodes and the relationships between entities as edges and a distance matrix between entities. The relationships between entities are learned by TransR in the psychological sandplay knowledge graph. Through the knowledge representation learned by TransR in the psychological sandplay knowledge graph, the nodes in the sandplay image scene graph are represented by features to obtain node features. The node features are then represented by vectors to obtain node feature vectors. The node feature vectors are embedded into the sandplay image scene graph to obtain feature vector embedded scene graphs. The feature vector embedded scene graphs and the distance matrix between entities constitute spatial vector features.

[0046] The node feature vector is input into the self-attention layer to obtain a self-attention feature vector. The self-attention feature vector is then multiplied by the distance matrix between the entities, and the result of the matrix multiplication is input into the feedforward neural network to obtain the encoded features. The decoder uses a Transformer network. The maximum input dimension is 1000 dimensions, of which 20 dimensions can be input in parallel at a time, and the maximum output character length is 1000. The decoded feature vector is input into the image description unit to obtain a description report of the sandbox game image.

[0047] It should be understood that although the terms first, second, third, etc., may be used in this invention to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first information may also be referred to as second information without departing from the scope of this invention, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."

[0048] While this specification contains numerous specific implementation details, these should not be construed as limiting the scope of any invention or the scope of the claims, but rather are primarily intended to describe features of specific embodiments of a particular invention. Certain features described in the various embodiments herein may also be implemented in combination in a single embodiment. Conversely, various features described in a single embodiment may also be implemented separately in various embodiments or in any suitable sub-combination. Furthermore, while features may function in certain combinations as described above and even initially claimed in this way, one or more features from a claimed combination may be removed from that combination in some cases, and a claimed combination may refer to a sub-combination or a variation thereof.

[0049] Similarly, although the operations are depicted in a specific order in the accompanying drawings, this should not be construed as requiring these operations to be performed in the specific order shown or sequentially, or requiring all illustrated operations to be performed to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system modules and components in the above embodiments should not be construed as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

[0050] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve the desired result. Furthermore, the processes depicted in the drawings are not necessarily shown in a specific order or sequence to achieve the desired result. In some implementations, multitasking and parallel processing may be advantageous.

[0051] 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 principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. An intelligent psychological description system for sandplay games, characterized in that, include: The system includes a psychological sandplay data acquisition unit, an image feature extraction unit, a psychological sandplay knowledge graph, an encoder, a decoder, and an image description unit. The psychological sandplay data acquisition unit measures psychological indicators through an electronic psychological sandplay game device, obtains sandplay game images, and inputs the sandplay game images into the image feature extraction unit and the psychological sandplay knowledge graph. The trained image feature extraction unit extracts features from the sandplay image to obtain the sandplay figures in the sandplay image. The psychological sandplay knowledge graph treats the sandplay figures in the sandplay image as entities, obtains the relationships between entities and the psychological attributes of the entities, and inputs the entities and the relationships between entities into the image feature extraction unit to obtain a sandplay image scene graph with entities as nodes and the relationships between entities as edges and a distance matrix between entities. The relationships between entities are learned by TransR in the psychological sandplay knowledge graph. Through the knowledge representation learned by TransR in the psychological sandplay knowledge graph, the nodes in the sandplay image scene graph are represented by features to obtain node features. The node features are then represented by vectors to obtain node feature vectors. The node feature vectors and the distance matrix between the entities are input into the encoder to obtain the encoded features; the encoded features are then input into the decoder to obtain the decoded feature vectors. The decoded feature vector is input into the image description unit to obtain a description report of the sandbox game image; the encoder is a deep learning network; the decoder is a deep learning network; the image description unit uses a beam search algorithm.

2. The intelligent psychological description system for sandplay games according to claim 1, characterized in that, The node features include: name, category, size, location, and psychological attributes; the vector representation is the transformation of the node features into vector or matrix form.

3. The intelligent psychological description system for sandplay games according to claim 1, characterized in that, The encoder is a Transformer network encoder, which includes a self-attention layer and a feedforward neural network.

4. The intelligent psychological description system for sandplay games according to claim 3, characterized in that, The node feature vector is input into the self-attention layer to obtain the self-attention feature vector. The self-attention feature vector is multiplied by the distance matrix between the entities, and the result of the matrix multiplication is input into the feedforward neural network to obtain the encoded features.

5. The intelligent psychological description system for sandplay games according to claim 4, characterized in that, The decoder uses a Transformer network.

6. The intelligent psychological description system for sandplay games according to claim 1, characterized in that, The TransR learning method is a knowledge graph representation method that learns entity embeddings, projects entities into corresponding relation spaces, and then establishes vector relations from head entity to tail entity. It can model entities and relations in different spaces, namely entity space and multiple relation spaces, and can be transformed in relation space.

7. An intelligent psychological description system for sandplay games, characterized in that, include: The system includes a psychological sandplay data acquisition unit, an image feature extraction unit, a psychological sandplay knowledge graph, an encoder, a decoder, and an image description unit. The psychological sandplay data acquisition unit measures psychological indicators through an electronic psychological sandplay game device, obtains sandplay game images, and inputs the sandplay game images into the image feature extraction unit and the psychological sandplay knowledge graph. The trained image feature extraction unit extracts features from the sandplay image to obtain the sandplay figures in the sandplay image. The psychological sandplay knowledge graph treats the sandplay figures in the sandplay image as entities, obtains the relationships between entities and the psychological attributes of the entities, and inputs the entities and the relationships between entities into the image feature extraction unit to obtain a sandplay image scene graph with entities as nodes and the relationships between entities as edges and a distance matrix between entities. The relationships between entities are learned by TransR in the psychological sandplay knowledge graph. Through the knowledge representation learned by TransR in the psychological sandplay knowledge graph, the nodes in the sandplay image scene graph are represented by features to obtain node features. The node features are then represented by vectors to obtain node feature vectors. The node feature vectors are embedded into the sandbox game image scene map to obtain the feature vector embedded scene map; The feature vector is embedded into the scene graph and input into the encoder to obtain the encoded features; the encoded features are then input into the decoder to obtain the decoded feature vector. The decoded feature vector is input into the image description unit to obtain a description report of the sandbox game image; the encoder is a deep learning network; the decoder is a deep learning network; the image description unit uses a beam search algorithm.

8. The intelligent psychological description system for sandplay games according to claim 7, characterized in that, The node features include: name, category, size, location, and psychological attributes; the vector representation is the transformation of the node features into vector or matrix form.

9. The intelligent psychological description system for sandplay games according to claim 7, characterized in that, The encoder employs a graph neural network; the graph neural network embeds the feature vector into the scene graph and performs graph convolution operation to obtain the encoded features.

10. The intelligent psychological description system for sandplay games according to claim 9, characterized in that, The graph neural network mentioned above can be a graph convolutional neural network or a graph attention network.

11. The intelligent psychological description system for sandplay games according to claim 10, characterized in that, The decoder includes an attention mechanism and a long short-term memory network; the encoded features are input into the attention mechanism, and the output of the attention mechanism is then input into the long short-term memory network to obtain the decoded feature vector.

12. The intelligent psychological description system for sandplay games according to claim 7, characterized in that, The TransR learning method is a knowledge graph representation method that learns entity embeddings, projects entities into corresponding relation spaces, and then establishes vector relations from head entity to tail entity. It can model entities and relations in different spaces, namely entity space and multiple relation spaces, and can be transformed in relation space.

Citation Information

Patent Citations

  • Sandplay Therapy Management System

    CN102298661A

  • Interaction method, device, server, storage medium and sand table treatment system

    CN109584992A

  • Image query answering method based on image scene map alignment

    CN109800317A