Fuzzy and Reflection in the Construction of a Medical Expert System

The fuzzy of symptoms (including visual images), representations and assessments in medicine correspond to the peculiarities of the picture of the world of the patient and the physician taking into account the influence of reflection. The continuum of intermediate characteristics of the signs creates serious difficulty for their assessment by physicians. Experts’ confidence factors not only for linguistic features, but also for visual images can help increase the hypothesis quality in intelligent medical diagnostic systems.


Introduction
The health is characterized by a continuum of fuzzy transitional states, including normal variants, compensated functional changes, borderline conditions (preillness), chronic diseases in the compensation stage and chronic diseases in the decompensation stage [1]. Minor changes in the body systems cannot be detected, but at certain stages they become available for detection by modern methods for investigation. This determines the need for the earliest possible identification and assessment of such "inflection points" on the "curve" of the continuum. Experienced physicians earlier detect changes that allow us to talk about pathological abnormalities in the body. This is determined by the level of knowledge, experience and intuition. Reflection of the physician allows you to more effectively analyze the slightest pathological manifestations. However, the fuzzy of the signs determines the bias in the estimates of the observed phenomena in different physicians.
The ambiguity of assessments in medicine is determined by the following fac-How to cite this paper: Kobrinskii, B.A.
(2020) Fuzzy and Reflection in the Construction of a Medical Expert System. Journal of Software Engineering and Applications, 13, tors: the patient's sensations, the observed signs, the physician's reflection in assessing the role of symptoms, difficulty in analyzing images obtained in radiological studies. At the same time, the underlying principle of soft computing is: "tolerance for inaccuracy, uncertainty, and partial truth to achieve ease of manipulation, robustness, low-cost solutions, and better accordance with reality" [2].
In orphan diseases, there are often varieties, uncertainties and inaccuracies in clinical manifestations [3] [4]. This is the case with regard to the detected signs and the appearance of the patients. In addition, the subjectivity of the patient's complaints and the subjective-objective assessment of the physician during examination of the patient, determined by the experience and the physician specialization, form two layers of inaccuracy, uncertainty of data.
The basis of the methods of working with inaccuracy of information, approximate reasoning and calculations with words is fuzzy logic [5]. In the extended representation, fuzzy logic is equivalent to the theory of fuzzy sets, that is, classes with imprecise, fuzzy boundaries, as defined by L. Zadeh [6].
The article reveals that outside the classical paradigm each linguistic feature can include two certainty factors simultaneously, one on the time of the manifestation and one on the degree of intensity. This approach was used in the creation of the expert system on orphan diseases [7]. It is also necessary for expert evaluations to take into account the elements of reflection. The image rows of fuzzy phenotypic changes that were not previously considered as elements of expert systems can offer additional knowledge about diseases [8]. This work stands apart from other studies in the field of fuzzy logic in intelligent systems, with its integrated approach to the assessment of linguistic features and images that incorporates the reflections of experts.

Fuzzy
Physicians of different specialties may have their own opinion on some manifes- The importance of fuzzy rules is determined by proximity to human intuition [2]. When referring to medical diagnostics, an intuitive sense of the physician is important, based on personal experience, including visual memories, and knowledge obtained from various sources. An intuitive-imaged component is of great practical importance for decision-making. Accordingly, expert physicians keep in their memory optic images of similar cases of diseases and linguistic characteristics of atypical cases of pathology, which can serve as a context for visual image representations.

