Designing Online Psychological Consultation Expert System Using Human-Computer Interaction

. Traditional online psychological consultation expert system has low eﬃciency. It is because of limited human-computer interaction and lack of intelligence. As a result, an expert system for psychological consultation is needed. Therefore, in this paper, we design an online psychological consultation expert system based on human-computer interaction. Using human-computer interaction technology, the basic principles of the system’s design are formulated. The design is used to build a psychological consultation expert system framework suitable for numerous applications. Human-computer interaction knowledge is imported into the system to determine the consultation process based on fuzzy set. To complete the online psychological consultation preset, the adjustment of human-computer interaction accuracy is determined. Moreover, a psychological state of the user in human-computer interaction is achieved using the expression of psychological counseling results. Comparing the simulated psychological consultation process, the results show that the design system is 30% more eﬃcient than the traditional consultation system. The consulting success rate is more than 20%. The comprehensive consultation time is shortened, and its eﬀectiveness is proved.


Introduction
e expert system is a computer system composed of a knowledge base, inference engine, and database.Its purpose is to make judgments, explanations, and perceptions of problems in a specific field.e expert system can provide intelligent decision-making and assistance to solve the problems and explain the solution processes.It can also be called the "Intelligent Knowledge Base System (IKBS)" [1].e first expert system was founded in 1956 by Allen Newell, Herbert Simon, and J.C. Shaw.Since then, many expert systems have also been established, but in the early days, most of them were prototype systems of a research nature.After the 1970s, the high-level and software development tools for artificial intelligence and expert systems have gradually begun to develop.A number of knowledge representations and calculation methods have also been extensively studied, which has led to changes in the construction and development of expert systems.Since the late 1980s, the expert system had gradually separated from laboratory research and was widely used in various industries, which included the following: the cotton production management expert system developed by Hal.Lemmon in 1986; the expert system architecture [2] based on neural network proposed by Gallant in 1988; the ESIM irrigation management expert system developed by Srinivasan et al; an agricultural drift expert system developed by S. Saputro in 1991; the underground mining production management system developed by R.L. Grayson, G. M. Watts, and others of the US Bureau of Mines in 2000.e expert systems have achieved very good results in practical applications.ere are also many applications of expert systems in medicine and psychology.Since the 1970s, it has been raised to research "medical diagnostic expert systems."Stanford University first developed high performance and functional MYCIN system in 1974, which is used to help physicians diagnose and treat infectious diseases.In the period of nearly 30 years since then, both domestic and foreign countries have invested enormous power in research and development and have made some progress.
At present, the domestic research results in this field include Hebei University of Medicine's Shenzhen City Psychological Counseling Expert System XLZXV1.1 in 1995 and Hua Xia Saco Clinical Psychological Evaluation and Diagnosis System developed and launched in 2003 by Huake Secco Technology Development Co., Ltd.A significant feature of human-computer interaction is the ability to measure ambiguity and inaccuracy.e root of such ambiguities and inaccuracies are subjective and objective.In terms of objective reasons, the world has always been colorful.People perceive the world through sensory organs and then use natural language to express their feelings, whose process is full of "fuzziness" and "inaccuracy" [3].From a subjective perspective, the psychological counseling process has a certain "guessing" component, which has the pursuit of "accuracy and precision," which is also the "simple and practical" side.It also uses "utility" as its purpose, and therefore it also brings certain ambiguity and inaccuracy.
Currently, there is not yet a unified standard for the definition of symptoms of mental illness in the knowledge of psychology.Most of them depend on the subjective experience of consultants.However, the counselor's description of the degree of the symptoms is not a description of the binary logic "yes" or "no."For the psychological consultation expert system based on the theory of human-computer interaction, the system reflects human thinking process through humancomputer interaction logic, simulating human language sense and making decisions [4].erefore, there is a great deal of ambiguity about the definition of the symptoms of mental illness and the definition of the degree of counseling.e psychological consultation expert system must be able to handle both types of ambiguity.Human-computer interaction theory (or human-computer interaction logic) is vague itself.However, it can clearly describe the logic of ambiguity.Regarding the psychological consultation expert system based on human-computer interaction theory, human-computer interaction theory can calibrate incomplete knowledge.Humancomputer interaction logic can reflect the human thinking process and simulate human language sense, decision-making, and common sense [5].It formulates a new, more human, and intelligent psychological consultation expert system.e definition of human-computer interaction logic is a set of mathematical principles based on the degree of membership rather than mathematical principles of knowledge expression of clear membership in classical binary logic.Human-computer interaction logic is multivalued.e human-computer interaction logic expression always uses a continuous interval [6] of logic values between 0 (completely false) and 1 (completely true).As it is different from the fact that nonblack is white, it uses a color spectrum and can accept things that are partially true and partially false.e rest of the paper is organized as follows.In Section 2, the design of the psychological consultation expert system is elaborated.e implementation of the psychological consultation expert system is provided in Section 3. In Section 4, the experimental analysis is given, and the paper is concluded in Section 5.

