Confidential group psychological test system and data processing method thereof
By using AES-GCM encryption algorithm and local decryption processing methods in the psychological test system, data security risks and operational complexity problems in the prior art are solved, and more efficient, safe and convenient psychological test data processing is achieved.
Patent Information
- Application Number
- CN202411603675.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-05-13
AI Technical Summary
Existing psychological testing systems have data security risks and operational complexity problems in an environment with high confidentiality requirements, making it difficult to effectively protect the privacy of test data and improve data processing efficiency.
A confidential group psychological test system is designed, using client and cloud architecture, and the test data is encrypted end-to-end through the AES-GCM encryption algorithm, and decrypted locally to simplify user operations to start the test by scanning the QR code.
It significantly improves the security and confidentiality of data, reduces the risk of data leakage, simplifies user operations, improves data processing efficiency, and meets the strict requirements of high-confidentiality units for data security.
Smart Images

Figure CN119993396A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of psychological test data processing, and in particular relates to a confidential group psychological test system and a data processing method thereof. Background Art
[0002] Electronic and network technologies are widely used in the field of psychological testing to assess and monitor psychological status. These systems are used in different fields such as clinical, educational, corporate and government, aiming to obtain data about the psychological status of individuals or groups through standardized test scales. In sensitive fields such as government or military institutions, psychological testing systems need to pay special attention to data confidentiality and security. Although existing technologies are capable of processing and storing sensitive data, there is still a certain risk of privacy leakage in the process of data collection, processing and reporting.
[0003] Defects and shortcomings of existing technology
[0004] Insufficient privacy protection: Existing psychological testing systems often lack adequate privacy protection measures when processing sensitive data, especially in environments with high confidentiality requirements, such as government or military agencies. This may result in the storage or transmission of the test subject's personal information without adequate encryption, increasing the risk of data leakage; Inefficient data processing: Many existing systems are often inefficient when processing large-scale psychological test data, especially in generating detailed individual and group reports. The processing time is long and they cannot respond quickly to user needs; Operational complexity: In a confidential environment, traditional psychological testing systems often require complex setup and operation processes, including inputting and managing sensitive information during the data collection and processing stages, which not only increases the complexity of the operation, but also increases the risk of operational errors. Summary of the invention
[0005] The purpose of the present invention is to solve the data security risks and operational complexity problems of existing psychological testing systems in high confidentiality requirements environments, such as government or military agencies, and to provide a confidential group psychological testing system and a data processing method thereof, aiming to enhance data security and confidentiality. The present invention realizes a safer, more efficient and convenient psychological testing system, especially with significant improvements in processing sensitive data and maintaining user privacy.
[0006] To achieve the above object, the technical solution of the present invention is: a confidential group psychological test system, comprising:
[0007] The client side includes the administrator side and the evaluator side. The administrator side manages the scales and test types of psychological tests, supports different scale combinations to generate different evaluation QR codes, and can encrypt and decrypt test data to generate real psychological test report files. The evaluator side conducts tests by scanning the evaluation QR code to generate test data.
[0008] The cloud stores encrypted test data.
[0009] In one embodiment of the present invention, the administrator end includes an administrator public network PC management end and an administrator intranet decryption end, and the administrator intranet decryption end is installed with an offline version of the data decryption program, namely, the intranet decryption exe.
[0010] In one embodiment of the present invention, the administrator's public network PC management terminal is used to implement the selection of psychological test scales and assessment types, to define the assessment and generate an assessment QR code, and to add the assessor number and verification code based on the defined assessment. At the same time, the administrator's public network PC management terminal exports all assessment results after the assessor completes the assessment, and generates an encrypted result file after encryption.
[0011] In one embodiment of the present invention, the scales of the psychological tests for each scenario are selected and weighted based on previous experience in psychiatric epidemiological investigations, as follows:
[0012] (1) Depression
[0013] Use scale:
[0014] PHQ-9: used to assess the severity of depression symptoms;
[0015] Beck Depression Inventory (BDI): used to assess the depth of depression;
[0016] Hamilton Depression Rating Scale (HAMD): used to evaluate depression symptoms in detail in clinical practice;
[0017] Weight formula:
[0018] Depression score = 0.4*PHQ-9+0.3*BDI+0.3*HAMD
[0019] (2) Anxiety disorder
[0020] Use scale:
[0021] GAD-7: used to assess generalized anxiety disorder;
[0022] SAS: used to self-assess the degree of anxiety;
[0023] BAI: Assess different manifestations of anxiety;
[0024] Weight formula:
[0025] Anxiety score = 0.5*GAD-7+0.3*SAS+0.2*BAI
[0026] (3) Schizophrenia
[0027] Use scale:
[0028] PANSS: used to assess positive, negative, and general psychotic symptoms of schizophrenia;
[0029] BPRS: used to quickly assess a variety of psychiatric symptoms, including those of schizophrenia;
[0030] SAPS and SANS: used to assess positive and negative symptoms of schizophrenia, respectively;
[0031] Weight formula:
[0032] Schizophrenia score = 0.4*PANSS+0.4*BPRS+0.2*(SAPS+SANS) / 2
[0033] (4) Bipolar disorder
[0034] Use scale:
[0035] YMRS: used to assess the severity of manic symptoms;
[0036] MDQ: used to screen for bipolar disorder;
[0037] BDI-II: used to assess mood states during the depressive phase;
[0038] Weight formula:
[0039] Bipolar disorder score = 0.5*YMRS+0.3*MDQ+0.2*BDI-II
[0040] (5) Obsessive-compulsive disorder (OCD)
[0041] Use scale:
[0042] Y-BOCS: used to assess the severity of obsessive-compulsive disorder;
[0043] OCI-R: assesses the frequency of OCD symptoms;
[0044] HAMA: assesses anxiety associated with obsessive-compulsive symptoms;
[0045] Weight formula:
[0046] OCD score = 0.6*Y-BOCS+0.3*OCI-R+0.1*HAMA
[0047] (6) Post-traumatic stress disorder (PTSD)
[0048] Use scale:
[0049] PCL-5: used to assess the severity of post-traumatic stress symptoms;
[0050] IES-R: used to assess the psychological impact of a specific traumatic event on an individual;
[0051] HAMA: Assessment of concomitant anxiety symptoms;
[0052] Weight formula:
[0053] PTSD score = 0.5*PCL-5+0.3*IES-R+0.2*HAMA
[0054] (7) Comprehensive psychological assessment
[0055] Use scale:
[0056] SCL-90: An extensive psychological assessment scale;
[0057] SAS and BDI: assess anxiety and depression dimensions, respectively;
[0058] Comprehensive weight formula:
[0059] Comprehensive mental health score = 0.6*SCL-90+0.2*SAS+0.2*BDI.
[0060] In one embodiment of the present invention, the evaluator enters the public network evaluation page by scanning the evaluation QR code, and starts the evaluation through the evaluator number and verification code; the administrator's intranet decryption end decrypts the encrypted result file through the intranet decryption exe to obtain the evaluator's evaluation result, and replaces the evaluator information in the evaluator's evaluation result with the real information in the evaluator information file, thereby generating a real report file for the psychological test.
[0061] In one embodiment of the present invention, the evaluation result is encrypted by the AES-GCM encryption algorithm to generate an encrypted result file; the intranet decryption exe uses the AES-GCM encryption algorithm to decrypt the encrypted result file.
[0062] In one embodiment of the present invention, the AES-GCM encryption algorithm is specifically implemented as follows:
[0063] (1) Encryption
[0064] (1.1) Encryption steps:
[0065] (1.1.1) Block encryption: AES-GCM divides the plaintext into blocks of fixed size;
[0066] (1.1.2) Ciphertext generation: For each packet, AES-GCM generates ciphertext based on the initial vector IV and the counter value; the process can be expressed as:
[0067]
[0068] Among them, AES Encrypt Indicates that the AES algorithm is used for encryption operations; Ciphertext i is the ith plaintext group, Plaintext is the ith plaintext data to be encrypted, ⊕ represents a bitwise XOR operation, Counter i is the counter value generated based on the initialization vector and the counter;
[0069] (1.1.3) Encryption output: concatenate all ciphertext groups to obtain the final encrypted output Ciphertex;
[0070] (1.2) Authentication tag generation
[0071] (1.2.1) Message Authentication Code Calculation: AES-GCM uses an encrypted authentication tag to ensure data integrity. The formula for generating the authentication tag is:
[0072] AuthTag=GHASH(Ciphertext,AAD,Key)
[0073] Among them, GHASH is a hash function on the Galois field, which is used to generate an authentication tag for the ciphertext Ciphertext and the additional authentication data AAD after encryption is completed;
[0074] (1.2.2) Encrypted authentication tag: used to verify whether the data has been tampered with during transmission;
[0075] (1.3) Overall encryption formula
[0076] The high-level formula for the entire encryption process in AES-GCM mode is summarized as follows:
[0077] (Ciphertext,AuthTag)=AES-GCM Encrypt (Plaintext,Key,IV,AAD)
[0078] Among them, AES-GCM Encrypt Indicates that the encryption operation is performed based on the AES algorithm combined with the Gallois / Counter Mode GCM; Ciphertext is the final ciphertext output; AuthTag is the authentication tag used for data integrity verification; Plaintext is the plaintext data to be encrypted; Key is the key for symmetric encryption;
[0079] (2) Decryption
[0080] The decryption process is the reverse process of encryption, first verifying the authentication tag and then decrypting the packet;
[0081] (2.1) Certification label verification:
[0082] Valid? =GHASH(Ciphertext,AAD,Key)=? AuthTag
[0083] If the verification passes, the decryption process continues; if it fails, it indicates that the data may have been tampered with;
[0084] (2.2) Packet decryption:
[0085]
[0086] Among them, AES Decrypt Indicates that the AES algorithm is used for decryption operation; decrypt each packet one by one, and finally obtain the complete plaintext;
[0087] (2.3) Overall formula for decryption
[0088] Plaintext = AES-GCM Decrypt (Ciphertext,Key,IV,AAD,AuthTag).
[0089] Among them, AES-GCM Decrypt Indicates AES-GCM Encrypt The corresponding decryption operation.
[0090] In one embodiment of the present invention, the system adopts BS architecture and cloud service design.
[0091] In one embodiment of the present invention, the evaluation QR code is a QR code generated by a QR code generator installed on the administrator's end and linked to a specified psychological test scale.
[0092] The present invention also provides a data processing method based on the above-mentioned confidential group psychological test system, comprising the following steps:
[0093] 1) The administrator selects the scale on the administrator's public network PC management terminal and defines the evaluation type;
[0094] 2) The administrator selects the evaluation type on the administrator's public network PC management terminal, defines the evaluation and generates the evaluation QR code;
[0095] 3) The administrator selects the evaluation and adds the evaluator number and verification code on the administrator's public network PC management terminal;
[0096] 4) The evaluator uses the evaluator terminal to scan the QR code to enter the public network evaluation page, enter the evaluator number and verification code to log in to the system, and start the evaluation;
[0097] 5) After the evaluator completes the evaluation, the administrator exports all evaluation results on the administrator's public network PC management terminal;
[0098] 6) The administrator's public network PC management terminal encrypts the evaluation results using the AES-GCM encryption algorithm to generate an encrypted result file;
[0099] 7) The administrator imports the encrypted result file and the assessor information file into the intranet decryption exe on the intranet;
[0100] 8) The intranet decryption exe uses the AES-GCM encryption algorithm to decrypt the encrypted result file into the evaluation result of the evaluator;
[0101] 9) The intranet decryption exe replaces the evaluator information in the evaluation results with the real information in the evaluator information file;
[0102] 10) Intranet decryption exe generates real report file.
[0103] Compared with the prior art, the present invention has the following beneficial effects:
[0104] 1. Enhanced security of data encryption and local decryption
[0105] Deficiencies of existing technologies: In environments with high confidentiality requirements, such as government or military agencies, existing psychological testing systems often cannot fully protect the security of test data, and data is easily accessed by unauthorized people during transmission and storage.
[0106] Improvement: By introducing end-to-end data encryption technology and performing data decryption processing locally, the present invention ensures the security of data during the entire transmission and storage process. This method not only reduces the risk of data leakage, but also meets the strict requirements of high-confidentiality units for data security.
[0107] Advantages: Improved data security, reduced risk of data leakage, and enhanced user trust in the system.
[0108] 2. System architecture optimization and efficiency improvement
[0109] Deficiencies of existing technologies: When processing large amounts of test data, existing psychological testing systems have low report generation efficiency and are unable to quickly respond to user needs.
[0110] Improvements: The present invention adopts BS architecture and cloud services, which can support large-scale data processing and remote data access. At the same time, the automatic report generation function can provide detailed test results in real time.
[0111] Advantages: The system response time is shortened, the user waiting time is reduced, and the efficiency of the overall testing process is improved.
[0112] 3. Simplify user operations
[0113] Deficiencies of the prior art: Traditional psychological testing systems are complex to operate, especially when starting and conducting tests, users need to perform multiple steps of settings and configurations.
[0114] Improvement: By generating different QR codes corresponding to different test scales, users only need to scan the code to start the test, which greatly simplifies the process of starting and conducting the test.
[0115] Advantages: Easy operation, quick user learning, reduced possibility of operating errors, improved testing convenience and user satisfaction.
[0116] 4. Improvement of cost efficiency
[0117] Disadvantages of existing technologies: Existing systems are costly in deployment and maintenance, especially in terms of investment in security measures and data processing.
[0118] Improvement: By adopting cloud services and automated reporting functions, the present invention reduces the reliance on physical hardware and the need for manual operations, thereby reducing the overall operation and maintenance costs of the system.
[0119] Advantages: Long-term operating costs are reduced, making the promotion and application of the system more economical and feasible. BRIEF DESCRIPTION OF THE DRAWINGS
[0120] Figure 1 This is a system architecture diagram of the present invention.
[0121] Figure 2 This is a business flow chart of the present invention.
[0122] Figure 3 This is the backend management architecture diagram.
[0123] Figure 4 This is the user manual interface.
[0124] Figure 5 This is the administrator login interface.
[0125] Figure 6 It is the meter management interface.
[0126] Figure 7 Create an interface for the gauge QR code.
[0127] Figure 8 This is the user's mobile login interface.
[0128] Fig. 9 Decryption program for the local side.
[0129] Fig.10 For group psychology report (example). DETAILED DESCRIPTION
[0130] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings.
[0131] The present invention provides a confidential group psychological test system, comprising:
[0132] The client side includes the administrator side and the evaluator side. The administrator side manages the scales and test types of psychological tests, supports different scale combinations to generate different evaluation QR codes, and can encrypt and decrypt test data to generate real psychological test report files. The evaluator side conducts tests by scanning the evaluation QR code to generate test data.
[0133] The cloud stores encrypted test data.
[0134] The present invention also provides a data processing method based on the above-mentioned confidential group psychological test system, comprising the following steps:
[0135] 1) The administrator selects the scale on the administrator's public network PC management terminal and defines the evaluation type;
[0136] 2) The administrator selects the evaluation type on the administrator's public network PC management terminal, defines the evaluation and generates the evaluation QR code;
[0137] 3) The administrator selects the evaluation and adds the evaluator number and verification code on the administrator's public network PC management terminal;
[0138] 4) The evaluator uses the evaluator terminal to scan the QR code to enter the public network evaluation page, enter the evaluator number and verification code to log in to the system, and start the evaluation;
[0139] 5) After the evaluator completes the evaluation, the administrator exports all evaluation results on the administrator's public network PC management terminal;
[0140] 6) The administrator's public network PC management terminal encrypts the evaluation results using the AES-GCM encryption algorithm to generate an encrypted result file;
[0141] 7) The administrator imports the encrypted result file and the assessor information file into the intranet decryption exe on the intranet;
[0142] 8) The intranet decryption exe uses the AES-GCM encryption algorithm to decrypt the encrypted result file into the evaluation result of the evaluator;
[0143] 9) The intranet decryption exe replaces the evaluator information in the evaluation results with the real information in the evaluator information file;
[0144] 10) Intranet decryption exe generates real report file.
[0145] The following are specific implementation examples of the present invention.
[0146] 1. If Figure 1 As shown, a design method of a confidential group psychological test system of the present invention is as follows:
[0147] - Needs analysis: First, analyze the needs of the target user group and determine the types of psychological tests that need to be supported, such as anxiety, depression, or personality tests.
[0148] - Scale selection and combination: Based on the results of the needs analysis, select appropriate psychological test scales and design a combination of scales to facilitate customized and personalized testing.
[0149] -System architecture design: BS architecture and cloud service design are adopted to ensure system scalability, high availability and data security. At the same time, data encryption, firewalls, data security fortresses or security protection are used to ensure the security of data during transmission and storage.
[0150] -Interface design and user interaction: Design simple and intuitive user interfaces, including management and testing ends, to ensure that users can easily operate and understand them.
[0151] -Data security measures: Implement data encryption transmission and local decryption measures to ensure data security during transmission and storage.
[0152] 2. System components and their functions:
[0153] -Server: Cloud servers are used for data processing and storage, supporting high concurrent access and large data volume processing.
[0154] -Database: Use relational database system (RDS) to store test data and user information, supporting fast query and data analysis.
[0155] -Client devices: including PC and mobile devices. Users access cloud services through these devices to perform testing or management operations.
[0156] - QR code generator: a software component used to generate a QR code linked to a specific psychological test scale, which the user scans to start the test.
[0157] -Data decryption equipment: dedicated hardware or software installed locally to decrypt received encrypted data to ensure the confidentiality of the data and to be processed only in an authorized local environment.
[0158] 3. Working Principle and Process
[0159] Operation process:
[0160] -After the user (administrator or tester) logs into the system, the administrator can configure the test parameters, such as selecting a scale and generating a QR code.
[0161] -The tester starts the psychological test by scanning the QR code, and the test data is uploaded to the cloud server in real time and encrypted.
[0162] - Encrypted data is stored in the cloud database and is only decrypted by authorized local devices when needed to generate reports.
[0163] -The local device uses a decryption program to decrypt the encrypted data and generate a detailed test report based on the administrator's configuration.
[0164] Figure 3 This is the backend management architecture diagram.
[0165] 4. Specific business processes (such as Figure 2 , Figure 4-10 (shown)
[0166] 1. The administrator selects the scale on the public network PC management terminal and defines the evaluation type
[0167] 2. The administrator selects the evaluation type on the public network PC management terminal, defines the evaluation and generates the evaluation QR code
[0168] 3. The administrator selects the evaluation on the public network PC management terminal and adds the evaluator number and verification code
[0169] 4. The evaluator uses a mobile device to scan the QR code to enter the public network evaluation page, enter the evaluator number and verification code to log in to the system, and start the evaluation
[0170] 5. After the evaluator completes the evaluation, the administrator exports the encrypted evaluation report on the public network PC management terminal
[0171] 6. The system automatically obtains the evaluation results completed by all evaluators under this evaluation
[0172] 7. The system encrypts the evaluation results using the AES-GCM encryption algorithm to generate an encrypted result file
[0173] 8. The administrator imports the encrypted result file and the assessor information file into the intranet decryption exe
[0174] 9. The intranet decryption exe uses the AES-GCM encryption algorithm to decrypt the encrypted result file into the evaluation result of the evaluator.
[0175] 10. The intranet decryption exe replaces the evaluator information in the evaluation results with the real information in the evaluator information file
[0176] 11. Intranet decryption exe generates real report file.
[0177] 5. Scale Calling Strategy
[0178] In actual use, selecting appropriate scales and assigning different weighting strategies according to different scenarios can better assess the individual's mental state. Based on previous experience in psychiatric epidemiology, this paper preliminarily formulates scale calling strategies and reference formulas for weight allocation for several common scenarios. (References: Sun Jiangnan .Analysis of mental disorders among new recruits of the armed police force[D]. Hebei Medical University, 2015.)
[0179] 1. Depression
[0180] Commonly used scales: Depression is usually assessed using the following scales:
[0181] PHQ-9 (Patient Health Questionnaire-9): used to assess the severity of depression symptoms.
[0182] Beck Depression Inventory (BDI): used to assess the severity of depression.
[0183] Hamilton Depression Rating Scale (HAMD): used to clinically assess the symptoms of depression in detail.
[0184] Weight formula:
[0185] Depression score = 0.4*PHQ-9+0.3*BDI+0.3*HAMD
[0186] The PHQ-9 was weighted higher (0.4) because of its higher diagnostic sensitivity for depression.
[0187] The weight of BDI and HAMD is 0.3 each, which is used to supplement the assessment of depressive symptoms in different dimensions.
[0188] 2. Anxiety disorder (References: Li Xinting, Wang Qianyu, Sun Jiangnan , et al. The relationship between perfectionism, social anxiety and FOMO among college students[J]. Public Relations World, 2021, (02): 109-110.)
[0189] Commonly used scales:
[0190] GAD-7 (Generalized Anxiety Disorder-7): Mainly used to assess generalized anxiety disorder.
[0191] SAS (Self-Rating Anxiety Scale): used to self-assess the degree of anxiety.
[0192] BAI (Beck Anxiety Inventory): Assess different manifestations of anxiety, especially physical symptoms.
[0193] Weight formula:
[0194] Anxiety score = 0.5*GAD-7 + 0.3*SAS + 0.2*BAIGAD-7 has a higher weight (0.5) because it is the standard measurement tool for generalized anxiety disorder.
[0195] SAS was used to supplement the subjective anxiety score with a weight of 0.3.
[0196] The BAI focuses on the physical symptoms of anxiety and has a weight of 0.2.
[0197] 3. Schizophrenia
[0198] Commonly used scales:
[0199] PANSS (Positive and Negative Syndrome Scale): used to assess positive, negative and general psychotic symptoms of schizophrenia.
[0200] BPRS (Brief Psychiatric Rating Scale): Used to quickly assess a variety of psychiatric symptoms, including symptoms of schizophrenia.
[0201] SAPS and SANS (Scale for the Assessment of Positive / Negative Symptoms): used to assess the positive and negative symptoms of schizophrenia, respectively.
[0202] Weight formula:
[0203] Schizophrenia score = 0.4*PANSS+0.4*BPRS+0.2*(SAPS+SANS) / 2
[0204] The PANSS and BPRS were weighted higher, at 0.4 each, because they comprehensively assess the symptoms of schizophrenia.
[0205] The average score of SAPS and SANS was weighted 0.2, focusing on the manifestation of positive and negative symptoms.
[0206] 4. Bipolar disorder
[0207] Commonly used scales:
[0208] YMRS (Young Mania Rating Scale): used to assess the severity of manic symptoms.
[0209] MDQ (Mood Disorder Questionnaire): used to screen for bipolar disorder.
[0210] BDI-II (Beck Depression Inventory-II): Used to assess the emotional state of the depressive stage.
[0211] Weight formula:
[0212] Bipolar disorder score = 0.5*YMRS+0.3*MDQ+0.2*BDI-II
[0213] The YMRS has a higher weight (0.5) because it is specifically designed to assess manic symptoms.
[0214] The MDQ has a weight of 0.3 and helps identify symptoms of bipolar disorder.
[0215] The BDI-II has a weight of 0.2 and is used to identify symptoms of the depressive stage.
[0216] 5. Obsessive-compulsive disorder (OCD)
[0217] Commonly used scales:
[0218] Y-BOCS (Yale-Brown Obsessive Compulsive Scale): used to assess the severity of obsessive-compulsive disorder.
[0219] OCI-R (Obsessive Compulsive Inventory-Revised): Assess the frequency of obsessive-compulsive symptoms.
[0220] HAMA (Hamilton Anxiety Rating Scale): Assess the anxiety associated with obsessive-compulsive symptoms.
[0221] Weight formula:
[0222] OCD score = 0.6*Y-BOCS+0.3*OCI-R+0.1*HAMA
[0223] The Y-BOCS had the highest weight (0.6) because it is the gold standard for OCD assessment.
[0224] The OCI-R was used to supplement the frequency of OCD symptoms with a weight of 0.3.
[0225] The HAMA weight was 0.1 and was used to assess anxiety associated with OCD.
[0226] 6. Post-traumatic stress disorder (PTSD)
[0227] Commonly used scales:
[0228] PCL-5 (PTSD Checklist for DSM-5): Used to assess the severity of post-traumatic stress symptoms.
[0229] IES-R (Impact of Event Scale-Revised): Used to assess the psychological impact of specific traumatic events on individuals.
[0230] HAMA: Assessing concomitant anxiety symptoms.
[0231] Weight formula:
[0232] PTSD score = 0.5*PCL-5+0.3*IES-R+0.2*HAMA
[0233] The PCL-5 was weighted higher (0.5) because it is a core scale for PTSD diagnosis.
[0234] IES-R focuses on the psychological impact of traumatic events and has a weight of 0.3.
[0235] HAMA was used to assess anxiety related to PTSD with a weight of 0.2.
[0236] 7. Comprehensive psychological assessment (references: Duan Lisa, Guo Yuming, Sun Jiangnan , et al. Investigation and analysis of the mental health status of officers and soldiers in a tertiary hospital of a certain army during the COVID-19 epidemic[J]. Armed Police Medicine, 2020, 31(03): 191-194. DOI: 10.14010 / j.cnki.wjyx.20200312.003.)
[0238] For comprehensive mental health screening without a clear diagnosis, multiple scales can be combined for extensive assessment, such as the SCL-90 (Symptom Checklist-90) as the main scale, combined with other scales (such as SAS and BDI) to assess different dimensions of mental health.
[0239] Comprehensive weight formula:
[0240] Comprehensive mental health score = 0.6*SCL-90+0.2*SAS+0.2*BDI
[0241] SCL-90, as a broad psychological assessment scale, has a higher weight (0.6).
[0242] SAS and BDI assess anxiety and depression dimensions, respectively, with each accounting for a weight of 0.2.
[0243] 8. Active listening empathy test (counselor empathy test) (references: GuoH, LinL, JiaZ, SunJ, ZhuangZ, DuanL, Sun J. ValidationofreliabilityandvalidityoftheChineseversionofthe active-empathiclisteningscale.FrontPsychiatry.2022Aug23;13:938461.doi:10.3389 / fpsyt.2022.938461.PMID:36081459;PMCID:PMC9445210.)
[0244] Please read the following questions carefully and rate yourself based on how well each question applies to you.
[0245] 1 point represents “almost never”, 2 points represent “very rarely”, 3 points represent “rarely”, 4 points represent “many times”, 5 points represent “often”, 6 points represent “frequently” and 7 points represent “always or all the time”.
[0246] topic Your self-rating 1. I am aware of what others are saying that is relevant but not what they are saying. (…)point 2. I can detect what others imply even when they don’t say it out loud. (…)point 3. I understand other people’s feelings. (…)point 4. I listen not only to what others say, but also to their true intentions. (…)point
[0247] 6. Encryption Strategy
[0248] AES-GCM (Advanced Encryption Standard-Galois / Counter Mode) is an advanced encryption mode that combines encryption and authentication. It is based on the AES algorithm, but compared to the traditional AES encryption mode, AES-GCM provides data confidentiality (confidentiality) and data integrity (tamper-proof). AES-GCM encryption consists of two main parts: encryption and authentication tag generation. It can effectively provide data confidentiality and integrity verification. The following is a description of the encryption and decryption formulas:
[0249] Encryption steps
[0250] 1. Block encryption: AES-GCM divides the plaintext into blocks of fixed size (128 bits, or 16 bytes).
[0251] 2. Ciphertext generation: For each packet, AES-GCM generates ciphertext based on the initial vector (IV) and the counter value. The process can be expressed as:
[0252]
[0253] Among them, Ciphertexti is the i-th plaintext group, Represents a bitwise XOR operation, Counteri is the counter value generated based on the initialization vector and the counter.
[0254] AES Encrypt Represents the operation of encrypting data using the AES (Advanced Encryption Standard) algorithm. AES is a block encryption standard that uses symmetric key encryption and is widely used in data protection. AES supports different key lengths (128 bits, 192 bits, and 256 bits) and has high encryption strength and speed. Encrypt means "encryption", which converts plaintext data into ciphertext, making it unreadable, thereby protecting the confidentiality of information.
[0255] 3. Encrypted output: concatenate all ciphertext groups to obtain the final encrypted output Ciphertex.
[0256] Authentication label generation
[0257] 1. Message authentication code calculation: AES-GCM uses an encrypted authentication tag to ensure the integrity of the data. The formula for generating the authentication tag is:
[0258] Auth Tag=GHASH(Ciphertext,AAD,Key)
[0259] Among them, GHASH is a hash function on the Galois field, which is used to generate an authentication tag for the ciphertext (Ciphertext) and additional authentication data (AAD) after encryption is completed.
[0260] 2. Encrypted authentication tag: In practical applications, this tag is used to verify whether the data has been tampered with during transmission.
[0261] Overall formula for encryption
[0262] In AES-GCM mode, the high-level formula for the entire encryption process can be summarized as follows:
[0263] (Ciphertext,AuthTag)=AES-GCM Encrypt (Plaintext,Key,IV,AAD)
[0264] in:
[0265] Ciphertext is the final ciphertext output.
[0266] AuthTag is an authentication tag used for data integrity verification.
[0267] Plaintext is the plaintext data to be encrypted.
[0268] Key is the key for symmetric encryption.
[0269] IV is an Initialization Vector, which is used to ensure cryptographic randomness.
[0270] AAD is additional authentication data (optional), which is not encrypted but authenticated.
[0271] AES-GCM Encrypt It is used to encrypt and authenticate data. It is an encryption method based on AES, using Galois / Counter Mode (GCM) to achieve data confidentiality and integrity protection. AES-GCMEncrypt combines data encryption and authentication verification, which can effectively prevent data leakage and tampering during transmission and storage.
[0272] Decryption steps
[0273] The decryption process is the reverse process of encryption, first verifying the authentication tag and then decrypting the packet.
[0274] 1. Certification label verification:
[0275] Valid? =GHASH(Ciphertext,AAD,Key)=? AuthTag
[0276] If the verification passes, the decryption process continues; if it fails, it indicates that the data may have been tampered with.
[0277] 2. Packet decryption:
[0278] Plaintexti=AES Decrypt (Ciphertext i ⊕Counter i ,Key)
[0279] Decrypt each group one by one and finally get the complete plaintext.
[0280] AES Decrypt AES is a decryption method used to decrypt AES encrypted data. Decrypt With AES encryption methods such as AES-GCM Encrypt ), which corresponds to the AES-GCM mode, and is used to securely restore the encrypted ciphertext to readable plaintext. The decryption method relies on the correct symmetric key, initialization vector (IV), and authentication tag generated during the encryption process (in AES-GCM mode).
[0281] Formula Overview
[0282] Plaintext = AES-GCM Decrypt(Ciphertext,Key,IV,AAD,AuthTag)
[0283] AES-GCM Decrypt AES-GCM is a secure decryption method for decrypting data based on the Galois / CounterMode (GCM) mode of AES. Decrypt It can not only restore encrypted ciphertext to plaintext, but also verify the integrity and authenticity of the data to ensure that the data has not been tampered with during transmission or storage.
[0284] It ensures the confidentiality and integrity of data encrypted transmission through AES-GCM in high-security scenarios (such as group psychological test data processing).
[0285] The present invention uses the AES-GCM-128-GCM encryption and decryption algorithm, the key length is 128 bits, the filling method uses the NoPadding mode, and the secret key, initial vector and additional message required by the algorithm are preset in the public network PC management terminal and the intranet decryption exe.
[0286] In actual use, the system first counts the evaluation results of all the evaluators who have completed the evaluation, and composes them into the plaintext string to be encrypted. Then, the encryption mode object of the Cipher class is generated through the key, initial vector and additional information, and the data is initialized. The plaintext string is then encrypted through the object, and the ciphertext string is output and saved as an encryption result file.
[0287] After the administrator imports the encrypted result file into the intranet decryption exe, the program first reads the ciphertext string in the file, then generates a decryption mode object of the Cipher class through the key, initial vector and additional information and initializes the data, and then decrypts the ciphertext string through the object, outputs the plaintext string, and then parses the plaintext string into the evaluation result data of the evaluator, and replaces the evaluator information with the real information in the evaluator information file imported by the administrator, and finally generates a real report file.
[0288] The above are preferred embodiments of the present invention. Any changes made according to the technical solution of the present invention, as long as the resulting functions do not exceed the scope of the technical solution of the present invention, belong to the protection scope of the present invention.
Claims
1. A confidential group psychological test system, characterized in that: include: The client side includes the administrator side and the evaluator side. The administrator side manages the scales and test types of psychological tests, supports different scale combinations to generate different evaluation QR codes, and can encrypt and decrypt test data to generate real psychological test report files. The evaluator side conducts tests by scanning the evaluation QR code to generate test data. The cloud stores encrypted test data.
2. A confidential group psychological test system according to claim 1, characterized in that: The administrator side includes the administrator public network PC management side and the administrator intranet decryption side. The administrator intranet decryption side is installed with the offline data decryption program, namely the intranet decryption exe.
3. A confidential group psychological test system according to claim 2, characterized in that: The administrator's public network PC management terminal is used to select the scale of the psychological test and the assessment type, to define the assessment and generate the assessment QR code, and to add the assessor number and verification code based on the defined assessment. At the same time, the administrator's public network PC management terminal exports all assessment results after the assessor completes the assessment, and generates an encrypted result file after encryption.
4. A confidential group psychological test system according to claim 1, characterized in that: The scales of the psychological tests for each scenario were selected and weighted based on previous experience in psychiatric epidemiological investigations, as follows: (1) Depression Use scale: PHQ-9: used to assess the severity of depression symptoms; Beck Depression Inventory (BDI): used to assess the depth of depression; Hamilton Depression Rating Scale (HAMD): used to evaluate depression symptoms in detail in clinical practice; Weight formula: Depression score = 0.4*PHQ-9+0.3*BDI+0.3*HAMD (2) Anxiety disorder Use scale: GAD-7: used to assess generalized anxiety disorder; SAS: used to self-assess the degree of anxiety; BAI: Assess different manifestations of anxiety; Weight formula: Anxiety score = 0.5*GAD-7+0.3*SAS+0.2*BAI (3) Schizophrenia Use scale: PANSS: used to assess positive, negative, and general psychotic symptoms of schizophrenia; BPRS: used to quickly assess a variety of psychiatric symptoms, including those of schizophrenia; SAPS and SANS: used to assess positive and negative symptoms of schizophrenia, respectively; Weight formula: Schizophrenia score = 0.4*PANSS+0.4*BPRS+0.2*(SAPS+SANS) / 2(4) Bipolar disorder Use scale: YMRS: used to assess the severity of manic symptoms; MDQ: used to screen for bipolar disorder; BDI-II: used to assess mood states during the depressive phase; Weight formula: Bipolar disorder score = 0.5*YMRS+0.3*MDQ+0.2*BDI-II (5) Obsessive-compulsive disorder (OCD) Use scale: Y-BOCS: used to assess the severity of obsessive-compulsive disorder; OCI-R: assesses the frequency of OCD symptoms; HAMA: assesses anxiety associated with obsessive-compulsive symptoms; Weight formula: OCD score = 0.6*Y-BOCS+0.3*OCI-R+0.1*HAMA (6) Post-traumatic stress disorder (PTSD) Use scale: PCL-5: used to assess the severity of post-traumatic stress symptoms; IES-R: used to assess the psychological impact of a specific traumatic event on an individual; HAMA: assesses concomitant anxiety symptoms; Weight formula: PTSD score = 0.5*PCL-5+0.3*IES-R+0.2*HAMA (7) Comprehensive psychological assessment Use scale: SCL-90: An extensive psychological assessment scale; SAS and BDI: assess anxiety and depression dimensions, respectively; Comprehensive weight formula: Comprehensive mental health score = 0.6*SCL-90+0.2*SAS+0.2*BDI.
5. A confidential group psychological test system according to claim 3, characterized in that: The evaluator enters the public network evaluation page by scanning the evaluation QR code and starts the evaluation using the evaluator number and verification code; the administrator's intranet decryption end decrypts the encrypted result file through the intranet decryption exe into the evaluator's evaluation result, and replaces the evaluator information in the evaluator's evaluation result with the real information in the evaluator information file to generate a real report file for the psychological test.
6. A confidential group psychological test system according to claim 3, characterized in that: The evaluation results are encrypted using the AES-GCM encryption algorithm to generate an encrypted result file; the intranet decryption exe uses the AES-GCM encryption algorithm to decrypt the encrypted result file.
7. A confidential group psychological test system according to claim 6, characterized in that: The specific implementation of the AES-GCM encryption algorithm is as follows: (1) Encryption (1.1) Encryption steps: (1.1.1) Block encryption: AES-GCM divides the plaintext into blocks of fixed size; (1.1.2) Ciphertext generation: For each packet, AES-GCM generates ciphertext based on the initial vector IV and the counter value; the process can be expressed as: Ciphertext i =AES Encrypt (Plaintext i ⊕Counter i ,Key) Among them, AES Encrypt Indicates that the AES algorithm is used for encryption operations; Ciphertext i is the ith plaintext group, Plaintext is the ith plaintext data to be encrypted, ⊕ represents a bitwise XOR operation, Counter i is the counter value generated based on the initialization vector and the counter; (1.1.3) Encryption output: concatenate all ciphertext groups to obtain the final encrypted output Ciphertex; (1.2) Authentication tag generation (1.2.1) Message Authentication Code Calculation: AES-GCM uses an encrypted authentication tag to ensure data integrity. The formula for generating the authentication tag is: Auth Tag=GHASH(Ciphertext,AAD,Key) Among them, GHASH is a hash function on the Galois field, which is used to generate an authentication tag for the ciphertext Ciphertext and the additional authentication data AAD after encryption is completed; (1.2.2) Encrypted authentication tag: used to verify whether the data has been tampered with during transmission; (1.3) Overall encryption formula The high-level formula for the entire encryption process in AES-GCM mode is summarized as follows: (Ciphertext,Auth Tag)=AES-GCM Encrypt (Plaintext,Key,IV,AAD) Among them, AES-GCM Encrypt Indicates that the encryption operation is performed based on the AES algorithm combined with the Gallois / Counter Mode GCM; Ciphertext is the final ciphertext output; Auth Tag is the authentication tag used for data integrity verification; Plaintext is the plaintext data to be encrypted; Key is the key for symmetric encryption; (2) Decryption The decryption process is the reverse process of encryption, first verifying the authentication tag and then decrypting the packet; (2.1) Certification label verification: Valid? =GHASH(Ciphertext,AAD,Key)=? Auth Tag If the verification passes, the decryption process continues; if it fails, it indicates that the data may have been tampered with; (2.2) Packet decryption: Plaintexti=AES Decrypt (Ciphertext i ⊕Counter i ,Key) Among them, AES Decrypt Indicates that the AES algorithm is used for decryption operation; decrypt each packet one by one, and finally obtain the complete plaintext; (2.3) Overall formula for decryption Plaintext=AES-GCM Decrypt (Ciphertext,Key,IV,AAD,Auth Tag)。 Among them, AES-GCM Decrypt Indicates AES-GCM Encrypt The corresponding decryption operation.
8. A confidential group psychological test system according to claim 1, characterized in that: The system adopts BS architecture and cloud service design.
9. A confidential group psychological test system according to claim 1, characterized in that: The evaluation QR code is a QR code generated by a QR code generator installed on the administrator's end and linked to a specified psychological test scale.
10. A data processing method based on the confidential group psychological test system according to any one of claims 2 to 7, characterized in that: The steps include: 1) The administrator selects the scale on the administrator's public network PC management terminal and defines the evaluation type; 2) The administrator selects the evaluation type on the administrator's public network PC management terminal, defines the evaluation and generates the evaluation QR code; 3) The administrator selects the evaluation and adds the evaluator number and verification code on the administrator's public network PC management terminal; 4) The evaluator uses the evaluator terminal to scan the QR code to enter the public network evaluation page, enter the evaluator number and verification code to log in to the system, and start the evaluation; 5) After the evaluator completes the evaluation, the administrator exports all evaluation results on the administrator's public network PC management terminal; 6) The administrator's public network PC management terminal encrypts the evaluation results using the AES-GCM encryption algorithm to generate an encrypted result file; 7) The administrator imports the encrypted result file and the assessor information file into the intranet decryption exe on the intranet; 8) The intranet decryption exe uses the AES-GCM encryption algorithm to decrypt the encrypted result file into the evaluation result of the evaluator; 9) The intranet decryption exe replaces the evaluator information in the evaluation results with the real information in the evaluator information file; 10) Intranet decryption exe generates real report file.
Citation Information
Cited By
Encryption method, decryption method, encryption and decryption method and computer readable storage medium
CN120263395A