Keywords

1 Introduction

Schizophrenia is one of mental health disorders whose symptoms appear in young age. Psychiatrist, as an assessor, recognizes if a patient suffers from schizophrenia trying to diagnose its five symptoms: delusions, hallucinations, negative symptoms, grossly disorganized or abnormal motor behavior, and disorganized thinking and speech [1, 2], as shown in Fig. 1. Delusion is a firm belief in something untrue or not based on reality; patients misinterpret events and their significance. Hallucination is a false perception of five senses: vision, hearing, smell, taste, or touch; patients hear voices that no one else can hear or see, smell or feel things that others do not. Negative symptom is a condition in which patients experience a decrease in quality of life. Sadner [3] lists three negative symptoms: affective flattening, alogia and avolition. Grossly disorganized or abnormal motor behavior including catatonia is characterized by childish behavior or emotional outbursts. Disorganized thinking or speech is a condition when patients have trouble in concentrating and organizing their thoughts logically making effective communication impaired. When patients experience acute psychotic episodes they must be quarantined to prevent their unsocial behavior. The community often stigmatizes persons with schizophrenia labelling them as the demented. According to Depkes RI (Departemen Kesehatan Republik Indonesia) 1.7 per thousand of Indonesia population experience schizophrenia. Assistance of psychiatrists is needed to support the patients and educate them how to cope with their illness [4].

Fig. 1.
figure 1

(source [1, 2])

Schizophrenia symptoms and types

Psychiatrists apply client-centered therapy to assess whether a patient suffers from schizophrenia [5, 6]. The client-centered therapy uses a question and answer approach to respond statements according to a number of keywords [7]. This therapy is conducted by face-to-face sessions and all the answers are written down. Each schizophrenia symptom has its own set of keywords [7]. For example, delusions have ten keywords and each of them has its own standard questions to indicate whether the patient exhibits symptoms of delusions. These standard questions are used during the client-centered therapy as the basic questions to be answered by the patient. The psychiatrist analyzes the answers and evaluates the patient for a mental disorder. Client-centered therapy is used to assess delusions, hallucinations and disorganized thinking and speech. During the session the psychiatrist evaluates the patient for grossly disorganized or abnormal motor behavior, including catatonia, by analyzing his/her face and body gestures. The psychiatrist also interprets changes in emotions or unbridled emotions to identify the negative symptoms [1, 2]. At the end of a session the psychiatrist gives a diagnosis whether a person has schizophrenia and determines the type of the illness. There are five types of schizophrenia as recognized by the DSM-5 (Diagnostic & Statistical Manual of Mental Disorders) [1] and shown in Fig. 1. The first one is paranoid schizophrenia, if the person experiences delusions and hallucinations. Disorganized schizophrenia occurs if the patient manifests negative symptoms and disorganized thinking and speaking and also shows delusion or hallucination. Undifferentiated schizophrenia arises when the person reveals general symptoms of schizophrenia without any dominant symptom. The catatonic type of schizophrenia takes place when the patient displays grossly disorganized or abnormal motor behavior including catatonia. And the last type is residual schizophrenia which occurs when the patient suffers from all symptoms with a negative symptom as the dominant one. Acute psychotic episodes can be prevented provided the symptoms are detected early and psychiatrist administers treatment according to symptoms.

The psychiatrist can be assisted during the therapeutic session by a computer program like ELIZA and PARRY [8,9,10]. Both ELIZA and PARRY simulated the conversation between the psychiatrist and patient. ELIZA was developed by Joseph Weizenbaum using pattern matching techniques and played as a psychiatrist to response the patient. In turn, PARRY, created by Kenneth Colby, attempted to simulate a person exhibiting paranoid schizophrenia. Both of ELIZA and PARRY could simulate a client-centered therapy, where computer acted as a psychiatrist to gather the patient data during a therapeutic session. However, they were early natural language processing computer programs and their usefulness was limited.

Nowadays, expert systems (ES) are the class of software capable of helping psychiatrists in diagnosing mental disorders [11,12,13]. Some ES are designed specifically to support detecting schizophrenia symptoms [14,15,16]. Much attention has been also paid to clinical decision support in diagnosing schizophrenia based on the analysis of EEG signals of schizophrenic patients [17,18,19]. The other computer-aided diagnosis methods for schizophrenia encompass the analysis of abnormalities in brain activation patterns using functional magnetic resonance imaging (fMRI) [20,21,22].

An expert system designed to assist the psychiatrist with diagnosing early schizophrenia symptoms is presented in the paper. The system represents psychiatrist’s knowledge in the form of rules, facts and events. The system holds a dialogue with a patient and while gathering the answers from the patient it uses the forward chaining method to evaluate the rules. Next, all answers are transformed into facts and processed using Boolean reasoning to generate the diagnosis.

2 Structure of the Proposed Expert System