Overall Design of Psychological Consultation
Expert System is section discusses the design principle of the proposed system and the implementation of the expert system module.

Design Principle.
Human-computer interaction fuzzy sets can be simply defined as a set with fuzzy boundaries.Assuming that X is a domain, the elements can be denoted as x.In classical set theory, X's sharp set A is defined as a function f A (x), called the Eigen function of A: is set maps the domain of X to two elements.For any element x of domain X, if x is an element of set A, the feature function f A (x) is 1.If x is not an element of set A, the feature function f A (x) is zero.In fuzzy theory, fuzzy set A of domain X is defined as function u A (x), which is called the membership function of set A: is set allows the use of possible consecutive values.For any element x of the domain X, the membership function u A (x) is equal to x and is the degree of the element in the set A. e degree of the value of 0 to 1, in the said membership, is also known as the membership value of the element x in the set A [7].In order to express the result of the consultation in the psychological consultation expert system, the set is represented by a function, and the elements in the set are mapped to the degree of membership.
e classic membership functions in the psychological consultation expert system are trigonometric functions and trapezoidal functions.
e operation of a human-computer interactive fuzzy set is as follows: in the late nineteenth century, the classical set theory, developed by Georg Cantor, describes how distinct sets interact, and these interactions are called operations.
e four operations are as follows: complement, containment, intersection, and union.e following is the principle of operation of the psychological consultation expert system.

2.1.1.
Complement.Distinct set (who does not belong to the set?), fuzzy set (operation element do not belong to the degree of set)? e complement of a set is the opposite of the set.If A is a fuzzy set, its complement A is as ) and a fuzzy set (how much does the element belong to both sets?) are included.In the classical set theory, the intersection of two sets contains elements that are common to both sets.However, in the fuzzy set, the elements may belong to two sets in part.e degree of membership is also different for the two sets.erefore, the degree of membership of each element in the fuzzy intersection is relatively low.e fuzzy operation of creating the intersection of fuzzy sets A and B on field X is where X ∈ X. Union: A distinct set (which elements belong to two sets?) and a fuzzy set (to what extent the elements belong to two sets) are included.
e union of the distinct set is composed of all the elements that belong to two sets.In the fuzzy set, the union is the reverse operation of intersection, which is composed of two elements with a large concentration of membership.e fuzzy operation for creating the union of fuzzy sets A and B on field x is where X ∈ X.
In order to adapt to different description objects, a variety of different operators are defined according to actual conditions, and these operators define the operation of fuzzy sets.For example, the fuzzy operation of the algebraic sum of fuzzy sets A and B on algebra and domain X is formulated as follows: where X ∈ X. Distinct sets and fuzzy sets have the same properties.Distinct sets can be considered as special cases of fuzzy sets.
e psychological consultation expert system is designed with the following properties: exchangeability, integration, distributivity, idempotence, identity, self-multiplying, transitivity, and De Morgan's law.

