SIMULATION SNE NOTES EUROPE
SNE Special Issue Modelling and Simulation in Modern Control Engineering
Volume26 N o. 4 Decem ber 2016 doi: 10.11128/sne.26.4.103 5
Journal on Developments and Trends in Modelling and Simulation ARGESIM Membership Journal for Simulation Societies and Groups in EUROSIM SNE E DITORIAL - C ONTENT - I NFORMATION
Siegfried Wassertheurer, [email protected] SNE Editorial Board AIT Austrian Inst. of Technology, Vienna, Austria SNE - Simulation Notes Europe is advised and supervised by Sigrid Wenzel, [email protected] an international scientific editorial board. This board is taking Univ. Kassel, Inst. f. Production Technique, Germany care on peer reviewing and handling of Technical Notes, Edu- cation Notes, Short Notes, Software Notes, Overview Notes, SNE Aims and Scope and of Benchmark Notes (definitions and solutions). At pre- Simulation Notes Europe publishes peer reviewed contri- sent, the board is increasing (see website): butions on developments and trends in modelling and simula- David Al-Dabass, [email protected] tion in various areas and in application and theory, with main Nottingham Trent University, UK topics being simulation aspects and interdisciplinarity. Felix Breitenecker, [email protected] Individual submissions of scientific papers are welcome, as Vienna Univ. of Technology, Austria, Editor-in-chief well as post-conference publications of contributions from Maja Atanasijevic-Kunc, [email protected] conferences of EUROSIM societies. Univ. of Ljubljana, Lab. Modelling & Control, Slovenia SNE welcomes also special issues, either dedicated to spe- Aleš Beliþ, [email protected] Sandoz / National Inst. f. Chemistry, Slovenia cial areas and / or new developments, or on occasion of vents Peter Breedveld, [email protected] as conferences and workshops with special emphasis. University of Twenty, Netherlands Furthermore SNE documents the ARGESIM Benchmarks Agostino Bruzzone, [email protected] on Modelling Approaches and Simulation Implementations Universita degli Studi di Genova, Italy with publication of definitions, solutions and discussions Francois Cellier, [email protected] (Benchmark Notes). Special Educational Notes present the use ETH Zurich, Switzerland of modelling and simulation in and for education and for e- Vlatko ýeriü, [email protected] Univ. Zagreb, Croatia learning. SNE is the official membership journal of EUROSIM, Russell Cheng, [email protected] the Federation of European Simulation Societies. A News Sec- University of Southampton, UK tion in SNE provides information for EUROSIM Simulation So- Eric Dahlquist, [email protected], Mälardalen Univ., Sweden cieties and Simulation Groups. Horst Ecker, [email protected] SNE is published in a printed version (Print ISSN 2305- Vienna Univ. of Technology, Inst. f. Mechanics, Austria 9974) and in an online version (Online ISSN 2306-0271). Vadim Engelson, [email protected] MathCore Engineering, Linköping, Sweden With Online SNE the publisher ARGESIM follows the Open Edmond Hajrizi, [email protected] Access strategy, allowing download of published contributions University for Business and Technology, Pristina, Kosovo for free – identified by a DOI (Digital Object Identifier) as- András Jávor, [email protected], signed to the publisher ARGESIM (DOI prefix 10.11128). Budapest Univ. of Technology and Economics, Hungary Esko Juuso, [email protected] Print SNE, high-resolution Online SNE, full SNE Archive, Univ. Oulu, Dept. Process/Environmental Eng., Finland and source codes of the Benchmark Notes are available for Kaj Juslin, [email protected] members of EUROSIM societies. VTT Technical Research Centre of Finland, Finland Andreas Körner, [email protected] Author’s Info. Authors are invited to submit contributions Technical Univ. Vienna, E-Learning Dpt., Vienna, Austria which have not been published and have not being considered Francesco Longo, [email protected] for publication elsewhere to the SNE Editorial Office. Fur- Univ. of Calabria, Mechanical Department, Italy thermore, SNE invites organizers of EUROSIM conferences Yuri Merkuryev, [email protected], Riga Technical Univ. to submit post-conference publication for the authors of their David Murray-Smith, [email protected] conferences. University of Glasgow, Fac. Electrical Engineering, UK SNE distinguishes different types of contributions (Notes): Gasper Music, [email protected] • Overview Note – State-of-the-Art report in a specific area, Univ. of Ljubljana, Fac. Electrical Engineering, Slovenia up to 14 pages, only upon invitation Thorsten Pawletta, [email protected] • Technical Note – scientific publication on specific topic in Univ. Wismar, Dept. Comp. Engineering, Wismar, Germany modelling and simulation, 6 – 10 pages Niki Popper, [email protected] • Education Note – modelling and simulation in / for education dwh Simulation Services, Vienna, Austria and e-learning; 6 - 8 pages Kozeta Sevrani, [email protected] • Univ. Tirana, Inst.f. Statistics, Albania Short Note – recent development on specific topic, max. 6 p. • Thomas Schriber, [email protected] Software Note – specific implementation with scientific University of Michigan, Business School, USA analysis, 4 – 6 4 pages • Yuri Senichenkov, [email protected] Benchmark Note – Solution to an ARGESIM Benchmark; St. Petersburg Technical University, Russia commented solution 4 pages, comparative solutions 4-8 pages Oliver Ullrich, [email protected] Further info and templates (doc, tex) at SNE’s website. Florida International University, USA www.sne-journal.org SNE E DITORIAL - C ONTENT - I NFORMATION
Editorial Dear Readers - This fourth SNE issue of the year 2016, SNE 26(4), the special issue ‘Modelling and Simulation in Modern Control Engineering’ was suggested and compiled by SLOSIM, the Slovenian Simulation Society – underlining the strategy of SNE to pub- lish contributions on recent trends and developments in modelling and simulation. For the front cover we have chosen figures from the eight contributions, sketching model approaches and other characteristic features, which indeed show the broad variety of mod- elling and simulation in modern control engineering. This issue also rounds up the emphasis of SNE on thematic – oriented issues, with special issues either of topic-oriented subjects – like this issue and SNE 26(3)with emphasis on System Dynamics – or of issues emphasizing on general developments in modelling and simulation – like SNE 26(2) – the ‘EUROSIM 2016 Congress’ special issue. And last but not least, this issue reflects the status of SNE as membership journal of EUROSIM, the Federation of European Simu- lation Societies, and the activities of the member societies as SLOSIM, which are invited to edit special issues.
I would like to thank all authors for their contributions, and especially the guest editor Vito Logar from SLOSIM for compiling this special issue. And last but not least thanks to the Editorial Office for layout, typesetting, preparations for printing, and web pro- gramming for electronic publication of this SNE issue.
Felix Breitenecker, SNE Editor-in-Chief, [email protected]; [email protected]
Contents SNE 26(4) SNE Contact & Info Special Issue ‘Modelling and Simulation SNE Print ISSN 2305-9974, SNE Online ISSN 2306-0271 in Modern Control Engineering’ ї www.sne-journal.org SNE doi: 10.11128/sne.26.4.1035 | [email protected], [email protected]
Jadex/JBdiEmo Emotional Agents in Games with SNE Editorial Office, Andreas Körner Purpose: a Feasibility Demonstration ARGESIM/Math. Modelling & Simulation Group, Š. Koreþko, B. Sobota, P. Zemianek ...... 195 Vienna Univ. of Technology /101, Wiedner Haupstrasse 8-10, 1040 Vienna , Austria Evolving Fuzzy Model (eFuMo) Method for On-line Fuzzy Model Learning with Application to Monitoring SNE S IMULATION N OTES E UROPE System. D. Dovžan, V. Logar, I. Škrjanc ...... 205 WEB: ї www.sne-journal.org, DOI prefix 10.11128/sne Model-based Prediction of the Remaining Useful Scope: Technical Notes, Short Notes and Overview Notes on devel- Life of the Machines. opments and trends in modelling and simulation in various areas and in application and theory; benchmarks and benchmark docu- P. Boškoski, B. Dolenc, B. Musizza, Ĉ. Juriþiü ...... 221 mentations of ARGESIM Benchmarks on modelling approaches and AMEBA - Evolutionary Computation Method: simulation implementations; modelling and simulation in and for Comparison and Toolbox Development. education, simulation-based e-learning; society information and M. Corn, M. Atanasijeviü-Kunc ...... 229 membership information for EUROSIM members (Federation of European Simulation Societies and Groups). Modelling and Simulation of GMA Welding Process Editor-in-Chief: Felix Breitenecker, Vienna Univ. of Technology, and Welding Power Sources. M. Golob ...... 237 Math. Modelling and Simulation Group Inverse Simulation Methods Applied to Investigations | [email protected], | [email protected] of Actuator Nonlinearities in Ship Steering. Layout / Administration: A. Körner, A. Mathe, J. Tanzler, D. J. Murray-Smith ...... 245 C. Wytrzens, et al.; | [email protected] Print SNE: Grafisches Zentrum, Vienna Univ. of Technology, Conversion of Iterative Balance Models to Directly Wiedner Hauptstrasse 8-10, 1040, Vienna, Austria Calculating Explicit Models for Real-time Process Online SNE: ARGESIM /ASIM, address below Optimization and Scheduling Publisher: ARGESIM ARBEITSGEMEINSCHAFT SIMULATION NEWS T. Björkqvist, O. Suominen, M. Vilkko, M. Korpi ...... 257 c/o Math. Modelling and Simulation Group, Modelling of Indoor Lighting Conditions in Buildings Vienna Univ. of Technology / 101, Wiedner Hauptstrasse 8-10, for Control Design Purposes. V. Logar ...... 267 1040 Vienna, Austria; www.argesim.org, | [email protected] EUROSIM Societies Short Info ...... N1 - N8 on behalf of ASIM www.asim-gi.org and EUROSIM ї www.eurosim.info
© ARGESIM / EUROSIM / ASIM 2016
SNE 26(4) – 12/2016 i Simulation Notes Europe Scientific Board and Authors’ Info SN E Editorial SNE Special Issue ‘Modelling and Simulation in Modern Control Engineering’ The progress in computer technology and IT has made ing Process and Welding Power Sources presents a Modelling and Simulation approaches an essential tool practical problem arising from power source control in in modern industry in several aspects, especially when it welding units. The author shows that proper electrical comes to control design. The field has been given spe- model allows controller development, ensuring steady cial attention, as the pursuit of modern systems are both and pulsed direct current welding. A problem oriented state-of-the-art design and adequate process control, study from a different field is in focus of the paper In- where modelling and simulation approaches are indis- verse Simulation Methods Applied to Investigations of pensable when effective, optimal and lean operation is Actuator Nonlinearities in Ship Steering by D. J. Mur- required. ray-Smith. The paper shows that inverse simulation The issue starts with the contribution of Š. Koreþko methods can be used to predict the ship’s rudder satura- et al. - Jadex/JBdiEmo Emotional Agents in Games with tion and rate limiting effect in terms of the maneuvera- Purpose: a Feasibility Demonstration. The authors pre- bility of the vessel. It is also shown that a two-stage in- sent a 3D game engine jMonkeyEngine, combined with verse-simulation method allows direct assessment of the Jadex agent system and JBdiEmo emotional extension difference between desired and achievable maneuvers. and their use in virtual testing grounds for development Another study was performed by T. Björkqvist et al. - of software controllers of various devices, embedded to Conversion of Iterative Balance Models to Directly them. Calculating Explicit Models for Real-time Process Op- The paper by D. Dovžan et al. - Evolving Fuzzy timization and Scheduling. The authors use a method for Model (eFuMo) method for on-line fuzzy model learning direct evaluation of the model output, instead of using with application to monitoring system presents an eFu- an iterative calculation and show its implementation on Mo method – a modelling approach based on model de- modelling of the copper production line. The method is sign and adaptation according to measured data. The au- used for process optimization and scheduling and is sig- thors show that evolving fuzzy model can be used to nificantly faster than classical modelling methods. predict sensor signals in case of their failure. Similarly, The last paper Modelling of indoor lighting condi- eFuMo approach can also be used for model-based con- tions in buildings for control design purposes, by V. trol, when real-time measurements are not accessible. Logar presents a fuzzy modelling approach to describe The paper by P. Boškoski et al. - Model-based pre- indoor lighting conditions in buildings. The model can diction of the remaining useful life of the machines deals be, due to its simplicity, used for broader environments, with simulation-based life-span prediction of shot blast- such as control design or model-based control. ing machines. The authors show that simulated estima- The scientific value of this contributions will be tion of the remaining life of the machine is satisfactory used also in the preparation of the curricula and syllabi and can be used for maintanence planning of the system. for the doctoral study in the frame of European ERAS- The paper AMEBA-evolutionary computation meth- MUS+ Project 573751-EPP-1-2016-1-DE-EPPKA2- od: Comparison and toolbox development, by M. Corn CBHE-JP entitled 'InMotion - Innovative teaching and and M. Atanasijeviü-Kunc presents the AMEBA meth- learning strategies in open modelling and simulation od and the corresponding toolbox. The method is based environment for student-centered engineering education' on evolutionary algorithms and can be used for different in which the partner University of Ljubljana, Faculty of purposes, such as system identification or control de- electrical engineering also covers the area of modern sign. Comparative results between AMEBA method and control systems in computer modelling and simulation other relevant methods are shown to demonstrate its po- engineering. tential and accuracy when identifying a nonlinear multi- The editor would like to thank all authors, who have variable system. contributed to this special issue and to the SNE Editorial The next three papers deal with more problem- Office for the support in compiling this special issue. oriented challenges, arising from practical applications. Vito Logar, University of Ljubljana, Faculty of Electrical M. Golob’s - Modelling and Simulation of GMA Weld- Engineering; [email protected]
ii SNE 26(4) – 12/2016 SNE T ECHNICAL N OTE
Jadex/JBdiEmo Emotional Agents in Games with Purpose: a Feasibility Demonstration Štefan KoreÏko*, Branislav Sobota, Peter Zemianek
Department of Computers and Informatics, Faculty of Electrical Engineering and Informatics, Technical University of Košice, Letná 9, Košice, Slovakia; *[email protected] 6LPXODWLRQ1RWHV(XURSH61( %', VWDQGV IRU EHOLHI±GHVLUH±LQWHQWLRQ D PRGHO RI '2,VQHWQ KXPDQ SUDFWLFDO UHDVRQLQJ LQWURGXFHG LQ >@ $ %', 5HFHLYHG1RYHPEHU DJHQWKDVEHOLHIVH[SUHVVLQJZKDWLWNQRZVDERXWLWVHOI $FFHSWHG'HFHPEHU 6SHFLDO,VVXH5HYLHZ DQG LWV HQYLURQPHQW GHVLUHV WKDW UHSUHVHQW VWDWHV LW ZRXOGOLNHWRDFKLHYHDQGLQWHQWLRQVWKDWSURYLGHPHDQV Abstract. The jMonkeyEngine 3D game engine, com- WRDFKLHYHWKHVWDWHV bined with Jadex agent system and JBdiEmo emotional 7KHVLPSOLFLW\RI%',LVWKHVRXUFHRIERWKLWVSRSX extension may offer a suitable toolset for effective crea- ODULW\ DQG FULWLFLVP 7KH FULWLFV SRLQW RXW WKDW %', IR tion of feature-rich virtual environments, provided that FXVHV RQ UDWLRQDO UHDVRQLQJ DQG LJQRUHV RWKHU DVSHFWV an appropriate interface, allowing to use the full poten- VXFKDVHPRWLRQV7RGHDOZLWKWKLVLVVXHLQWKHFRQWH[W tial of all included components, exists. Then, such envi- RIWKH-DGH[IUDPHZRUNZHGHVLJQHGDQGLPSOHPHQWHG ronments may profit from the jMonkeyEngine ability to -%GL(PR >@ >@ HPRWLRQDO HQJLQH ZKLFK XVHV D model and simulate the physical world and capability of PRGLILHGYHUVLRQRIWKH2&&PRGHORIKXPDQHPRWLRQV Jadex and JBdiEmo to express both rational and emo- 7KH2&&PRGHO>@FRQVLGHUVHPRWLRQVWREHUHVXOWVRI tional aspects of characters inhabiting it. One of the FRJQLWLYHSURFHVVHVDQGGLYLGHVWKHPLQWRWKUHHFODVVHV meaningful ways of utilization of such environments is to HPRWLRQVWKDWDUHUHDFWLRQVWRHYHQWVUHDFWLRQVWRDJHQWV use them as virtual testing grounds for software control- DQGUHDFWLRQVWRREMHFWV7KHYHUVLRQXVHGLQ-%GL(PR lers of various devices, embedded to them. To involve RULJLQDWHVIURP>@DQGKDVDIRUPRIDQLQKHULWDQFH real humans in the testing, they may have a form of a EDVHGKLHUDUFK\RIHPRWLRQV game, where the testing occurs during an interaction $SURPLVLQJXWLOL]DWLRQRI-DGH[DQG-%GL(PRLVLQ between the devices and players. In this paper we pre- FRPSXWHUJDPHVZKHUHWKH\FDQVLPXODWHERWKUDWLRQDO sent both the interface and the embedding on an emer- DQGHPRWLRQDOEHKDYLRUDODVSHFWVRIQRQSOD\DEOHFKDU gency simulation game called JFireEmSim2. The primary DFWHUV 13&V PRGHOHG DV DJHQWV 6XFK XWLOL]DWLRQ LV goal of the player in the game is to rescue a family from VXSSRUWHGE\-DGH[YLDDYLVXDOL]DWLRQLQWHUIDFHIRUWKH a house under fire and the controller embedded into it is M0RQNH\(QJLQH M0( ' JDPH HQJLQH ,Q >@ ZH of a simple autonomous cleaning robot. The paper de- XVHGWKHLQWHUIDFHWRGHYHORSDQHPHUJHQF\VLPXODWLRQ scribes the architecture of the game, focusing on the JDPHZKHUHWKHSOD\HU¶VJRDOLVWRUHVFXHSHRSOHIURPD interface, implementation of characters as Jadex and IODWXQGHUILUH7KHJDPHSURYHGWKDW-%GL(PRFDQEH JBdiEmo agents and embedding of the controller. It also XVHG ZLWK WKH LQWHUIDFH ZLWKRXW DQ\ PRGLILFDWLRQV EXW discusses suitability of the components for the given DOVR UHYHDOHG WKDW WKH LQWHUIDFH SURYLGHV RQO\ OLPLWHG task. DFFHVVWRM0( ,Q>@ZHLQWHQGHGWRXVHWKHSODWIRUPFRQVLVWLQJRI Introduction -DGH[-%GL(PRDQGM0(IRURUGLQDU\FRPSXWHUJDPHV DQGVHULRXVJDPHVIRUHGXFDWLRQDQGWUDLQLQJ+RZHYHU -DGH[>@>@LVDVRIWZDUHIUDPHZRUNZKHUHDSSOLFD IURPWKHFRQWUROV\VWHPSRLQWRIYLHZLWLVDOVRLQWHUHVW WLRQVDUHFRPSRVHGRIDFWLYHVHUYLFHSURYLGLQJFRPSR LQJWRH[DPLQHWKHSRVVLELOLWLHVRILWVXWLOL]DWLRQIRUWKH QHQWV 7KH FRPSRQHQWV FDQ EH LPSOHPHQWHG LQ VHYHUDO VRFDOOHG JDPHV ZLWK D SXUSRVH *Z3 >@ LH IRU IRUPVZLWKFRJQLWLYH%',DJHQWVEHLQJKLVWRULFDOO\WKH JDPHVZKHUHSOD\HUVDUHKHOSLQJWRVROYHVHULRXVSURE ILUVWDQGSUREDEO\WKHPRVWVRSKLVWLFDWHGRQHV OHPV
SNE 26(4) – 12/2016 195 KoreÏko et al. Jadex/JBdiEmo Emotional Agents in Games: a Feasibility Demonstration TN
*Z3WU\WRKLGHWKHLUWUXHSXUSRVHEHKLQGDQLQWHU 1.1 Jadex HVWLQJJDPHSOD\DQGSOD\HUVFDQEHFRPSOHWHO\XQDZDUH ,Q-DGH[DJHQWVDUHGHILQHGE\EHOLHIVJRDOVDQGSODQV RILW,QRXUFDVHWKH*Z3VKRXOGSURYLGHDYLUWXDOHQYL *RDOV VWDQG IRU GHVLUHV DQG SODQV IRU LQWHQWLRQV 7KH URQPHQWIRUHYDOXDWLRQDQGWHVWLQJRIVRIWZDUHFRQWURO SODQVDUHH[HFXWHGZLWKUHVSHFWWRWKHFXUUHQWJRDOVRI OHUV RU WKHLU H[HFXWDEOH SURWRW\SHV ,Q WKH JDPH WKH WKHDJHQWPHVVDJHVWKHDJHQWUHFHLYHVRUHYHQWVRFFXU FRQWUROOHUFDQEHUHSUHVHQWHGE\DQHQWLW\WKDWUHVHPEOHV ULQJLQWKHV\VWHP2QWKHRWKHUKDQGDQH[HFXWLRQRID WKHGHYLFHWREHFRQWUROOHGE\LWLQWKHUHDOZRUOG$QG SODQPD\UHVXOWLQQHZJRDOVPHVVDJHVRUHYHQWV WKHSXUSRVHRIWKHSOD\HUZLOOEHWRHYDOXDWHWKHFRQWURO $JHQWVDUHVSHFLILHGDVFODVVHVDQGDFWXDODJHQWVDUH OHU E\ LQWHUDFWLQJ ZLWK WKH FRUUHVSRQGLQJ HQWLW\ GXULQJ LQVWDQFHVRIWKHVHFODVVHV(DFKFODVVLVGHVFULEHGE\DQ WKHJDPHSOD\ DJHQWGHILQLWLRQ ILOH $') ZULWWHQ LQ ;0/ $Q$') 7KHUHLVRQHSURPLQHQWLVVXHWRGHDOZLWKLQRUGHUWR GHILQHVDOO%',HOHPHQWV LHEHOLHIVJRDOVDQGSODQV XVH WKH -DGH[-%GL(PRM0( SODWIRUP LQ VXFK ZD\ $ ,W FRQWDLQV QDPHV SDUDPHWHUV DQG SURSHUWLHV RI WKH QHZ LQWHUIDFH EHWZHHQ -DGH[ DQG M0( WKDW ZLOO RYHU HOHPHQWV DQG OLQNV WR -DYD FODVVHV WKDW LPSOHPHQW EH FRPHWKHOLPLWDWLRQVRIWKHYLVXDOL]DWLRQLQWHUIDFHSUR OLHIVDQGSODQV$WUXQWLPHDQDJHQWFRQVLVWVRIDPRG YLGHGE\-DGH[VKRXOGEHGHYHORSHG7KLVLVQHFHVVDU\ HOFUHDWHGIURPKLV$')DQGDVHWRILQVWDQWLDWHGRE WR EH DEOH WR XVH WKH IXOO SRWHQWLDO RI M0( IRU YLUWXDO MHFWVUHSUHVHQWLQJKLVSODQVDQGEHOLHIV HQYLURQPHQW FUHDWLRQ 7KH QHZ LQWHUIDFH KDV EHHQ GH %HOLHIVDUHVWRUHGLQDIRUP RIIDFWV7KHVHDUHDF VLJQHG DQG H[SHULPHQWDOO\ LPSOHPHQWHG LQ D QHZ FHVVHGE\JRDOVDQGSODQVWRDFTXLUHVWRUHGGDWDYDOXHV HPHUJHQF\ VLPXODWLRQ JDPH QDPHG -)LUH(P6LP $IDFWFDQEHDQDUELWUDU\-DYDREMHFW -)LUH(P6LP ZKLFK LV SUHVHQWHG LQ WKLV SDSHU VKDUHV *RDOVUHSUHVHQWDJHQW VVSHFLILFPRWLYDWLRQVVXFKDV WKH EDVLF JRDO ZLWK WKH RULJLQDO RQH >@ EXW IHDWXUHV WRUHDFKDQHZVWDWHRUWRSHUIRUPVRPHDFWLYLWLHV-DGH[ PRUHVRSKLVWLFDWHGJDPHSOD\DQGJUDSKLFDOO\ULFKHQYL LPSOHPHQWVDIXOOOLIHF\FOHIRUJRDOV>@$JRDOFDQEH URQPHQW7RGHPRQVWUDWHWKHIHDVLELOLW\RIWKH*Z3LGHD FUHDWHGZKHQLWVFUHDWLRQFRQGLWLRQLVPHWRUGXULQJDQ RXWOLQHGDERYHLWDOVRLQFOXGHVDIRUPDOO\YHULILHGFRQ H[HFXWLRQRIVRPHDFWLYHSODQ$QHZO\FUHDWHGJRDOLV WUROSURJUDPVXSHUYLVLQJDQDXWRQRPRXVURERW DGRSWHGDQGHQWHUVWKHPDLQSDUWRILWVOLIHF\FOH2QWKH 7KHUHVWRIWKHSDSHUVWDUWVZLWKDVKRUWRYHUYLHZRI EDVLVRILWVFRQWH[WFRQGLWLRQDQDGRSWHGJRDOFDQEHLQ WKH-DGH[-%GL(PRM0(SODWIRUPDQGOLPLWDWLRQVRIWKH WKHVWDWHµRSWLRQ¶RUµVXVSHQGHG¶$JRDOLQWKHµRSWLRQ¶ RULJLQDO YLVXDOL]DWLRQ LQWHUIDFH VHFWLRQ 6HFWLRQ VWDWH HYHQWXDOO\ EHFRPHV DFWLYH DQG H[HFXWHV FRUUH SUHVHQWVWKHQHZJDPHIRFXVLQJRQLWVRYHUDOODUFKLWHF VSRQGLQJSODQV7KHDFWLYHJRDOFDQEHWKHQVXVSHQGHG WXUH QHZ -DGH[M0( LQWHUIDFH DQG LPSOHPHQWDWLRQ RI LIWKHFRQWH[WFRQGLWLRQLVEURNHQGXULQJWKHH[HFXWLRQ 13&V DV -DGH[-%GL(PR DJHQWV 6HFWLRQ HODERUDWHV RI WKH SODQV ,I WKH SODQV RI WKH JRDO DFKLHYH GHVLUHG WKH*Z3LGHDE\SUHVHQWLQJDFRVWHIIHFWLYHYHUVLRQRI UHVXOWV WKH JRDO LV ILQLVKHG LQ WKH VWDWH RI VXFFHVV ,I FRUUHVSRQGLQJ GHYHORSPHQW SURFHVV DQG HPEHGGLQJ RI WKH\ IDLO WR DFKLHYH WKHP LW LV ILQLVKHG LQ WKH VWDWH RI WKH FRQWURO SURJUDP LQWR DQ DOUHDG\ H[LVWLQJ JDPH LQ IDLOXUH $ JRDO PD\ DOVR EH GURSSHG DW DQ\ WLPH LI LWV WKLVFDVHWKH-)LUH(P6LP7KHSDSHUFRQFOXGHVZLWKD UHVXOWVDUHQRORQJHUGHVLUHG&UHDWLRQFRQWH[WDQGRWKHU VXPPDU\ RI DFKLHYHG UHVXOWV DQG SODQV IRU IXWXUH UH FRQGLWLRQVDUHVSHFLILHGLQ$') VHDUFKDQGGHYHORSPHQW 3ODQV SURYLGH PHDQV WR DFKLHYH DFWLYH JRDOV )RU HYHU\FXUUHQWO\DFWLYHJRDOSODQVDUHH[HFXWHGXQWLOWKH JRDOLVUHDFKHGVXVSHQGHGIDLOHGRUGURSSHG7KH\DUH 1 The Platform LQVWDQWLDWHGDWUXQWLPHZKHQFRUUHVSRQGLQJHYHQWV HJ 7KHVRIWZDUHSODWIRUPERWKJDPHVDUHEXLOWRQFRQVLVWV DJRDOFUHDWLRQ DUHWULJJHUHG7KH\DUHDOVRFDSDEOHRI RI WKUHH FRPSRQHQWV LPSOHPHQWHG LQ -DYD WKH -DGH[ FUHDWLQJQHZJRDOV DJHQW V\VWHP WKH HPRWLRQDO HQJLQH -%GL(PR DQG WKH &RQILJXUDWLRQRIDZKROH-DGH[DSSOLFDWLRQLVVSHFL JDPH HQJLQH M0RQNH\(QJLQH M0( :KLOH -DGH[ DQG ILHG LQ DQ DSSOLFDWLRQ ;0/ ILOH ZKLFK GHILQHV KRZ M0(DUHVWDQGDORQHFRPSRQHQWV-%GL(PRFDQEHXVHG PDQ\ DJHQWV RI ZKLFK W\SH ZLOO SRSXODWH WKH DSSOLFD RQO\ZLWK-DGH[ WLRQ,I'RU'YLVXDOL]DWLRQLVXVHGLWVVHWWLQJVDUHD SDUWRIWKLVILOHWRR
196 SNE 26(4) – 12/2016 T N KoreÏko et al. Jadex/JBdiEmo Emotional Agents in Games: a Feasibility Demonstration
1.2 JBdiEmo *8,IRUYLVXDOL]DWLRQRIWKHDFWXDOHPRWLRQDOVWDWHRI -%GL(PR HQJLQH H[WHQGV -DGH[ DJHQWV E\ HPRWLRQV HPRWLRQDODJHQWV,WDOVRVKRZVKLVWRU\RIWKHHYHQWV DVVRFLDWHG ZLWK WKHLU UDWLRQDO SODQV EHOLHIV DQG JRDOV WKDWLQIOXHQFHHPRWLRQDOSODQVEHOLHIVRUJRDOV HPR 7KHVHWRIDOOHPRWLRQVDQHPRWLRQDODJHQWKDVWRJHWKHU WLRQDOHYHQWV ZLWKWKHLULQWHQVLW\YDOXHVIRUPKLVHPRWLRQDOVWDWH7KH /RJJHU UHFRUGLQJ HPRWLRQ LQWHQVLW\ YDOXHV WR ;0/ HQJLQH VXSSRUWV WKH ZKROH PRGLILHG 2&& PRGHO DQG ILOHVIRUIXWXUHSURFHVVLQJ KRZWKHHPRWLRQVDUHPDSSHGWR%',HOHPHQWVLVVKRZQ +HOSHUV ZKLFK SURYLGH PDWKHPDWLFDO FDOFXODWLRQV LQ)LJXUH-%GL(PRLVLPSOHPHQWHGLQVXFKDZD\WKDW DQGRWKHUDX[LOLDU\IXQFWLRQDOLW\ DJHQW VDFWLRQVFDQLQIOXHQFHKLVHPRWLRQDOVWDWHDQGWKH 1.3 jMonkeyEngine HPRWLRQDO VWDWH FDQ LQ WXUQ LQIOXHQFH DJHQW V IXUWKHU DFWLRQV M0RQNH\(QJLQH M0( LVDQRSHQVRXUFH'JDPH HQJLQH EXLOW RQ WKH 2SHQ*/ JUDSKLF OLEUDU\ ,W DOVRSURYLGHVDQLQWHJUDWHGGHYHORSPHQWHQYLURQ PHQWFDOOHGM0RQNH\(QJLQH6'.ZKLFKLVEDVHG RQWKH1HW%HDQV3ODWIRUP7KDQNVWRWKHIHDWXUHV OLNH PDWHULDO DQG WHUUDLQ HGLWRUV WKH FRPIRUW RI JDPHGHYHORSPHQWLQM0(LVFRPSDUDEOHWRFRP PHUFLDOHQJLQHVVXFKDV8'.RU8QLW\,QVKRXOG DOVR EH QRWHG WKDW M0( XVHV %XOOHW WR VLPXODWH SK\VLFDO SKHQRPHQD ZKLFK DFFRUGLQJ WR >@ LV RQHRIWKHPRUHDFFXUDWHSK\VLFVHQJLQHVDYDLODEOH LQFRQWHPSRUDU\JDPHV
1.4 Jadex 3D visualization interface )RU-DGH[M0(LVRQO\RQHRIVHYHUDORSWLRQVWRYLVXDO L]H DJHQW EHKDYLRU 7KH RWKHU RQHV DUH WH[WXDO RXWSXW DQG'JUDSKLFV7KHDSSOLFDWLRQ;0/ILOHLVUHVSRQVL EOHIRUWKHYLVXDOL]DWLRQFRQILJXUDWLRQ+HUH'PRGHOV Figure 1: OCC to BDI mapping as implemented in DQGDQLPDWLRQVDUHDVVRFLDWHGZLWKDJHQWVDQGPRGHOV JBdiEmo. WH[WXUHV DQG SRVLWLRQV RI RWKHU REMHFWV DUH GHILQHG $ 7KHHQJLQHFRQVLVWVRIVHYHQFRPSRQHQWV GLUHFWDFFHVVWRM0(LVDOVRSURYLGHGEXWRQO\WRDVXE VHWRILWVIHDWXUHV -%GL(PR FRUH UHVSRQVLEOH IRU UHSUHVHQWDWLRQ RI 7KH PDVWHUVODYH UHODWLRQVKLS EHWZHHQ -DGH[ DQG DJHQW¶V HPRWLRQDO VWDWH FKHFNLQJ RI HOLFLWLQJ FRQGL M0(SUHYHQWVGHYHORSHUVWRXVHLPSRUWDQWM0(IHDWXUHV WLRQVRIHDFKHPRWLRQHPRWLRQLQWHQVLW\YDOXHFDOFX VXFK DV PRUH VRSKLVWLFDWHG YLVXDO HIIHFWV FROOLVLRQ GH ODWLRQ DQG PHVVDJLQJ EHWZHHQ HPRWLRQDO DJHQWV WHFWLRQ DQG SK\VLFV HQJLQH $V >@ VKRZV WKLV SXWV $JHQWVDFFHVVLWYLDDEHOLHI VHYHUDOFRQVWUDLQWVRQWKHYLVXDODSSHDUDQFHRIWKHJDPH (PRWLRQDODJHQWLQLWLDOL]DWLRQSODQLPSOHPHQWLQJDQ DQG IRUFHV GHYHORSHUV WR LPSOHPHQW PHFKDQLVPV OLNH LQLWLDO DJHQW PRGHO PDSSLQJ ,W LQLWLDWHV SURFHVVHV FROOLVLRQGHWHFWLRQRQWKH-DGH[VLGH,QFRQVHTXHQFH WKDWUHSHDWHGO\PRQLWRUDJHQW¶VHYHQWVDQGWKHZKROH WKHWLPHVSDUHGE\XVLQJ-DGH[WRLPSOHPHQW13&VFDQ -DGH[ SODWIRUP IRU D SUHVHQFH RI RWKHU HPRWLRQDO EHORVWEHFDXVHRIWKHDGGLWLRQDOLPSOHPHQWDWLRQZRUN DJHQWV ,QWHUDJHQW HPRWLRQDO PHVVDJLQJ SODQ SURYLGLQJ PHVVDJHGHOLYHU\EHWZHHQHPRWLRQDODJHQWV 2 JFireEmSim2 Game /DQJXDJHH[WHQVLRQDOORZLQJWRGLVWLQJXLVKRUGLQDU\ 7KH FRQVWUDLQV WKH RULJLQDO YLVXDOL]DWLRQ LQWHUIDFH SXWV EHOLHIVJRDOVDQGSODQVIURPWKHRQHVZLWKDVVRFLDWHG RQGHYHORSHUVPD\UHQGHUWKHZKROHLGHDRIXVLQJ-DGH[ HPRWLRQV LHIURPWKHHPRWLRQDORQHV DQG -%GL(PR IRU 13&V LPSOHPHQWDWLRQ LQHIILFLHQW )RUWXQDWHO\WKH\FDQEHRYHUFRPHE\GHVLJQLQJDQHZ LQWHUIDFHWKDWSXW-DGH[DQGM0(LQPRUHHTXDOSRVLWLRQ
SNE 26(4) – 12/2016 197 KoreÏko et al. Jadex/JBdiEmo Emotional Agents in Games: a Feasibility Demonstration TN
7KH JFireEmSim2 JDPH )LJXUH ZKLFK LPSOH 7KHFODVV AppFRQWDLQVWKHHQWU\SRLQWRIWKHJDPH PHQWVVXFKLQWHUIDFHLVVLWXDWHGLQDYLOODJHZKHUHWKH PHWKRGmain DQGPHWKRGVUHTXLUHGE\SimpleAppli- SOD\HUKDVWZRJRDOV)LUVWKHKDVWRUHVFXHDIDPLO\RI cationVXFKDVsimpleInitAppWRLQLWLDOL]HDQGsim- IRXUIURPDKRXVHXQGHUILUHDQGVHFRQGKHKDVWRVDYH pleUpdateWRXSGDWHWKHJDPHLQHDFKJDPHORRSF\FOH D GHSUHVVHG SHUVRQ RQ D QHDUE\ FHPHWHU\ EHIRUH KH ,WVSURSHUWLHVDPRQJRWKHUVSURYLGHDFFHVVWRWKHSK\V FRPPLWVVXLFLGH7RVXFFHVVIXOO\VDYHWKHIDPLO\DOOLWV LFVHQJLQH bulletAppState KDQGOHYDULRXVREMHFWVLQ PHPEHUV KDYH WR EH WDNHQ RXW RI WKH KRXVH $SHUVRQ WKHHQYLURQPHQWVXFKDVLQGLYLGXDOILUHVLWHV SURSHUWLHV PD\UHIXVHWRIROORZWKHSOD\HUEHFDXVHRIWKHIHDURI firefirePositionsDQGfireNodes DQGLPSOHPHQW JHWWLQJEXUQHGRUGXHWRWKHSRVLWLRQLQWKHIDPLO\ ' XVHU LQWHUIDFH HOHPHQWV HJ hudControl WR VKRZ 7KH DFWXDO DSSHDUDQFH RI WKH JDPH FDQ EH VHHQ LQ KHDOWK RI WKH SOD\HU DQG 13&V App DOVR LQFOXGHV DQ )LJXUHZKHUHWKHVLWXDWLRQDIWHUVDYLQJWKHILUVWPHP REMHFW FDOOHG start ZKLFK LQLWLDOL]HV -DGH[ LQ D VHSD EHURIWKHIDPLO\LVFDSWXUHG7KHUHDUHKHDOWKEDUV UHG UDWHWKUHDG IRUDOOWKHIDPLO\PHPEHUV IDWKHU-RKQPRWKHU0DULH 7KHSOD\HURIWKHJDPHLVUHSUHVHQWHGE\WKH Play- VRQ -RH DQG GDXJKWHU -DQH LQ WKH XSSHU OHIW FRUQHU erFODVVZKLFKGHILQHVLWVJUDSKLFDODSSHDUDQFHLQFOXG 3OD\HU¶VKHDOWKDQGH[WLQJXLVKHUVWDWXVDUHVKRZQLQWKH LQJ DQLPDWLRQV SURSHUWLHV HJ KHDOWK H[WLQJXLVKHU ORZHUOHIWFRUQHU7KHSOD\HU¶VFKDUDFWHULVWKHILUHPDQ FKDUJHOHYHO DQGNH\ERDUGDQGPRXVHLQSXWSURFHVVLQJ RQ WKH ULJKW VLGH VHHQ IURP EHKLQG 7KH KRXVH XQGHU ILUHLVWKHZRRGHQRQHRQWKHOHIW7KHUHDUHWZRSHUVRQV 13&VDUHGHILQHGRQWKUHHOHYHOVILUVWWZRRIWKHP LQIURQWRIWKHKRXVHDQHLJKERULQZKLWH7VKLUWRE EHORQJLQJWRWKHFRUH VHUYLQJ WKH HYHQW DQG WKH VDYHG SHUVRQ -RH LQ EOXH CharacterDFODVVZKLFKSURYLGHVEDVLFIXQFWLRQDOL VKLUW ,Q WKH EDFNJURXQG ZH FDQ VHH DQRWKHU ILUH VLWH W\IRUDOO13&VLQWKHJDPHVXFKDVPRYHPHQWFROOL DQGDILUHPDQ7KHLUUROHLVGHVFULEHGLV6HFWLRQ VLRQUHVROXWLRQDQGDQLPDWLRQV7KHFODVVDOVRGHILQHV 6WUXFWXUDOO\WKHJDPHFDQEHGLYLGHGLQWRWKUHHFRP DQ DEVWUDFW PHWKRG act ZKLFK VKRXOG GHILQH 13& SRQHQWV EHKDYLRUDQGDOOLWVGHVFHQGDQWVPXVWLPSOHPHQWLW *DPHFRUHZLWKWKHHQWU\SRLQWRIWKHJDPHDQGFODV ,QKHULWHG FODVVHV KROGLQJ DVSHFWV VSHFLILF WR FRUUH VHV GHILQLQJ WKH EDVLF JDPHSOD\ DSSHDUDQFH RI WKH VSRQGLQJ FKDUDFWHU FDWHJRU\ 7KHVH DUH 6DYLQJ3HU JDPH DQG XVHU LQSXW SURFHVVLQJ 7KH\ KDYH ZKLWH VRQ IRU WKH IDPLO\ PHPEHUV 2WKHU3HUVRQ IRU D EDFNJURXQG DQG QDPHV W\SHG LQ QRUPDO IRQW LQ WKH QHLJKERUREVHUYLQJWKHVLWXDWLRQDQG4XHVW3HUVRQIRU FODVVGLDJUDPLQ)LJXUHDQGDUHH[SODLQHGLQPRUH WKH SHUVRQ DERXW WR FRPPLW D VXLFLGH RQ WKH FHPH GHWDLOLQ6HFWLRQ WHU\ 7KHVH FODVVHV DUH FRQQHFWHG WR -DGH[ DJHQWV -DGH[M0( LQWHUIDFH DOORZLQJ QRQUHVWULFWLQJ FRP OHYHO YLD FRUUHVSRQGLQJ$JHQW&RQWURO REMHFWV RI PXQLFDWLRQ EHWZHHQ ERWK IUDPHZRUNV ,W FRQVLVWV RI WKHLQWHUIDFHDQGWKHLULQVWDQFHVRQHIRUHDFK13& WZRFODVVHV&RPPXQLFDWRUDQG$JHQW&RQWURO ZKLWH DUHSURSHUWLHVRIWKH$SSFODVV EDFNJURXQG DQG QDPHV LQ EROG LQ )LJXUH GH -DGH[DJHQWVVSHFLI\LQJWKHLUUDWLRQDODQGHPRWLRQDO VFULEHGLQ6HFWLRQ EHKDYLRU $JHQWV UHSUHVHQWLQJ 13&V ZKLFK LPSOHPHQW WKHLU $OOFODVVHVLPSOHPHQWLQJHQWLWLHVWKDWFDQEHVHHQLQWKH EHKDYLRU7KH FODVVHV DQG$') ILOHV EHORQJLQJ KHUH JDPH DUH DOVR FRQQHFWHG WR FRUUHVSRQGLQJ ' PRGHOV KDYHOLJKWJUD\EDFNJURXQGLQ)LJXUHDQGDUHWUHDW WH[WXUHVDQGDQLPDWLRQV HGLQ6HFWLRQ 7KHUH LV DOVRD IRXUWK SDUW LQ )LJXUH FRQVLVWLQJRI 2.2 Jadex/jME interface FODVVHVZLWKGDUNJUD\EDFNJURXQG7KHVHEHORQJWRWKH 7KHQHZLQWHUIDFHLPSOHPHQWHGE\FODVVHVCommunica- FRQWURO SURJUDP HPEHGGHG LQWR WKH JDPH DQG DUH GH tor DQG AgentControl LV GHVLJQHG DV XQLYHUVDO LW VFULEHGLQPRUHGHWDLOLQ6HFWLRQ GRHVQ¶WHYHQUHTXLUHWKHSDUWFRQQHFWHGWR-DGH[WREH LPSOHPHQWHGLQM0(,WVSXUSRVHLVWRNHHSWKHVWDWHRI 2.1 Game core REMHFWV UHSUHVHQWLQJ 13&V RQ WKH M0( VLGH V\QFKUR 7KHFRUHRIWKHJDPHLVGHVLJQHGDVDW\SLFDOM0(DS QL]HGZLWKEHOLHIVRIFRUUHVSRQGLQJ-DGH[DJHQWV SOLFDWLRQ ZLWK LWV PDLQ FODVV App LPSOHPHQWLQJ WKH M0(EDVHFODVVSimpleApplication
198 SNE 26(4) – 12/2016 T N KoreÏko et al. Jadex/JBdiEmo Emotional Agents in Games: a Feasibility Demonstration
DOO DJHQWV LH WKH RQHV EHORQJLQJ WR M%GL(PR DQG WKH EHOLHI shared 7KH JRDOV DQG EHOLHIV RI Marrie Joe DQG Jane DUH VLPLODU WR WKRVH RI John 7KH fami- ly_savedEHOLHILVVSHFLILFWRJohnJoeDQGJaneGRQ¶W KDYHWKHchild_savedEHOLHIEXWKDYHDGGLWLRQDOEHOLHI FDOOHGreproachedJoeDOVRKDVWKHEHOLHIjane_saved DQGJaneKDVjoe_saved 7R LOOXVWUDWH KRZ WKH DJHQWV GHILQHEHKDYLRU RI WKH 13&V OHW XV KDYH D ORRN RQ WKH IDPLO\ WR EH VDYHG :KHQ WKH JDPH EHJLQV DQ DFWLYH JRDO RI DOO IDPLO\ PHPEHUVLVZDQGHUDQGWanderPlanLVFDUULHGRXW7KLV PHDQV WKDW WKH SHUVRQV UDQGRPO\ ZDQGHU DURXQG WKH KRXVH ,I D SHUVRQ JHWV WRR FORVH WR D ILUH WKH run_from_fire JRDO EHFRPHV DFWLYH DQG RunFrom- Figure 2: JFireEmSim2 screenshot. FirePlanWULHVWRJHWWKHSHUVRQWRVDIHGLVWDQFH+RZ HYHUZKHQWKHLQWHQVLW\RIWKHfearHPRWLRQIHOWWRWKH 7KH FODVV Communicator LV LPSOHPHQWHG XVLQJ VLQJOH JRDO run_from_fire EHFRPHV WRR KLJK WKH cry JRDO WRQGHVLJQSDWWHUQWRHQVXUHWKDWRQO\RQHLQVWDQFHRILW EHFRPHV DFWLYH 7KLV LQLWLDWHV WKH CryPlan ZKLFK LVDYDLODEOHLQWKHJDPH,WVSURSHUW\agentsKROGVDOLVW PDNHV WKH SHUVRQ VWRS IRU IHZ VHFRQGV DQG SHUIRUP AgentControl RI LQVWDQFHV RQH IRU HDFK -DGH[ DJHQW DSSURSULDWH DQLPDWLRQ $QRWKHU DVSHFW WKDW FDQ DERUW 7KHCommunicatorLWVHOIMXVWDOORZVWRDGGDQGUHPRYH RunFromFirePlan H[HFXWLRQ LV WKH YDOXH RI disap- DJHQWVVRWKHZKROHV\QFKURQL]DWLRQLVLQWKHKDQGVRI provingHPRWLRQIHOWWRWKHwanderJRDOEHLQJKLJKHU WKHAgentControlREMHFWVZKLFKZULWHYDOXHVWRDJHQWV¶ WKDQ 0.7 7KHQ WKH GiveUpPlan LV H[HFXWHG ZKLFK EHOLHIVZLWKWKHLUSXWPHWKRGVDQGUHDGEHOLHIYDOXHVZLWK PHDQVWKDWWKHSHUVRQVWD\VLQSODFHDQGRQO\WKHSOD\ getBooleangetIntDQGgetFloatPHWKRGV HU¶VSUHVHQFHFDQ FKDQJH LWE\ PDNLQJ WKH stay_calm :KLOHRQWKHM0(VLGHWKHLQWHUIDFHLVDFFHVVHGYLD JRDO DFWLYH DQG StayCalmPlan H[HFXWHG :KHQ WKH WKHSURSHUW\agentRIWKHFODVVHVLQKHULWHGIURPChar- SOD\HU FRPPDQGV D SHUVRQ WR IROORZ KLP WKH fol- acter RQ WKH -DGH[ VLGH LW LV GRQH WKURXJK D EHOLHI low_player JRDODQG FollowPlanDUHDFWLYDWHGSUR FDOOHGsharedDQGSODQUpdatePlan7KHVHDUHGHILQHG YLGHGWKHFRUUHVSRQGLQJFRQGLWLRQVDUHPHWWKHPRWKHU shared IRU HDFK DJHQW 7KH YDOXH RI LV DQ LQVWDQFH RI UHIXVHV WR IROORZ XQWLO WKH FKLOGUHQ DUH VDYHG DQG WKH WKH FRUUHVSRQGLQJ AgentControl REMHFW REWDLQHG YLD IDWKHU LV WKH ODVW RQH WR OHDYH 2WKHUZLVH WKH re- WKH Communicator 7KH UpdatePlan DXWRPDWLFDOO\ ject_followJRDODQGRejectPlanDUHDFWLYDWHG XSGDWHVEHOLHIVRIWKHDJHQWHYHU\WLPHWKHYDOXHVVWRUHG LQWKHFRUUHVSRQGLQJAgentControlREMHFWDUHFKDQJHG 3 Controller in Game 2.3 NPCs behavior 1RZOHWXVDVVXPHWKDWZHDUHGHYHORSLQJDVDIHW\ 7KH EHKDYLRU RI 13&V LQ WKH JDPH LV GHILQHG DOPRVW FULWLFDO SDUW RI D FRQWURO SURJUDP IRU DQ DXWRQRPRXV H[FOXVLYHO\E\-DGH[DJHQWVDQGHDFK13&KDVLWVRZQ FOHDQLQJ URERW ZKLFK ZRUNV DV IROORZV 7KH URERW $'),Q)LJXUH$')VDUHGHSLFWHGLQWKHIRUPVLPLODU VWRUHVDOLVWRIORFDWLRQVWRFOHDQLQLWVPHPRU\$IWHULW V WR FODVVHV LH GLYLGHG LQWR WKUHH EORFNV 7KH ILUVW RQH WXUQHGRQLWJRHVWRWKHILUVWORFDWLRQIURPWKHOLVWDQG FRQWDLQV VWHUHRW\SH <
SNE 26(4) – 12/2016 199 KoreÏko et al. Jadex/JBdiEmo Emotional Agents in Games: a Feasibility Demonstration TN
Figure 3: UML class diagram showing essential part of the JFireEmSim2 game structure. 200 SNE 26(4) – 12/2016 T N KoreÏko et al. Jadex/JBdiEmo Emotional Agents in Games: a Feasibility Demonstration
7KH VSHFLILHGSRVLWLRQ LV JLYHQ DV D FRPSDVV DQJOH p2gAngleInMin DQG GLVWDQFH IURP WKH FXUUHQW SRVL WLRQ p2gDst 7KH PHWKRG HYDOXDWHV WKH VLWXDWLRQ DQG LVVXHVLQVWUXFWLRQVIRUWKHURERWWRIROORZ7KHVHLQFOXGH FRPPDQGVWRWXUQWKHURERWRQRUVZLWFKLWWRVWDQGE\ WKH RXWSXW SDUDPHWHU botOn WR VWDUW RU WR VWRS WKH FOHDQLQJ SURFHVV botCleaning DQG WKH GHVWLQDWLRQ ZKHUHWKHURERWVKRXOGJR angleInMinDQGdst 1RZDVVXPHWKDWWKHFRQWUROSURJUDPSDUWKDVEHHQ GHYHORSHGXVLQJIRUPDOPHWKRGVVXFKDV%0HWKRG>@ VRZHDUHVXUHWKDWWKHVDIHW\FULWLFDOSURSHUWLHVKROGLQ LWVLPSOHPHQWDWLRQ:KDWZHDUHQRWVXUHLVZKHWKHUWKH Figure 4: Cleaning bot sensors arrangement. GLVWDQFHVsafeDstClDQGsafeDstMovDUHVHWRSWLPDO O\ 7KH\ VKRXOG EH ODUJH HQRXJK WR SUHYHQW WKH URERW 7KH URERW VKRXOG EH DEOH WR SHUIRUP LWV MRE LQ SXEOLF IURPKXUWLQJSHRSOHEXWQRWWRRODUJHDVLWZLOOFDXVH DUHDV VR IURP WKH VDIHW\ SRLQW RI YLHZ LW LV FULWLFDO WR WKHURERWWRLQWHUUXSWLWVRSHUDWLRQWRRRIWHQ7RHVWDE SUHYHQWLWIURPKXUWLQJSHRSOH7RGHWHFWWKHPLWSRV OLVKWKHGLVWDQFHVVLPXODWLRQH[SHULPHQWVFDQEHXVHG VHVVHVDFLUFXODUO\DUUDQJHGVHQVRUDUUD\ )LJXUH 7KH VHQVRUDUUD\UHWXUQVYDOXHVnneeneesessessw 3.1 Jadex/JBdiEmo/jME as simulation wsw wnwDQG nnw7KHYDOXH nne QRUWKQRUWKHDVW LV WKHGLVWDQFHWRDQHDUHVWSHUVRQGHWHFWHGLQWKHUHJLRQ platform IURP QRUWK FRPSDVV DQJOH 0 PLQXWHV WR QRUWK HDVW :HFRQVLGHU-DGH[-%GL(PRM0(WREHDVXLWDEOHSODW 2700PLQXWHV ene HDVWQRUWKHDVW WKHGLVWDQFHLQWKH IRUPIRUVXFKVLPXODWLRQEHFDXVHRIWKHIROORZLQJUHD UHJLRQIURP2700`WR5400`DQGVRRQ,IQRSHUVRQLV VRQV GHWHFWHG LQ D UHJLRQ WKHQ WKH FRUUHVSRQGLQJ YDOXH LV 6XSSRUW IRU TXLFN FRQVWUXFWLRQ RI D YLUWXDO HQYLURQ HTXDOWRWKHPD[LPXPGLVWDQFHPHDVXUDEOHE\WKHDUUD\ PHQWZKHUHWKHURERWZLOORSHUDWHWKDQNVWRWKHHGL maxMsrblDst 7KH URERW PD\ KXUW VRPHRQH ZKHQ WRUV RI M0RQNH\(QJLQH 6'. DQG DELOLW\ WR LPSRUW FOHDQLQJDVWKHFOHDQLQJSURFHVVLVKDUPIXOIRUDQ\RQH PRGHOVDOUHDG\DYDLODEOHRQOLQHRUFUHDWHGLQGLIIHU FORVH HQRXJKRUZKHQ D FROOLVLRQRFFXUV GXULQJ PRYH HQWDSSOLFDWLRQV)RUH[DPSOHPRVWRIWKHEXLOGLQJV PHQW7RSUHYHQWWKLVWKHFRQWUROSURJUDPVKRXOGREH\ LQ-)LUH(P6LPDUHIUHHO\DYDLODEOHPRGHOVDQGWKH VDIHW\ FULWLFDO SURSHUWLHV ZKLFK FDQ EH IRUPXODWHG DV KRXVH XQGHU ILUH KDV EHHQ FUHDWHG LQ 6NHWFK8S IROORZV ZZVNHWFKXSFRP 13& PRGHOV ZHUH FUHDWHG LQ 7KHFOHDQLQJFDQQRWVWDUWRUFRQWLQXHLIDQ\RQHJHWV 0DNH+XPDQ KWWSZZZPDNHKXPDQRUJ DQGWKHLU DV FORVH RU FORVHU WR WKH URERW DV WKH GLVWDQFH DQLPDWLRQVLQ%OHQGHU KWWSVZZZEOHQGHURUJ VDIH'VW&O %XLOWLQSK\VLFVVLPXODWLRQLQM0(SURYLGHGE\M%XO 7KH URERW FDQQRW PRYH LI DQ\RQH JHWV DV FORVH RU OHWD-DYDSRUWRIWKH%XOOHWHQJLQH%XOOHWLVXVHGLQ FORVHUWRLWVIURQWDVWKHGLVWDQFHVDIH'VW0RY VHYHUDO VLPXODWLRQ SODWIRUPV VXFK DV *D]HER $FFRUGLQJ WR WKLV VSHFLILFDWLRQ ZH GHVLJQ DQG LP KWWSJD]HERVLPRUJ DQG 95(3 KWWSZZZFRS SOHPHQW WKH FRQWURO SURJUDP SDUW ZLWK D PHWKRG up- SHOLDURERWLFVFRP 7KH M%XOOHW SRUW KDV EHHQ XVHG IRU VLPXODWLRQ SXUSRVHV DV ZHOO IRU H[DPSOH LQ >@ dateAndEvaluateDVLWVLQWHUIDFH )LJXUH 7KHILUVW IRUFHOOVDQGVXUURXQGLQJIOXLG WKUHHSDUDPHWHUV RI WKH PHWKRGVSHFLI\ ZKDW WKH URERW VKRXOGGRLQWKHJLYHQVLWXDWLRQDQGWKHUHVW nneWR 3RVVLELOLW\ WR SRSXODWH WKH YLUWXDO HQYLURQPHQW ZLWK nnw DUHUHDGLQJVIURPWKHVHQVRUDUUD\7KHSDUDPHWHU FKDUDFWHUVZLWKFRPSOH[SHUVRQDOLW\WKDQNVWRWKHLQ WHJUDWLRQ RI -DGH[ DQG -%GL(PR ,Q DGGLWLRQ WKH FRPPDQGGHILQHVZKHWKHUWKHURERWVKRXOG FKDUDFWHUVFDQEHGHYHORSHGVHSDUDWHO\DQGLQWHJUDWHG • VZLWFKWRVWDQGE\PRGHLPPHGLDWHO\ YDOXH WRWKHHQYLURQPHQWDIWHUZDUGV •JRWRDVSHFLILHGSRVLWLRQDQGWKHQFOHDQ RU •JRWRDVSHFLILHGSRVLWLRQDQGVWDQGE\
SNE 26(4) – 12/2016 201 KoreÏko et al. Jadex/JBdiEmo Emotional Agents in Games: a Feasibility Demonstration TN
%RWKM0(DQG-DGH[KDYHDOUHDG\EHHQXVHGIRU 7R PLQLPL]H WKH HIIRUW SXW LQWR WKH ILUVW WDVN ZH VLPXODWLRQSXUSRVHV7KH-DGH[FDVHLVGHVFULEHGLQ>@ VKRXOG FRQVLGHU UHXVLQJ WKH DVVHWV DOUHDG\ DYDLODEOH LQ DQGM0(LVWKHEDVLVRIVHYHUDOURERWLFVVLPXODWLRQHQYL WKHJDPH)RUH[DPSOHSURYLGHGWKDWWKHEDVLFSDUDPH URQPHQWVVXFKDVMPH6LP>@DQG0$56>@ WHUVOLNHGLPHQVLRQVZHLJKWDQGVSHHGRIWKHFOHDQLQJ ERWDUHVLPLODUWRDQDYHUDJHKXPDQLWFDQKDYHDIRUP RIDQDGGLWLRQDOILUHPDQLQ-)LUH(P6LPDQGWKHSRVL WLRQVWREHFOHDQHGFDQEHUHSUHVHQWHGDVILUHVLWHVWREH H[WLQJXLVKHG )LJXUH
Figure 5: Cleaning bot interface.
3.2 Simulation vs. GwP ,Q SULQFLSDO DQ HQYLURQPHQW FUHDWHG ZLWK -DGH[-% GL(PRM0(FDQEHXVHGLQWZRZD\V )RUVLPXODWLRQH[SHULPHQWV $VDJDPHZLWKSXUSRVH 7KH ILUVW FDVH LV GH IDFWR D JDPH ZLWKRXW SOD\HU ZLWK Figure 6: The second fireman representing the robot ap- proaching the fire sites, i.e. places to clean. SURSHUWLHV DQG EHKDYLRURI HQWLWLHV LQKDELWLQJ WKH HQYL URQPHQWJLYHQE\WKHLUFRGHDQGPRGHOVRQO\6RGLI 7KHFRQWUROOHUFDQEHLQWHJUDWHGDVLWLVVKRZQLQ)LJ IHUHQW VLPXODWLRQ H[SHULPHQWV XQGHU HTXDO FRQGLWLRQV XUH FODVVHVZLWKGDUNJUD\EDFNJURXQG 7KHFRQWURO FDQHDVLO\EHSHUIRUPHG OHU LWVHOI FRQVLVWV RI FODVVHV CBotController ,QWKHVHFRQGFDVHDKXPDQSOD\HULVLQYROYHGDQG CBotControllerCoreDQGProximSensors ZKLFK PD\ LQWHUDFW ZLWK DQ HQWLW\ UHSUHVHQWLQJ WKH FRQWURO KDYHEHHQJHQHUDWHGIURPIRUPDOVSHFLILFDWLRQFUHDWHG SURJUDP7KH*Z3HOHPHQWLVWKDWWKHLQWHUDFWLRQSUR DQGYHULILHGXVLQJ%0HWKRG7KHupdateAndEvaluate YLGHVGDWDHVVHQWLDOIRUHYDOXDWLRQRUDGMXVWPHQWRIWKH PHWKRGFDQEHIRXQGLQCBotController FRQWURO SURJUDP HJ ZKHWKHU FHUWDLQ YDOXHV RI 7KHFRQQHFWLRQWRWKHJDPHLVLPSOHPHQWHGYLDWKH safeDstClDQGsafeDstMovPD\HQGDQJHUSHUVRQVWKDW FODVV Robot ,W VHUYHV WKH VLPLODU SXUSRVH DV WKH FODVV FRPHFORVHWRWKHFOHDQLQJERW7KLVLQWHUDFWLRQFDQEH CharacterIRU13&VLHLWSURYLGHVYLVXDOUHSUHVHQWD FRPSOHWHO\QDWXUDOIRUH[DPSOHWKHFOHDQLQJERWFDQEH WLRQRIWKHURERW DVDILUHPDQ ,WLVDOVRUHVSRQVLEOHIRU VLWXDWHG LQ DQ DUHD ZKLFK WKH SOD\HU ZLOO YLVLW HLWKHU H[HFXWLQJ WKH updateAndEvaluate PHWKRG DQG SHU ZD\ IRUPLQJDFWLRQVDFFRUGLQJWRWKHYDOXHVLWUHWXUQV7KH LQSXWSDUDPHWHUVRIupdateAndEvaluateDUHFRPSXWHG 3.3 Cleaning bot in JFireEmSim2 IURPDFWXDOSRVLWLRQVRIWKHURERWSODFHWRFOHDQSOD\HU :KLOHWKH-DGH[-%GL(PRM0(SODWIRUPDOORZVWREXLOG DQG13&VE\WKHFODVVRelativePosition DYLUWXDOHQYLURQPHQWUHODWLYHO\TXLFNO\WKHPRUHHFR QRPLFDO RSWLRQ LV WR HPEHG WKH FRQWURO V\VWHP WR EH 4 Related Work HYDOXDWHGWRDQDOUHDG\H[LVWLQJJDPH7KLVUHTXLUHVWZR WDVNVWREHSHUIRUPHG 6HYHUDO DVSHFWV SUHVHQWHG KHUH FDQ EH IRXQG LQ RWKHU VRXUFHVEXWWKHFRPELQDWLRQRIXVLQJDJDPHHQJLQHIRU &UHDWH DQ HQWLW\ WKDW ZLOO UHSUHVHQW WKH FRQ WKH EDVLF JDPHSOD\ DQG VLPXODWLRQ RI WKH SK\VLFDO WUROOHGV\VWHPLQWKHJDPH ZRUOGHPRWLRQDODJHQWVIRUFKDUDFWHUVEHKDYLRUDQGWKH $GMXVWWKHFRGHRIWKHJDPHWRLQWHJUDWHWKH UHVXOWLQJJDPHIRUHYDOXDWLRQRIWKHFRQWUROV\VWHPVYLD FRQWUROOHU VHHPLQJO\ RUGLQDU\ JDPHSOD\ UHPDLQV XQLTXH WR WKLV ZRUN 5HJDUGLQJ M%GL(PR WR RXU NQRZOHGJH LW LV WKH RQO\H[LVWLQJHPRWLRQLPSOHPHQWLQJH[WHQVLRQIRU-DGH[
202 SNE 26(4) – 12/2016 T N KoreÏko et al. Jadex/JBdiEmo Emotional Agents in Games: a Feasibility Demonstration
7KHLGHDRIWXUQLQJDFRPSXWHUJDPHLQWRDWHVWLQJ $QRWKHUZD\LVWRHQKDQFHWKHSRVVLELOLWLHVRISOD\HU JURXQG IRU FRQWURO V\VWHPV LV LQ JUHDW H[WHQW UHDOL]HG PRYHPHQWV RU SHUIRUP H[SHULPHQWV ZLWK VHOHFWHG ZLWKWKHUHDOWLPHVWUDWHJ\JDPH6WDUFUDIW$FFRUGLQJWR JURXSVRIKXPDQSOD\HUV:HDOVRZRXOGOLNHWRUHWXUQ WKH VXUYH\ >@ PRVW RI WKHVH ZRUNV DUH LPSOHPHQWHG WR WKH LPSRUWDQFH RI WKH LGHD ZLWK UHVSHFW WR IRUPDO YLDWKH%URRG:DU$SSOLFDWLRQ3URJUDPPLQJ,QWHUIDFH PHWKRGVZKLFKLVWRXFKHGRQO\OLJKWO\KHUHLQDVHSD KWWSEZDSLJLWKXELR ZKLFK DOORZV UHSODFLQJ D KX UDWHZRUN7KH-)LUH(P6LPJDPHLVDYDLODEOHE\UH PDQSOD\HUZLWKDFRPSXWHUSURJUDPDQGFRPSHWLWLRQV TXHVWIURPWKHDXWKRUV DUH RUJDQL]HG ZKHUH ERWV SOD\ DJDLQVW RWKHU ERWV RU KXPDQSOD\HUV References $WRROFKDLQVLPLODUWRRXUVKDVEHHQXVHGLQ>@WR >@ $EULDO-5The B-Book: Assigning Programs to Mean- LPSOHPHQW D VHULRXV JDPH WKDW WHDFKHV SOD\HUV DERXW ingsVWHG&DPEULGJH&83S HQHUJ\FRQVXPSWLRQ7RFUHDWHWKHJDPHWKHDXWKRUVRI >@ $KQ/YRQ*DPHVZLWKD3XUSRVHComputer >@XVHGM0(0DNH+XPDQDQG%OHQGHUWRR7KHJDPH ± GRHVQ¶WLQFOXGHDQDJHQWV\VWHPEXWXVHVFRVLPXODWLRQ >@ $SSOHZKLWH*URVVR7HWDO$PXOWLVFDOHSK\VLFVHQ YLDWKH)XQFWLRQDO0RFNXS,QWHUIDFH )0, WRLQWHJUDWH JLQHEDVHGVLPXODWLRQRIFHOOXODUPLJUDWLRQ 2015 Winter Simulation Conference'HF+XQWLQJWRQ%HDFK WKHUPDODQGSK\VLFDOPRGHOVRIDEXLOGLQJDQGDSSOLDQF &$GRL:6& HV)0,VKRXOGDOVREHFRQVLGHUHGIRUDIXWXUHYHUVLRQ >@ %UDWPDQ0(Intentions, Plans, and practical rea- RIWKHM0(-DGH[LQWHUIDFHRUDQLQWHUIDFHEHWZHHQFRQ sonVWHG&DPEULGJH0$+83S WUROSURJUDPVDQGJDPHV >@ %UDXEDFK/3RNDKU$-DQGHU.7KH-DGH[3URMHFW 7KH*Z3LGHDKDVEHHQIRUPXODWHGLQ>@DQG*Z3 3URJUDPPLQJ0RGHO,Q*DQ]KD0-DLQ&/HGLWRUV XVXDOO\ FRQWDLQ JDPHSOD\ IRFXVHG RQ VROYLQJ VSHFLILF Multiagent Systems and Applications: Volume 1:Practice SUREOHPVVXFKDVSURWHLQIROGLQJLQ)ROGLW>@RUILQG and Experience%HUOLQ+HLGHOEHUJ6SULQJHUS LQJSURJUDPORRSLQYDULDQWVLQ;\OHP>@ 2WKHU LPSOHPHQWDWLRQV RI QRQHPRWLRQDO RU HPR >@ %UDXEDFK/3RNDKU$7KH-DGH[3URMHFW6LPXODWLRQ WLRQDODUWLILFLDODJHQWVLQFRPSXWHUJDPHVH[LVWDVZHOO ,Q*DQ]KD0-DLQ&/HGLWRUVMultiagent Systems and Applications: Volume 1:Practice and Experience%HUOLQ DQG D VKRUW RYHUYLHZ DQG FRPSDULVRQ WR -DGH[ DQG +HLGHOEHUJ6SULQJHUS -%GL(PRFDQEHIRXQGLQ>@ >@ (UH]77DVVD<7RGRURY(6LPXODWLRQWRROVIRUPRGHO EDVHGURERWLFV&RPSDULVRQRIEXOOHWKDYRNPXMRFR RGHDQGSK\V[ ICRA,(((SS± 5 Conclusion >@ +DEHU$0F*LOO06DPPXW&-PHVLP$QRSHQ 7KHQHZ-DGH[M0(LQWHUIDFHSUHVHQWHGKHUHDVDSDUW VRXUFHPXOWLSODWIRUPURERWLFVVLPXODWRUAustralasian RI-)LUH(P6LPJDPHDOORZVWRXVHERWK-DGH[DQG Conference on Robotics and Automation'HF :HOOLQJWRQ M0( WR WKHLU IXOO SRWHQWLDO ZKHQ EXLOGLQJ YLUWXDO HQYL >@ .DVKLI$HWDO9LUWXDO6LPXODWLRQZLWK5HDO2FFXSDQWV URQPHQWV IRU JDPHV RU VLPXODWLRQ H[SHULPHQWV 7KH 8VLQJ6HULRXV*DPHV14th International Conference of H[SHULPHQWDO LQWHJUDWLRQ RI WKH FOHDQLQJ ERW FRQWUROOHU the International Building Performance Simulation As- DOVR SURYHG IHDVLELOLW\ RI WKH LGHD RI FRPSXWHU JDPHV sociation'HF+\GHUDEDG XWLOL]DWLRQ DV WHVWLQJ HQYLURQPHQWV ZLWK DJHQWEDVHG >@ .KDWLE)HWDO&U\VWDOVWUXFWXUHRIDPRQRPHULFUHWURYL 13&V DQG DFWLYH SDUWLFLSDWLRQ RI SOD\HUV :KLOH UDOSURWHDVHVROYHGE\SURWHLQIROGLQJJDPHSOD\HUVNat -)LUH(P6LPLQWKHVWDWHSUHVHQWHGKHUHSURYLGHVRQO\ Struct Mol Biol ± EDVLF UHDOL]DWLRQ RI WKH LGHD LW FDQ EH GHYHORSHG DQG GRLQVPE H[SHULPHQWHG ZLWK LQ VHYHUDO GLIIHUHQW ZD\V 2QH RI >@ .RUHþNRâ+HULFK72Q6RPH&RQFHSWVRI(PRWLRQDO (QJLQHIRU%',$JHQW6\VWHP14th IEEE International WKHPLVWRXVH-DGH[DQGM%GL(PRWRLPSOHPHQWPRUH Symposium on Computational Intelligence and Informat- FRPSOH[ JDPHSOD\ DQG SHUVRQDOLWLHV RI 13&V 7KH ics1RY%XGDSHVWGRL JDPHSOD\VKRXOGLQFOXGHDFWLYHLQWHUDFWLRQEHWZHHQWKH &,17, SOD\HUDQGWKHURERWIRUH[DPSOHDWDVNWRDGMXVWURERW >@ .RUHþNRâ+HULFK76RERWD%-%GL(PR±2&&0RG SDUDPHWHUVIRUPD[LPXPSHUIRUPDQFH HO%DVHG(PRWLRQDO(QJLQHIRU-DGH[%',$JHQW6\VWHP 12th International Symposium on Applied Machine In- telligence and Informatics-DQ+HUĐDQ\ GRL6$0,
SNE 26(4) – 12/2016 203 KoreÏko et al. Jadex/JBdiEmo Emotional Agents in Games: a Feasibility Demonstration TN
>@ .RUHþNRâ6RERWD%ýXULOOD3(PRWLRQDO$JHQWVDV >@ 2UWKRQ\$&ORUH*&ROOLQV$The cognitive structure 1RQSOD\DEOH&KDUDFWHUVLQ*DPHV([SHULHQFHZLWK of emotions&DPEULGJH&83S -DGH[DQG-%GL(PR15th IEEE International Symposium >@ 6WHXQHEULQN%5'DVWDQL00H\HU--&K7KH2&& on Computational Intelligence and Informatics PRGHOUHYLVLWHG,Q5HLFKDUGW'HGLWRUProc. of the 4th 1RY%XGDSHVWGRL Workshop on Emotion and Computing - Current Re- &,17, search and Future Impact >@ /RJDV+HWDO6RIWZDUH9HULILFDWLRQ*DPHV'HVLJQLQJ >@ 7RVLN70DHKOH(0$56$VLPXODWLRQHQYLURQPHQW ;\OHP7KH&RGHRI3ODQWV9th Int. Conf. Foundations IRUPDULQHURERWLFVOCEANS 14 MTS/IEEE6HSW of Digital Games$SULO)W/DXGHUGDOH 6W-RKQ VGRL2&($16 >@ 2QWDQRQ6HWDO$6XUYH\RI5HDO7LPH6WUDWHJ\*DPH $,5HVHDUFKDQG&RPSHWLWLRQLQ6WDU&UDIWIEEE Trans. on Computational Intell. and AI in Games
204 SNE 26(4) – 12/2016 SNE TECHNICAL N OTE
Evolving Fuzzy Model (eFuMo) Method for on-line Fuzzy Model Learning with Application to Monitoring System
Dejan Dovžan*, Vito Logar, Igor Škrjanc
Faculty of Electrical Engineering, University of Ljubljana, Tržaška 25, 1000 Ljubljana, Slovenia; *[email protected]
SNE Simulation Notes Europe SNE 26(4), 2016, 205-220 This enables the T-S fuzzy model to approximate DOI: 10.11128/sne.26.tn10352 virtually any nonlinear system within a required accu- Received: November 15, 2016 racy, provided that enough regions are given [2]. Accepted: December 5, 2016 (Special Issue Review) The eFuMo method is an on-line learning method that is also able to adapt models during the function- Abstract. With evermore complex system the monitor- ing of the system. Depending on the learning abilities, ing and fault detection is becoming a crucial part of con- the on-line fuzzy-identification methods can be divided trol systems. They allow fast and effective fault diagno- into: Adaptive methods (e.g., ANFIS [3], GANFIS [4], sis and can decrease the cost of system maintenance. rFCM [5], rGK [6]), where the initial structure of the Modelling of processes plays a crucial part when design- fuzzy model must be given. The number of space par- ing a monitoring system. In this paper an on-line ap- titions/clusters does not change over time, only the pa- proach for modelling of fuzzy model is presented (Evolv- rameters of the membership functions and local mod- ing Fuzzy Model - eFuMo). As demonstrated in the paper, els are adapted; Incremental methods (e.g., RAN [7], the method can be used in the design of model based SONFIN [8], SCFNN [9], NeuroFAST [10], DENFIS fault detection system. [11], eTS [12], FLEXFIS [13], PANFIS [14]), where only adding mechanisms are implemented; Evolving methods (e.g., SAFIS [15], SOFNN [16], GAP-RBF Introduction [17], EFuNN [18, 19], D-FNN [20], GD-FNN [21], ENFM [22], eTS+ [23], ENFM [22], FLEXFIS++ Increasing demands of productivity and reliability call [24], AHLTNM [25], SOFMLS [26]) which, besides an for extending the ability of a common SCADA systems adding mechanism, implement removing and some of with the monitoring and fault detection systems. There them also merging and splitting mechanisms. More on are several approaches for designing the fault detection evolving methods can be found in [27] and [28], where system. In our paper the monitoring system is based concepts and open issues regarding these methods are on a process model. The model is based on a evolving presented. fuzzy model method (eFuMo). The presented method The paper is organized in the following order. First, is able to build Takagi-Sugeno fuzzy model (TS) from the eFuMo learning method is described, next the mon- scratch, starting with one cluster and a local model. The itoring problem is given followed by results and conclu- TS fuzzy models are a powerful practical engineering sions. tool for modelling and control of complex systems. They expand and generalize the well-known concept of gain scheduling. They utilize the idea of linearization 1 eFuMo Structure in a fuzzily defined region of the state space. Due to the fuzzy regions (clusters), the nonlinear system is The eFuMo method has two types of mechanisms for decomposed into a multi-model structure consisting of identifying the fuzzy model: the adaptation algorithm linear local models [1]. and the evolving mechanisms. The first is responsible for parameter adaptation, such as cluster centers and lo-
SNE 26(4) – 12/2016 205 DDovžanet al. Evolving Fuzzy Model Method for on-line Fuzzy Model Learning
μ can be calculated as in equation 4 (c is the number i of existing clusters), either based on rFCM [5] (equa- tion 5), rGK [6] (equation 6) or Mahalanobis distance (equation 7). ⎧ ⎪ 1 x ( ) = v = ,..., ⎪ 2 if f k i;i 1 c ⎨⎪ ( ) η−1 c di k ∑ = ( ) μ ( )= j 1 d j k i k ⎪ ⎪ 1ifx f (k)=vi ⎩⎪ 0ifx f (k)=v j;i = j (4) Figure 1: The eFuMo top scheme. cal models’ parameters; the second is responsible for . structure update: adding, removing, merging and split- T 0 5 d (k)= x (k) − v (k) x (k) − v (k) (5) ting of clusters. A central decision logic (CDL) decides i f i f i which type of mechanism will be used at current sam- . T 1 − 0 5 ( )= x ( ) − v ( ) (F ) p F 1 x ( ) − v ( ) ple. The block scheme is presented on Figure 1. In di k f k i k det i i f k i k the following subsection, the adaptation and evolving (6) mechanisms will be presented and at the end the CDL will be described.