• No results found

A Rigorous Analysis of Emotion of Human Being using an Event B Approach

N/A
N/A
Protected

Academic year: 2020

Share "A Rigorous Analysis of Emotion of Human Being using an Event B Approach"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

A Rigorous Analysis of Emotion of Human Being using

an Event-B Approach

Nilima Salankar

Sir Padampat Singhania University, Udaipur

Prasun Chakrabarti

Sir Padampat Singhania University, Udaipur

ABSTRACT

The paper entails a refinement approach using Event-B to develop model of emotion of human being. The proposed model indicates that when one type of emotion is active others are inactive and some factors are activated simultaneously which makes it difficult to judge the mental state of humans by simply observing single factor. The relationship among different types of emotions and analysis of emotion of human has been carried out using Pro-B model checker and animator.

General Terms

Machine, set theory,domain

Keywords

Event-B,emotion,refinement

1. INTRODUCTION

Event-B is a formal method that provides a complete framework for the development of the models .This technique consists of describing rigorously the problem in an abstract model, introducing solutions or design details in the refinement steps to obtain more concrete specifications. Psychological study using recording instruments has given scientists a great deal of information about the bodily events in emotion which are able to measure the heart rate, blood pressure ,activity of the stomach and gastrointestinal system ,level of harmones , breathing rate and depth and many other bodily conditions in emotion[1]. From literature we find that autonomic nervous system has two parts sympathetic and parasympathetic, in emotion the sympathetic system causes the discharge of the hormone epinephrine(adrenalin) and nonrepinephrine (noradrenalin). Epinephrine duplicates and strengthens many of the actions of the sympathetic system on various internal organs .It helps to mobilize sugar resources so that the muscles can use it rapidly. The major effect of norepinephrine is to constinctperipheral blood vessels and so to raise blood pressure. Other part of the autonomic nervous system called parasympathetic system tends to be active when we are calm and relaxed. In active aroused emotional states sympathetic activity predominates while in calmer state parasympathetic activity is dominant. Here we have specified a scheme for identification of human emotion using Event-B model. Event-B is a variant of B Method based on the technique of abstraction and refinement[2],[3].The important feature of this approach is to formally define an abstract model of a system independent of the architecture and successively refine it to a detailed design in a series of intermediate steps. Results obtainedusing Pro-B model checker[4],[5] to analyze invariant properties of the B models have been observed. In thiscontext an incremental development of a system to analyze human emotion has been proposed.

2. An Event B System

The notion of abstract machine and refinement is central to Event-B. An abstract machine consists of sets, constants and variable clauses modeled as set theoretic constants. The invariants are defined as predicates on state variables. In refinement steps guards may be strengthened, new events may be introduced and variables may be added or removed[6],[7],[8]. Abstract and concrete variables are related through gluing invariants. Event-B notation is based on set theory and most of it is self-explanatory. Some of the frequently used notations in our model are given in Table 1 and are explained to enhance the readability.

Machine M

SETS S1,S2,S3….

CONSTANTS C

PROPERTIES P

VARIABLES v1,v2,v3…….

INVARIANTS I

INITIALIZATION init EVENTS

E1 =WHEN G1 THEN S1 END; E2 =WHEN G2 THEN S2 END; ………

………

END

Figure 1. Event B Machine

Table 1. Relational Notations

Notations Meanings

Mapping

dom( R) Domain of relation R

ran( R) Range of Relation R

R Domain restriction

R[A] Relational image of R over

(2)

Let A and B be two sets, then relational constructor(1) defines the set of relations between A and B as:

[image:2.595.315.580.72.247.2] [image:2.595.358.484.387.611.2]

A1B=P(A x B) where x is Cartesian product of A and B. A mapping of element a:A and b:B in relation R A1B is written as amb. The domain of a relation R : A1B is the set of elements of A that R relates to some elements in B defined as:

dom( R) ={a| a:A &#b.( b:B &amb:R)}

Similarly, the range of relation R : A1B is defined as set of elements in B related to some element in A defined as :

ran( R) ={b| b:B &#a.( a:A &amb: R)}

A relation R : A1B can be projected on a domain U(A called domain restriction(R) defined as:

U R R={amb | amb:R& a:U}

The Relational image R[U] where U( A is defined as: R[U]={b|#a. amb: R &a:U}

The Relational inverse (R-1) of a relation R is defined as: R-1={bma| amb: R)

A function is a relation with Cartesian restrictions[9],[10]. The function may be partial function(2) or a total function (3). A partial function from set A to B(A2B) is a relation which relates an element in A to at most one element in B. A total function from set A to B (A3B) is a partial function where dom(f)=A , i.e. each element of set A is related to exactly one element of set B. In the guarded statement, the guard (G) of the event is expressed as a first order predicate. The action of events are specified as simultaneous assignments of state variables usingsubstitution statements[11],[12]. Events occur spontaneously whenever their guards hold true and they are executed automatically[13]. Structure of machine is given in Figure 1.

3. Model

The proposed model consists of p samples and c conditions resulted as a emotion where p>2 and c≥2,where c1≠c2 and p1≠p2.The system is asynchronous such that no bound can be placed on the time required on diagnosis of type. It is assumed that diagnosis faults may occur. Formally a system described in terms of six elements.

P={p1,p2,..,pn} No of samples C={c1,c2,..,cn } Types of emotion T={t1,t2,..,tn} Set of time values Y={y1,y2,..,yn} Set of outputs

X={x1,x2,..,xn} Set of time dependent input functions Y={y1,y2,..,yn} Set of time dependent output functions Intensity(fear, anger) α Sympathetic System

Intensity(relax, calm) α Parasympathetic System

Figure 2. The intensity of the emotion directly proportional to fear, anger, relax and calm

4. Flow of model

To analyze the type of emotion stated in section proposed model, we have used an approach of construction of abstract model and further introduced refinement of abstract model by introducing more variables and operations as shown in figure 3 .In refinementwe have introduced variables fear ,anger,

Figure 3. Flow of Model

5. Flow of Model

In this section development of a system of emotion has been outlined as below:

Outline of the refinement steps

In this development begin with abstract model of emotions and successively refine it to a next model which categorize the

Em

o

tion

Intensity of fear,anger,relax,calm

Sympathetic

(3)

sympathetic and parasympathetic based on specific types of emotion. Incremental development of the system consists of following steps.

a. Abstract Model consists of a division of a autonomic nervous system. We have assumed that division is mutually exclusive. Once the diagnosis falls into the category of Type1 then it no longer available for the another diagnosis of Type2.

b. Refinement outlines how fear, anger, relax and calm state of mind helps us to determine exact state of mind.

Abstract Model of emotion

*Sympathetic and Parasympathetic autonomic nervous system*/

MACHINE Sym_Para SETS

PATIENT={p1,p2,p3,p4,p5,p6,p7};TYPE1={sy};TYPE2={pa} VARIABLES Sympathetic,Parasympathetic

INVARIANT

/*I1*/ Sympathetic:PATIENT+->TYPE1 & /*I2*/ Parasympathetic:PATIENT +->TYPE2 INITIALIZATION

Sympathetic:={} ||Parasympathetic:={} OPERATIONS

SYMPATHETIC(pp,tt)=

PRE pp:PATIENT& tt:TYPE1 THEN SELECT pp/:dom(Sympathetic) &pp/:dom(Parasympathetic) THEN

Sympathetic:=Sympathetic\/{pp|->tt} END

END;

PARASYMPATHETIC(pp,tt)= PRE pp:PATIENT& tt:TYPE2 THEN SELECT pp/:dom(Parasympathetic) &pp/:dom(Sympathetic) THEN

Parasympathetic:=Parasympathetic\/{pp|->tt} END

END END

Figure 4. Abstract model of emotion

The abstract model of a emotion MACHINE Sym_Para is given as B machine developed on Pro-B is given in Figure 4. The PATIENT,TYPE1 and TYPE2 sets define types for model. The variable sympathetic is defined as partial function from

PATIENT to TYPE1 in invariant I-1.

It contains mapping from PATIENT toTYPE1. It indicates that patient pp has been diagnosed for type tt. The partial function ensures that type is associated with only one patient. The variable parasympathetic is a relation between PATIENT and TYPE2 defined in invariant I-2. This mapping indicates that a patient pp has been diagnosed for type tt. The sympathetic and parasympathetic variables are initialized as empty sets. In this machine a diagnosed patients are added to the particular set. It may be noticed that all diagnosed patients must be removed from to be diagnose list.

Introducing fear, anger, relax and calm

/*Sympathetic(Fear & Anger) and Parasympathetic(Relax and Calm) Situation of Stress*/

REFINEMENT Sym_Para1 REFINES Sym_Para VARIABLES

Sympathetic,Parasympathetic,Fear,Anger,Relax,Calm INVARIANT

/*I3*/ Fear :PATIENT+->TYPE1 & /*I4*/ Anger:PATIENT+->TYPE1 & /*I5*/ Relax:PATIENT+->TYPE2 & /*I6*/ Calm :PATIENT+->TYPE2 INITIALIZATION

Sympathetic:={} ||Parasympathetic:={}|| Fear:={}||Anger:={}||Relax:={}||Calm:={}

OPERATIONS SYMPATHETIC(pp,tt)=

PRE pp:PATIENT& tt:TYPE1 THEN

SELECT pp/:dom(Fear) &pp/:dom(Anger) THEN Sympathetic:=Sympathetic\/{pp|->tt} ||

Fear:=Fear \/ {pp|->tt} || Anger:=Anger\/{pp|->tt} END

END;

(4)

Parasympathetic:=Parasympathetic\/{pp|->tt}|| Relax:=Relax\/{pp|->tt} ||

Calm:=Calm\/{pp|->tt} END

END END

Figure 5. Introducing fear, anger, relax and calm

The refinement of abstract model of emotion REFINEMENT Sym_Para1 is given in Figure 5, various others variables are introduced. The invariant corresponding to fear ,anger,relax and calm are given in I-3,I-4,I-5andI-6.

Figure 6. Invariant Status During Model Check

[image:4.595.350.521.76.344.2]

After developing the model of emotion , the objective is to verify whether the proposed model preserves the properties of emotion and maintains the mutual exclusiveness on the basis of identified factors. The Pro-B tool supports automatic consistency checking of B machines via model checking. However for exhaustive model checking given sets of machine must be restricted to small finite sets and integer variables must be limited to small numeric ranges. After addition of all invariants,model has beenchecked , and all invariants which have designed for analyzing properties of emotion are true for random animation as given in Figure 6.The state of a model after random animation is given in Figure 7.

Figure 7. State of a model after random animation

6. CONCLUSION

In this paper an incremental construction of a model of human emotion has been proposed and analysis of the B specifications and invariant properties of this system using Pro-B Model Checker and Animator has been carried out.The experimental results strengthen the fact that abstraction and refinement are valuable techniques for development of models. The Event-B model of emotion also reveals that exhaustive model checking of the specifications on B Model checker provides a clear insight into the system and develops the understanding towards realization of the satisfiabilityof invariant properties.

7.

REFERENCES

[1] Morgan C,KingR,WeiszJ,Schopler J. Introduction to Psychology,Tata McGraw-Hill Edition,New Delhi,2011,307-316.

[2] C Metayer, J R Abrial, and L Voison. Event-B language.RODIN deliverables 3.2, http:// rodin.cs.ncl.ac.uk /deliverables/ D7.pdf, 2005.

[3] Defago, Schiper, and Urban: Total order broadcast and multicast algorithms: Taxonomy and survey. ACM Computing.Surveys. 36(4), 372–421 ,2004

[4] Michael Leuschel, Michael Butler, ProB: A Model Checker for B, FME 2003, Volume 2805 of LNCS, 855-874, Springer,2003.

[5] J.-R. Abrial.The B-Book: Assigning programs to meanings. Cambridge University Press, 1996

(5)

[7] P. M. Melliar-Smith, Louise E. Moser, and VivekAgrawala. Broadcast protocols for distributed systems. IEEE Trans. Parallel Distributed Systems, 1(1):17-25, 1990.

[8] Kenneth P. Birman, Andre Schiper, and Pat Stephenson. Lightweigt causal and atomic group multicast. ACM Trans. Comput. Syst., 9(3):272-314, 1991

[9] DivakarYadav and Michael Butler. Rigorous design of fault-tolerant transactions for replicated database systems using Event B, Volume 4157 of LNCS, 343–363, Springer, 2006.

[10] DivakarYadav and Michael Butler, Formal Development of Broadcast Systems and Verification of Ordering

Properties using Event-B, Volume 5454 of LNCS, 152-176, Springer ,2009.

[11] Fekete, A., Kaashoek, M.F., Lynch, N.: Implementing sequentially consistent shared objects using broadcast and point-to-point communication. Journal of the ACM, 45(1), 35–69 ,1998.

[12] Fekete, A., Lynch, N.A., Shvartsman, A.A.: Specifying and using a partitionable group communication service. ACM Trans. Comput. Syst. 19(2), 171–216 ,2001 [13]Louise E. Moser and P.M.Melliar–Smith, Byzantine

Figure

Figure 2. The intensity of the emotion directly proportional to fear, anger, relax and calm
Figure 7. State of a model after random animation

References

Related documents

 Biaya penggantian kerusakan komponen yaitu harga komponen, biaya tenaga kerja.  Biaya penggantian karena program perawatan yaitu harga komponen, upah tenaga

Chapter 11 Report Conversion Tool Error Messages 129 Chapter 12 Question Designer and Intelligent Question Error Messages 135 Appendix A Business Objects Information Resources

Organization: Claiborne, Grainger, Hancock, Hawkins and Union County Schools, ETSU, WSCC, Alliance for Business and Training, Lockheed Martin, Oak Ridge National Labs and

In this study, we compare the recording efficiency of three bat detectors from the popular brand Wildlife Acoustics (Echo Meter 3, Echo Meter Touch Pro 1 and Song Meter 2

Endogenizing credibility in this way, we fi nd that targeted transfers and corruption are higher and public good provision lower than in democracies in which political com- petitors

As the street player walks through the campus, they receive regular text messages on their phone in the voice of the game, describing a relationship with Frank and

These include the ability to distinguish between nominal and anomalous operation (Fault Detection), the ability to distinguish between failure modes (Fault Isolation) and

beneficial for all.’ Govind Prasad Bhatt – Nepal ‘Foreign companies should communicate their sustainable business strategy and increase their stakeholder value in Thailand