Construction of Consulting Module.
e expert system for online psychological consultation is composed of four parts: database, model base (knowledge base), inference engine, and human-machine field.
e database receives, stores, provides, and modifies data for its management system; the model library stores, extracts, and modifies the management system; the inference engine is the core execution mechanism of the expert system, and it is actually a program for interpreting knowledge, that is, explaining and executing knowledge found by a certain strategy according to the semantics of knowledge and recording the results in the appropriate space of the database.e human-machine interface is a part of the interaction between the user and the system [8].In order to solve a certain problem, the user issues instructions through the man-machine interface, and the database management system stores the data into the database or modifies the database according to the instructions.e model library management system extracts the model from the model library according to the user's instruction and extracts the data from the database.e relevant data are calculated and reasoned [9].e composition of the online psychological consultation expert system is shown in Figure 1: e functions and roles of the various modules in the consulting architecture are as follows.
2.2.1.Databases.Databases are used to store expertise provided by domain experts.
is specialized knowledge includes field-related book knowledge, common sense knowledge, and exploratory knowledge acquired by experts.
e problem solving of the expert system is to use the expertise provided by experts to simulate the thinking mode of the expert.e quantity and quality of knowledge base will become the key factor of the system performance and problem-solving ability in an expert system [10].erefore, the establishment of the knowledge base is the central task of constructing the expert system.e model base is used to store the initial data, solution state, intermediate result, hypothesis, goal, and final result of the problem-solving.

Inference Engine.
In the context of a specific control strategy, the current information in the integrated database is identified and selected in the knowledge base to solve the current problem.In the expert system, since the knowledge base is often incomplete and inaccurate, the reasoning process generally uses inaccurate reasoning.

2.2.3.
e Interpersonal Interaction Interface.It is the knowledge acquisition process.In the knowledge base construction of expert systems, it is used to partially replace knowledge engineers for automatic acquisition of specialized knowledge to realize self-learning of expert systems and improve the knowledge base [11].According to the user's questions, the conclusion, solution process, and current state of the system are explained, which can facilitate the user to understand the problem of the system and increase the user's trust in the solution.In the process of improving the knowledge base, it is convenient for experts and knowledge engineers to find and locate the errors in the knowledge base and for professionals or beginners in the field to learn from the problem-solving process.e system converts the information input by the expert or user into an internal form acceptable to the system and converts the information output by the system to the expert or user into an external structure that is easy for humans to understand [12].e overall module and process design of the online psychological consultation expert system are shown in Figure 2.
It includes the following sections: Personal Information Collection Module.e personal information collection module needs to collect basic personal information and personal psychological status information and is automatically obtained by the system during the human-machine conversation [13].Personal basic information Mobile Information Systems includes attributes, such as name, age, major, grade, and family status, which are used to create personal information models.
e psychological state information mainly refers to the counselor's current psychological activity and psychological state, as a database of expert systems.Inference Engine.e inference engine is the core of the entire expert system.It is based on the personal information database acquired by the personal information acquisition module and the knowledge base of the psychological domain, inferentially diagnoses the psychological type of the consultant, and obtains an overview of the personal mental state.It can be a mixture of psychological types.Psychological Test Module.According to the possible psychological type of the consultant, through a series of psychological tests, the individual mental state details are set up, the types of psychological problems and their severity are determined, and the psychological solutions are given.Psychological Answering Module.Using the process of human-machine conversation, the psychological problems of consultants are analyzed, and the necessary answers are given.

Implementation of Psychological Consultation Expert System
is section discusses various components of the proposed system from the implementation aspects of the expert system module.

Human-Computer Interaction Knowledge Import.
e main research content of the knowledge acquisition is to extract the attributes of the user's psychological activity, classify the psychological state rationally, and establish the mental state model.By analyzing the general psychological characteristics of the user group and combining some actual investigation results, the user's mental health problems are divided into 301 psychological description attributes, 24 psychological states, and eight mental state models [14].Each mental state model corresponds to a set of description attributes and their psychological testing methods.Figure 3 is a classification structure diagram of the user's mental state model.
e psychological consultation expert system is based on a man-machine dialogue.e computer imitates the human expert's diagnosis of the counselor: the diagnosis of the disease consists of five parts: knowledge acquisition, knowledge representation, knowledge base, inference engine, and human-computer interaction interface.Knowledge acquisition is the extraction of knowledge for solving domain-specific problems from the source of knowledge that possesses the knowledge and is converted into a specific computer representation [15].Knowledge sources include human experts, textbooks, databases, and human experience.Psychological consultation expert system includes production representation, predicate logic representation, semantic web representation, frame representation, and so on.According to the knowledge-based system itself in the classification role, the consultation and acquisition methods can be divided into active consulting acquisition and passive consulting acquisition.According to knowledge-based systems, working methods for acquiring knowledge can be  4 Mobile Information Systems classified into two types: nonautomatic knowledge acquisition and automatic knowledge acquisition [16].Since the classification and definition of psychological consultation knowledge in the online psychological consultation expert system based on human-computer interaction is not yet clear and standardized.e acquisition method of psychological consultation knowledge adopts the passive knowledge acquisition method introduced in the first classification, as shown in Figure 4.