Expert systems (ES) are part artificial intelligence and constitute a class of computer programs which simulate human reasoning to resolve complicated decision-making problems [23, 24]. ES performs reasoning over a representation of human knowledge rather than through conventional procedural code. The aim of ES is to replace or aid a human expert in accomplishing complex tasks, such as diagnosing diseases or equipment faults, making financial or weather forecasts, and scheduling vehicle routes or robotic actions.

General architecture of proposed ES to aid in schizophrenia diagnosis is depicted in Fig. 2. The system comprises five main components: knowledge acquisition, knowledge base, user interface, working memory, and inference engine. The knowledge acquisition consists in acquiring information on schizophrenia symptoms, diagnosis and therapy from medical books and journals as well as the psychiatrist expertise and transforming it into rules which are stored in the knowledge base. The knowledge base is composed of 48 rules which are converted into questions presented to the user during a session. The user interface controls the dialog between ES and the user. It displays a series of questions and reads the user’s responses into the working memory. The working memory is utilized as a storage of data entered by the user and results provided by the inference engine. The inference engine imitates human reasoning and based on the user’s responses and knowledge base generates the conclusion whether the patient suffers from schizophrenia. Moreover, it determines the type of schizophrenia if this is the case. The engine employs the forward chaining technique to deduce its diagnosis [15]. Boolean reasoning is used while mapping rules and facts. The inference engine divides rules into five main categories as shown in Fig. 1, namely delusion, hallucination, negative symptoms, disorganized thinking and speech, and grossly disorganized or abnormal motor behavior. Next, the engine checks the patient’s symptoms to generate the type of schizophrenia. There are five types of schizophrenia, namely paranoid, disorganized, undifferentiated, catatonic, and residual schizophrenia, as illustrated in Fig. 1. ES generates and displays its diagnosis to the end user through the user interface after all rules are examined.

Fig. 2.
figure 2

General architecture of the proposed expert system

ES applies the client-centered therapy in the form of a question-answer session. There are no dominant rules in this research. Inference engine employs a nominal scale for each patient’s answer, i.e. each YES answer is denoted by 1 and NO answer is marked by 0. ES concludes that the patient suffers from a given symptom of schizophrenia if he/she answers at least one YES for symptom’s questions. But according to schizophrenia diagnostic criteria the patient has one or all schizophrenia symptoms if he/she exhibits signs of schizophrenia for at least six months and this happens frequently. Therefore, ES asks also five supportive questions for each rule. The questions are as follows:

  1. 1.

    How long does he/she experience the symptom?

  2. 2.

    When did the symptom start?

  3. 3.

    When did the symptom last appear?

  4. 4.

    How often does the symptom occur?

  5. 5.

    How and what does he/she feel while exhibiting the symptoms?

The ES rules are divided into five categories corresponding to the five main symptoms of schizophrenia, as shown in Fig. 3. The first category, delusion, has nine subcategories. Each subcategory of delusion is evaluated as depicted in Fig. 4. Delusion of reference contains three rules: RULE 1, RULE 2, and RULE 3. If at least one of the three rules is fired then the signs of delusion of reference are proved. Delusion of persecution comprises two rules: RULE 4 and RULE 5. At least one of the two rules should be satisfied to prove the symptoms of delusion of persecution. Thought broadcasting, delusion of mind reading, thought withdrawal, and thought insertion consist of RULE 6, RULE 7, RULE 8, and RULE 9, respectively. In turn, delusion of guilt embraces two rules: RULE 10 and RULE 11. At least one of the two rules should be fired to prove the symptoms of delusion of guilt. And finally, delusion of control and somatic delusion include RULE 12 and RULE 13, respectively. A patient suffers from delusion, if he/she satisfies at least one of the aforementioned rules.

Fig. 3.
figure 3

Map of expert system rules

Fig. 4.
figure 4

Evaluation of the delusion symptoms

The evaluation of the second category, hallucination symptoms, is illustrated in Fig. 5. This category has five main rules and four subcategories. Visual hallucinations and auditory hallucinations contain RULE 14 and RULE 15, respectively. In turn, tactile hallucinations comprise two rules: RULE 16 and RULE 17. If at least one of the two rules is fired then the signs of tactile hallucinations are proved. And finally, olfactory and gustatory hallucinations consist of RULE 18. Appraisal of this hallucination symptoms is almost the same as in the case of delusion. A patient suffers from hallucination, if he/she satisfies at least one of the aforementioned rules.

Fig. 5.
figure 5

Evaluation of the hallucination symptoms

The assessment of the third category, grossly disorganized or abnormal motor behavior including catatonia, is presented in Fig. 6. This category comprises ten rules that need to be verified together with the five supportive questions. If all the rules and supportive questions are satisfied, the patient is identified to exhibit grossly disorganized or abnormal motor behavior.

Fig. 6.
figure 6

Evaluation of the grossly disorganized or abnormal motor behavior

The fourth category, disorganized thinking and speech, embraces ten rules. Its evaluation procedure is shown in Fig. 7. Similarly to the three preceding symptoms, this category also contains supportive questions for each rule to verify whether the patient shows the symptom. The last category, negative symptoms, also has ten rules. Evaluation of this category is almost the same as in the case of the other symptoms (see Fig. 8).