Reflection
Hypotheses and alternatives to these hypotheses are determined by how a person interprets one or another phenomenon, its psychological setting and intention in the current situation [10]. Constructs, as a subjective tool, include a professional component and personal perception, including reflection. Constructs can be both verbal (conscious constructs that can be expressed in words) and preverbal (unconscious). To measure personality constructs, the methodological principle of "repertory grids" and the repertoire test of personality constructs were developed. In the generalization to the case of multivalued Boolean logic, the choice is made on a partially ordered set of estimates [11].
In medical applications, there is often a fuzzy interpretation of subjective judgments about the plausibility and truth of facts, about the intensity of relations between elements of the semiotic system (degree of similarity, preference), and many fuzzy ideas arise. A different degree of confidence, depending on the nature of the image of the disease arising at the physician, may be a reflection of incomplete information or polymorphism of the clinical picture, i.e. fuzziness, which increases the reflectivity of the decision maker.
As you know, with incomplete, inaccurate and variable information, our reasoning is often conjectural, which makes them in fact only plausible in relation to the true picture of the world. In this regard, a number of hypotheses are constructed with arguments for and against, taking into account the incompleteness and fuzziness of various signs. The fuzzy of concepts and possible fuzzy in assessing their assignment to a particular class can also periodically change (decrease/increase) due to changes in associative relationships with other signs and the reflexivity of the physician.
Reflection leads to increased attention to certain information (activation of certain images) and to an artificial reduction in the role of other data. It is present at all stages of perception/processing of data and observed or mentally restored visual images.
The physician's scientific preferences inadvertently lead to increased attention in relation to certain information (activation of certain signs and images) and an artificial decrease in the role of other data immersed in the depths of consciousness. At the physician-expert, reflection is manifested in the process of extracting knowledge to create an intelligent system for supporting the adoption of diagnostic or therapeutic decisions. This is especially true for various image representations (situations as images based on the multicomponent nature of signs, visual images). The expert's thought process, including reflection, can be implemented in a formalized form and presented on the basis of a formula that includes a fuzzy variable, a confidence factor, the relevance of symptoms and the temporal characteristics of changes in the course of diseases [12]. Correction of the knowledge base during its testing (changing the system of rules) to increase the efficiency of the expert system can be considered as an analogue of the reflexive process in humans.
In [13], general definition of resemblance measures is used as symmetric real valued functions that are reflexive or irreflexive.

Confidence Factors
Fuzzy and probability, which model different types of uncertainty, are mutually complementary, and a measure of fuzziness of a fuzzy set could also serve as a measure of the uncertainty that arises when deciding which class of objects of an analyzed set belongs to [14]. This implies the importance of the hypothesis being accompanied by an indication of the physician's degree of confidence in her belonging to a particular situation, bearing the existing knowledge about the manifestations of this disease. This information can be used to build hypotheses regarding diseases characterized by a variety of clinical options (masks).
In the case of evaluating a holistic imaginative and at the same time symbolic situation (for example, such concepts as "rough facial features", "elf's face", etc.), we should talk about determining the compatibility function not on the set of mathematically precisely defined objects, but on the set indicated by some symbols of impressions [15]. To process such judgments, a numerical scale of properties is proposed, which are not based on objectively measurable (numerical) values, but rather by an expert on the properties of the observed phenomenon.
With such an interpretation of subjective judgments in the form of a set of fuzzy objects, there will be more naturally some linearly ordered set that is different from the interval [0, 1], for example, a great number of linguistic evaluations ("sharply expressed", ..., "reminds") presented in decimal or other scale. This corresponds to the idea of the severity of signs of disease. Knowledge of medical experts is necessary to formation diagnostic systems in the field of orphan diseases, in connection with the extremely low frequency of their occurrence [3] [16], which does not allow the effective use of other approaches. In addition, one should take into account the polyvariance and the severity of temporary changes in primary and secondary signs, characterized by various peculiarities of manifestations. Difficultly recognizable visual radiological biomarkers (image biomarker) can be qualitative, which also requires expert interpretation for the purpose of highthroughput quantitative image analysis [17].
At the same time, in the process of formation fuzzy models, there are two contradictory requirements: the model must reproduce the system under investigation (accuracy) as accurately as possible and must express the behavior of the system in a form understandable to humans (interpretability). It is impossible to build a model at the same time with a high degree of accuracy and interpretability, because these properties are contradictory in practical terms, one of them prevails over the other and the result can be the achievement of only varying degrees of interpretability and accuracy [18]. Conditional accuracy can be adjusted by expert opinions expressed by factors of their confidence in the accuracy of manifestation and detection of signs in accordance with the traditional approach proposed by E.H. Shortliffe and B.G. Buchanan [19] in the Stanford model. Confidence measures or certainty factors determining the expert's views on the significance of signs are intuitive-interval. At the same time, an intuitive interpretation allows to interpret the situation for different variants of the disease. At the same time, the granular mathematics of Zadeh [20], being an interval, creates opportunities for assessing dynamically changing states, an increase in pathological manifestations, which is especially important in diseases, accompanied by the accumulation of macromolecules in various organs.
All elements within the boundary region can have a conditional place, because they only partially satisfy the conditions for getting into an unbounded region of the set [21]. While the conditions would be completely fulfilled, these elements would be unconditional members of a particular set. As described in [22], opportunity is considered as a measure of the degree to which the condition is fulfilled.
At the same time, the factors of confidence associated with conditional probabilities, but not similar to them. On the one hand, E. Rich et al. [23] admit that reliability factors smaller than zero represent cases where some evidence tends to disprove some hypothesis. At the same time, the authors discuss that the reliability (confidence) factors consist of two components: measures of faith and measures of unbelief.
Confidence measures or the factors of confidence exhibited by experts often cannot belong to the whole class (subclass), but relate to individual groups (subgroups). This is especially pronounced in medicine, in particular in various age groups and in the dynamics of diseases. That is, the confidence factors of symptoms are associated with signs of the clinical picture of the disease in various periods.
For example, the experts agreed on three confidence factors for the sign of hepatomegaly: manifestation of the sign at a certain age at 0.6, frequency of occurrence at 0.4, and severity at 0.3. Confidence factors in the next age range increase to 0.6, 0.5, and 0.4 respectively [7].
In the trend of chronic diseases, there is a fuzzy in assessing the dynamics of symptoms. The transformation of symptoms in the course of the disease, the depth of knowledge of physician-experts and their subjective preferences determine the assessment of confidence factors. Especially difficult is the assessment of traits, which are boundary elements that define fuzzy transitions from one age group to another, from one period of the disease to another. In this regard, cer-tainty factors were proposed for the manifestation and severity of each symptom [7], which are a condition for increasing the reliability of solutions in expert systems.
Formed granules can be accompanied by certainty factors [−1, +1] and regarding the similarity with a typical visual image (archetype), if we consider visual images as signs.
In clinical terms, variants of high similarity of granules are possible and, conversely, symptoms of the disease in the form of different individual small granules, due to the polymorphism of clinical manifestations and the fuzzyness of individual signs characterized by large or smaller differences on the linguistic scale, on the scale of order, on metric scales.
Fuzzy clustering based on frequency prototypes and dissimilarity measures is possible for categorical data arrays [24].