3.2.
e Establishment of Interactive Fuzzy Sets.Determining the fuzzy interaction set includes the composition of the fuzzy interaction set and the expression of the fuzzy interaction set.e fuzzy interaction set is composed of the interaction fuzzy set C of the psychological state Ci, the interactive fuzzy set Cij of the psychological state, and the set of illness fuzzy S. In many cases, using some common distribution function as a membership function to determine the expression of fuzzy interaction sets is the easiest way.Based on the experience of experts in the field of psychology and the computational complexity, the following membership functions were selected: semitrapezoidal distribution and triangular distribution, where the semitrapezoidal distribution is suitable for expressing "very light" and "very small" types of interactive fuzzy variables.Amity is used to express "light" in the system.e base variable is x, the domain is X, and X is defined as R+.A function expression is as follows: e triangular distribution is suitable for expressing an interactive fuzzy variable A with a "symmetric" uncertainty distribution, such as "medium."It is used to express "moderate degree," whose basic variable is x, the domain is X, and X is defined in R. Function expression is as follows: Mobile Information Systems e semitrapezoidal distribution is suitable for expressing "larger" types of interactive fuzzy variables A. It is used to express "heavy" in the system.e base variable is x, the domain is X, and X is defined at R10. Function expression is as follows: e relationship between input and output of fuzzy sets is the premise and foundation for constructing fuzzy rules.
e following is the fuzzy rules of psychological counseling knowledge: e former can be composed of multiple parts.e computation between the previous parts here is programmed to operate.e ANDO AND operation conform to the actual process of psychological counseling.at is, the consultant can use different factors to judge the illness.Calculate multiple parts and get a single value, the post-item.Both the preceding and following terms consist of the string and the numeric value.e string represents the language variable, and the value represents the value of the language variable.is completes the establishment of an interactive fuzzy set.

Determination of Users' Psychological State in Human-Computer
Interaction.e user's psychological state in human-computer interaction is important in the psychological consultation expert system.ere are two reasons for incorporating knowledge into the computer through this data structure: the expert system shell is designed for a certain type of knowledge representation, such as rules or  6 Mobile Information Systems logic; the way an expert system expresses knowledge affects the development of the system.Knowledge representation is the process of symbolization and formalization of knowledge.e knowledge representation method studies the programming process of the system.In general, different representations can be used for the same kind of knowledge.In turn, a knowledge representation model can express a variety of different knowledge.However, when solving a problem, different representation methods have completely different results.So far, there is no universal and perfect knowledge representation model.Knowledge representation has not yet been perfected.In the expert system, knowledge representation methods include first-order predicate representation, production representation, semantic network representation, frame representation, and characteristic representation.
e attribute of the knowledge representation is that the user's psychological activity description attribute is the most basic psychological activity description factor in the psychological counseling field, represented by the set Ω [17].It is to summarize 301 psychological description attributes, such as interpersonal relationships, ideals, postgraduates, and academic degrees.e type of mental state is the type of mental state used to describe the characteristics of the user's psychological phenomena, which is the main factor that describes the mental state model.By summing up the 24 types of mental states, set X is recorded.Suppose the power set of the mental description attribute set Ω is ξ(Ω).ere is a mapping relationship between the set ξ(Ω) and X. e mapping relationship is a proposition function f, that is, f: ξ(Ω) ⟶X.Among them, X � {character problem, social adaptability, lack of self-evaluation, true attitude of communication, emotional problems, escapism, habit formation, overstress, environmental factors, thoughts and mentality, mental stress, adaptation to new environment, life habits, family factors, psychological factors, love problems, sexual behaviors in love, personal and psychological problems in love, outlook on life, prospects, employment problems, lack of self-confidence, exams, intense learning attitudes, educational issues}.
e mental state model is the psychological state model.It is the psychological state type used to describe the features of a certain type of psychological disorder in psychological problem counseling.It is the basis for the classification of psychological problems.According to the summary of eight types of mental state models, the mental state model set is recorded as Y � {Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8}, where Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, respectively: lack of interpersonal skills, lack of self-confidence, emotional out of control, poor self-care ability, poor adaptability, personal emotional confusion, feelings of despair, employment, life, learning problems, and other eight types of psychological state model.Similar to the relationship between description attributes and mental state types, there is also a certain logical relationship between mental state types and mental state models.Assuming that the power set of the mental state type set x is ξ(Ω), there is a mapping relationship between the set enthalpy (Ω) and Y, which is a proposition function g, that is, g: ξ (Ω) ⟶ Y. e proposition functions f and g are defined as follows.
e proposition functions f and g satisfy the following properties: property 1 is set according to the definition of the proposition function f, supposing that the set of independent variables that have a mapping relationship with x1, x2, . .., xm are Ω1, Ω2, . .., Ωm, respectively, satisfy Ωi ∩ Ωi � ψ, where i ≠ j, 0 < i, j < m + 1, ψ represents an empty set.
For example, the psychological state model Y7 is "confused about the future, employment, and life," and the mental state type "outlook on life," "future employment problem," and "lack of confidence" are recorded as X1, X2, and X3, respectively.ere are four propositional formulas (also known as rule).
Rule e commonly used knowledge representation methods include first-order predicate logic, semantic network, production rules, and framework theory.e knowledge representation of the system adopts a production rule method.e specific form is as shown previously. is form is similar to the conditional statement in computer programming technology [18].

