Expert system development support system and support method

Abstract: An expert system in which a plurality of knowledge descriptive layers are provided in a frame system. Each descriptive layer is composed of plural frames; the frames of the lowermost knowledge descriptive layer are provided in association with the elements of a knowledge processing object system. The content of frames of the upper knowledge descriptive layers is determined as an inference is made with reference to the frames of the lower layer. This determining is started and executed by the updating of the content of slots of the frames.

Description: BACKGROUND OF THE INVENTION 1. Field of the Invention: This invention relates to an expert system, and more particularly to an expert system for processing knowledge concerning a large-scale artificial system. 2. Description of the Related Art: As expert systems for storing knowledge of human experts in a knowledge base and for making judgments similar to those of the human experts, various approaches have hitherto been proposed. Currently, the most popular inference method is a so-called production system. On the other side, it is usual to use frames to represent knowledge. In some of these production systems, the method used is to perform forward reasoning. In other production systems, the method used is to perform backward reasoning. The production system for performing a forward reasoning is a system in which the cycle of recognition and action of a human is modeled. Namely, this kind of production system recognizes the current status and then determines the content of the next action. FIG. 2 of the accompanying drawings shows the general structure of this production system. As shown in FIG. 2, the production system generally comprises a knowledge base 201 and an inference engine 202. Inside the knowledge base 201 there are included a plurality of rules 203, a plurality of knowledge representations, here a plurality of frames 204, and a work area 205. The rules 203 include a condition section, which contains condition instructions for recognizing the statuses stored in the frames 204 or the work area 205, and an instruction section which the action to be executed is described. Using this rules, the inference engine 202 repeats three steps, i.e. matching process 206, conflict resolution 207 and action 208, to execute an inference. The matching process 206 in the inference engine 202 is the step of retrieving the rules having the condition instructions matching the current statuses stored in the work area 203 or the frames 205 and of integrating a set of both the matching rules and the status values as a conflict set 209. The conflict resolution 207 is the step of selecting, from the obtained conflict set 209, one rule to be executed. The action 208 is the step of executing such as the updating of the content of the work area or the frames according to the description in the instruction section of the selected rule. The frames representing knowledge are frames for systematically and hierarchically representing information concerning a knowledge processing object. FIG. 3 shows an example in which knowledge concerning components of an electric circuit is hierarchically represented by frames. In FIG. 3, a frame 301 of the uppermost class defines an attribute of class as electrical components. In the illustrated example, the frame of electrical components defines that class of electrical components has two slots, i.e., name of manufacturing company 302 and date of production. Further, lower frames 304, 305, 306 preceding this frame 301 define classes of more specific sort entries such as resistor 304, coil 305 and condenser 306. The frame of resistor 304 defines that class of register has both type of resistor 307 as a slot storing the type of resistor and slot resistance 308 as a slot storing the resistance of the resistor. Thus instance frames 309, 310 practically representing knowledge about individual components are as follows: Component R1 of the instance frame 309 has resistor as class, and hence has type of resistor and resistance, which are slots defined in class of resistor. The class of resistor 304 of component R1 in the instance frame 309 is a lower class subordinate to the electrical component 301, and hence succeeds also to the attribute of the electrical component 301, having two slots, i.e. manufacturing company 302 and date of production 303, which are defined in the class of electrical component. Then the actual name of a company and other information are stored in the respective slots to express information about an individual electrical component. The frames are stored in a data base systematically storing data as described above and are capable of storing a procedure process peculiar to the frames. FIG. 4 shows an example in which a procedure process peculiar to the frame is stored by a function called demon and a function called method. In FIG. 4, in the frame fr1, slots S11 and S12 are defined and are stored as values 10 and 5, respectively. In the slot S11, the procedure func1 having a character 'when-changed' is defined as a demon, while in the slot S12, the procedure func2 having a character 'when-asked' is defined as a demon. The character 'when-asked' means to be started when the slot value stored in the slot is referred to externally, while the character 'when-changed' means to be started when the slot value is updated. Therefore, when the value of the slot s11 is updated, the procedure func1 is started with the value of the slot S11 as an argument. Also in FIG. 4, func3 is a procedure called method which is a procedure effective only in the frame fr1. The method func3 is started by giving the name of method 'func3' as a message passing to the frame fr1 from an external source. After executing the defined processes, the method func3 returns the value of the executed result back as a reply to the frame or rule that sent the message. As discussed above, a production system is a simple but very general technique. Since frames can systematically represent knowledge, they are currently used widely in expert systems. However, assuming that the conventional production system and frames are applied to an actual large-scale plant or an artificial large-scale system such as a network of power, communications or transportation, a practical inference speed cannot be achieved. These problems will now be described item by item in greater detail. (1) Increase of Time Needed for judgment of Condition called matching process An inference cycle of the production system is simple and can serve a general purpose. Assuming that this inference cycle is realized progressively on a computer, the amount of computation for judgment of condition will increase exponentially as the number of frames is increased. Accordingly algorithms have hitherto been proposed for increasing the rate of judgment of condition of the production system. A typical algorithm is the RETE algorithm. Recently, for example, the TREAT algorithm which is an improvement of the RETE algorithm has been announced. The RETE algorithm is discussed in Forgy, C.L.: RETE, A Fast Algorithm for the Many Pattern/Many Object Pattern Matching Problem, Artificial Knowledge, Vol. 19, pp 17-37. TREAT algorithm is discussed in Miranker, D.P.: The TREAT, A Better Match Algorithm for AI Production Systems, AAAI-87, pp 42-47. Further, these algorithms are explained in an article in the Journal of the Inference Processing Society of Japan, Vol. 29, No. 5, page 467. In short, one feature of judgment of condition algorithms, including RETE algorithms, is that the number of condition judgments is reduced by previously analyzing rules to provide a combination of rules having a common condition clause, constituting a data flow graph called 'RETE network' or "rule network' and commonly using the flow graph for computation of the individual condition clause. Another feature of such judgment of condition algorithms is that the interim result of judgment of condition is computed by recomputing only the portion influenced by the previous execution step and combining that portion with an interim result unchanged from the previous execution, reserving the interim result of the preceding inference cycle. The movement of this RETE algorithm will now be described in connection with a simple rule shown in FIG. 5. In FIG. 5, a term with ? affixed at its head represents a variable, and a term with @ affixed at its head represents a value of designated slot. An arrow indicates the a value to be substituted. ?FR1 and ?FR2 in the condition section of the rules are variables respectively representing the names of frames, and ?v is a variable to be substituted by the value of slot 'value'. Therefore, Rule 1 represents the rule: execute the instruction section if there is a frame ?FR1 in which the class is c1, the value of slot 'limit' (slot kind identification No.) is 10 and if there is a frame ?FR2 in which the class is c2, the value of slot 'limit' is 20, and the value of slot 'value is larger than ?v (i.e., larger than @ value of ?FR1). Rule 2 represents the rule: execute the instruction section if there is a frame ?FR1 in which the class is c1, the value of slot 'limit' (slot kind identification No.) is 10 and if there is a frame ?FR2 in which the class is c2, the value of slot 'limit' is 20, and the value of slot 'value is smaller than ?v (i.e., larger than @ value of ?FR1). And, there exist frames {f11, f12, f13, f14, f21, f22, f23, f24}. As shown in FIG. 5, {f11, f12, f13, f14} attributes to the class c1, and {f21, f22, f23, f24} attributes to the class c2. FIG. 6 shows the condition section of the rule of FIG. 5 as a rule network. The RETE algorithm will now be described in connection with FIG. 6. In the rule network, the portion in which the individual condition clause is to be judged is represented by a node. In FIG. 6, 601 designates a route node serving as an inlet from which a frame, which is to be judgment, flows into the rule network; 602, a node at which the judgment is to be made as to whether the class of frame is c1 or not; and 603, a node at which the judgment is to be made as to whether the class of frame is c2 or not. 604 designates a node at which the judgment is to be made as to whether the value of slot 'limit' is 10 or not; and 605, a node at which the judgment is to be made as to whether the value of slot 'limit' is 20 or not. 606 designates a node at which the judgment is to be made as to whether the value of slot 'value' of ?FR1 is smaller than the value of slot 'value' of ?FR2; and 607, a node at which the judgment is to be made as to whether the value of slot 'value' of ?FR1 is larger than or equal to the value of slot 'value' of ?FR2. The nodes 602 through 605 are called "intranodes", while the nodes 606 and 607 are called "internodes". A set of frames {f11, f12, f13, f14, f21, f22, f23, f24} to be judged is let to flow from the route node 601 to the rule network; the frame matched with the condition judgment at each node is stored in that node and is transmitted to the next node via a branch. 608 designates a set of frames matched with the condition judgment of the node 601; 609, a set of frames matched with the condition judgment of the node 603; 610, a set of frames matched with the condition judgment of the node 604; and 611, a set of frames matched with the condition judgment of the node 605. The internode 606 combines the frames passed from the condition judgment of the intra nodes 604, 605 to judge a set of frames matched with the condition of Rule 1. The arithmetic operation at the node 606 is to obtain a combination of two sets of frames by a JOIN operation, the result of the operation being designated by 612. The first set of frames (f11, f21) 612 shows that f11 match with the frame names ?FR1 of the first condition clause of Rule 1 and f21 match with the frame names ?FR2 of the 2nd condition clause of Rule 1, and that the condition section of Rule 1 is satisfied by the combination of them. Of a set of frames stored at each node, the frames stored in the intranode are called "α memory", and the frames stored in the internode are called "β memory". Now assume that the slot values of frames f12, f23, f24 are varied as shown in FIG. 7 by adoption of a rule. In this case, in the RETE algorithm, the updated frames are canceled from both α memory and β memory of the rule network, whereupon the further updated frames are let to flow from the route node to the rule network, to be recomputed and to reconstitute the interim memory (a memory and β memory). FIG. 8 shows the varied interim memory of each node after performing this reconstitution work. Since the amount of computation required for reconstitution of this interim memory is increased in an applied field such that the interim result of the previous cycle is changed markedly by the rule execution, the RETE algorithm cannot adequately demonstrate its effect. For canceling the updated frames from both α memory and β memory, it must be obtained which node the frame is stored in. This can be realized usually by letting the frame, keeping its former value, flow in the rule network and by canceling data about the frame from the memory of the reached node. Then the frame given updated value is let to flow into the network . In the reconstitution work of the interim memory, the more the number of updated frames, the more the amount of computation will apparently be increased. Partly since a practical large-scale plant or an artificial large-scale system such as electrical power, communications or transportation network is a system composed of a great number of components, and partly since a great number of instance frames that corresponding to every kind of standardized components attributing one class exist, if components of the same standard are represented in terms of frames, and data of a great number of frames is updated at every inference cycle, it is inevitable that inference time would increase due to the increase in process time for reconstitution of interim memory. To this end, the TREAT algorithm has been proposed. This algorithm does not maintain β memory but maintains only α memory as interim memory so that a dynamic JOIN arithmetic operation is optimized at every cycle of inference to cause an improved rate of memory management. In general, since the status value to be updated is large due to the execution of one rule in an inference in actual time, the TREAT algorithm is known as a high-speed judgment of condition algorithm suited to a real-time process. However, assuming that the TREAT algorithm is adopted in a large-scale artificial system, α memory is managed as interim memory increasing the amount of computation needed for the reconstitution of this interim memory so that an increase in inference time is still inevitable. Because of the interim memory, these algorithms have many frames and hence are not suitable to a system in which data of a great number of frames is to be updated. The features that a large-scale artificial system has many frames and that data of a great number of frames are updated every inference process will now be described referring to a practical inference process. FIG. 9 shows a power supply route to various instruments in an electrical power system. 901 designates a power supply source; 902, a switch; and 903, 904, 905, instruments which receive the power supply. One instrument 904 receives power via another instrument 903. For each instrument, it is necessary to define frames as shown in FIG. 9, increasing the number of the frames. In each frame, the slot named 'voltage' represents the status of whether or not the instrument is receiving a power supply. The slot named 'supply' represents a set of instruments to which power is further supplied from the instrument. In this case, the inference process to discriminate as to which instrument happens to stop when the switch 902 becomes out of order will now be considered. To realize such an inference process by rules, the rule to make a judgment of power failure will be such as "If the value of slot 'voltage' is 'Nil' and if the value of slot 'voltage' of the frame stored in slot 'supply' is 'present', substitute 'Nil' for slot 'voltage' of the frame.". The above-mentioned method can also be used; in this case, assuming that a demon having a character called 'when-changed' is defined for slot 'voltage' and that the value 'Nil' is substituted for slot 'voltage', a message to request substitution of the value 'Nil' for slot 'voltage' in every frame stored in slot 'supply' is transmitted. Thus in the process of inference, slots 'voltage' of many frames are successively updated. The inference process for judgment of power failure is to recognize the status of an object system given less information and knowledge concerning the constitution of the object system. As mentioned above, in a large-scale artificial system, there are many frames, and data of a great number of frames are updated by individual inference processes. (2) Increase of Time Needed for State Recognition In an expert system to be applied to an actual artificial system, there is a step to grasp the status of such an actual artificial system, irrespective of its purpose. In a practical system, its status varies all the time; updating of knowledge resulting from such fluctuation is inevitable when performing a proper inference. In a conventional expert system, if an inference is started externally according to an instruction or the like, an inference engine first fetches the external status values and then makes a discrimination on the situation by using such external data, whereupon an inference for the original purpose is carried out. Otherwise, when it becomes necessary to grip the situation during inference execution, the external status values are retrieved and recognized. According to the technology disclosed in, for example, "Expert System for Discrimination of Failure Section Based on Generalized Rules", Institute of Electrical Engineers of Japan 1988, PE-88-26, during executing an inference of a failure section in an electrical power system, the status of each relay is examined to determine the status as the previous step, and the section of protection of each relay is obtained and recognized by inference. Therefore, in a large-scale system in which there exist many situations to be grasped, discriminating the situation would take an unallowably long time. (3) High Load of Inference Engine due to Complexity of Knowledge according to Combined View Point In an expert system to be applied to an actual large-scale system, as the purpose for inference becomes complex, like knowledge expressions are not always used even for the similar object system, thus requiring various knowledge expressions. This problem will now be described in connection with FIG. 10. FIG. 10(a) is a circuit diagram (systematic diagram) showing an electric power system which comprises a substation A, a substation B and a power-transmission line C connecting these substations A, B. There are a pair of buses a, b in each substation A, B. Between each pair of buses a, b and the power-transmission line C, there are located switches LS1 - LS4 and breakers CB1 - CB2, along with current transformers CT1 - CT4 used as current measuring instruments. To make an inference for a discrimination of failure in this system, the individual instruments need to be represented as frames like FIG. 10(b). To make an inference for making a plan of system operation for changing the status of connection with the instruments in this system, no measuring instrument is necessary so that the individual instruments need to be represented as frames like FIG. 10(c). Further, to make a calculation of power flow, i.e., to calculate distribution of electrical energy, only a knowledge about the buses as nodes and about the power-transmission line is needed as shown in FIG. 10(d). In the foregoing examples, the knowledge representing methods were suitable for various purposes. In an actual expert system, it is usual that these purposes would come up in combination. In this case, if knowledge representation and instance frames were therefore defined for every purpose, the larger the system, the more both the number of frames and the amount of computation for judgment of condition steps of a production system would become increased, thus causing an increased time of inference. In the meantime, if various purposes were accomplished by a small number of instance frames, rules become complex and increased in number so that the number of inference steps to be made until the purpose is achieved is increased. As discussed above, in an expert system to be applied to an actual large-scale system, the inference engine would undertake a high load due to the complicated knowledge, thus increasing the inference time. In a practical system, object data is updated frequently like the status of the switches LS1, LS2, etc. of FIG. 10. In this case, it is necessary not only to update the slot value storing the updated status value, but also to update all the associated status values so as not to cause any contradiction. This is a significant problem particularly in an expert system adopting a real-time process; in a production system, however, no adequate method for solving this problem is known. Thus the conventional production system would encounter an increase of inference time when applied to an actual large-scale system. In a public system such as an electric power system or a communication system, an increase of inference time means an increase in recovery time when a fault occurs, which is a serious problem. In "Knowledge Based Expert Systems in Engineering: Planning and Design", 7 August 1987, Cambridge, MA, USA, pages 259-272 H.P. Wang describes "A Knowledge-Based Computer-Aided Process Planning System". In the paper a knowledge-based process planning system is presented which combines production rules and frames as the knowledge representation scheme. Rules and frames are stored in three different layers to perform specific functions for process plan generation. The layered architecture was implemented on a microcomputer using Prolog. SUMMARY OF THE INVENTION It is therefore an object of this invention to provide an expert system which enables a high-speed inference by reducing load of an inference engine in an expert system even when applied to a large-scale system. According to a first aspect of the invention, there is provided an expert system as claimed in claim 1 processing knowledge of an object system, including a knowledge base comprising: a unit knowledge element descriptive layer including a collection of unit knowledge elements in each of which knowledge of an element of the object system is described; and one or more summarized knowledge element descriptive layers arranged above said unit knowledge element descriptive layer as an upper layer or layers and each including a collection of summarized knowledge elements in each of which the knowledge in respective lower layer is reconstituted in abstracted or summarized form. Thus the knowledge about a knowledge processing object system is provided in abstracted or summarized description according to the processing purpose, presenting a knowledge base easy to use. Further, the layer to which a knowledge element attributes may be either visible or latent to a user of the knowledge base. If visible, it is possible to provide knowledge layer by layer, thus making the use of knowledge of the knowledge base much more convenient. Since the knowledge in summarized knowledge elements of the knowledge base can be used, only simple inference rules to be executed by an inference engine in the expert system are required, thus realizing a high-speed inference. According to a second aspect of the invention as claimed in claim 2, there is provided an expert system, comprising: (a) a knowledge base for storing knowledge expressed by frames each having one or more slots in each of which a knowledge is described as a slot value; and (b) an indexing means including (i) managing means for managing said frames according to kinds of said slots in the frames in terms of the slot values, (ii) reorganizing means reorganizing the content of management of said managing means, according to the content of updation of the slot value, as a background process updating the slot value, and (iii) retrieving means for retrieving, from a designated slot kind and a designated information concerning slot value, a set of said frames in which said slot value related to the designated information is stored in the designated kind of slot. Because of these means, it is possible to make an inference in terms of slots with ease. Since the previous reorganizing means reorganizes the content of management of the managing means, according to the updated content, as a background process to be started by updating the slot values, high-speed inference can be executed. A method corresponding to the second aspect of the invention is claimed in claim 3. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an expert system according to a first embodiment of this invention; FIG. 2 is a block diagram showing a conventional expert system; FIG. 3 is a diagram showing the structure of frames FIG. 4 shows a typical method and a typical slot which are defined in a frame; FIG. 5 shows typical rules and frames; FIG. 6 is a diagram showing the structure of a rule network according to the RETE algorithm; FIG. 7 shows changes of frames due to the execution of rules; FIG. 8 is a diagram of a rule network illustrating changes of interim memory due to the execution of rules; FIG. 9 shows a typical influence of the changes of frames; FIGS. 10(a) through 10(d) show various knowledge representations corresponding to inference purposes in an electric power system; FIG. 11 is a diagram showing the structure of a slot value indexing means; FIG. 12 shows typical definitions of frames; FIG. 13 a diagram showing the detailed structure of the indexing means; FIG. 14 is a diagram showing the structure of the indexing means having special assessment criteria; FIG. 15 is a diagram showing the structure of the indexing means in which slot values are represented in terms of sets of elements; FIG. 16 is a block diagram showing an inference means using the indexing means; FIG. 17 is a block diagram showing an expert system according to a second embodiment of the invention; FIG. 18 is a diagram showing the structure of a rule used in the second embodiment; FIG. 19 is a block diagram showing an expert system according to a third embodiment; FIG. 20 is a skeleton diagram of a system for which a power flow computing process is to be performed; FIG. 21 shows the structures of frames representing instruments constituting a system for which a power flow computing process is to be performed; FIG. 22 is a diagram showing the system after a grouping process of the power flow computing process; FIG. 23 shows a rule for finding out the bus to be subjected to the grouping process; FIG. 24 shows frames after the grouping process; FIG. 25 shows rules for locating a transformer which can be summarized; FIG. 26 is a block diagram showing an expert system according to a fourth embodiment; FIG. 27 is a diagram showing a detailed layer in which various instruments are defined in instrument levels; FIG. 28 is a diagram showing a detailed layer in which various instruments are represented in terms of functions and interconnections; FIG. 29 is a diagram showing a detailed layer of transformer level; FIG. 30 is a block diagram showing an interactive electric power system analysis system and a typical display screen according to a fifth embodiment; FIGS. 31 and 32 are diagrams showing typical display screens representing an electric power system; FIG. 33 is a diagram showing graphics on the screen and the coordinate relation of a frame; and FIG. 34 shows the manner in which the expert system of the fifth embodiment operates. DETAILED DESCRIPTION The principles of this invention are particularly useful when embodied in an expert system in which knowledge is represented in frames. First of all, a knowledge processing method in the expert system will be described. The knowledge processing method have three primary features itemized as follows: (1)The system is equipped with two operating modes, i.e. a foreground process and a background process. Here in this specification, the term "background process" means an event-starting-type inference process to be started when the slot values of frames are updated by, for example, the change of an external event and an explicit instruction. The term "foreground process" means an instruction-starting-type inference process to be started by a request as an explicit purpose is given. In this embodiment, the load of an inference engine during the inference is reduced by executing, when the status value of the external is changed, the inference for situation judgment, thus causing a high-speed inference.In the process of inference by the background process, when a judgment is made that an event occurred, it is possible to start the foreground process as this event is a trigger. (2)A frame indexing means is provided in a knowledge base. Regarding a set of frames in which slots having the same identification name, the indexing means stores the frames in terms of slot values. The inference engine is equipped with a condition judging means for computing, in the judgment of condition step, the judgment of individual condition clauses of a condition section of rules as an inquiry to the indexing means. In other words, a judgment of condition is made not by a rule network holding an interim memory. Instead, such judgment is made by using the indexing means, which can be reconstituted easily, because the frames are arranged in order for every kind of slots.Further, the adjustment and storage of individual frames are previously updated by the background process when the status of the individual frames are changed, it is possible to make a condition judgment at a high speed during the practical inference.This constitution is particular effective in a large system in which the slot values stored in particular slots of frames representing constituent elements of the system are discrete and in which the number of kinds of the slot values is relatively small.For example, according to the disclosure in "Expert System for Discrimination of Failure Section Based on Generalized Rules", Institute of Electrical Engineers of Japan 1988, PE-88-26, relays inoperative during inference of a failure section are recognized one by one by condition judgment. In the indexing means of this embodiment, partly since slots showing operative/inoperative are provided in instance frames corresponding to the individual relays, and partly since the individual frames are managed such as in terms of slot values, it is unnecessary that the inference engine should make such condition judgment for every slot value. (3) In a frame system, one or more summarized knowledge element descriptive layers each composed of a set of frames storing data of the summarized knowledge element in which knowledge of a lower layer is reconstituted in summarized or abstracted form according to purpose, are arranged hierarchically in order. The lowermost layer is a unit knowledge element descriptive layer including a set of instance frames storing data of elements constituting an object to which the expert system is applied. The frames of the summarized knowledge element descriptive layer define according to the view points of what purpose the frames are used for. Generally, in an expert system for a special purpose, the summarized or abstracted knowledge expressions used in an inference are limited. For this purpose, previously in a background process, knowledge can be summarized or abstracted. And in a predetermined regular process, it is possible to perform summarized or abstracted work speedily without making any inference. The lowermost layer stores unit knowledge elements storing data corresponding to the real status value of an object system to which the expert system is to be applied. An upper layer above this layer represents abstract status values derived successively from knowledge of the unit knowledge element layer. Thus knowledge corresponding to levels of various view points in various inference processes are stored hierarchically; thereby it is always possible to reduce the load of an inference engine, realizing increasing rate of inference. Further, by dividing the frames into layers, the rules of the inference engine can localize the frames to be an object of judgment of condition. Namely since the rules can designate the area to be judged by layer, it is possible to further reduce the load of the inference engine. Furthermore, for example, updation of the frames of this summarized knowledge element descriptive layer is performed in the background mode. An expert system according to a first embodiment of this invention will now be described. In FIG. 1, reference numeral 1 designates an inference engine, which can usually be realized by a computer; 2, a work area; and 3, a frame system having a hierarchical structure. 4a through 4d designate a means for fetching information concerning external instruments constituting an object system; 5a through 5d, instance frames representing the knowledge of these instruments; and 6, a knowledge descriptive layer which is a lowermost layer in the frame system 3. The frame system 3 can be provided as an expert system development support system such as a domain shell. Each frame to be provided by the frame system is stored as a knowledge base in a storage of a computer. 7 and 8 designate a knowledge descriptive layer which is defined above the lowermost layer 6 and which stores the summarized knowledge of the status values of the lowermost layer 6. In FIG. 1, there are shown only two layers 7, 8. The number of layers should by no means be limited to this specific example. 9 through 13 designate frames defined in the upper layers. Arrows between frames described in the frame system 3 indicate the inference process for determining the status value of a frame in the upper layer with reference to the status of a frame in the lower layer. For example, the arrows 14, 15 indicate that the status value of the frame 9 is determined from the status of the frames 5a, 5c, respectively. 16 indicates that the status of the frame 12 is determined from the status of the frame 9. The inference process indicated by these arrows can be executed as a result of judgment of condition of the condition section of rules in the foreground process, and can be otherwise executed by a method to be started from a demon by the change of slot values in the background process. 17 designates a means for managing the status of the system and for storing information representing an event occurred when an frame in the frame system 3 assumed a particular status. The arrows 18, 19 indicate the manner in which the event occurred; when the frame 13 assumed a designated status, a flag 20 representing the event is stored in the managing means 17 by the process 18. And a flag 21 is stored in the managing means 17 due to the change of the frame 11 by the process 19. The inference to be performed in the foreground mode by the inference engine 1 is started by an instruction or the like from a control means 22 for managing an interface with the upper means. Or this inference is started when a particular flag is stored in the managing means 17. 14 through 16 in FIG. 1 indicate an inference in the background mode, specifically illustrating the updating of the summarized frames 9, 10, 12, which performed such as by a demon of the updated summarized frame 9 or the instance frames 5a, 5b updated by the frames 4a, 4b, namely, the updating of data. By realizing the updating work by an objected frame system, it is possible to flexibly follow the change of the expert system. Further it is excellent in both expansibility and maintainability. 23 designates an indexing means for indexing in terms of slot values. The indexing means 23 is called from the inference engine 1 when the inference engine 1 executes the judgment of condition step, and retrieves the frame which satisfies a particular slot condition. Further, even when the slot value of the frame is updated, the indexing means is started to update information for indexing. FIG. 11 schematically shows the indexing means 23. As shown in FIG. 11, the indexing means 23 comprises a slot name table 1101, a slot value evaluation method table 1102, a slot value table 1103, and frame set data 1104. FIG. 12 shows a typical frame, and FIG. 13 shows a portion of the indexing means 23 in connection with the slot the kind of which is S1 (here this slot is called slot S1). The frames which satisfy the condition "S1 = 2" will now be obtained. Firstly a pointer for the slot S1 is retrieved from the slot name table 1101. This pointer designates a table concerning the slot S1 in the slot value evaluation method table 1102. By this and the necessary kind of evaluation of the slot value (here simply the slot value) designated by the inference engine, the pointer designating VALUE is selected. From this pointer, a table of the slot value table 1103, concerning the slot value of the slot S1, can be referred to. Now because what should be located is a frame "S1 = 2", locate a key value 2 in the slot value table is located. From the pointer stored concerning the key value 2, it will be noted that the frame to be obtained is the frame set {f2, f3} in the frame set table 1104. "ALL" in the slot value table means all frames that S1 is defined, and "NULL" means the frames that any slot value is not yet defined. With this structure, it is also possible to retrieve other slot conditions easily. For example, in the case that a condition is "s1 ≠ 2", {f1, f4, f5, f6, f7} can be obtained from the difference between {f2, f3} of "S1 = 2" and {f1, ..., f7} of ALL. Similarly, the condition "the frame in which S1 is not defined" can be obtained, as {f9, f9}, from the difference between "ALL" and all frame sets 1110. Further, for example, the condition on plural values of S1 "S1 = 5 or S1 = 8" can be obtained by an arithmetic operation such as a logical AND or logical OR of frame sets. In this case, result of OR operation of the following frame sets: S1 = 5 : {f6} S1 = 8 : {f7} corresponding to the respective values is obtained, resulting in {f6, f7}. If the condition is "S1 > 0", a set {f2, f3, f6, f7} is obtained by operating OR of S1 2 or 5 or 8. In the case of "the frame having the Maximum value of S1", the maximum value of the slot value table is retrieved. The slot value evaluation method table 1102 will now be described more in detail. In such a case of "S1 > 0", there are very many slots which values being S1 > 0 or in the case that same condition is used repeatedly during the inference, it is desirable to use a different evaluation criteria rather than the simple slot value evaluations on the value of S1. Consequently, plural slot value tables corresponding to the respective evaluation criteria are required. The slot value evaluation method table 1102 is a table from which a slot value table needed for the retrieving is to be selected. In the case of "S1 > 0", the frames which satisfy the conditions such as S > 0 and S < 0 can be retrieved easily by providing the slot value table 1120 corresponding to the sign of value of S1. As an example in which there are many kinds of evaluation criteria with respect to a single slot value, one case where the slot value is a complex number will now be illustrated. Following are evaluation criteria of complex number a + bi: 1) Value (a, b) 2) Actual a 3) Image b 4) Phase arctan(b/a) 5) Distance √(a 2 + b 2 ) FIG. 14 shows a retrieving means having slot value tables according to all the above-mentioned evaluation criteria for the slot S2 of the frame of FIG. 12. From the slot name table 1101, the slot value evaluation method table 1402 for S2 is retrieved. The set of frames to be obtained can be obtained by the slot value table 1403 corresponding to the selected evaluation method. In FIG. 14, the individual slot value tables are redundant. For example, every pattern of the value can be retrieved by the two tables 'Real (Actual)' and 'Image'. If the values of 'value' are previously sorted in terms of actual values, the table 'Actual' can be omitted. How the slot value evaluation method and the slot value table are constructed is selected by a user or is automatically discriminated by the system, considering both the effect of retrieving and the allowance of a memory. The foregoing way of thinking about a complex number can be expanded to a general vector value. The structure of the indexing means when the slot value is a set will now be described. FIG. 15 shows an indexing means in which S3 is the value of set. The value of a set can simply be any combination of all elements of the set. The slot value table of frames of FIG. 12 is like the table 1504 in FIG. 15. If there are a few combinations of this value of set (hereinafter called "combination value"), the table of such combination values is of no problem. Generally, since there are n combination values for n number of elements, this table technique is not desirable in the case of many elements. In general, a combination value is difficult to set the standard for sorting. For retrieving a set value, a table Element 1505, in which individual element values are evaluation criteria, and a table Number 1506 in which numbers of set elements are evaluation criteria are determined. From these two tables, the following slot conditions can be easily retrieved: 1) a ∈ s3 (frame having S3 including a) This is apparently noted to be {f1, f5, f7, f9} from a of table Element 1505. 2) a, b ∈ s3 (frame having S3 including a, b) This is apparently noted to be {f5, f7, f9} from the sum of a and b of table Element 1505. 3) S3 = {a, b} (frame whose set is {a, b}) From the frame set obtained in 2) above and the OR of the frame set of 2 of table Number 1506, {f5, f7, f9} ∩ {f2, f6, f9} ={f9} is obtained. 4) S3 = empty set From 0 of table Number 1506, {f3} is obtained. The manner in which the indexing means 23 is used in the judgment of condition step of inference cycle will now be described in connection with FIG. 16. In FIG. 16, 1601 designates a means for storing a condition section of rules stored in the knowledge base. The condition section 1601 of rules is stored as condition instruction rows 1602 and is executed by a condition section executing means 1603. The individual condition instruction row 1602 is an instruction row for executing a condition judgment defined in the condition section of rules. Its algorithm may be described in intermediate language and executed by an interpreter or in compiled machine language. The condition section executing means 1603 executes this condition instruction row stored in the condition section 1601, referring to the indexing means 23, and stores in a conflict set 1604 of rules and frames as a result. After selecting an instantiation to be executed from the conflict set 1604, the inference engine 1 selects an appropriate instruction row 1606 from the instruction section 1605 and executes it. This instruction row 1606, like the condition instruction row 1602, may be intermediate language or compiled machine language. The instruction row 1606 updates the designated slot value for the frame system 3. The frame system 3 performs the updating of a slot value and its associated demon process and method, and transmits the updated information to the indexing means 23. 1607 in the frame system 3 is a frame updated by the instruction row 1606; 1608, a frame in which the slot value is updated by the method from the frame 1607; and 1609 and 1610 represent respective notices to the indexing means 23 of the updated information. The advantageous results of this embodiment are as follows: 1) Since the knowledge expression in the frame system can represent the constitution of knowledge of an object hierarchically, the abstracting of the status needed for the inference process can be defined systematically. Since the instance frames corresponding to the actual instruments one for each exist in the lowermost layer of frames, no process would be required prior to the input of data from an external source, thus reducing the load of an inference engine. 2) Since there exist two kinds of processes, i.e., a foreground process and a background process, the process for maintaining the adjustability of the knowledge base accompanying the change of status of the object System can be separated from the inference process to which the purpose is given, thus simplifying the definition of inference rules. Further, since the adjustment of the inference base was made by the background process upon occurrence of the change of status of the object, the process of recognizing the status of the object has already finished when the inference by the foreground process was started. Namely, the load of the inference engine is reduced so that an inference can be performed by a high-speed foreground process. 3) Since the judgment of condition is realized by indexing means without interim memory of the rule of network, high-speed judgment can be realized easily even in the large-scale system having many instance frames in the same class. Namely updating of management of frames is realized by updateing the slot value tables in the indexing means according to the kind of a updated slot, and the updating the slot value tables is easier to be performed than reconstituting the interim memories of rule network. 4) In an artificial large system, since the value of status to be stored in the slot as slot values of the frames in each layer is limited, the indexing means for retrieving the frame storing the status value in terms of slot values can judge the condition section of the rules connecting plural condition clauses at a high speed. An expert system according to a second embodiment will now be described in connection with FIGS. 17 and 18. In the first embodiment, the inference means using only the indexing means of the slot values for judgment of condition is described. In the second embodiment, part of frames is adopt the conventional rule network, and the indexing means is used for judgment of condition of the remaining frames. In FIG. 17, the frame system 3 includes the indexing means 23 and the rule network managing means 1701. Frames set 1702 is under the management by indexing means 23. Frames set 1703 is under the management by the rule network managing means 1701 as well as frame set 1704 is under the management by both of these two means 23, 1701. The rule network managing means 1701 manages the conventional rule network, in which the frames 1703 are stored as the data of interim memory. In this embodiment, all of the ordinal rules are under the management by the rule network managing means 1701, constructing the rule network. The type of frames to be defined in knowledge base is proper to two types such as the set frames 1702 and the set frames 1703. The frames 1702 are used chiefly in the inference in the background mode, and the slot values are started being updated when the status of the object system is changed. The frames 1703 are frames to be referred to from the condition section of the rules in the ordinary rule network. As shown in FIG. 18, in the condition section 1801 of the rules to be used in this embodiment, there is provided a condition that only frames of the frame sets 1703 can be described. In the instruction section 1802 of the rules, the operation of the frames 1702 and 1703 can be described. In this case, the retrieval condition to be given to the indexing means is used as the process of execution of the rules. For example, if the process of execution "obtain all frames in which the value of slot X is A, then issue a message to all of these frames" is defined in the rules, an instruction to be given to the indexing means would be to read "obtain all frames in which the value of the slot X is A". The operation of this embodiment will now be described. If the status of the object system is changed, the slot values of the instance frames representing the constituent elements of the object system are updated by the inference process in the background mode, and then the frames of the upper layer in the frame set 1702 are updated. And, since partial frame set 1704 of frame set 1702 also belongs to frame set 1703, interim memories of rule network under the management of rule network management means is updated when the frame of partial frame set 1704 is updated. When the inference in the foreground mode is started, the inference engine obtains a conflict set by using the rule network of the rule network managing means 1701 for conflict resolution, and executes the selected rule. If there is in the instruction section of the rules an operation of the frame sets 1702, the interim memories of the rule network are updated. If there is an operation of the frame sets 1703, the inference process is performed in the form of a message. If the frames 1704 are updated derivatively by the process to the frames 1703, the interim memories are also updated. This embodiment has the following advantageous results: 1) Since the frames to be updated are relatively few and frames to be referred to from the condition section of many rules are held in the interim memory of the rule network, an inference for the frames having such features can be executed in the foreground mode at a high speed. 2) Since the frames updated frequently and suitable for the background mode are managed by the frame system of hierarchical structure, an inference for recognizing the status of an object system can be executed at a high speed. 3) Since the frames to be frequently updated can be canceled from the interim memory of the rule network, a high-speed inference utilizing the merit of the judgment of condition algorithm using the rule network can be executed. A third embodiment, which the expert system is applied to a system for performing a power flow computation, will now be described in connection with FIG. 19. In FIG. 19, reference numeral 1 designates an inference engine; 23, an indexing means; and 1901, a power flow computing means. The basic systematic data 6 of an object electric system is defined in a lower layer in a frame system. Here assume that a power flow computation of the system is designated. If expressions suitable for the power flow computation are given to systematic data 6 in an upper layer, the power flow computing means 1901 performs a process based on this systematic data and returns the result. If the systematic data 7 are not yet defined, or if the status of the basic systematic data 6 are changed, the systematic data 7 of an upper layer must be redefined. The constitution of FIG. 19 is capable of giving to the frame system 3 the systematic data of the expressions, which can be processed by the power flow computing means 1901, by the inference engine 1 and the indexing means 23. FIG. 20 is a skeleton diagram showing an object electrical system for which a power flow computing process is to be performed. FIG. 21 shows frame expressions of instruments constituting the object system of FIG. 20. Now the systematic data needed in a power flow computation is previously simplified than that given from FIG. 20. In the system, buses B1 and B2 and a power-transmission line L1, which are electrically connected, all belonging to the same voltage class, must be expressed virtually as a single node in view of electric circuit computation. Further, since two transformers 1Tr and 2Tr are adapted for parallel operation, 1Tr and 2Tr must be expressed virtually as a single. Such operation for virtually putting a plurality of instruments together is called "grouping". FIG. 22 shows the system of FIG. 20 having been grouped into such an expression as to use the power flow computing means 1901. FIG. 23 shows a rule for locating the bus to be a criterion of the grouping. The bus that satisfies the condition on the kind of the instruments of a first condition 2301 is apparently obtained by the indexing means 23. A second condition is obtained by a complement of the set that the slot 'connection' is not empty, namely, the complementary set of the set of 'number of elements is 0'. If this rule is used in the system of FIG. 20, the fist condition is {B0, B1, B2, B3}, and the second condition is {B1, B2, C1}, and the frame that satisfies the rule of FIG. 23 will be {B1, B2} from the logical AND of these two conditions. As the frames of the same voltage are traced with the thus obtained frames as criteria, the grouping of the bus will terminate. After grouping, a node name is set to a slot 'node' as a flag for the frames of the instruments associated with the same node. The bus which is not to be an object of grouping can be thought as a single node by itself. FIG. 24 shows the frames after the slot 'node' have been set. The slot 'power-source-side instruments 'and the 'load-side instruments' of transformers are changed in node name. The grouping of parallel transformers, as the step next to the grouping, will now be described. Since the transformers 1Tr and 2Tr are connected to the same node after grouping, and must be summarized. If attention is paid to the transformer 1Tr, 2Tr is an object of summarizing, and 3Tr is not an object. FIG. 25 shows rules for retrieving summarizable parallel transformers. If the transformer 1Tr is an object, the power-source-side instruments and the load-side instruments are obtained from the slot values, and the parallel transformers are determined, based on these values, from the second condition by the indexing means. Therefore, it is possible to put the parallel transformers together. From the foregoing processes, the constitution of systematic data 7 expressions requiring the power flow computing means is completed. The third embodiment has the following advantageous results. If there is no indexing means, the retrieval of the frames so as to match with, for example, the rule of FIG. 23 is increased with the increase of the number of frames. Since the number of frames constituting data of an electric power system as a practical object to be controlled is several hundreds to several thousands, on-line control in real time is difficult to achieve. Since the coefficient of retrieving the frames is not influenced by the number of frames, this embodiment equipped with the indexing means is suitable for both the control of electric power system and the control of large-scale data system. A fourth embodiment, in which service interrupting of the system is judged by the inference using information propagation between layers of the expert system, will now be described. 3 in FIG. 26 designates a frame system having a plurality of layers. The frame system 3 represents the electric power system. 2601 designates a layer representing the system by a substation and information of power-transmission; 2602, a layer representing the system by a function of the instrument and interconnection; and 2603, a layer representing the system by instruments. 2604 designates an input/output means for accessing the content of the frame system. If the status of an instrument of the object system is updated, the status of instrument of the layer 2603 is updated by the input/output means 2604 so that information propagation between layers is started to perform an inference. The inference for grasping the status of service interrupting due to an accident in the system will now be described. FIG. 27 is a detailed diagram showing a layer 2603 in which the instruments and the like are defined in instrument level. In FIG. 27, 2711, 2713, 2716 and 2718 designate switches in closed status; and 2712, 2714, 2715 and 2717, switches in open status. When the status of instruments are updated by an accident of the bus 2722, CB (breaker) 2703, CB 2701 and CB 2706 are changed into a trip status. The trip status is a status in which the breakers are opened by an instruction from a relay. Information of voltage concerning a power-transmission line 2732 is changed to zero. This change of information is transmitted to an upper layer 2602. FIG. 28 is a detailed diagram of the upper layer 2602. When a notice that the status of CB 2703 was changed to a trip status is given, the connection of a power-transmission line 2802 and a bus 2812 is changed to OFF status. Similarly, the trip information of CB 2701 changes the connection between a bus 2811 and a bus 2912 to OFF status and the trip information of CB 2706 changes the connection between a bus 2812 and a power-transmission line 2804 respectively to OFF status. The voltage information of the power-transmission line 2732 is transmitted to the power-transmission-line definition 2804 of the upper layer 2602, and the information in the power-transmission-line definition 2804 is also updated to 'absence of voltage'. The status changes in these layers is transmitted to a further upper layer 2601. FIG. 29 is a detailed diagram showing the uppermost layer 2601 called substation level layer . The information in the layer 2601 is also updated by the updating of status in the layer 2602. The change of connection regarding the bus 2812 in the layer 2602 is transmitted to a substation 2901 to set the information of change of status in the substation 2901 in the layer 2601. The voltage information from the power-transmission line 2804 is transmitted to a power-transmission line 2912. The power-transmission line 2912 is thereby changed to a status "disable to supply electric power. From the foregoing information, the substation 2901 in which the information of change of status is set is estimated as a cause for accident. Further, since the power-transmission line 2912 is in a status disable to supply electric power, it can immediately concluded that a substation 2903 is totally stopped. Partly since there are no information of change of status in the power-transmission line 2911 and a substation 2902, and partly since electric power supply is normal, it can be concluded that a normal status is maintained. Therefore, It is not necessary to judge substation 2912 whether there is stoppage of electric power supply or not, and it is noted that only the substation 2901 to be examined is necessary in order to grasp a detailed system status. Then, the following instructions are issued from the layer 2601 to the layer 2602. One instruction is the instruction "make a detailed determination" of the statuses of the instruments of the layer 2602 under the substation 2901. Another instruction is the instruction "all of the instruments under the substation 2903 are in stoppage of electric power supply'. According to this instruction, 'voltage' is judged from the status of connection regarding the bus 2811 and the bus 2812 in the layer 2602, and bus 2811 is judged as "charged" because there is received an electric power supply. The bus 2812 is judged as 'stoppage of electric power supply' because there is no power supply from anywhere. The bus 2814 and the load 2822 associated with the substation 2903 is immediately judged as 'stoppage of electric power supply. Further, the foregoing information is transmitted from the layer 2602 to the instrument level layer 2601 so that the voltage status of every instrument is determined. The fourth embodiment has the following advantageous results: (1)Since information in the object system is automatically summarized or abstracted by information propagation between layers, even a huge amount of data of an object electric power system can be processed with improved efficiency. (2)The second advantageous result is to improve the modularity of data. Every data of the respective layers can be processed according to the information that can be acquainted by the respective data themselves. Therefore it is easy to amend and expand system data. (3)The third advantageous result is that the constitution of the system can be easily understood. The data expression of every layer and propagation of instructions are similar to grasping the system of a human and hence can easily be understood very intuitively. (4)The fourth advantageous result is that the system has a parallelability. Assuming that the system is to be realized by a computer, since each layer and operation of data units are high in independency, it is easy to make them corresponding to the respective computing process units. Therefore because of the parallel processes, a high degree of processability can be achieved. A fifth embodiment will now be described in which the expert system of this invention is applied to an interactive system of planning the operation plan of instruments of an electric power system. In FIG. 30, 3000 designates a computer used in this embodiment; and 3001, a display. 3002 designates a control means for controlling the entire computer 3000; 3003, an interface managing means for managing the input/output of information with a human; 3004, an inference engine; 3005, a frame system; 3006, an interface managing means for performing the input/output of information with an object electric power system; and 3007, an analysis program library in which various numerical calculation programs to be used by the control means 3002 or the inference engine 3004 are stored. In the frame system 3005, there are frames constructed hierarchical concerning the structure of the object electric power system. 3008 designates a layer representing the system constitution; 3009, a layer representing the connection of buses in the substation and power station; and 3010, a layer representing the constitution of the individual instrument. Further, the status of these layers are represented as indicated by 3011a, 3012a and 3013a as multiple windows on the display 3001. FIG. 31 shows typical display screens 3011a - 3013a. In the window 3011a, the power station A and substations B, C are represented as a partial system. 3101 designates a power-transmission line connecting the substations B and C with one another; and 3012, representing buses i the substation C. In the window 3012a, the state of wiring 3102 of the actual bus in the substation C is represented, and buses 3103 - 3106 are connected to one another via switches 3108 - 3110. Since all of the switches 3108 - 3110 are closed, the buses 3103 - 3106 can be treated as a single bus (node) in calculation of electric circuit, as indicated by the bus 3102 in the window 3011a. Switches 3111 - 3113 connect the respective power-transmission lines with the corresponding buses. 3013a designates a lowermost layer display window in which the status of the practical instruments and the connection therewith are displayed. The switch 3107 of the window 3012a is represented by a switch 3114, a breaker 3115 and a switch 3116 in the window 3013a. Further, the switch 3111 is composed of a switch 3117, a breaker 3118, a switch 3119 and a switch 3120 in the window 3013a. In actual the switch 3111 is connected to the buses 3103 and 3015 via the switches 3119, 3120, respectively. Depending on the status of the switches 3119, 3120, the power-transmission line 3101 may be displayed in the window 3012a as being connected to the bus 3103 in some occasions and being connected to the bus 3105 in other occasions. Such connections of the power-transmission lines depend on the status of switches in the lowermost instrument layer 3010 in the frame. Therefore, if the status of a switch is changed in the instrument layer 3010, this change must be reflected on the status of an upper layer. For example, as shown in FIG. 32, when the breakers 3121, 3115 become open, the switch 3119 is changed from the closed status to the open status, and the switch 3120 is changed from the open status to the closed status, the display showing the status of respective instruments is immediately changed as displayed in the window 3011b of FIG. 32. As displayed in the window 3012b showing the connection layer 3009, the bus to which the power-transmission line 3101 is connected must be changed from 3103 to 3105, and the display of the switches 3107, 3109 also must be changed from the closed status to the open status. In the window 3011b shown in the system diagram, a display that the bus is separated into two. The expression of knowledge in the fifth embodiment for providing the above-mentioned functions, and the content of operation will now be described in connection with FIG. 33. In this embodiment, a graphic showing the instrument displayed on the display screen corresponds to a frame. In FIG. 33, 3013a designates a window in which an instrument layer 3010 is to be displayed; and 3115b, a frame corresponding to the breaker 3115a. In the frame 3115b, there are defined, as slots, 'View' representing the window to be displayed, 'location' representing the position in the window where breaker 3115a to be display, 'open/close' representing the status of open or closed, etc. 3301 designates a cursor of a mouse in 3013a. The operation of an instrument displayed in 3013a is started by selecting an object instrument by this cursor, and by selecting a function menu of a pop-up menu 3302 . For example, if 'open' in the menu 3302 is selected, a message instructing that the open/close status is the open status is transmitted to the frame 3115b. By this message, the slot value of the slot 'open/close' is updated to 'open'. In this slot, a demon fx() is determined with an attribute 'when-changed', and fx() changes the display of the window 3115a to be displayed in 3013a, depending on the 'open/close' status. FIG. 34 shows the operation of this system. In FIG. 34, 3012a designates a connection layer window; 3107a, a connection layer switch; 3013a, a instrumental layer window; and 3115, a breaker. 3401 designates a display input managing means for managing a cursor 3301 of a mouse, discriminating both an object selected by cursor 3301 and the menu selected by cursor 3301 to determine a message to be executed, and issuing the message to the object. As discussed above in connection with FIG. 33, when the breaker 3115a is selected by the mouse to instruct the switch to open, a message 3402 for instructing the switch to open is sent to a frame 3115b. After the frame 3115b which received the message has performed the operation which is defined by the message, a request to change the display of the graphics 3115a from 'closed' to 'open' is given to an output managing means 3403 of the display 3001 so that the redrawing 3404 of the graphics is executed. Further, the frame 3115b sends to associated frames 3114b, 3116b, 3107b a message that the open/closed status in the frame 3115b has been changed. 3107b designates a a frame of the connection layer 3009 representing a switch abstracted from the instrument layers 3114b, 3115b, 3116b. In the frame 3107b, both information concerning instrument 3114b, 3115b,3 116b which belong to 3107b and a method in which the switch 3107b will be 'open' as any of the instrument 3114b, 3115b, 3116b becomes 'open' are defined, so that the switch 3107b will be 'open' and give to the output managing means 3403 a message that the status of display of the graphics 3107a is to be changed from 'closed' to 'open'. As described above, in this embodiment, when the status of the individual instrument is changed, the status of the abstracted upper layer is automatically updated, and the display is also changed. The fifth embodiment has the following advantageous results: According to levels of various view points which a human has for the system, knowledge expressions from the expression of a general system to the expression of an individual instrument can be hierarchically displayed on the display. The frames representing both the individual instruments in the frame system and the abstracted instrument units are respectively corresponding to the graphics to be displayed on the display screen. Partly since the status of the individual frame can quickly be displayed on the screen, and partly since data change can be performed visually on the display screen, designation can be made with few mistakes. Since the status of the abstracted frame to which the instrument belongs is updated when the status of the individual instrument is changed, the adjustability between specific data and its abstracted data is automatically maintained so that the maintenance of adjustability of the frame system can be realized. Since the graphic element corresponding to the each status of the individual frame is built in each frame as a demon, being independent of the other graphic elements, it is possible to simplify the graphics managing so that the changing and correcting of the function is facilitated. As discussed above, according to this invention, it is possible to provide an expert system which enables a high-speed inference even in a large-scale system.