Fuzzy Image Rows
Consider the option of fuzzy constraints in concepts formed on the basis of holistic images in an iconic picture of the world. Let's turn to the concept of fuzzy relation by Lotfi Zadeh [6] for consideration of similarity measures as functions in universal domain satisfied some sets of properties.
Computer-aided image analysis is becoming increasingly important to efficiently handle high-resolution images generated by advanced medical devices for visualization [25].
Sequence of similar manifestations of the visual image corresponding to one notion can be considered as a fuzzy set or an image row [8] (Figure 1). Differences in individual images will be determined not only by manifestations of pathology, but also by ethnic characteristics of individuals.
The presentation of a previously unknown similar representative of such a series allows us to identify this image, combining it with a known multitude. It is clear that in the human memory either typical representatives of each subgroup (possibly subjected to simplification) or a set of images reflecting the specific features of the original symbol are stored. On this basis, a figurative row can be built in the knowledge base of the expert system. As proanalogues of images, which are symbols, one can consider archetypes or images-prototypes as indicators of concrete image rows. Characteristic medical signs can be analyzed based on a study of their contours [26]. Image rows of phenotypic manifestations of the disease can serve as the basis for visual diagnosis of diseases. The images of patients of one visual series, having certain differences from each other, are a conditionally fuzzy image of a representative of a certain pathological condition. Distinction between representatives of image rows is the basis for differential diagnosis.
The temporal dynamics of the pathological process, especially with progressively current diseases, is a set of images in row, having similar features.
The inclusion in intelligent systems of image rows can allow you to solve problems of finding characteristic unifying features among images of the same type (for example, the faces of patients with a single disease).
The concept of an image row can be perceived as quasi-continuum of close or relatively close images, which implies the fuzzy of transitions between individual representatives of row. But a tuple of patients similar in appearance forms an image row of one subset, and sometimes of one set. However, the appearance and individual external signs of patients can be both similar and difficult to distinguish in various diseases.
Therefore, for holistic visual images, such as a scaphoid skull, a sphinx face, a fish mouth, etc.), it is advisable to use expert confidence factors.

Conclusions
Many chronic diseases progress with age, which leads to the appearance of new symptoms and an increase in the severity of previously manifested signs. This process is continuous. The fuzzy of the clinical picture is manifested in a more pronounced form in hereditary diseases.
The effectiveness of diagnostic hypotheses in expert systems is possible based on a combination of confidence factors verbalized signs and visual holistic images, the period of manifestation and the severity of symptoms in a certain period of life (in particular for various ethnic groups). These evaluations show the reflexivity of the expert, which should be taken into account by the cognitologist.