Human-Machine Interaction Accuracy Proofreading.
A high-performance expert system not only has a lot of expertise but also can select and apply knowledge.As the core of the expert system, the main task of the inference engine is to determine the choice and use of knowledge in the problem-solving process promptly to help improve the system's proofreading accuracy.e control strategy of the inference engine determines the choice of knowledge, and the reasoning method of the inference engine determines the application of specific knowledge.Reasoning methods include deductive reasoning and inductive reasoning, exact reasoning, and inexact reasoning.

Deductive Reasoning and Inductive Reasoning.
Deductive reasoning is why general lesser conclusions are derived from general premise.Deductive reasoning cannot reproduce knowledge.e core of deductive reasoning is a syllogism.It consists of three judgments, two of which are preconditions and the other is conclusions.Deductive reasoning is to conclude individual things from the principle of general principles.e thinking process is from general to individual; the conclusion of deductive reasoning does not exceed the scope of the premise in principle; the connection between the conclusion of deductive reasoning and the premise is inevitable, as long as the premise is true and the form of reasoning is correct, and the conclusion must be reliable.Inductive reasoning is the reasoning that generalizes larger conclusions from less general premises.e thinking process is from individual to general [19].Inductive reasoning generally reproduces new knowledge.Inductive inference includes complete inductive reasoning, simple enumeration, scientific induction, analogy, and statistical reasoning.

Exact Reasoning and Inexact
Reasoning.Exact reasoning means that there is a definite causal relationship between premises and conclusions, and facts and conclusions are all determined.Deductive reasoning is based on mathematical logic.ere is a strict and exact causal relationship between the problem facts and the conclusions, and the facts are always determined or accurate.erefore, deductive reasoning is exact reasoning.As the known data and knowledge used inaccurate reasoning are complete and accurate, the conclusions obtained by reasoning are also correct and reliable.However, there are quite a few subjective judgments of human knowledge that are inaccurate and vague.In addition, facts and information collected for reasoning are often incomplete and inaccurate.erefore, inference knowledge derived from this knowledge is also often inaccurate.Reasoning based on this inaccurate inference knowledge leads to conclusions called inexact reasoning.In the expert system, inaccurate reasoning is usually used because most of its problems are bad structural problems.

Inference Control Strategy. Inference strategy mainly solves the knowledge selection and application sequence of the entire problem-solving process. It decides what to do
first, what to do afterward, doing different work according to the current state of problem-solving, and determining how to act at the abnormal situation that occurred once and so on.At present, the inference strategies used in the expert system include conflict resolution, forward inference, reverse inference, hybrid inference, two-way inference, and meta-control.e burst elimination solution strategy is to solve the problem of how to select a piece of knowledge reasonably from a large amount of available knowledge, and it is a basic reasoning control strategy.