Claims: An expert system development support system for supporting development of an expert system which processes knowledge of an object system formed of a plurality of elements, the expert system comprising an inference machine (202), and means for providing a knowledge base (201) including a plurality of rules (203), said rules being composed of a condition section, which contains condition instructions for recognizing the statuses of knowledge representation elements (5a, ..., 5d) and an instruction section describing the actions to be executed by said rules, each of said knowledge representation elements comprising knowledge of an element of said object system, said inference machine using said rules thereby repeating the steps retrieving rules whose condition section matches the current statuses of knowledge representation elements and adding both, the status value and the matching rule, to a conflict set (209); selecting from the obtained conflict set (209) one rule to be executed; and updating the content of the work area or the knowledge base according to the description in the instruction section of a selected rule; characterized in that said means for providing a knowledge base comprises: (a) a unit knowledge element descriptive layer (6) including knowledge elements (5a, ..., 5d) in each of which knowledge of an element of the object system is described; and (b) one or more summarized knowledge element descriptive layers (7, 8) arranged above said unit knowledge element descriptive layer (6) as an upper layer or layers and each including a collection of summarized knowledge elements (9-11, 12, 13) in each of which knowledge in respectively lower layer is reconstituted in a summarized form; that said expert system development support system comprises: a background means performing a reflection process in response of updating of statuses of said unit knowledge elements or said summarized knowledge elements based on an event of the object system change or explicit instruction, to reflect the change of status of both the updated unit knowledge elements and the updated summarized knowledge elements all over the knowledge base as a background process; and that said reflecting process is a process of successively reconstituting knowledge and storing the reconstituted knowledge in said summarized knowledge elements of the respectively upper level of layer by a routine described in said unit knowledge element or said summarized knowledge element. An expert system development support system for supporting development of an expert system which processes knowledge of an object system formed of a plurality of elements, the expert system comprising an inference machine (202), and means for providing a knowledge base (201) including a plurality of rules (203), said rules being composed of a condition section, which contains condition instructions for recognizing the statuses of knowledge representation elements (5a, ..., 5d) organized in frames (204) and an instruction section describing the actions to be executed by said rules, each of said knowledge representation elements comprising knowledge of an element of said object system, said inference machine using said rules thereby repeating the steps retrieving rules whose condition section matches the current statuses of knowledge representation elements and adding both, the status value and the matching rule, to a conflict set (209); selecting from the obtained conflict set (209) one rule to be executed; and updating the content of the work area or the knowledge base according to the description in the instruction section of a selected rule; characterized in that said frames are organized (a) as instance frames (5a, ..., 5d) comprising said knowledge elements; and (b) as summarized frames (9 to 13) comprising knowledge in summarized form reconstituted from one or more knowledge elements; and that said expert system development support system comprises: a background means performing a reflecting process in response of updating of statuses of said unit knowledge frames or said summarized knowledge frames based on an event of the object system change or explicit instruction, to reflect the change of status of both the updated unit knowledge frames and the updated summarized knowledge frames all over the knowledge base as a background process; and that said reflecting process is a process of successively reconstituting knowledge and storing the reconstituted knowledge in said summarized knowledge frames by a routine described in said unit knowledge element or said summarized knowledge element. An expert system development support method for supporting development of an expert system which processes knowledge of an object system formed of a plurality of elements, the expert system comprising an inference machine (202), and means for providing a knowledge base (201) including a plurality of rules (203), said rules being composed of a condition section, which contains condition instructions for recognizing the statuses of knowledge representation elements (5a, ..., 5d) organized in frames (204) and an instruction section describing the actions to be executed by said rules, each of said knowledge representation elements comprising knowledge of an element of said object system, said inference machine using said rules thereby repeating the steps retrieving rules whose condition section matches the current statuses of knowledge representation elements and adding both, the status value and the matching rule, to a conflict set (209); selecting from the obtained conflict set (209) one rule to be executed; and updating the content of the work area or the knowledge base according to the description in the instruction section of a selected rule; characterized in that said frames are organized (a) as instance frames (5a, ..., 5d) comprising said knowledge elements; and (b) as summarized frames (9 to 13) comprising knowledge in summarized form reconstituted from one or more knowledge elements; and that said expert system development support method comprises: a process running in the background as a reflecting process in response of updating of statuses of said unit knowledge frames or said summarized knowledge frames based on an event of the object system change or explicit instruction, to reflect the change of status of both the updated unit knowledge frames and the updated summarized knowledge frames all over the knowledge base as a background process; and that said reflecting process is a process of successively reconstituting knowledge and storing the reconstituted knowledge in said summarized knowledge frames by a routine described in said unit knowledge element or said summarized knowledge element.

Inventors: AMANO MASAHIKO, DAI WATANABE, FUKUI CHIHIRO, HARADA YASUSHI, KUDO HIROYUKI, AMANO, MASAHIKO, DAI, WATANABE, FUKUI, CHIHIRO, HARADA, YASUSHI, KUDO, HIROYUKI, FUKUI, CHIHIRO, HITACHI-KOKUSAIRYO-IZUMIGAMORI
Applicants: HITACHI LTD, HITACHI, LTD.
Application year: 1991
Main classification: G06F9
IPC codes: G06F17, G06F9, G06N5, G01N35