Fig. 7.
figure 7

Evaluation of disorganized thinking and speech

Fig. 8.
figure 8

Evaluation of negative symptoms

3 Results and Discussion

All rules embedded in the knowledge base have equal weights. Boolean reasoning was used to generate the result during this research. Each question connected with a given rule must be answered either YES or NO. Five additional questions about the symptoms have to be answered to support each rule with YES response. These questions ask how long a given symptom recurs, how often the symptom occurs, when it starts, when the symptom last appeared, and how he/she feels when the symptoms appears. The questions strengthen the diagnosis because the patient is recognized to suffer from schizophrenia if he/she has the symptoms at least six months and the symptoms appear frequently during this period. If the patient satisfies a given rule and the criteria expressed by supportive questions are met, then ES adds to the conclusions that he/she exhibits the rule’s symptom. ES generates the result through following steps:

  1. 1.

    A rule with YES answer is saved in the working memory.

  2. 2.

    Check whether the answer for supportive questions meets the criteria.

  3. 3.

    Determine a sub symptom according to (1) and (2).

  4. 4.

    Determine the symptom according to (3).

  5. 5.

    Determine the schizophrenia type according to (4).

ES shows the type of schizophrenia with supported facts in conclusion. The first one is the paranoid type of schizophrenia. This type is diagnosed when at least one symptom of delusions or hallucinations is recognized. The second type, disorganized schizophrenia, is determined if at least one sign of disorganized thinking and speech and negative symptoms is distinguished, but also if at least one of delusion or hallucination rules is satisfied. The third type, catatonic schizophrenia, is indicated if at least one rule of disorganized or abnormal motor behavior is fulfilled. The forth type, undifferentiated schizophrenia, is diagnosed if at least one rule for each symptom is met, but there is no dominant symptom. The last type, residual schizophrenia, is identified if at least one negative symptom is dominant and at least one positive sign (of delusions or hallucinations) is exhibited.

ES diagnoses whether a patient suffers from schizophrenia if he/she meets criteria depicted in Figs. 3, 4, 5, 6, 7 and 8, where each symptom has at least six month episode’s period. ES processes the patient’s answers and maps them into five schizophrenia types (Figs. 1 and 3). For example:

  1. 1.

    Patient answered YES to the questions connected with the 6th and 15th rules.

  2. 2.

    ES analyzed the answers to supportive questions.

  3. 3.

    ES determined that the patient exhibits the delusion of percussion and auditory hallucination sub symptoms.

  4. 4.

    From these sub symptoms ES concludes that the patient has delusion and hallucination symptoms.

  5. 5.

    ES performs mapping as in Figs. 3, 4 and 5 and formulated the diagnosis that the patient suffers from the paranoid type of schizophrenia.

Due to limitations of this ES it is necessary that the parents or guardians also answer a number of questions. They should answer all questions connected with disorganized behavior and negative symptoms. They should answer to a number of questions to verify some patient’s responses particularly those related with the period of an episode, date of the last episode and frequency pattern.

ES shows only the diagnosis if the patient suffers from schizophrenia and what type of schizophrenia he/she has. The system does not handle the action to be taken, the psychiatrist may use results provided by ES as hints about therapy. According to [1, 2, 26] there are several actions to be taken. Antipsychotic medications are used for positive symptoms, antidepressant are applied for depression symptoms, glycine supplements are administered for negative symptoms, omega-3 fatty acids help to reduce negative and positive symptoms, as well as antioxidants. Patients in severe conditions need to be quarantined to prevent their unwanted actions. Psychotherapy can be used to educate patients how they can deal with their conditions and socialize.

4 Conclusions and Future Work

The expert system presented in the paper can diagnose schizophrenia according to the medical diagnostic criteria and the psychiatrist’s expertise. The expert system helps the psychiatrist in early detection of schizophrenia. The system generates the diagnosis based on the patient’s responses to a series of questions representing the knowledge-base. It shows supported facts but does not propose the action to be done. The psychiatrist should administer the treatment according to the result provided by the expert system.

Future research is needed to introduce dominant rules and evaluate them to optimize the diagnosis process. The user interface should be designed based on Human Computer Interaction (HCI) principles adapted especially to schizophrenia needs. The new interface could optimize the process of gathering data from patients as well as improve the usability of the system and increase user’s satisfaction. Voice recognition is also needed to automate the client-centered therapy especially in voice analysis. The noise emitted by the patient while mumbling or talking to himself cannot be heard by humans. According to psychiatrist expertise such a noise might be the symptom of delusion or hallucination. The psychiatrists also suggest to implement gesture recognition to analyze mood, true answers, and disorganized behavior during the client-centered therapy. The user interface can be also equipped with natural language processing to analyze the answers to the five supportive questions. Machine learning methods could be also employed to evaluate the stage of schizophrenia to help the psychiatrist to take the right treatment.