e Expression of Human-Computer Interaction Psychological Consultation Results.
e human-computer interaction interface provides a dialogue mechanism between the user and the computer.e interface of the expert system has the following three functions: testing before the completion of the development of the expert system; the consultation of practical problems; modifying the expert system when the answer is found invalid or insufficient.Users can be divided into three groups: domain experts, knowledge engineers, and general staff.Domain experts are experts in a specific field, who help establish, test, and apply an expert system to solve practical problems.Knowledge engineers are computer programmers who obtain knowledge from experts to develop an expert system and apply it to practical problems so as to improve and perfect it constantly.e average user does not develop or perfect the system.e functions of the human-computer interaction interface include the following aspects: ability to understand that people enter facts in certain prescribed languages and ask most systems to specify a specific language for users to use.ere is a language compiler in the system that parses and semantically understands the received language and then converts it to an internal representation.Future developments require that the system be able to directly receive natural language or be able to understand people's words.is requires the system to have functions such as natural language understanding and language recognition.e system can be asked questions by people and the user for facts and evidence during system operation.e commonly used forms are (a) test table; (b) multiple choice; (c) numerical value; (d) Y/N.Another form is when the system finds a fault and asks the expert (such as the wrong information in the knowledge base), which means that the system is learning from outside.It can explain his own work process and conclusion.e expert system must not only solve practical problems at the expert level but also give a detailed explanation of the problemsolving process.Only in this way, the conclusions given are convincing.In addition, in the debugging phase of the system, the interpretation of the conclusions obtained using the simulation data can help designers and field experts easily find out the system's errors.In order to explain the reasoning process, different systems may use different methods.However, the basic method is generally to use the back-inverse method; that is, the reason for the conclusion is reversed from the current conclusion, and it is pushed back until the most reasonable explanation is given.Regarding teaching professional knowledge, there is some professional knowledge in the systems for users to ask questions and teach users.A man-machine conversation system refers to an intelligent system that uses human language and high understanding technology to realize human-computer interaction.It is also called a "chat robot."As the ultimate goal of high-level natural language processing, it is difficult for computers to understand human language behavior.However, it is very difficult to construct a man-machine conversation system with unlimited topics.
is system is a limited man-machine conversation system based on psychological counseling topics.e implementation of the human-computer conversation system is as follows.

Experimental Analysis
e following comparative experiments are designed to verify the reliability of an online psychological consultation expert system based on human-computer interaction.e exact numbers of psychological consultations are used as experimental subjects and divided into two groups.e online psychological consultation expert system based on human-computer interaction is the experimental group.e traditional online psychological consultation is used as the contract group.Under the premise of controlling a single variable, two sets of consulting efficiency, consulting success rate, and comprehensive working time recorded separately.

Experimental Parameter Settings.
e following table reflects the detailed configuration of experimental parameters in the experimental and control groups.Table 1 is an experimental parameter setting table.
In Table 1, psychological consultation conditions are set for the two groups of experimental personnel, mainly for emotions, concepts, and physical conditions.In order to ensure the fairness of the experiment, the parameters of the experimental group and the control group are always the same.

Experiment Process.
In order to verify the difference between the online psychological consultation expert system based on human-computer interaction and the traditional psychological consultation system, the online psychological consultation expert system based on human-computer interaction was first set up according to the experimental parameters.e main form interface is set in the use of a human-computer interaction psychological consultation expert system.e main form menu includes four menu items: system management, user management, expert management, and help.Among them, the system management implements the user login system and the user's permission to use menu items, and the user management realizes psychological consultation.e user clicks on "user login" to pop up the user login form.After the user enters the user name and password and click "OK," the system judges the authority of each menu item of the main form according to the user name, displays the menu items that can be used, and realizes the management of the user in the system.After the user logs in, click on "Psychological Consultation" to pop up the psychological counseling interface.
e counselor enters the symptoms and the degree of mental illness symptoms according to the format provided on the interface.e symptoms of mental illness symptoms are entered as keywords for symptoms of mental illness, and the degree input is mild, moderate, or severe as shown in Figure 5.
After clicking "OK," the contents input by the consultant are stored in the input fact table and the user psychological counseling data table.After that, the diagnostics window will pop up.Suppose the consultant enters "happy" in performance 1 under emotion.In that case, a pop-up validity check window indicates that performance 1 "happy" is not in the rule table.However, the traditional online psychological consultation uses e-mail consultation, the "chat online" consultation form, and the online meeting consultation form.

Consultation Efficiency Comparison.
e experimental and control groups simultaneously conducted psychological consultations for the same number of patients and recorded the number of psychological consultations at 20, 40, 60, 80, and 100 minutes, respectively.In order to avoid the interference caused by unexpected events on the experimental results, the experiment is mainly based on set parameters. e specific results are shown in Figure 6.
From the analysis of Figure 6, it is shown that, in the online psychological consulting efficiency comparison, with the increase of time, the psychological counseling efficiency of the experimental group has been a relatively stable state, and the consulting efficiency is high.e experimental group psychological counseling efficiency is about 95%.e control group tended to stabilize before the consultation time of 50 minutes, and then, the efficiency increased suddenly and dramatically.e overall consultation efficiency is unstable.
e efficiency of psychological counseling in the control group is approximately 75%.erefore, it can be proved that the online psychological consultation expert system based on human-computer interaction compared with the traditional online psychological consultation system can improve the efficiency of psychological consultation by 20%.

Consultation Success Rate.
e experimental and control groups simultaneously conducted psychological consultation for the same number of patients and recorded the  1, it is demonstrated that, in the online psychological counseling process, with the increase in the number of consultations, the success rate of online psychological consultation expert system consultation based on human-computer interaction has been relatively stable, and the success rate of consultation is relatively high, remaining at about 93%.With the continuous increase in the number of consultations in the control group, the consulting success rate shows an unstable downward trend.
e consultation success rate is about 78%.erefore, it can be proved that the application of an online psychological consultation expert system based on human-computer interaction can effectively improve the success rate of online psychological consultation.

Comprehensive Consultation Time Comparison.
In order to ensure the rigorousness of the experiment, the use efficiency of the first two kinds of consultation systems is set, and the comprehensive consultation times are observed.e results of the comprehensive consultation time experimental demonstration are shown in Figure 7.
Figure 7 represents two kinds of online consultation system comprehensive consultation time.e higher the comprehensive consultation time is, the lower the consulting efficiency is.According to the previously mentioned analysis, it can be concluded that the experimental group is very different from the control group.Considering the overall situation, the experimental group has obvious advantages.In the time axis, if the guarantee of this method is within 20 minutes, the general trend of the rise of the traditional method has been geometrically increased.
erefore, the method is effective.Mobile Information Systems

Conclusion
Psychological problems have become one of the major social issues in this era.e resulting psychological consultation has received increasing attention.In this social context, the development of computer and Internet technologies has led to the diversification of forms and methods of psychological consultation.ese are in the form of e-mail consultation, "online chat" consultation, and consultation for online meetings.Although these forms do not limit psychological consultation to time and space, counselors must still participate.erefore, the intelligence of psychological consulting has become the focus of artificial intelligence in the field of computer science.erefore, using expert system technology to achieve psychological consultation also has a significant practical value and significance.

Figure 1 :
Figure 1: e general composition of the psychosocial expert system.

Figure 2 :
Figure 2: e overall module and process of online psychological consultation expert system.

Figure 3 :Figure 4 :
Figure 3: e classification structure of the knowledge acquisition module.

8 Mobile Information Systems ( 1 )
Lexical Analysis Module.e most extended keyword matching technique is used to convert sentences in the form of input strings into word strings.(2) Syntax Analysis Module.It uses line graph analysis algorithm (chart algorithm) and converts the sentence in the form of input word string to the form of syntax analysis tree structure.(3) Semantic Analysis Module.It uses the LR analysis algorithm to convert the sentence represented by the input syntax analysis tree into the semantic framework structure form.(4) Session Management Module.It generates the response sentence and shows the output in the humancomputer interaction.

Figure 7 :
Figure 7: Time comparison of comprehensive consultation.

Table 1 :
Experimental parameter setting table.
are consulted.In order to avoid the interference caused by unexpected events on the experimental results, the experiment is mainly based on set parameters. e specific results are shown in Table2.Comparing the data in Table

Table 2 :
Comparison of the success rate of psychological counseling on the Internet.