Full text
janeiro de 2020 Universidade do Minho Escola de Engenharia Ana Isabel Barros da Cunha Efficient Learning of Sequential Tasks for Collaborative Robots: a Neurodynamic Approach UMinho | 2020 Ana Isabel Barros da Cunha Efficient Learning of Sequential Tasks for Collaborative Robots: a Neurodynamic Approach
Ana Isabel Barros da Cunha Efficient Learning of Sequential Tasks for Collaborative Robots: a Neurodynamic Approach Dissertação de Mestrado Mestrado Integrado em Engenharia Eletrónica Industrial e Computadores Trabalho efetuado sob a orientação de Professora Doutora Estela Bicho Universidade do Minho Escola de Engenharia Doutor Emanuel Sousa janeiro de 2020
DIREITOS DE AUTOR E CONDIÇÕES DE UTILIZAÇÃO DO TRABALHO POR TERCEIROS Este é um trabalho académico que pode ser utilizado por terceiros desde que respeitadas as regras e boas práticas internacionalmente aceites, no que concerne aos direitos de autor e direitos conexos. Assim, o presente trabalho pode ser utilizado nos termos previstos na licença abaixo indicada. Caso o utilizador necessite de permissão para poder fazer um uso do trabalho em condições não previstas no licenciamento indicado, deverá contactar o autor, através do RepositóriUM da Universidade do Minho. Licença concedida aos utilizadores deste trabalho Atribuição-NãoComercial-SemDerivações CC BY-NC-ND https://creativecommons.org/licenses/by-nc-nd/4.0/ iii
Acknowledgements First and foremost, I would like to thank my scientific advisers, Prof. Estela Bicho and Dr. Emanuel Sousa, for their continuous help, motivation and scientific advice. Since I met Prof. Estela, she has been an enormous inspiration for my work, being a constant source of academic and personal support. For that, I will be forever grateful. Secondly, I would like to thank all my colleagues at the Mobile and Anthropomorphic Robotics Laboratory at the University of Minho for their friendship, advice and collaboration. A special word goes to Flora, Paulo and Prof. Luís for all the knowledge and expertise they shared with me, and most importantly, for their friendship. I am also very grateful to all my family and friends that have always supported me during this journey. I wish to thank them for their friendship and for all the good moments they have provided me through the years. Next, I want to thank my past English teacher and dearest friend, Prof. Adelaide Fernandes, who always encouraged and supported any challenge I presented to her. All the good advice and knowledge she shared with me were fundamental to improve my work. Lastly, I could not even begin to express how grateful I am to Vasco for the amount of patience and care he has provided me. He always made me believe in myself and made sure I had all I needed to overcome any challenge ahead. He has been my primary source of strength and personal support, and I feel very fortunate to have him in my life. This work was carried out within the scope of the project “PRODUTECH SIF - Soluções para a Indústria do Futuro”, reference POCI-01-0247-FEDER-024541, cofunded by “Fundo Europeu de Desenvolvimento Regional (FEDER)”, through “Programa Operacional Competitividade e Internacionalização (POCI)”. iv
STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledged the Code of Ethical Conduct of the University of Minho. v
Abstract In the recent years, there has been an increasing demand for collaborative robots able to interact and cooperate with ordinary people in several human environments, sharing physical space and working closely with people in joint tasks, both within industrial and domestic environments. In some scenarios, these robots will come across tasks that cannot be fully designed beforehand, resulting in a need for flexibility and adaptation to the changing environments. This dissertation aims to endow robots with the ability to acquire knowledge of sequential tasks using the Programming by Demonstration (PbD) paradigm. Concretely, it extends the learning models - based on Dynamic Neural Fields (DNFs) - previously developed in the Mobile and Anthropomorphic Robotics Laboratory (MARLab), at the University of Minho, to the collaborative robot Sawyer, which is amongst the newest collaborative robots on the market. The main goal was to endow Sawyer with the ability to learn a sequential task from tutors’ demonstrations, through a natural and efficient process. The developed work can be divided into three main tasks: (1) first, a previously developed neuro-cognitive control architecture for extracting the sequential structure of a task was implemented and tested in Sawyer, combined with a Short-Term Memory (STM) mechanism to memorize a sequence in one-shot, aiming to reduce the number of demonstration trials; (2) second, the previous model was extended to incorporate workspace information and action selection in a Human-Robot Collaboration (HRC) scenario where robot and human coworker coordinate their actions to construct the structure; and (3) third, the STM mechanism was also extended to memorize ordinal and temporal aspects of the sequence, demonstrated by tutors with different behavior time scales. The models implemented contributed to a more intuitive and practical interaction with the robot for human co-workers. The STM model made the learning possible from few demonstrations to comply with the requirement of being an efficient method for learning. Moreover, the recall of the memorized information allowed Sawyer to evolve from being in a learning position to be in a teaching one, obtaining the capability of assisting inexperienced co-workers. Key Words: Collaborative Robots; Human-Robot Interaction; Learning from Demonstration; Coordination of actions and sub-goals; Dynamic Neural Fields. vi
Resumo Nos últimos anos, tem havido uma crescente procura por robôs colaborativos capazes de interagir e cooperar com pessoas comuns em vários ambientes, partilhando espaço físico e trabalhando em conjunto, tanto em ambientes industriais como domésticos. Em alguns cenários, estes robôs serão confrontados com tarefas que não podem ser previamente planeadas, o que resulta numa necessidade de existir flexibilidade e adaptação ao ambiente que se encontra em constante mudança. Esta dissertação pretende dotar robôs com a capacidade de adquirir conhecimento de tarefas sequenciais utilizando técnicas de Programação por Demonstração. De forma a continuar o trabalho desenvolvido no Laboratório de Robótica Móvel e Antropomórfica da Universidade do Minho, esta dissertação visa estender os modelos de aprendizagem previamente desenvolvidos ao robô colaborativo Sawyer, que é um dos mais recentes no mercado. O principal objetivo foi dotar o robô com a capacidade de aprender tarefas sequenciais por demonstração, através de um processo natural e eficiente. O trabalho desenvolvido pode ser dividido em três tarefas principais: (1) em primeiro lugar, uma arquitetura de controlo baseada em modelos neurocognitivos, desenvolvida anteriormente, para aprender a estrutura de uma tarefa sequencial foi implementada e testada no robô Sawyer, conjugada com um mecanismo de Short- Term Memory que permitiu memorizar uma sequência apenas com uma demonstração, para reduzir o número de demonstrações necessárias; (2) em segundo lugar, o modelo anterior foi estendido para englobar informação acerca do espaço de trabalho e seleção de ações num cenário de Colaboração Humano-Robô em que ambos coordenam as suas ações para construir a tarefa; (3) em terceiro lugar, o mecanismo de Short-Term Memory foi também estendido para memorizar informação ordinal e temporal de uma sequência de passos demonstrada por tutores com comportamentos temporais diferentes. Os modelos implementados contribuíram para uma interação com o robô mais intuitiva e prática para os co-workers humanos. O mecanismo de Short-Term Memory permitiu que a aprendizagem fosse realizada a partir de poucas demonstrações, para cumprir com o requisito de ser um método de aprendizagem eficiente. Além disso, a informação memorizada permitiu ao Sawyer evoluir de uma posição de aprendizagem para uma posição em que é capaz de instruir co-workers inexperientes. Palavras-chave: Robôs Colaborativos; Colaboração Humano-Robô; Aprendizagem por Demonstração; Coordenação de ações e tarefas; Campos Dinâmicos Neuronais. vii
Contents I Introduction 1 1 Introduction 2 1.1 Motivation ......................................... 2 1.2 Human-Robot Interaction (HRI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.3 Learning from Demonstration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.4 Framework......................................... 7 1.5 Main Goals and Contributions of this dissertation . . . . . . . . . . . . . . . . . . . . . . 8 1.6 DissertationOutline..................................... 9 II State of the Art 11 2 Learning from demonstration in Robotics 12 2.1 GeneralIntroduction .................................... 12 2.2 Human-Robot Collaboration in industrial applications . . . . . . . . . . . . . . . . . . . . . 13 2.3 The Learning from Demonstration paradigm . . . . . . . . . . . . . . . . . . . . . . . . . 14 3 Models for extracting and encoding task-relevant information 16 3.1 Diagrams for encoding multi-path task information . . . . . . . . . . . . . . . . . . . . . . 16 3.1.1 Precedencegraphs................................. 16 3.1.2 Hierarchical representations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 viii
Contents ix 3.2 Cognitive models of sequential behavior and order . . . . . . . . . . . . . . . . . . . . . . 20 3.2.1 Thechainingmethod................................ 20 3.2.2 Theordinaltheory ................................. 21 3.2.3 Thepositionaltheory................................ 21 3.3 Finalnotes ......................................... 22 III Materials and Methods 23 4 Dynamic Neural Fields 24 4.1 GeneralIntroduction .................................... 24 4.2 TheAmariEquation..................................... 25 4.2.1 Types of Interaction kernels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 4.3 Cognitive capabilities modeled through DNFs and the Amari equation . . . . . . . . . . . . . 30 5 Artificial Neural Networks 34 5.1 Introducing Neural Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.2 Architecture of Neural Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.2.1 Basicfunctioning.................................. 35 5.2.2 Organization.................................... 36 5.3 General paradigms of learning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 5.4 HebbianLearning...................................... 39 5.5 Learning in a Dynamic Neural Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 5.5.1 TheDeltaRule................................... 41 5.6 Finalremind ........................................ 43 6 Robotic platform and joint construction task 44 6.1 TheRobotSawyer...................................... 44 6.2 JointConstructionTask................................... 45 6.2.1 Learning the sequential structure of the task - What piece should be placed next? . . . 46
xvi Nomenclature ηRate parameter for a neural network learning rule xin Spatial dimension of a neural network input xout Spatial dimension of a neural network output τaTime scale of the differential equation defining a synaptic weight variation upa(xpa, t)Neuronal activation of the Past Field upr(xpr, t)Neuronal activation of the Present Field λpr Learning threshold of the Present field λpa Learning threshold of the Past field hpr Neuronal resting level of upr hpa(xpa, t)Neuronal resting level of upa hpa low Lower value for the resting level of upa hpa high Higher value for the resting level of upa ςk stoch Stochastic noise function spa(xpa, t)Input to the Past field upa(xpa, t) vpa(xpa, t)Input from the Vision System to spa(xpa, t) Cv→pa Gain parameter controlling the strength of contribution vpa to spa τpa hTime constant of hpa(xpa, t) vpr(xpr, t)Input from the Vision System to spr(xpr, t) Cv→pr Gain parameter controlling the strength of contribution vpr to spr Crec→pr Gain parameter controlling the strength of the Recall contribution to spr spr(xpr, t)Input to the Present field upr(xpr, t) A pa→pr(xpa, xpr, t)Adaptable excitatory synaptic interaction from upa to upr e(xpr, t)Difference between desired and actual value of the activation ustm(xstm, t)Neuronal activation of the STM Field vstm(xstm, t)Input from the Vision System to sstm(xstm, t) Cv→stm Gain parameter controlling the strength of contribution vstm to sstm sstm(xstm, t)Input to the STM field ustm(xstm, t) τstm hTime constant of hstm(xstm, t) hstm(xstm, t)Neuronal resting level of ustm
Nomenclature xvii Hstm dec Baseline value of hstm(xstm, t) Cstm→pr Gain parameter controlling the strength of contribution of the STM Layer to spr breh Flag active during the Rehearsal mode I pa→oml(xpa, xoml)Predefined inhibitory synaptic interaction from upa to the OML fields I pa→pr(xpa, xpr)Predefined inhibitory synaptic interaction from upa to upr uhw(xhw, t)Neuronal activation of the Human Workspace field urw(xrw, t)Neuronal activation of the Robot Workspace field usw(xsw, t)Neuronal activation of the Shared Workspace field voml(xoml, t)Visual input to the OML fields Cv→oml Gain parameter controlling the strength of contribution voml to soml uetl(xetl, t)Neuronal activation of the Executable Tasks Layer setl(xetl, t)Input to the ETL field uetl(xetl, t) uael(xc, xa, t)Neuronal activation of the Action Execution Layer xcAEL dimension representing “color” xaAEL dimension representing “action” sael(xc, xa, t)Input to the AEL field uael(xc, xa, t) Cc→ael Gain parameter controlling the strength of contribution “action” to sael Ca→ael Gain parameter controlling the strength of contribution “color” to sael I pa→ael(xpa, xael)Predefined inhibitory synaptic interaction from upa to uael uSM (x, t)Neuronal activation of the Sequence Memory field uSR(x, t)Neuronal activation of the Sequence Recall field uP E(x, t)Neuronal activation of the Past Events field hSM 0Neuronal resting level of uSM (x, t) τhSM Time constant of hSM τhSR Time constant of hSR τpa Time constant of upa τpr Time constant of upr
xviii Nomenclature τstm Time constant of ustm
List of Figures 1.1 RobotLeonardo....................................... 5 1.2 KASPARRobot ....................................... 5 1.3 AROS............................................ 6 1.4 Cognitive architecture for human-robot interaction in joint tasks . . . . . . . . . . . . . . . . 8 3.1 Precedence graph describing the relation between six nodes . . . . . . . . . . . . . . . . . 17 3.2 AdaptivePetri-Net ..................................... 18 3.3 HMM Chain example with three states . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.4 Hierarchical structure of a task divided into three levels . . . . . . . . . . . . . . . . . . . . 19 3.5 Sequence retrieval according to the Chaining approach . . . . . . . . . . . . . . . . . . . . 21 4.1 Example of a bump of activity triggered from visual input . . . . . . . . . . . . . . . . . . . 25 4.2 Relations between neurons of the same layer . . . . . . . . . . . . . . . . . . . . . . . . 26 4.3 Gaussiankernel....................................... 27 4.4 Mexican-hatkernel ..................................... 28 4.5 Oscillatorykernel...................................... 29 4.6 Illustration of the interaction between u(x, t)and s(x, t).................. 30 4.7 Different stable states of the field dynamics, in the absence of external input, as a function of therestinglevel....................................... 31 4.8 Example of DNF field with the ability to store multi-bumps of activity . . . . . . . . . . . . . 32 4.9 Example of decision making using DNFs . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 xix
xx List of Figures 5.1 Schematic comparing the structure of a biological neuron and its mathematical model . . . . 35 5.2 Example of a neural network with two input nodes . . . . . . . . . . . . . . . . . . . . . . 37 5.3 Single-layer and multi-layer networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 6.1 Sawyer........................................... 45 6.2 Structure consisting of one Base and eight colored parts . . . . . . . . . . . . . . . . . . . 46 6.3 Schematic of the possible sequences to construct the structure . . . . . . . . . . . . . . . . 47 6.4 Different operators building the structure starting from different parts of the structure . . . . . 47 6.5 Human, Robot and Shared Workspaces . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 6.6 Sawyer evolves from a learning position to a teaching position . . . . . . . . . . . . . . . . 49 7.1 Flowchart of the learning process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 7.2 Diagram of the Sequence Learning Layer (SLL) . . . . . . . . . . . . . . . . . . . . . . . 53 7.3 Example of input from the Vision System . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 7.4 Diagram of the connections between upa and upr in the Sequence Learning Layer . . . . . . 55 7.5 Lower resting level in upa duringLearning.......................... 56 7.6 Higher resting level in upa duringLearning ......................... 57 7.7 Associative learning controlled by the threshold level λpa ................... 59 7.8 Learning and Recalling Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 7.9 SLL architecture extended to incorporate the Short-Term Memory Layer(STM) . . . . . . . . . 64 7.10 Example of a multi-bump pattern stored in STM . . . . . . . . . . . . . . . . . . . . . . . 64 7.11 Beginning and ending of one demonstration trial . . . . . . . . . . . . . . . . . . . . . . . 67 7.12 Insertion of the Pink thruster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 7.13 Error in the Recall process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 7.14 Activation of the STM field ustm resulting from the first demonstration . . . . . . . . . . . . 69 7.15 Snapshot of the associations between sub-goals during Rehearsal . . . . . . . . . . . . . . 70 7.16 Illustration of the Recall Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 7.17 SLL profile during the first prediction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 7.18 Activation of the STM field ustm resulting from the second demonstration . . . . . . . . . . 72 7.19 SLL profile during the first prediction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
List of Figures xxi 7.20 SLL profile during the second prediction . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 7.21 Activation of the STM field ustm resulting from third demonstration . . . . . . . . . . . . . . 75 7.22 Errorintherecallprocess.................................. 75 7.23 Illustration of the Recall Mode - Sawyer makes a wrong prediction . . . . . . . . . . . . . . 76 7.24 Snapshot of the associations between sub-goals during Rehearsal with λpa = 5.5: . . . . . . 77 7.25 SLL profile during the third prediction after repeating the demonstration . . . . . . . . . . . 78 8.1 Schematic view of the cognitive architecture for joint action . . . . . . . . . . . . . . . . . . 82 8.2 Human, Robot and Shared Workspaces - Layout of the pieces and corresponding OML fields in the beginning of the construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 8.3 Human, Robot and Shared Workspaces - Layout of the pieces and corresponding OML fields in the middle of the construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 8.4 Executable Tasks Layer activation profile . . . . . . . . . . . . . . . . . . . . . . . . . . 85 8.5 Action Execution Layer - output example . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 8.6 Excitatory connections from OML and ETL to AEL . . . . . . . . . . . . . . . . . . . . . . 89 8.7 Test number 1 - Activation profile of the OML fields at the beginning of the construction . . . . 90 8.8 Test number 1 - snapshots illustrating the sequence of actions during the first trial . . . . . . 91 8.9 AEL activation profile in the second step of the construction . . . . . . . . . . . . . . . . . 92 8.10 Test number 2 - Activation profile of the OML fields at the beginning of the construction . . . . 93 8.11 Test number 2 - snapshots illustrating the sequence of actions during the second test . . . . 94 8.12 Test number 3 - Activation profile of the OML fields at the beginning of the construction . . . . 95 8.13 Sawyer’s decision in the fifth step of the construction . . . . . . . . . . . . . . . . . . . . 96 8.14 Sawyer’s decision in the sixth step of the construction . . . . . . . . . . . . . . . . . . . . 97 8.15 New decision in the sixth step of the construction . . . . . . . . . . . . . . . . . . . . . . 97 9.1 Layout scenarios used during the experiments . . . . . . . . . . . . . . . . . . . . . . . . 101 9.2 Sketch of the sequence memory process . . . . . . . . . . . . . . . . . . . . . . . . . . 102 9.3 Sketch of sequence recall process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 9.4 Two different tutors assembling Sequence A . . . . . . . . . . . . . . . . . . . . . . . . . 105 9.5 Younger tutor assembling Sequence B and C . . . . . . . . . . . . . . . . . . . . . . . . 106
xxii List of Figures 9.6 Co-worker Sawyer recalls the memorized sequence, respecting the time interval of each demonstration........................................... 108
List of Tables 6.1 Main specifications of Robot Sawyer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 xxiii
Part I Introduction 1
Chapter 1 Introduction Future generations of robots are expected to assist ordinary people in tasks that cannot be programmed beforehand. Thus, endowing robots with learning mechanisms and cognitive capabilities has become a priority in the robotics field. These abilities should allow robots to adapt to a wide variety of environments and tasks, responding to the specific needs and preferences of the human partners with whom they interact. This dissertation aims to provide new insights into natural and efficient Human-Robot Interaction (HRI)/Human-Robot Collaboration (HRC) with focus on the task-learning-from-demonstration paradigm, by continuing the work developed with collaborative robots at the Mobile and Anthropomorphic Robotics Laboratory (MARLab), University of Minho. Specifically, the work proposed in this dissertation focus on the development and testing, on Robot Sawyer, of efficient learning models which are based on Dynamic Neural Fields (DNFs). The ultimate goal is to endow Sawyer with the ability to learn sequential tasks, from tutor’s demonstration and verbal feedback, without previously programming task-relevant information. 1.1 Motivation Robots are today an increasingly important part of the modern world, not only because they are a fundamental tool in many industries, but also due to their ability to assist humans in hazard environments and dangerous tasks (Wiese et al., 2017). However, despite the continued research and the amount of progress made in their development, their presence in our everyday lives is still rather reduced, since their ability to interact with humans 2
Chapter 1. Introduction 9 Subsequently, the architecture implemented for Sequence Learning was extended to incorporate workspace information and action selection in a real Human-Robot Collaboration scenario, where Robot and Human coworkers coordinated their actions to accomplished sub-goals in a specific sequential task - “what to do” and “who does it”. Additionally, a model for memorizing sequences with time constraints based on the work of Ferreira et al. (2014) was implemented and tested. This learning mechanism allowed the robot not only to memorize long sequences of sub-goals in a task, but also the time interval between them. The integration of these two characteristics - ordinal and temporal information - allowed the robot to memorize in one shot “what to do” and “when to do” in the HRI task scenario adopted. The implemented system capacitated the robot to instruct inexperienced workers or to make decisions when playing the role of an active assistant. The following publications resulted from the work developed during this dissertation: • Cunha, A., Ferreira, F., Erlhagen, W., Sousa, E., Louro, L., Vicente, P., Monteiro, S., and Bicho, E. (2020). Towards endowing collaborative robots with fast learning for minimizing tutors’ demonstrations: What and when to do? In Silva, M. F., Luís Lima, J., Reis, L. P., Sanfeliu, A., and Tardioli, D., editors, Robot 2019: Fourth Iberian Robotics Conference , pages 368–378, Cham. Springer International Publishing, DOI: https://doi.org/10.1007/978-3-030-35990-4_30 • Cunha, A., Ferreira, F., Sousa, E., Louro, L., Vicente, P., Monteiro, S., Erlhagen, W. ,and Bicho, E. (2020). Towards Collaborative Robots as Intelligent Co-workers in Human-Robot Joint Tasks: what to do and who does it? (Submitted to ISR 2020; 52th International Symposium on Robotics ) 1.6 Dissertation Outline The reminder of this dissertation is organized as follows: Part II, consists on the state of the art relevant for this dissertation: • Chapter 2 gives an overview of the Learning from Demonstration paradigm, focusing on learning a task as a sequence of sub-goals; • Chapter 3 describes the existing models for extracting and encoding task-relevant information, starting by presenting some of the structures used to store sequential tasks followed by an general analysis of the
10 Chapter 1. Introduction cognitive models for serial order. Part III, presents the theoretical background and materials used in this work: • It starts with Chapter 4 where the framework of Dynamic Neural Fields is presented, together with the key equations that formalize the models; • Next, Chapter 5 introduces the concept of Artificial Neural Networks as well as the key learning rules used in this dissertation; • Finally, Chapter 6 describes the robotic platform and the Human-Robot Collaboration scenarios used to validate the DNF-models. Part IV, describes the Implementation and Results of the several experiments made to validate the DNF- models. It consists of three Chapters with three different experiments: • Chapter 7 presents the models for sequence learning with the integration of the Short-Term Memory mechanism, where Sawyer learns the sequential structure of the task from tutor demonstration; • Chapter 8 extends the DNF-models to an architecture that incorporates workspace information and allows Human and Robot to conjugate their motor actions to construct the task; • Finally, Chapter 9, presents a new model for learning sequences with time constraints. Part V, is composed of Chapter 10 that concludes this dissertation and points out some of the future work that can be developed.
Part II State of the Art 11
Chapter 2 Learning from demonstration in Robotics This chapter presents the Learning from Demonstration paradigm and gives an overview of the work that has been developed using this technique in the field of robotics, specifically in Human-Robot Interaction scenarios. 2.1 General Introduction “Robots are coming out of their cages to work alongside humans. This has significant implications for how work, and organizations, will be structured in the future” , claims the International Federation of Robotics (2018). In the last years, workplace environments have been changing from scenarios where robots replace the work of humans to others where robots and humans collaboratively work together in joint tasks. Traditionally, programming a robotic system can be a very hard working and time-demanding task. Furthermore, it is unrealistic to expect that every human, either in domestic or industrial environments, can have the knowledge and technical background required to instruct/program a robot to perform a new task. Let’s imagine that a robot is in charge of assisting a human through its domestic household chores. Every human has different needs and every house a different layout. The robot needs to be flexible and adaptable to fit their user’s needs and environment, hence programming such systems beforehand is not feasible (Dillmann, 2004). Therefore, the traditional way of fully programming machines to do a particular task cannot answer the challenge of coping with unstructured environments and unpredictable human behaviors. This creates a demand for a different approach into programming robots, specifically to allow the machines to learn from humans in a natural, easy, human- 12
Chapter 2. Learning from demonstration in Robotics 13 friendly and intuitive way (Chernova & Thomaz, 2014). Learning from Demonstration is an approach that enables non-expert workers in the robotics field to teach a robot complex tasks so that they can autonomously perform tasks that were not pre-programmed in the machine beforehand. Furthermore, it allows end-users to teach robots (through demonstration) according to the real-world requirements where the machine needs to operate (Lee, 2017). 2.2 Human-Robot Collaboration in industrial applications Having the power to replace unsafe and heavy tasks for humans, companies are more and more interested in incorporating robots into their assembling lines to work side by side with human operators (Krüger et al., 2006). Today, the traditional robotic manipulators used in the industry are extensively incorporated into production and assembling lines due to their robustness and capabilities such as precision and repeatability. Those machines are, however, pre-programmed “by hand” by human workers with programming capabilities and/or robotics knowledge to execute specific tasks in structured work environments and assembling lines. This method leaves reduced space to accommodate changes in the place of work that were not designed in advance by the programmer. For that, the programmer would have to predict every possible scenario and instruct the robot to act according to each specific condition, which would result in a large amount of code, testing and time spending. Moreover, while the programming is being conducted, the machine stays out of service, decreasing the efficiency and productivity in the overall process (Kyrarini et al., 2018). Another issue worth pointing out is the way humans and robots interact in such scenarios. In order to make human co-workers more comfortable with their robotic partners and to maintain a natural and intuitive interaction, those machines should be designed to recognize human-like signs such as desires and intentions (Lee, 2017). However, in most applications, there is no direct communication between the user and the machine, so the human partner’s actions, feelings and intentions during the joint cooperation are not taken into consideration by the robot. For an effective cooperation during the joint construction of a task, for example, when the human partner grabs an object, the robot should be able to recognize if its partner’s intention is grabbing to insert or grabbing to pass it to the robot itself (see Bicho et al. (2012) for an extended review on this matter).
14 Chapter 2. Learning from demonstration in Robotics 2.3 The Learning from Demonstration paradigm The Learning from Demonstration paradigm - firstly known as Programming by Demonstration (PbD) - started to attract researchers in the early 1980s as a way of reducing the programming workload and its costs in factories (Billard et al., 2008). The first developed methods were based on teleoperation, e.g., in scenarios where the robot had to reproduce specific movements (see Levas and Selfridge, 1984). Since then, this method has been used in a variety of robotics-related tasks such as navigating through unknown environments (Bicho, 1999; Ollis et al., 2007), teaching human-like gestures to anthropomorphic robots (Calinon et al., 2007), learning goal-direct motor primitives (Erlhagen et al., 2006) and object manipulation tasks (Kyrarini et al., 2018), to name a few. Within the LfD framework, only a few studies, such as Kuniyoshi et al. (1994) and Sato et al. (2002), have focused on the learning of task representations from human observation, using methods of extracting information from demonstration to acquire task-related information in assembly work. Despite the number of different points of view and approaches (see Billard et al. (2008), Argall et al. (2009) and Chernova and Thomaz (2014) for a more extensive review), there are common challenges that need to be tackled when designing systems capable of extracting task-relevant information. Sousa (2014) separated these challenges into three main fundamental issues: (1) selecting the most suitable method for the tutor to transfer information to the learning system, as well as which inputs and variables (e.g., vision, speech, gestures) to use, in order to provide relevant and clear information for learning; (2) the separation of the task into units of sub-goals/sub-tasks - what precisely the machine will learn - e.g, a goal (yellow column inserted), a motor action to reach the goal (pick the pink column), that can be recognized by the system through the multiple demonstration trials and can be reproduced by the robot; (3) how to encode the sequential order through which the various sub-tasks need to be performed and such information can be used. The next chapter provides an extended overview of this issue. Learning a task as a sequence of sub-goals Learning from Demonstration provides a useful framework to address learning issues in human-robot joint tasks. Therefore, it is important to have in mind what exactly is the human tutor teaching the robot. For the relevance of this work, a task is divided into a sequence of sub-goals that must be achieved through a specific order, respecting the inherent task-constraints. While some tasks may require a single order of execution, there are several tasks/end-goals that may be achieved through different sequences. Learning such tasks requires ways
Chapter 2. Learning from demonstration in Robotics 15 of extracting and encoding not only a sequence but also the precedence relations between the several sub-goals, as well as analyzing each sequence, selecting each ones fulfill the environmental constraints. Let’s say that, during an assembly-like task, the next object to be mounted (according to the pre-programmed sequential steps) is missing. There may be other objects available that can be inserted subsequently without compromising the final structure. If the system had learned the task itself - with all the constraints necessary to build the final task -, instead of just performing a set of preprogrammed steps, the robot would be able to recognize that there was no need to stop the work and would be able to continue doing its chore while waiting for the missing piece. This way, the assembling line would not be stopped while waiting for the missing object and it could continue the task at least until the point where it would no longer be possible to continue without the missing item. Concluding, knowing the task brings greater autonomy and flexibility to the machine. Moreover, endowing these robots with cognitive and learning capabilities allows them to make decisions in the absence of a human guide as well as instruct other inexperienced workers with knowledge about the tasks to be performed (Cunha et al., 2020)
Chapter 3 Models for extracting and encoding task-relevant information In this dissertation, learning task-related knowledge from demonstration is one of the core paradigms. Those tasks are encoded as a sequence of sub-goals that must be achieved, respecting its serial order constraints. Acquiring task-relevant information often implies storing sequential information as a sequence of sub-tasks that need to be achieved through one (or more) sequential orders. This requires that the system has to learn the relations between sub-goals/sub-tasks when executing the task/end-goal. In this chapter, an overview of the most commonly used methods for storing information will be discussed, as well as some examples of structures used for encoding task-knowledge. The chapter ends with an overview of sequential behavior models. 3.1 Diagrams for encoding multi-path task information 3.1.1 Precedence graphs Precedence graphs are the most common structures for encoding multi-sequence paths. These are formed by a set of nodes connected through edges and are commonly used to encode sequences of multiple paths (Figure 3.1). Each node represents a sub-goal or sub-action to be achieved while the edges delineate the precedence relations between them, that should be respected through the various steps, until the end-node/end-goal is reached. In 16
Chapter 3. Models for extracting and encoding task-relevant information 17 any of the cases, the robot must adopt a behavior that will allow it to achieve each goal, always respecting the precedent actions. Those relations can be the result of pre-programmed control structures (Ekvall & Kragic, 2006) or learning mechanisms consisting of algorithms used to extract a control model from demonstration (Sousa et al., 2014). In order to build the precedence graph of a certain task, the conditions leading to each node (pre-conditions) have to be analyzed, as well as the output-conditions that result from reaching the same node (post-conditions). Starting node Node 2 Node 1 Node 3 Node 5 Node 4 Figure 3.1: Precedence graph describing the relation between six nodes. Each node represents a sub-goal of an end-task that is represented by the total set of nodes. Several studies have been conducted using this type of structure in robotic learning applications. Examples can be found in Nicolescu and Mataric (2003), where the authors used a similar approach to teach a robot in a pick and place navigation task. A slightly different approach can be seen in Veeraraghavan and Veloso (2008), where a precedent analysis is also used, combined with the addition of a mechanism to distinguish actions from objects, allowing actions to be assigned to different objects throughout the task. In the work of Konidaris et al. (2012), a different structure is used in which the authors assume multiple starting nodes for the same end-task in a robot navigation system. Their algorithm builds a tree-like instance where each edge represents a trajectory path. Through the observations, similar trajectories are merged and new trajectories are created from new branches. Petri-Nets Another type of precedence graphs used in LfD are Petri-Nets. These are graphs that encode not only nodes/states and precedence relations but also the transitions leading from one node to another. Those transitions can be, for example, the trajectory needed to reach the node corresponding to a Point A starting from a Point B. Chang
18 Chapter 3. Models for extracting and encoding task-relevant information (2013) used this method to introduce error recovering capabilities in its learning by imitation model, to allow a robot to adapt the sequence of actions needed during task execution. However, this required a human user to manually edit the same structure to add additional nodes and transitions. Later, to overcome this limitation, Zhao et al. (2017) suggested and Adaptive Petri-Net (APN) approach (Figure 3.2) to allow changes in the original net structure that can be added autonomously by the robotic system. Figure 3.2: Adaptive Petri-Net. The shaded areas correspond to unknown places and transitions that can be increased. First trial begins at P0. When the state variables satisfy the necessary conditions, the system moves forward to make a stochastic decision on each transition. The procedure continues until a final place (PF(success)) is achieved. Trials ending in PF(fail)indicate error. Retrieved from Zhao et al. (2017). Hidden Markov Models Hidden Markov Models (HMM) (Figure 3.3) are another type of graphs based on transition probabilities that can be used to encode task knowledge, following two key ideas: the first one states that the probability of transition from one state to another depends exclusively on that current state, not being dependent on any past events; the second one affirms that current and past states always remain unidentified, while what is visible is an observation that depends on a distribution probability specific to each state. Therefore, these structures are helpful in cases where the observed information is noisy, faulty or does not correspond to reality. Examples of research using these models are the work of Amit and Mataric (2002) and Butterfield et al. (2010).
Chapter 4. Dynamic Neural Fields 25 by external input sources - e.g, input from a vision system (Figure 4.1). Additionally, DNFs admit the existence u(x,t) x Pink pipe inserted Figure 4.1: Example of a bump of activity triggered from visual input. The robotic system observes a pink pipe being inserted which generated a bump in the neuronal population encoding the pink pipe. of auto-sustained bumps of neuronal activity that remain in the field in the absence of external input, due to the lateral interactions between neighbor neurons of the same layer (Amari, 1977). This feature enables the models with the capacity to accommodate cognitive skills that are fundamental when talking about robot learning in a more intuitive and human-like manner, such as working memory, decision making and learning associations between separated events (Curtis & Lee, 2010). The next sections describe the mathematical basis to implement DNF-models. 4.2 The Amari Equation Proposed by Amari (1977) to formalize the pattern formation and interaction dynamics in cortical surface, equation (4.1) has been employed by robotic researchers to model processes of memory and decision making, since it can be analyzed analytically, it reduces computational complexity and its properties are capable to model cognitive abilities (Bicho et al., 2010). This approach follows the assumption that strong recurrent excitatory and inhibitory interactions in local neural populations form a basic mechanism for handling cortical information which causes dynamic behavior in neural aggregations. The integro-differential equation bellow formalizes the dynamics of a single-dimension field where x,ysymbolize spatial dimensions. The activity of neurons is summarized into an activation function u(x, t)where u represents the activation of a neuron positioned in the location xat time t, and the constant parameter τ > 0
26 Chapter 4. Dynamic Neural Fields controls the time scale of the field: τ∂u(x, t) ∂t =−u(x, t) + h+s(x, t) + ∫w(x−y)f0[u(y, t)]dy. (4.1) The equation is divided into a linear (4.2) and a non-linear part (4.3). To facilitate its comprehension, one can start by analyzing its linear part, where s(x, t)corresponds to the input given to a neuron xat the time t. The parameter h < 0determines the resting level to which the neuronal activity relaxes without the external input s. s(x, t)>0happens when information corresponding to the variable encoded in a specific sub-neuronal population presents activity, that is, when external input triggers excitatory activity in the same. Contrarily, s(x, t)≤0 occurs when the same activity is non-existent or presents inhibitory behaviour: τ∂u(x, t) ∂t =−u(x, t) + h+s(x, t).(4.2) In addition, the features of Amari’s equation that allows it to model cognitive behaviour result from its non-linear term that describes the interactions between the sub-neuronal populations of the same field (Erlhagen & Bicho, 2014): ∫w(x−y)f0[u(y, t)]dy. (4.3) Depending on the distance between them, those sub-populations of neurons can either excite or inhibit each other (Figure 4.2), following an interaction pattern that is defined by the functions f0and w(Amari, 1977). f0(u)is x Figure 4.2: Relations between neurons of the same layer. Populations of neurons closer to the ones at location x are excited while others at longer distances are inhibited. used as a gating function to ensure that only neurons with activity above a specific threshold contribute to the interaction (f0[u(y, t)] >0). In this case, following Amari’s formulation, the function can be mathematically
Chapter 4. Dynamic Neural Fields 27 implemented using a Heaviside step (threshold value = 0): f0(u) = 1, u ≥0 0, u < 0 .(4.4) 4.2.1 Types of Interaction kernels The strength of each interaction is described by the kernel term function w(x−y). Bellow, three types of coupling kernel functions are described and may be used according to the desired type of lateral interaction between neurons (Ferreira et al., 2016). Gaussian kernel with global inhibition Figure 4.3 depicts the Gaussian kernel function which is defined by the following equation: w(x−y) = Ae −(x−y)2 2σ2−winh,(4.5) where A > 0and σ > 0control the amplitude and standard deviation of the gaussian curve, respectively, and winh represents a positive constant quantifying the inhibition strength (Erlhagen & Bicho, 2006). This means Figure 4.3: Gaussian kernel. A neuron excites another if the distance between them is smaller than xsand inhibit it otherwise. If the distance is bigger than xd, the inhibition strength is constant. that, when the lateral interaction is defined by this type of kernel, a neuron will cause excitatory behaviour in neurons where the distance is less than xsand will cause inhibitory behaviour otherwise, with an approximately constant inhibition strength for neurons at distances bigger than xd. Coupling a Dynamic Neural Field with this
28 Chapter 4. Dynamic Neural Fields Gaussian function enables the existence of competition between sub-neuronal populations from where only one localized peak of activity should evolve. Mexican-hat kernel Continuing, the equation bellow implements a Mexican-Hat kernel which is given by the difference of two Gaussian functions, having the amplitudes A > B > 0and the standard deviations σb> σa>0(Ferreira et al., 2016): w(x−y) = Ae−(x−y)2 2σ2 A−Be−(x−y)2 2σ2 B.(4.6) This type of kernel allows the existence of simultaneous peaks of activity if the distance between the corresponding sub-populations of neurons is larger than xd(Figure 4.4). Figure 4.4: Mexican-hat kernel. It admits the coexistence of more than one peak of activity if they are located at distances longer than xd. Oscillatory kernel The third and last kernel function (Figure 4.5) is an Oscillatory kernel defined by the equation (4.7), where k > 0 determines the rate at which the oscillations in wdecay with distance. A > 0and 0< α ≤1control the amplitude and the spatial phase of w, respectively: w(x−y) = Ae−k|x−y|(ksin |α(x−y)|+cos(α(x−y))).(4.7)
Chapter 4. Dynamic Neural Fields 29 Figure 4.5: Oscillatory kernel. It guarantees the existence and stability of multiple activity bumps with smaller excitatory interactions at larger distances. This coupling function admits the coexistence and stability of multiple bumps of activity, allowing the existence of excitatory interactions in neurons located also at larger distances (Laing et al., 2002; Ferreira et al., 2016).
30 Chapter 4. Dynamic Neural Fields 4.3 Cognitive capabilities modeled through DNFs and the Amari equation In 2006, Erlhagen and Bicho proposed a DNF-based architecture demonstrating how the mathematical framework of Dynamic Neural Fields can be adopted to implement cognitive functions in the field of robotics, such as memory and forgetting, decision making, goal inference and prediction, which inspired several related work in the topic, like Bicho et al. (2010), Ferreira et al. (2014), Sousa et al. (2015), to name a few. For the relevance of this dissertation, the focus lays on the cognitive capabilities of memorizing, forgetting and decision making. Self-sustained bumps of neuronal activity As mentioned in previous sections, the lateral interactions between neighbor sub-populations of neurons allow the field to hold self-sustained activity bumps in the lack of external input. However, this only happens if the strength of the input driven by external sources takes the corresponding population of neurons to a value above the predefined threshold level, triggering the interaction between neuronal populations and allowing the bump to remain self-sustained (Figure 4.6). u(x,t) x s(x,t) (a) Stronger input u(x,t) x s(x,t) (b) Weaker input Figure 4.6: Illustration of the interaction between u(x, t)and s(x, t).In (a) the input is sufficiently strong to drive the sub-neural population above the threshold level (zero) and a bump of activity evolves, while in (b) the external input is weaker, thus not able to form a self-sustained bump. Memory and forgetting The ability to auto-sustain an activity bump allows the field to behave as a memory representation, since it can represent the activation corresponding to a feature even after the input that caused it is no longer available.
Chapter 4. Dynamic Neural Fields 31 Similarly, for cases where this memory representation is no longer necessary, it is also possible to eliminate the memory representation by suppressing the same activity. This can be achieved by controlling the global inhibition input parameter h(Figure 4.7). For sufficiently negative values, u(x, t)is too low and the self-excitation is no longer sufficient to sustain a positive activity bump (Figure 4.7a) (Amari, 1977). For levels of hcloser to zero, the field can have two different states of stability (Figure 4.7b): if the input has triggered a positive peak of activation and is then removed, the field maintains a localized stable bump of activity. If no input has been active, the general resting level persists. To summarize, a neuron will present activity if the total balance of excitatory and x u(x,t) -Wm (a) x u(x,t) -Wm x u(x,t) -Wm (b) Figure 4.7: Different stable states of the field dynamics, in the absence of external input, as a function of the resting level. In (a), h < −Wm, the field cannot self-sustain a peak of activity without input, so u(x, t) = h. In (b), h > −Wm, the field is able to sustain a bump of activity after the triggering input is no longer available. inhibitory input is strong enough to keep it above the threshold level 0. This means that there is a “critical” value for hbellow which the field is not able to maintain a self-sustained bump: h < −Wm=−maxx{∫x 0 w(x−y)dx}.(4.8)
32 Chapter 4. Dynamic Neural Fields Thus, a localized memory bump can be eliminated by lowering hbelow the level of h < −Wm(Bicho et al., 2000). Multi-item Memory If the field is coupled with an Oscillatory kernel function (equation(4.7)), it admits the coexistence and stability of multiple bumps of activity, so multi-items can be memorized in the same field. Figure 4.8 presents a DNF field able to store multiple peaks. In Figure 4.8a, two simultaneous inputs trigger activity above the threshold level 0. Since the field was coupled with an Oscillatory kernel, both peaks of activity generated were sustained. In Figure 4.8b, the field already had memorized an event when the second input appeared, and once again, both bumps are able to coexist in the field. (a) Memorizing two simultaneous events (b) Memorizing a second event Figure 4.8: Example of DNF field with the ability to store multi-bumps of activity. In (a), two simultaneous inputs triggered two different bumps of activity who were sustained in the field. In (b), although the field already had a memorized bump, when the second one appears, both are kept in the field in the form of memory.
Chapter 4. Dynamic Neural Fields 33 Decision Making In the presence of sufficiently strong lateral inhibition, another cognitive skill that can be implemented is the ability of making decisions. To formulize this cognitive skill, it is necessary to use a Gaussian kernel function with global inhibition (equation (4.5)) to trigger the competition between neighboring populations. Figure 4.9 shows two different cases where two peaks compete to win the decision in the process, leading to a single location peak of activation positioned either in the sub-neuronal population A or B. Since both bumps are sufficiently distant, the u(x,t) s(x,t) x A B x A B x A B x A B x A B (a) Winining decision: B u(x,t) s(x,t) x A B x A B x A B x A B x A B (b) Winining decision: A Figure 4.9: Example of decision making using DNFs. Initially, in (a) there is no pre-shaping activity so the peak with the highest input (B) wins the lateral competition. In (b) the field already has a pre-shaping value, so although the highest input was in B, the total activity favored the decision to A. lateral interactions will result in one inhibiting the other. The “winning” bump will emerge based on two factors: (1) the bump with the highest input level will have advantage over the other (Figure 4.9a); and (2) the initial state of the field may give the advantage to one peak over the other (Figure 4.9b).
Chapter 5 Artificial Neural Networks Chapter 4 provided the necessary background to understand how neuronal populations in the DNFs theory can model cognitive behaviour. This chapter introduces Artificial Neural Networks (ANN) as a tool to accommodate learning capabilities in the DNFs-models. It presents the basic functioning of neural networks and how ANN can be integrated with Dynamic Neural Fields. 5.1 Introducing Neural Networks The interest on neural networks emerged after McCulloch and Pitts (1943) presented a simplified model of biological neurons, demonstrating how they could perform computational tasks. ANN may be described as “intelligent, thinking machines, working in the same way as the animal brain” (Lek & Guégan, 1999), able to learn from experience, extracting complex features from observable data that would be rather difficult or even impossible to encode “by hand” and thus working as powerful classifying mechanisms. They can be used to solve complex computational problems and process data with great speed. In these networks, calculations are done in a parallel chain, reducing the necessary time to process large amounts of data. Due to those characteristics, Artificial Neural Networks have been extensively used as a computational tool in several fields, such as banking, computer sciences, financial, medical and speech (Lek & Park, 2008), to name a few. The relevance for the computer engineering fields lays on the possibility to process large amounts of sensorial data and apply learning capabilities to extract information and make predictions (Zador, 2019), thus allowing the 34
Chapter 5. Artificial Neural Networks 41 of activity between two fields. For that, let’s represent the activation of two coupled fields by uin(xin i)- input field - and uout(xout i)- output field. The propagation from the input field to the output field can be formulized by replacing q(xin i)with uin(xin i)in the former equation: sout(xout j) = m ∑ i=1 uin(xin i)a(xin i, xout j).(5.12) Another feature that must be encoded in the former equations is the incorporation of a gating mechanism to control the propagation of activity from on field to another. This is achieved by introducing a threshold function fλin implying that only activity above a certain level, λin, contributes to the interaction between fields: sout(xout j) = m ∑ i=1 fλin [uin(xin i)]a(xin i, xout j).(5.13) Finally, there are a few steps left to allow the former equation to reflect the continuous domain of Dynamic Neural Fields: 1. Minimize the distance between the spatial location of the neurons to reach a boundlessly distribution; 2. Replace the summation in the equation (5.13) for the integration of the dimension xin; 3. Introduce the time dependency according to the Amari field equation. Thus, the result can be formulized by the following equation: sout(xout, t) = ∫fλin [uin(xin, t)] a in→out(xin, xout, t)dxin,(5.14) which computes sout as a result of the propagation of activity from another field. Also, the matrix of synaptic weights was altered to incorporate the variation in time of the weight values, which will vary according to the learning rule adopted, explored next. 5.5.1 The Delta Rule A different weight adaptation rule, incorporating information about the current network state and the desired output, was suggested by Widrow and Hoff (1988). The authors proposed a Least-Mean Square (LMS) algorithm, commonly used in optimization problems where the objective is to minimize a cost function. The learning policy
42 Chapter 5. Artificial Neural Networks adopted uses the Delta Rule, which differs from the Hebbian rule (equation (5.7)) in the replacement of the output ujby an error term ej: ∆ai,j =ηqiej,(5.15) in which ejcomputes the difference between the target output utar jand the total amount of input, given by the equation (5.5): ej=utar j− m ∑ i=1 qiai,j.(5.16) Following the analysis made in section 5.5, once again it is necessary to transit the former equation to the continuous domain. Similarly to the equivalences (5.8) and (5.9), the error term will be given by: ej≡e(xout j).(5.17) Subsequently, since the input considered for the network is given by the activation of the field, the input term qi is replaced by fλin [uin(xin i)], and the Delta Rule can be now written as: ∆a(xin i, xout j) = ηfλin [uin(xin i)]e(xout j).(5.18) Then, the previous equation is formalized in the continuous space by the equation τa ∂ ∂t a in→out(xin, xout, t) = fλin [uin(xin, t)]e(xout, t),(5.19) where the rate term is replaced by the time constant τa>0that defines the rate variation in the synaptic weights. Considering that the error term is defined by the difference between target output and the total amount of input to a neuron, given by equation (5.14), the last step is to represent the target output. As stated before, a threshold must be applied to ensure that only the desired activation values influence the variation of the synaptic weights. For that, the target output can be given by gλout [utar(xout, t)] with gλout being defined by the function gλout [u] = [u−λout]+ 1+[u−λout]+,(5.20)
Chapter 5. Artificial Neural Networks 43 where λout is the threshold value. Finally, the error equation can now be fully written: e(xout, t) = gλout (utar(xout, t)) −∫fλin [uin(xin, t)] a in→out(xin, xout, t)dxin.(5.21) 5.6 Final remind The core methods that form the theoretical background of this work - Dynamic Neural Fields in Chapter 4 and Artificial Neural Networks in the current Chapter - were reviewed, demonstrating how it is possible to incorporate learning in the interaction between fields. Next are introduced the experimental setup and the robotic platform used to implement the work featured in the following Parts of this dissertation.
Chapter 6 Robotic platform and joint construction task As a concrete scenario to implement and test the models developed, a human-robot join task scenario was selected. This chapter starts by describing the robotic platform used in this work and some of its features. Next, the joint construction task is presented, as well as the key questions addressed during the collaborative work between robot and human tested in this dissertation: 1) what do to (what part should be used next); 2) who does it and how (what action should be done over the selected part, and who should do it); and 3) when to do. 6.1 The Robot Sawyer Sawyer (Figure 6.1) is a robotic platform designed by the company “Rethink Robotics” and commercialized since March 2016. It consists of an articulated arm with 7 degrees of freedom and 1.26 meters reach, designed to perform collaborative tasks (Rethink Robotics, 2018). The difference between traditional industrial robots and collaborative robots like Sawyer is the way they are presented to people. While traditional robots are usually placed inside cages, having no contact with human operators, Sawyer has inherent safety features that allow it to be operated alongside people1. This safety net, together with his appealing visual look, makes this robot better accepted between human operators. The LCD display that sits on its top (its “head”) depicts a pair of animated 1Sawyer is certified according to ISO requirements by TÜV Rheinland (ISO 10218-1:2011 and PLd Cat. 3). 44
Chapter 6. Robotic platform and joint construction task 45 eyes capable of representing different emotions that give Sawyer a humanoid appearance and make it appealing to work with, contributing to a more natural and user-friendly interaction (Rethink Robotics, 2018). The robot also has two cameras, one in the head (RGB) and one in the arm (Grayscale) that may be used to provide information about object color and type. Table 6.1 shows some of Sawyer’s specifications. Figure 6.1: Sawyer: Robotic platform from “Rethink Robotics”. Table 6.1: Main specifications of Robot Sawyer Pay Load Max Reach Gantry Reach Task Repeatability Typical Tool Speed DoF Robot Weight 4kg 1260mm 900mm ±0.1mm 1.5 m/s 7 19kg The arm movements and trajectories used in the experiments result from the trajectory replication demonstrated by the human through “Kinematics teaching”, available in Sawyer’s software. In the first stage, the DNF-models used in this work were implemented and simulated in Matlab. A Python script was developed to make the communication between the Matlab computations and the Robot Sawyer in real-time, using the Robotic Operation System (ROS) framework. Also, a speech synthesizer was used to allow the Robot to communicate with the human by reproducing pre-defined words or sentences provided as text strings. 6.2 Joint Construction Task As a concrete application scenario to validate the work developed, a task consisting of building a structure of eight different-colored thrusters was selected. The task was segmented into eight sub-tasks/sub-goals, where inserting
46 Chapter 6. Robotic platform and joint construction task each thruster on top of the Base corresponds to one sub-goal. The structure is composed by the Base (BA), four bottom-parts - Green (G), Orange (O), Pink (P) and Yellow (Y) - and four other pieces that are inserted in the top - Blue (B), Light Blue (LB), Light Green (LG) and Red (R) -, forming the structure displayed in Figure 6.2. The eight thrusters must be all in place to finalize the structure, which can be done through any order, as long as the physical constraints of the structure are respected. For example, the Light Blue thruster cannot be inserted without placing the Orange and the Pink thrusters that form its support. This particularity makes the construction task a very flexible one that can be achieved through multiple construction sequences. Figure 6.2: Structure consisting of one Base and eight colored parts: Green, Orange, Pink, Yellow (bottom) and Blue, Light Blue, Light Green, Red (top). 6.2.1 Learning the sequential structure of the task - What piece should be placed next? The first part of the experiment focuses on acquiring, from tutor demonstration, the sequential structure of the task. The schematic displayed in Figure 6.3 shows eight possibilities of different sequences of steps to assemble the structure. One can start by inserting the Pink thruster (Figure 6.4a) and other can start by the Orange one (Figure 6.4b), for example. Therefore, for an efficient Human-Robot Collaboration, the robotic co-worker needs to be able to assist its human partners in every possible scenario, that is, regardless of the sequence of steps used by its different co-workers. Consequently, when working together with a human, it is fundamental that the robot knows the sequential structure of the task, that is, the precedent relations between the several sub-tasks, to be able to assist its co-worker, independently of the sequence of steps he may use.
Chapter 6. Robotic platform and joint construction task 47 Figure 6.3: Schematic of the possible sequences to construct the structure. For simplicity, the schematic only shows 8 of the 928 possibilities of different sequences that could be used. (a) (b) Figure 6.4: Different operators building the structure starting from different parts of the structure. In (a), the co-worker starts to construct the right side of the structure by inserting the Pink thruster. In (b), a different operator starts building the left side of the structure by inserting the Orange thruster.
48 Chapter 6. Robotic platform and joint construction task 6.2.2 Incorporating workspace information and action selection - What action should be done over the selected part and who should do it? In the second part of the experiment, the pieces were distributed through three different workspaces: Robot Workspace, Human Workspace and Shared Workspace (Figure 6.5). In this phase, besides selecting the next piece to be inserted, the robot also needs to select the best suitable action to take, considering the end purpose (insert a piece in a given place), which will depend on two factors: 1. Who should grab the next piece? - Sawyer can grab pieces from the Robot and Shared Workspaces. The Human can reach pieces in the Human and Shared Workspaces; 2. Who should insert the piece? - Due to its physical constraints, the robot can only reach the placing location of the Green, Orange and Yellow thrusters. The other parts are assumed to be inserted by the Human. Consequently, it is expected that Sawyer and its human co-workers work together and coordinate their actions to insert all the parts and complete the task. Human Workspace Robot Workspace Shared Workspace Figure 6.5: Human, Robot and Shared Workspaces. The Human and Robot Workspaces consist of pieces placed in the tables next to the human operator and next the robot, respectively. They cannot reach pieces in the other co-worker’s workspace. The Shared Workspace is formed by the pieces laying on the construction table - where lays the Base -, reachable by both partners.
Chapter 6. Robotic platform and joint construction task 49 6.2.3 Memorizing sequences with time constraints - When to do? A third experiment was conducted to validate a model for memorizing ordinal and temporal information of the sequential task in a single demonstration. The model was tested as a primary step towards learning sequences that may have time constraints. A tutor starts by demonstrating the sequence of steps to build the structure, starting from different layouts of the pieces in the construction table (Figure 6.6 - left). Each different layout implies the use of a different construction sequence. In each trial, the (observing) robot memorizes the serial order and the time interval between each assembly step and associates the initial layout and the characteristic of the tutor that performed the demonstration - for that, tutors with different behavior time scales (older/younger) were selected. When facing a new (inexperienced) operator (Figure 6.6 - right), the robot selects one of the memorized trials according to the layout of the pieces and the characteristics of the new co-worker and recalls the memorized information according to the serial order and time previously demonstrated. I will show you I will help you Figure 6.6: Sawyer evolves from a learning position to a teaching position. On the left, Sawyer receives information from an experienced tutor. On the right, Sawyer uses the memorized information to instruct inexperienced co-workers facing the same trial context.
Part IV Implementation and Results 50
Chapter 7. Learning the Sequential Structure of an Assembly Task 57 recurrent interactions within the population. When upa reaches the threshold 0 (t2), it starts to inhibit thes activity in upr that converges to its resting level. From t3to t4,upa is above the threshold level λpa, forming the time window where new emerging sub-goals in upr become associated to the former sub-goal. Recall Mode Contrarily, during the Recall mode, the robot must have a faster response to take an active role in retrieving the learned sub-goals. For that, the resting level is placed higher hpa high (Figure 7.6) so the upa field responds faster to the visual input and the formed bump instantly inhibits the corresponding sub-population in upr, preventing the formation of a peak and accelerating the recall process (Sousa et al., 2015). A higher resting state of upa t t 0 0 pr pa pa high u pamax (t) u prmax (t) I(t) pa →pr Figure 7.6: Higher resting level in upa during Recall. brings populations closer to the activation threshold and thus accelerates the formation of a bump in response to visual input (t0). In (t1),upr excites the corresponding population in upa that instantly inhibits the activity of upr. After achieving λpa, the dynamics of the field, in both cases, causes a continuous decay in the activity of the corresponding sub-neural populations. However, the activity stabilizes above threshold level 0 due to the recurrent interactions within the populations, symbolizing the achievement of the sub-goal, and maintaining a
58 Chapter 7. Learning the Sequential Structure of an Assembly Task working memory of the task. 7.1.3 Associative Learning It has been shown that learning the task is more than just memorizing an observed sequence of sub-goals. To acquire the sequential structure of the task, an associative learning mechanism based on Hebbian learning is applied, allowing the system to acquire the dependences between the several sub-goals. Those connections are saved in the form of a matrix A pa→pr. The basic concept of this mechanism relies on the existence of an interval of time during a demonstration where sub-populations of neurons have activity above the Learning thresholds - λpr and λpain both fields. Since the activity in upa decreases over time, the memory representation of the performed sub-goals becomes weaker, so only recently performed events will become linked to the next one observed. Depending on how long is the interval of time during which an activity bump stays above the threshold level in upa, more or less already achieved sub-goals will become associated with the next one observed in upr. Several methods can be used to control this association: changing the decay rate of upa (Sousa et al., 2014), controlling the gain of the response to the visual input or changing the value of the learning threshold λpa, for example. For simplicity in the visualization, the latter method was selected. Figure 7.7 illustrates the associative process with two different values of λpa. Lower threshold values will allow the bumps of activity to remain longer above the threshold line so more past subgoals in upa will become linked to the next one in upr (Figure 7.7b). When demonstrating different sequences, different associations will be made, extracting the several precedence relations between sub-goals. During the Recall mode, the robot retrieves the sequence of sub-goals observed during the demonstration period and learned during the Rehearsal mode. If the robot makes a wrong prediction (Figure7.8), the learning threshold λpa is lowered to allow more past events to become associated with a specific prediction in the next demonstration. This process of learning-recalling is repeated until the robot makes no more errors.
Chapter 7. Learning the Sequential Structure of an Assembly Task 59 G Y B R P LB LGBA O pa 0 0 upa x G Y B R P LB LGBA O pr 0 upr x (a) G Y B R P LB LGBA O pa 0 0 upa xx G Y B R P LB LGBA O pr 0 upr x (b) Figure 7.7: Associative learning controlled by the threshold level λpa.In (a), with a higher threshold level, the model only makes a simple chaining association (O→R). By lowering the threshold value (b), the time window for associative learning is increased, allowing a compound chaining association (O→R) and (G→R). I will show you I think that we should place the Blue That is wrong. I will show you again Figure 7.8: Learning and Recalling Process. If during the Recall Mode (on the right) an error occurs, the threshold value λpa is lowered to allow more associations between sub-goals in the next demonstration trial.
60 Chapter 7. Learning the Sequential Structure of an Assembly Task 7.1.4 Mathematical formulation of the Sequence Learning Layer The mathematical base of each layer of the model is a Dynamic Neural Field, formalized by an adaptation of the Amari equation (see section 4.2): τk∂uk(xk, t) ∂t =−uk(xk, t) + hk(xk, t) + ςk stoch(xk, t) +fβ[uk(xk, t)](sk(xk, t) + ∫wk(xk−yk)f0[uk(yk, t)]dyk), (7.1) with krepresenting each field and ukbeing the activation of a neuron xk.τk>0and hkare the time constant and the field resting level to witch ukconverges when there is no external input, respectively. To ensure that uk does not take excessively negative values facing strong inhibitory inputs, an additional gating term is employed fβ[uk(xk, t)], ensuring that the field’s activity never reaches values below β < 0. Additionally, a noise function ςk stoch is applied to force the competition between neurons with identical input values. Next follows a detailed explanation of the mathematical formulation of the Past and Present fields. Past Field The equation below describes the activity of the Past field upa: τpa ∂upa(xpa, t) ∂t =−upa(xpa, t) + hpa(xpa, t) + ςpa stoch(xpa, t) +fβ[upa(xpa, t)](spa(xpa, t) + ∫wpa(xpa −ypa)f0[upa(ypa, t)]dypa). (7.2) The interaction kernel function wpa used is an Oscillatory kernel (equation (4.7)) since it admits the coexistence and stability of multiple bumps of activity. The implementation parameters for this field can be consulted in the Appendix A.1. Input to the Past field: spa The input spa(xpa, t)is defined by the sum of the external visual input vpa(xpa, t)with a hand-coded gain Cv→pa and the excitatory contribution from the Present field given by the integral term: spa(xpa, t) = Cv→pavpa(xpa, t) + ∫fλpr [upr(xpr, t)] E pr→pa(xpr, xpa)dxpr.(7.3)
Chapter 7. Learning the Sequential Structure of an Assembly Task 61 The integral term formalizes the propagation of the excitatory connections from upr to upa where only activity above the threshold λpr is propagated to upa, applied through the function fλpr . Resting level: hpa(xpa, t) Following aection 7.1.2, the baseline activity of upa differs in the Learning and Recall modes. The equation below controls the adaptation of the resting level value hpa towards which the field rests in the absence of input, depending on which mode the robot is operating: τpa h ∂hpa(xpa, t) ∂t =(1−f0[upa(xpa, t)])(Hpa level −hpa(xpa, t))+ +f0[upa(xpa, t)](Hpa dec −hpa(xpa, t)), (7.4) where τpa his the time constant of the resting level decay and Hpa level defines the value of the resting level depending on the mode, given by: Hpa level = Hpa high,if mode =recall Hpa low,if mode =learning .(7.5) When upa >0, the value of hpa(xpa, t)decays from Hpa level to Hpa dec. Contrarily, when upa ≤0, it converges to Hpa level. Present Field The Present Field is formalized by the following equation: τpr ∂upr(xpr, t) ∂t =−upr(xpr, t) + hpr(xpr, t) + ςpr stoch(xpr, t) +fβ[upr(xpr, t)](spr(xpr, t) + ∫wpr(xpr −ypr)f0[upr(ypr, t)]dypr), (7.6) where hpr is a constant function and the interaction kernel wpr is modeled by a Gaussian curve with global inhibition (equation (4.5)) to enable the competition between sub-neuronal populations.
62 Chapter 7. Learning the Sequential Structure of an Assembly Task Input to the Present Field: spr The input to the field upr has three different sources: 1. the visual input vpr(xpr, t)mediated by the gain constant Cv→pr; 2. the propagation of the inhibitory interaction from upa to upr where only activity above the threshold level 0 is propagated to upr; 3. the “recall” contribution from A pa→pr, with a strength Crec→pr. The equation below describes the input spr(xpr, t): spr(xpr, t) = Cv→prvpr(xpr, t) +∫f0[upa(xpa, t)] I pa→pr(xpa, xpr)dxpa +Crec→pr ∫f0[upa(xpa, t)] A pa→pr(xpa, xpr, t)dxpa, (7.7) where A pa→pr(xpa, xpr, t)represents the synaptic adaptation rule storing the associative learning connections from upa to upr, detailed next. Adaptation rule: A pa→pr A pa→pr stores the connections from upa to upr established during the Learning mode through the set of demonstrations provided by the human tutor. The weights are adapted when sub-neuronal populations present activity above the learning thresholds - upa >λpa and upr >λpr -, according to the Delta Rule adaptation for the continuous space (equation (5.19)), now formalized as: τa ∂ A pa→pr(xpa, xpr, t) ∂t =fλpr [upr(xpr, t)]fλpa [upa(xpa, t)] ×[epr(xpr, t)−A pa→pr(xpa, xpr, t)], (7.8)
Chapter 7. Learning the Sequential Structure of an Assembly Task 63 with the error term being formulized similar to equation (5.21): e(xpr, t) = gλpr [upr(xpr, t)] −∫fλpa [upa(xpa, t)] A pa→pr(xpa, xpr, t)dxpa.(7.9) The error term e(xpr, t)is the difference between activity above the threshold level λpr given by gλpr (see equation (5.20)) and the total amount of input given through the connections A pa→pr. During the Recall mode, if the robot makes a wrong prediction, the learning threshold λpa is placed lower (Figure 7.7). That way, more past sub-populations will be above λpa in the next trial (see Sousa, 2014). 7.1.5 Short-Term Memory Layer (STM) Although the models presented in section 7.1 can achieve the goal of learning a sequential task from demonstration, the adaptation of the weights calls for a large number of demonstration trials in order to extract the correct weight values stored in A pa→pr. When working with neural networks where the training is performed off-line, this is not an issue. However, in this particular Programming by Demonstration scenario, it is the human tutor the one performing the training trials in an online process, so having multiple demonstration trials may become annoying, unpractical, and time-consuming (Cunha et al., 2020). To overcome this limitation, Ferreira et al. (2014) proposed a neural-inspired fast learning system capable of storing an observed sequence in a single demonstration. Later, Sousa et al. (2015) combined the Sequence Learning Layer model with this Short-Term Memory (STM) mechanism to work as two-complementary processes, inspired by the work of Mcclelland et al. (1995). The STM layer is formed by a single Dynamic Neural Field that stores the sequence of sub-goals demonstrated as a multi-bump pattern. This pattern is later used as input to the SLL to train the adaptable synaptic connections during the Rehearsal mode (Figure 7.9). Each bump represents an event triggered through excitatory input from the Vision System. The strength of each memory representation reflects the time elapsed since each event was observed (e.g., blue thruster inserted), resulting in an activation gradient from the first to the last sub-goal observed (Figure 7.10). This way, the STM model can store in one-shot a sequence of sub-goals performed by the tutor, which is later used as input to the Present field upr. Since the STM model can store a sequence of steps in a single demonstration, this model can be used to replace the human tutor during the Rehearsal mode. The sequence encoded in the STM layer is used as input
64 Chapter 7. Learning the Sequential Structure of an Assembly Task Sequence Learning Layer (SLL) Past BA G Y B R P OLB LG Present BA G Y B R P OLB LG Short-Term Memory Layer (STM) BA G Y B R P OLB LG Vision System Object Recognition Figure 7.9: SLL architecture extended to incorporate the Short-Term Memory Layer (STM). The STM Layer is formalized as a single Dynamic Neural Field. During the Rehearsal mode, the input from the Vision System to SLL is replaced by the input from the STM layer. . to the Sequence Learning Layer, replacing the input that was previously being provided by the Vision System. The Rehearsal process consists of feeding the Present Field upr in the SLL, several times in a loop, with the multi-bump pattern (Figure 7.10) stored in the STM, providing the training trials necessary to adapt the synaptic weights. The process is repeated until a pre-defined number of rehearsal trials is reached. The implementation parameters of this mode can be seen in Appendix A.3. Green Yellow Blue Red Pink Orange Light Light Blue Green uSTM sSTM hSTM Green Yellow Blue Red Pink Orange Light Light uSTM sSTM hSTM Figure 7.10: Example of a multi-bump pattern stored in STM. The amplitude of the bumps encodes the serial order of the inserted thrusters, with the highest peak (Orange) being the color of the first inserted piece and the shortest one (Light Blue) being the last.
Chapter 7. Learning the Sequential Structure of an Assembly Task 65 7.1.6 Mathematical formulation of the Short-Term Memory Layer and the Rehearsal mechanism STM Field The equation below describes the activity of the STM field ustm: τstm ∂ustm(xstm, t) ∂t =−ustm(xstm, t) + hstm(xstm, t) + ςstm stoch(xstm, t) +fβ[ustm(xstm, t)](sstm(xstm, t) + ∫wstm(xstm −ystm)f0[ustm(ystm, t)]dystm). (7.10) The interaction kernel function wstm used is an Oscillatory kernel (equation (4.7)). The implementation parameters for this field can be consulted in the Appendix A.2. Input to the STM Field: sstm The STM field ustm(xstm, t)receives input from the Vision System vstm(xstm, t)with a strength weighted by Cv→stm. The input sstm(xstm, t)is formulized as: sstm(xstm, t) = Cv→stmvstm(xstm, t).(7.11) Resting level: hstm The adaptation of the resting level of the STM field is the mechanism that allows a sequence of sub-tasks to be represented in the activation gradient of the field (Ferreira et al., 2014). The next equation governs the adaptation of hstm: τstm h ∂hstm(xstm, t) ∂t =(1−f0[ustm(xstm, t)])(Hstm dec −hstm(xstm, t)) +f0[ustm(xstm, t)], (7.12) where τstm hdefines the growth rate of hstm(xstm, t)and Hstm dec is the baseline value. When ustmn <0, the resting level decays to the baseline value. Otherwise, hstm(xstm, t)follows a linear grow (see red dashed line
66 Chapter 7. Learning the Sequential Structure of an Assembly Task in Figure 7.10), which allows the generation of the amplitude gradient encoding serial order. Input to the Present Field: spr So far, the input to the present field has been defined as (7.7). For simplicity, let’s write the previous input as sSLL(xpr, t). With the implementation of the Short-Term Memory mechanism, the input to the Present field can be now written as spr(xpr, t) = sSLL(xpr, t) + brehCstm→prustm(sstm, t),(7.13) with the second term of the equation being the contribution from the STM Layer, mediated by the gain Cstm→pr. The parameter breh works as a flag that is only active during the Rehearsal mode, so the STM Layer only contributes to the Present field input sstm during Rehearsal. 7.2 Results: What piece should be inserted next? This section presents the tests performed to validate the models described in section 7.1 as well as the results obtained, using the joint-task scenario presented in section 6.2.1. The goal was to test and validate the DNF- models in a real-world case where a robot learns the task demonstrated by a human tutor. 7.2.1 Experimental Setup The experimental paradigm used in this work consists of a scenario where Human and Robot are placed facing each other on opposite sides of a table. The interaction starts with the demonstration performed by the human tutor. In the beginning, all the thrusters are laying on the workspace table and the tutor verbalizes the sentence “I will show you” to initiate the trial (Figure 7.11 - left), which sets the system’s state to the Demonstration mode. While the human performs the demonstration, the robot observes and the Vision System captures the insertion of each piece recognized by its color (Figure 7.12). Each thruster has a fixed location in the structure and can be placed at any moment, as long as the state of the constructions allows its insertion. The visual information is translated into Gaussian inputs vpa,vpr and vstm that will trigger the representation of the achievement of each sub-goal (e.g, Pink thruster inserted) in the respective fields, upa,upr and ustm. The verbalization of the sentence “I have finished” (Figure 7.11 - right) by the tutor ends the demonstration
Chapter 7. Learning the Sequential Structure of an Assembly Task 73 recalled was the Pink thruster. BA G Y B R P O LB LG xpa 0 5 -5 upa (xpa,t) spa(xpa,t) hpa (xpa,t) pa (a) Past Field BA G Y B R P O LB LG xpr 5 0 upr (xpr,t) spr (xpr,t) hpr (xpr,t) pr (b) Present Field Figure 7.19: SLL profile during the first prediction. Four prediction bumps are triggered in upr corresponding the sub-populations encoding the Green, Yellow, Pink and Orange pieces. The model recalls the Pink thruster. Next, the tutor provided positive feedback and continued by placing the Pink thruster. Figure 7.20 shows the activation of the SLL fields during the second step of recall. In Figure 7.20a it is visible that the Base and the Pink thruster are marked as achieved sub-goals in upa. The insertion of the Pink thruster triggered activity in the populations of the sub-goals observed after, both during the previous (P→LG) and the current trial (P→G). Since the Green had already received previous input from the Base, the total input formed the highest peak in the sub-population encoding the Green, which won the competition over the other active predictions (Figure 7.20b). Moreover, the second observed sub-goals after the Pink (P→LG →LB) and (P→G→Y) triggered a smaller bump in the Light Blue sub-population and increased the prediction input of Yellow, respectively. This happened since the learning threshold value in upa allows, in general, a compound association of two sub-goals (see Figure 7.15b).
74 Chapter 7. Learning the Sequential Structure of an Assembly Task BA G Y B R P O LB LG xpa 0 5 -5 upa (xpa,t) spa(xpa,t) hpa (xpa,t) pa (a) Past Field BA G Y B R P O LB LG xpr 5 0 upr (xpr,t) spr (xpr,t) hpr (xpr,t) pr (b) Present Field Figure 7.20: SLL profile during the second prediction. The model recalls the Green thruster. The complete sequence retrieved by the robot during the rehearsal process was the following: Pink ⇒Green ⇒Yellow ⇒Orange ⇒Red ⇒Blue ⇒Light Blue ⇒Light Green All the recalled sub-goals were correct, so Sawyer received positive feedback through all the steps. 7.2.4 Test number 3: Learning a third sequence In the third test, the tutor demonstrated the task by inserting each piece using the following sequence : Yellow ⇒Pink ⇒Light Green ⇒Orange ⇒Green ⇒Red ⇒Light Blue ⇒Blue The demonstration resulted in the multi-bump pattern displayed in Figure 7.21 A video of the third demonstration can be found at https://youtu.be/RO2MHlKubvU. As the previous experiments, the demonstration is followed by the rehearsal process where the weights of the adaptable connections A pa→pr from the Past sub-goals to the Present are readjusted.
Chapter 7. Learning the Sequential Structure of an Assembly Task 75 BA G Y B R P O LB LG 0 10 20 xstm ustm(xstm,t) Figure 7.21: Activation of the STM field ustm resulting from the third demonstration During the recall mode, the robot starts by selecting the Pink thruster to be inserted after the Base, followed by the Green. Figure 7.22 shows the activation profile of the SLL fields after the tutor inserted the Green thruster. BA G Y B R P O LB LG xpa 0 5 -5 upa (xpa,t) spa(xpa,t) hpa (xpa,t) pa (a) Past Field BA G Y B R P O LB LG xpr 5 0 upr (xpr,t) spr (xpr,t) hpr (xpr,t) pr (b) Present Field Figure 7.22: Error in the recall process. After inserting the Pink and Green thruster, the robot makes a wrong decision, recalling the Light Green. At this moment, it is visible that all the remaining sub-goals in spr (Figure 7.22b) have a peak (bigger or smaller), due to the propagation of the connections in A pa→pr that resulted from learning all the previous sequences. The next sub-goal recalled by the model was the Light Green (Figure 7.23). Taking into consideration the physical
76 Chapter 7. Learning the Sequential Structure of an Assembly Task constraints of the structure, the Light Green thruster cannot be inserted at this stage of the construction. The decision made by the robot is wrong, so Sawyer receives negative feedback from the tutor (Figure 7.23b), which will lower the learning threshold to the next value: λpa= 5.5. Because it received negative feedback, the robot asks the tutor to repeat the demonstration (see Figure 7.13). A video of the complete trial can be found at https://youtu.be/CLAZJOg1kys. After the tutor demonstrates the sequence of steps once again, the rehearsal (a) Robot Head Camera view: Visual input That is wrong! I think we should place the Light Green thruster (b) Robot makes a wrong prediction Figure 7.23: Illustration of the Recall Mode - Sawyer makes a wrong prediction. After recalling the Pink and Green pieces (a), the robot recalls the Light Green thruster to be placed next (b). The physical constraints of the structure do not allow the insertion of Light Green at this step of the construction. process takes place, this time with a lower threshold value. The lower threshold allows the association of more achieved sub-goals in upa to become linked to the next sub-goal observed in upr (Figure 7.24). Also, the relations observed during the demonstration are reinforced in A pa→pr during the new rehearsal trial.
Chapter 7. Learning the Sequential Structure of an Assembly Task 77 BA G Y B R P O LB LG xpa 0 5 -5 upa (xpa,t) spa(xpa,t) hpa (xpa,t) pa (a) Past Field BA G Y B R P O LB LG xpr 5 10 0 15 upr (xpr,t) spr (xpr,t) hpr (xpr,t) pr (b) Present Field Figure 7.24: Snapshot of the associations between sub-goals during Rehearsal with λpa = 5.5.During this rehearsal trial, the learning threshold is placed lower (a). When a new bump emerges in the Present field (b), sub-populations above λpa (Pink, Light Green and Yellow) become linked to the active population in upr (Orange). Going back to the Recall mode, the robot starts by recalling the Yellow piece, followed by the Pink. Figure 7.25 shows the activation profile of the SLL fields after achieving these two sub-goals. Contrarily to the previous trial, this time, the robot retrieves the Orange piece to be inserted next, making a valid decision (Figure 7.25b). Then, the human tutor provides positive feedback and the recall of the next sub-goals is due with no more errors. The final sequence retrieved by the robot was the following: Yellow ⇒Pink ⇒Orange ⇒Light Green ⇒Green ⇒Red ⇒Blue ⇒Light Blue A video of the trial can be seen at https://youtu.be/nG2s79gdquQ.
78 Chapter 7. Learning the Sequential Structure of an Assembly Task BA G Y B R P O LB LG xpa 0 5 -5 upa (xpa,t) spa(xpa,t) hpa (xpa,t) pa (a) Past Field BA G Y B R P O LB LG xpr 5 0 upr (xpr,t) spr (xpr,t) hpr (xpr,t) pr (b) Present Field Figure 7.25: SLL profile during the third prediction after repeating the demonstration. With the Yellow and Pink thrusters inserted (a), the robot makes a valid decision and retrieves the Orange piece (b). 7.3 Discussion The model for sequence learning presented in this chapter and the experimental results show that it was possible to capacitate Sawyer with the ability to acquire information regarding the sequential structure of a task, using learning from demonstration and tutor feedback, in a real-time Human-Robot Interaction scenario. First of all, it was proved that the Dynamic Neural Field framework could be used to represent information regarding the state of the execution of a task, through the interactions between two coupled DNF-fields. Moreover, it was possible to store serial order information in a single dimension field where the order is represented in the amplitude of the sub-neuronal populations encoding specific sub-goals. The former could be translated into a Short-Term Memory mechanism, as also demonstrated in the work of Ferreira et al. (2014). The integration of the STM model to train the associative learning rule permitted an online and fast method for training the connections encoded in the learning matrix. The visual input provided by the demonstrations made by the human tutor was replaced by the STM pattern during the Rehearsal mode, reducing the workload for the human co-worker. Furthermore, the
Chapter 7. Learning the Sequential Structure of an Assembly Task 79 compound chaining mechanism applied allows storing long-term precedencies between sub-goals, encoded in A pa→pr, which are needed when dealing with multi-sequential tasks. It was also verified that the variation of the learning threshold value could be used to control the number of sub-goals that are associated at each step of the task. In the work of Sousa et al. (2015), a similar approach was employed; however, the time window for learning was controlled by changing the resting level decay rate in the Past field. Also, the authors started by testing the learning of a sequence through simple chaining where the adaptable connections from Past to Present field only associated one sub-goal at each step. Following their work, in this experiment, a compound chaining approach was used, from the beginning, through all the trials, so the time window for learning always allowed, at least, two sub-goals in the Past field to become linked to the next one in the Present field. This way, more connections between sub-goals were established. It is also worth noting that, after the second demonstration, the robot was able to recall the task using a sequence that was not explicitly demonstrated by the tutor. This means that the model was able to extrapolate dependences between sub-goals that were not demonstrated explicitly. For example, in the second recall trial, after the Yellow piece, the robot recalled the Orange and then the Red, sequences that were not demonstrated by the tutor. This approach allowed the robot to extrapolate task information faster, with more flexibility and through a smaller number of demonstrations. The next chapters will describe two other experiments performed using the developed models in different Human-Robot Collaboration scenarios.
Chapter 8 Extending the models to incorporate workspace information and action selection In the previous Chapter, it was shown how it is possible to endow Sawyer with the ability to acquire task-related information, from tutor demonstration and verbal feedback. This Chapter presents a different HRC scenario where the learned information is applied in an architecture that incorporates workspace information and decision making regarding the selection of an appropriate action. The main goal was to incorporate the acquired knowledge in a construction scenario where Sawyer has to make a decision regarding, not only the next sub-goal but also how that sub-goal should be achieved. The key questions - described in section 6.2.2 - are 1) what action should be done over the selected part; and 2) who should do it. Next are described the architecture and the experiments made to validate the new incorporated models. 80
Chapter 8. Extending the models to incorporate workspace information and action selection 81 8.1 DNF - architecture incorporating workspace information and action selection The models implemented in Chapter 7 endowed Sawyer with high-level knowledge about the sequential structure of the joint construction task. In the experiment presented in this Chapter, a new HRC scenario was set up, where the robot takes an active role and engages in the construction of the task together with the human partner. The main difference from the previous experiment is that the robot no longer receives feedback from the human tutor, since the task had been already learned, being stored in the Sequence Layer (SL) of the new architecture. Now, the robot not only verbalizes the next step (as before) but also, and important for the joint cooperation, it engages actively with his co-worker in the construction of the task. Figure 8.1 is a diagram of the cognitive architecture implemented where three new layers are added, bringing new capabilities to the models. The architecture is inspired in the work of Bicho et al. (2011b) and Erlhagen and Bicho (2014), and combines information from several layers into a single bidimensional field that holds the decision making process for action selection. The several pieces that form the construction task are dispersed into three different workspaces - Human, Robot and Shared - encoded in the neural fields inside the Object Memory Layer (OML). Input from the Vision System triggers activity in each field, marking the location of each piece across the different workspaces. Moreover, information regarding what pieces the robot is (physically) able to insert is codified in the Executable Tasks Layer (ETL). Action Execution Layer (AEL) is a two-dimensional field that holds the decision-making process of the architecture and triggers the corresponding selected action to be executed, according to the input received from the OML, ETL, and SL. Task-information - i.e. sequence of sub-goals in the construction task - is stored in the SL and results from the previous learning models. For example, according to the Present field in the figure, the next sub-goal should be the insertion of the Green thruster. The Green piece is on the Robot Workspace and, according to the information provided by the ETL, the robot can insert it. Therefore, the decision that will emerge in the AEL is: Robot Inserts (RI) (the Green thruster).
82 Chapter 8. Extending the models to incorporate workspace information and action selection Objects Memory Layer (OML) Robot Workspace BA G Y B R P OLB LG Human Workspace BA G Y B R P OLB LG BA G Y B R P OLB LG Shared Workspace Motor Control BA G Y B R P OLB LG Executable Tasks Layer (ETL) Vision System Object Location Object Recognition Sequence Layer (SL) Past BA G Y B R P OLB LG Present BA G Y B R P OLB LG Short-Term Memory Layer (STM) BA G Y B R P OLB LG BA G Y B R P OLB LG HHO RHO HI RI Action Execution Layer (AEL) DNF Sub-population Field Activation Excitatory connections Inhibitory connections Matrix A Learned Connections Figure 8.1: Schematic view of the cognitive architecture for joint action. The OML incorporates information regarding the state of each workspace, receiving input from the Vision System. ETL encodes the pieces that Sawyer can insert and AEL holds the decision generated from the input received from OML, ETL and SL. The decision process is constituted by two parts: 1) the color of the next piece and 2) how to perform the insertion: Robot Inserts (RI), Human Inserts (HI), Robot Hands Over (RHO) or Human Hands Over (HHO). The combination of both outcomes results in a bump of activity emerging in the two-dimensional field expressing the complete decision-output, which will trigger the corresponding motor control action. Summarizing, four different actions can be taken to insert each piece, which will depend on the location of the piece and on the ability of the robot to insert (or not) each thruster in the structure: •Robot Inserts (RI): The thruster is placed in the Robot or Shared Workspaces and the robot can reach and insert it in the structure - robot grabs and inserts the piece; •Human Inserts (HI): The thruster is placed in the Human or Shared workspaces and the robot is not able to insert it in the structure, so the action is fully performed by the human - human grabs and inserts the piece; •Robot Hands Over (RHO): The thruster is placed in the Robot Workspace but the robot cannot reach its location in the structure - Robot grabs the piece and hands it over to the human co-worker that performs the insertion;
Chapter 8. Extending the models to incorporate workspace information and action selection 89 Objects Memory Layer (OML) Robot Workspace BA G Y B R P OLB LG Human Workspace BA G Y B R P OLB LG BA G Y B R P OLB LG Shared Workspace BA G Y B R P OLB LG Executable Tasks Layer (ETL) Action Execution Layer (AEL) dimension xa HHO RHO HI RI Excitatory connections Figure 8.6: Excitatory connections from OML and ETL to AEL. 8.2 Results: What action should be taken to insert the next piece? This section presents the results of the implementation of the architecture of Figure 8.1 in the HRC scenario presented in section 6.2.2. The goal was to test and validate the models in a scenario where Sawyer decides the most suitable action for each step of the construction and cooperates with the human co-worker. Moreover, the ability of the system to deal with missing items from the workspace was also tested. The tests described next took place after conducting the learning experience presented in Chapter 7. Therefore, the synaptic weights of the learning matrix A pa→pr were already defined, so it was expected that Sawyer would follow the last task-sequence that was completed with success in the third learning trial illustrated in section 7.2.4: Yellow ⇒Pink ⇒Orange ⇒Light Green ⇒Green ⇒Red ⇒Blue ⇒Light Blue Before each trial, the colored thrusters are distributed randomly across the three workspaces. At each step of the construction, the robot verbalizes to its co-worker the result of the selected decision - active region in the Action Execution Layer - and then generates the corresponding motor action. 8.2.1 Test number 1: Layout A Figure 8.7 shows the activation profile of the OML fields at the beginning of the first test. Then, Figure 8.8 depicts the sequence of actions employed during the first test. A video of this trial can be found in https://youtu.be/ XQwAz1PCuHw. In the beginning, the thrusters are displayed over the three workspaces according to the layout illustrated in Figure 8.8a.
90 Chapter 8. Extending the models to incorporate workspace information and action selection Shared Workspace Robot Workspace Human Workspace BA G Y B R P O LB LG ush Figure 8.7: Test number 1 - Activation profile of the OML fields at the beginning of the construction. Green, Orange and Light Blue are placed in the Human Workspace; Blue, Red and Pink in the Robot Workspace; and finally Yellow and Light Green belong to the Shared Workspace. Following the Sequence Layer, the Base triggers the Yellow as the next sub-goal to be achieved. Since Yellow is placed in the Shared Workspace and marked in ETL as a piece that the robot can insert, the selected action verbalized by the robot is “I think I should grab and plug the Yellow thruster”. As a result, Sawyer grabs the Yellow piece from the shared working table and inserts it in the structure (Figure 8.8b). The sub-population encoding Yellow is then inhibited in OML, SL and AEL, marking its insertion. The insertion of Yellow triggers the activation of the next sub-goal, which according to SL is placing the Pink thruster. The output-decision in AEL can be seen in Figure 8.9. Note that sub-populations in the dimension “color” have a small pre-shape of activity - with the exception of the ones encoding past sub-goals (Base and Yellow), already inhibited in AEL - due to the OML connection informing about available pieces in the workspaces. The sub-neuronal population encoding Pink wins the competition over the others. Pink is placed in the Robot Workspace, but its insertion is not an executable action for Sawyer. Therefore, in the dimension “action,” the active population corresponds to “Robot Hands Over”. Consequently, Sawyer decides to grab the Pink thruster and pass it to the human co-corker that inserts the piece in the structure (Figure 8.8c). The same happens in the steps illustrated in Figures 8.8g and 8.8h. The next sub-task is the insertion of the Orange piece, placed in the Human Workspace, which can be done
Chapter 8. Extending the models to incorporate workspace information and action selection 91 (a) I think I should grab and plug the Yellow thruster (b) I think I should grab and give you the Pink thruster (c) I think You should give me the Orange thruster (d) I think You should grab and plug the Light Green thruster (e) I think You should give me the Green thruster (f) I think I should give you the Red thruster (g) I think I should give you the Blue thruster (h) I think You should grab and plug the Light Blue thruster (i) Figure 8.8: Test number 1 - snapshots illustrating the sequence of actions during the first trial. by the robot. Therefore, Sawyer requests its co-worker to grab and pass the Orange thruster so the robot can perform the insertion (Figure 8.8d). The same action is taken in the step illustrated in Figure 8.8f to insert the Green. In the fourth step of the construction, the next sub-goal consists of inserting the Light Green thruster. Since it lays on the Shared Workspace and its insertion is not feasible for the robot, Sawyer requests its co-worker to grab the piece and insert it on his own: “I think You should grab and plug the Light Green thruster” (Figure 8.8e). The same action is selected in last step of the construction to insert the Light Blue (Figure 8.8i).
92 Chapter 8. Extending the models to incorporate workspace information and action selection RI HI HHO RHO BA G Y B R PO LB LG Action Execution Layer color action activation Figure 8.9: AEL activation profile in the second step of the construction. Sawyer’s decision is to grab the Pink thruster and pass it to its human co-worker: Robot Hands Over (RHO). 8.2.2 Test number 2: Layout B Secondly, a new test was conducted to validate the architecture with a different layout of the pieces across the workspaces. A video of this trial can be seen in https://youtu.be/nI6yCEVWJVI. Figure 8.10 shows the activation of the OML fields at the beginning of the trial. The thrusters were distributed by the three workspaces using a different layout, which implies that the actions selected by the robot to insert each thruster should be different. Figure 8.11 shows a sequence of snapshots describing the actions selected at each step of the construction. The thrusters are distributed in the workplace according to the scenario of Figure 8.11a. The first sub-goal consists of inserting the Yellow thruster, which lays on the Robot Workspace. Consequently, Sawyer grabs and inserts the piece in the structure (Figure 8.11b). The insertion of Yellow triggers the next sub-goal - inserting Pink - and since the Pink thruster lays on the human’s side and the robot cannot insert it, Sawyer instructs: “I think You should grab and plug the Pink thruster”. The experiment continued until the construction was finalized. The decisions that emerged in the Action Execution Layer were correct and in accordance with the location of each thruster, following the expected sequence of sub-goals.
Chapter 8. Extending the models to incorporate workspace information and action selection 93 Shared Workspace Robot Workspace Human Workspace BA G Y B R P O LB LG ush Figure 8.10: Test number 2 - Activation profile of the OML fields at the beginning of the construction. Blue, Orange, Pink and Light Green are placed in the Human Workspace; Green, Yellow and Red in the Robot Workspace; and finally Light Blue belongs to the Shared Workspace.
94 Chapter 8. Extending the models to incorporate workspace information and action selection (a) I think that I should grab and plug the Yellow thruster (b) I think that You should grab plug the Pink thruster (c) I think You should give me the Orange thruster (d) I think You should grab and plug the Light Green thruster (e) I think I should grab and plug the Green thruster (f) I think I should give you the Red thruster (g) I think You shoould grab and plug the Blue thruster (h) I think You should grab and plug the Light Blue thruster (i) Figure 8.11: Test number 2 - snapshots illustrating the sequence of actions during the second test.
Chapter 8. Extending the models to incorporate workspace information and action selection 95 8.2.3 Test number 3: What if there is a missing piece? The previous tests proved that it is possible to combine information from other layers to build an architecture for HRC in a real construction scenario. However, it is also important to evaluate the system’s response when there is an item missing and what are the implications in the construction. In the third test, the Green thruster was removed from the workplace - layout A -, previously used in the first test (see Figure 8.8a). Therefore, the sub-population encoding the Green piece has no activity in any of the OML fields (Figure 8.12). A video of this trial is available at https://youtu.be/QO1ZqSpotfs. Shared Workspace Robot Workspace Human Workspace BA G Y B R P O LB LG ush Figure 8.12: Test number 3 - Activation profile of the OML fields at the beginning of the construction. The Green thruster is missing from the workplace. The first four steps of the construction were the same used in the first test. Sawyer and its human co-worker followed the same steps illustrated in Figures 8.8b-e to insert the Yellow, Pink, Orange and Light Green thrusters. At this step, the next sub-goal, according to the learned sequence, should be the insertion of the Green piece. However, Green is not available in any of the workspaces. The AEL activation profile after inserting the Light Green thruster is depicted in Figure 8.13a. Since the sub-neuronal population encoding the Green piece did not receive input from the Object Memory Layer, the pre-shaped activation is too low compared to other sub-populations. Therefore, the winning decision goes to the Light Blue that had already received excitatory input triggered by the Pink and Orange sub-populations (Figure 8.13b).
96 Chapter 8. Extending the models to incorporate workspace information and action selection RI HI HHO RHO BA G Y B R P O LB LG Action Execution Layer color activation action (a) AEL activation profile (b) Robot verbalizes to its co-worker that she should insert the Light Blue thruster Figure 8.13: Sawyer’s decision in the fifth step of the construction. Since the Green piece is not available, the next item according to the information stored in SL - Light Blue - is retrieved because it has enough activation to be recognized in the AEL as a valid sub-goal to continue the construction. After placing the Light Blue, only two pieces remain in the workplace: Blue and Red. However, they cannot be placed in the structure without inserting the Green first. Figure 8.14 illustrates the result of the decision process at this step. None of the available items in the workspaces received enough input to evolve as a bump of activity in AEL (Figure 8.14a). From the input received from the OML and SL, the system recognizes that the structure is not yet completed. The absence of activity in AEL, combined with the previous information, leads the robot to realize that there is a missing item. Therefore, the construction cannot be completed (Figure 8.14b). To continue the task, the human co-worker brings the Green piece and places it in her workspace, triggering a peak of activity in the sub-population encoding the Green. Subsequently, the input from OML causes activation in the corresponding sub-population of AEL, and the model retrieves the insertion of Green as the next sub-goal (Figure 8.15). The task continued with the insertion of the Red and Blue thrusters. The final sequence used in the task was the following: Yellow ⇒Pink ⇒Orange ⇒Light Green ⇒Light Blue ⇒Green ⇒Red ⇒Blue
Chapter 8. Extending the models to incorporate workspace information and action selection 97 RI HI HHO RHO BA G Y B R P O LB LG Action Execution Layer color activation action (a) AEL ativation profile I cannot complete the structure, please bring the missing piece (b) Robot verbalizes to its co-worker that it is not possible to complete the structure without the missing item Figure 8.14: Sawyer’s decision in the sixth step of the construction. None of the available items had enough activation to trigger a new decision. The model recognizes a long period without activation as either the end of the task or an impossibility to complete it caused by missing items. Since there are still items in the OML field, the robot realizes that a piece is missing from the workplace. RI HI HHO RHO BA GY B R P O LB LG Action Execution Layer color activation action (a) AEL ativation profile I think You should grab and give me the Green thruster (b) Sawyer verbalizes to its co-worker that he should pass the Green piece to the robot Figure 8.15: New decision in the sixth step of the construction. The input from the Green is now given by the OML. A bump of activity emerges in the AEL sub-population encoding the Green. The robot requests its co-worker to pass the Green so Sawyer can insert it.
98 Chapter 8. Extending the models to incorporate workspace information and action selection 8.3 Discussion The experience presented in this Chapter had two main objectives: 1) use of knowledge about the construction sequence learned in Chapter 7 integrated into the cognitive architecture for Human-Robot joint action; and 2) validating the systems’ architecture to represent workspace information and action selection (now modeled as a two-dimensional field) in the real HRC scenario. The Action Execution Layer implemented was formalized as a two-dimensional Dynamic Neural Field representing the dimensions “color” and “action”. The Sequence Layer provided task-relevant information to the dimension “color” during the trials to infer the color of the piece that should be inserted at each step. Two additional layers were incorporated to add information regarding the actions that should be taken by Sawyer and its co-worker in the construction of the structure. The Object Memory Layer encodes the item’s location during the construction, marking the pieces placed in each workspace. The Executable Tasks Layer represented the actions that could be performed by Sawyer. By combining information from both layers, the system could select the most suitable action at each step of the task. The use of a two-dimensional field to aggregate information from different sources allowed to represent two different features in the same field and compute the possible decisions for the different combinations of “color” and “action”. This type of representation was also employed in robotic applications by Faubel and Schöner (2008) to represent objects using a small number of features, showing how two-dimensional fields can be used in this type of application to represent information and/or make decisions. The experiments conducted during the first and second tests validated the architecture for different layouts, confirming that the model can output correct decisions taking into consideration the information provided by the different layers. A third test was performed to study the architecture’s behavior facing a situation where items were missing from the workspace environment. The results proved that the architecture developed can deal with this case. When facing a situation in which the Green piece was not present in any workspace, the system was able to retrieve a valid sub-goal - the insertion of Light Blue - due to the input received from the SL, where the task-constraints were previously acquired from the experiments performed in Chapter 7. Subsequently, when there were no more valid insertions to be made, the system was able to recognize that the structure was not complete and, combining information from the OML, realize that there was an item missing. After the human co-worker places the Green thruster back into the workspace, the system was able to continue the construction successfully. The OML and ETL connections to AEL (see Figure 8.6) were pre-defined. However, for future work,
Chapter 9. Towards learning sequences with time constraints 105 9.3.1 Learning the sequence order and timing During the demonstration process, when the system detects that one of the thrusters is being inserted, an input stimulus is generated in the location of the population of neurons encoding the respective colored thruster, which leads to a bump of activity in the uSM field, forming a peak that grows gradually as a function of time. Figure 9.4 pictures the demonstration experiment performed, where both tutors show to the robotic co-worker how to assemble the structure. In the scenario displayed in Figures 9.4a and 9.4b, the pieces are distributed in the work table according to Layout A. A video of this trial can be seen in the following link: https://youtu.be/YTZTDJzzGYw. Next, Figures 9.4c and 9.4d show the Sequence Memory fields stored during the demonstration, where the amplitude of the bumps encodes the serial order of the inserted thrusters, with the highest peak (orange) being the color of the first inserted piece and the shortest one (light blue) being the last. Although the sequence used by both tutors is the same, the intervals of time between each assembly step in both trials are considerably different, which will be demonstrated in section 9.3.2. (a) Older tutor inserting the Orange thruster (1st piece) (b) Younger tutor inserting the Yellow thruster (3rd piece) Green Yellow Blue Red Pink Orange Light Light Blue Green uSTM sSTM hSTM Green Yellow Blue Red Pink Orange Light Light uSM s SM h SM (c) Sequence Memory Field A demonstrated by the Older tutor Blue Green Green Yellow Blue Red Pink Orange Light Light uSM s SM h SM (d) Sequence Memory Field A demonstrated by the Younger tutor Figure 9.4: Two different tutors assembling Sequence A: Orange ÕGreen ÕYellow ÕPink ÕRed ÕBlue Õ Light Green ÕLight Blue.
106 Chapter 9. Towards learning sequences with time constraints Subsequently, Figure 9.5 portraits the demonstration of two other sequences, this time by the younger tutor. In Figure 9.5a, the thrusters are distributed in the table according to Layout B, so the tutor starts the construction by inserting the pink thruster, opting for a different assembly sequence. A complete video of this trial can be found at https://youtu.be/0F8T_d_y2xs. Likewise, in the scenario displayed in Figure 9.5b, the tutor was asked to build the structure starting from Layout C, which resulted in a new sequence. After the demonstration of each trial, the information stored in both fields - Sequence Memory B (Figure 9.5c) and Sequence Memory C (Figure 9.5d) - is stored in the model, so afterward Sawyer can use the memorized sequences to teach inexperienced workers, taking into account the Layout of the pieces that constitute the sequence. (a) Younger tutor assembling Sequence B, starting from the Pink thruster (1st piece). (b) Younger tutor assembling Sequence C, inserting the Pink thruster (6th piece) Green Yellow Blue Red Pink Orange Light Light Blue Green uSM s SM h SM Green Yellow Blue Red Pink Orange Light Light (c) Sequence Memory Field B: Pink ÕYellow ÕLight Green ÕOrange ÕGreen ÕRed ÕBlue ÕLight Blue Green Yellow Blue Red Pink Orange Light Light Blue Green uSM s SM h SM Green Yellow Blue Red Pink Orange Light Light (d) Sequence Memory Field C: Green ÕYellow ÕBlue ÕOrange ÕRed ÕPink ÕLight Green ÕLight Blue Figure 9.5: Younger tutor assembling Sequence B and C.
Chapter 9. Towards learning sequences with time constraints 107 9.3.2 Recalling the memorized sequences In order to verify if the system was able to store the time interval between each construction step, two workers with no previous knowledge of the task were asked to collaborate with Sawyer and follow its instructions to learn the assembly steps of the sequence A, previously demonstrated by the two previous tutors, with different time intervals. The robot was programmed to verbalize each step, taking into consideration the timing between each insertion. Figures 9.6a and 9.6b illustrate Sawyer as a tutor, guiding two different workers through the construction steps, while Figures 9.6c and 9.6d illustrate the time course of the maximal activation of each sub-population of neurons when the task was assembled by each worker, according to the instructions given by Sawyer. A video example can be found at https://youtu.be/Vn0_1raKq4I. Each instruction is verbalized when each sub-population of neurons encoding the respective thruster in the Sequence Recall field reaches the threshold level, as stated in section 9.2. As shown in both figures, all subneuronal populations seem to have a pre-activation strength that respects the temporal order of the task steps, learned during the demonstration process. The first thrusters (orange) are inserted at t=30s (older tutor trial) and t=27s (younger tutor trial), while the last ones (light blue) are placed at t=97s (older tutor trial) and t=85s (younger tutor trial). By comparing both trials (Figure 9.6e), one can see that the older worker was slower than the younger in the majority of the steps and the younger worker took less time to perform the full task, as it should be expected since the co-workers are following the order and time memorized in the previous demonstrations (Figure 9.4).
108 Chapter 9. Towards learning sequences with time constraints Insert the Pink thruster (a) Older worker following Sawyer’s instruction to assemble Sequence A Insert the Light Blue thruster (b) Younger worker following Sawyer’s instruction to assemble Sequence A -10 0 8 time(s) 30 40 50 60 70 20 80 90 (c) Older worker: Total time of 67s (slower) time(s) 30 40 50 60 70 20 -10 0 8 80 (d) Younger worker: Total time of 58s (faster) 0 2 4 6 8 10 12 time(s) Orange Green Yellow Pink RedBlue Green Yellow Pink Red Blue Light Green Light Green Light Blue Older Younger uSM uSR uSM uSR (e) Contrast between the time intervals of consecutive assembly steps during the construction of the sequence A, performed by an older (slower) and a younger (faster) worker Figure 9.6: Co-worker Sawyer recalls the memorized sequence, respecting the time interval of each demonstration.
Chapter 9. Towards learning sequences with time constraints 109 9.4 Discussion In this Chapter, a rapid learning system that allows the robot to memorize knowledge about ordinal and temporal aspects of sequential tasks and store it in a single Dynamic Neural Field was proposed and tested. This model allows codifying two different features of the task - order and time - in a unique representation that consists of the level of activation of each sub-neuronal population encoding each sub-goal of the task. After learning, the recall of the memorized information can be used by the robot to instruct inexperienced human operators, in the same context. Similar to the Short-Term Memory mechanism presented in Chapter 7, a single demonstration is sufficient for the robot to memorize the ordinal and temporal aspects of a sequence, thus minimizing the efforts of the human tutor to train the robot. Moreover, as seen in the same Chapter, the recall of the stored information can be used as input to a long-term learning mechanism that allows the robot also to learn the connections between the several sub-tasks. As future work, it should be explored if this new model could replace the previous STM process to allow the system to also learn the time constraints between the several sub-goals of the task. Endowing a collaborative robot with the ability to predict, not only the sequence structure but also the time interval between sequential events is vital for efficient coordination of actions and decisions in time, in Human- Robot joint action tasks. It allows the robot to anticipate what the human operator will need, or will do, and when it should start an adequate complementary behavior in the service of the joint task.
Part V General discussion and future work 110
Chapter 10 General discussion and Future Work 10.1 Conclusions The ability to acquire information and learn from the environment is proved to be a fundamental capacity for the emerging generations of collaborative robots that are expected to work side-by-side with humans in several tasks. Inspired by neuro-cognitive findings on how humans learn from each other, some roboticists have started to use the Dynamic Neural Fields framework to model cognitive capacities in robots. Learning from demonstration and acquiring sequential information are the key paradigms explored in this dissertation. The experiments presented in Part IV, applied DNF-based models to endow the collaborative robot Sawyer with the capacity to extract task-relevant information from demonstration in real scenarios where Robot and Human work together to achieve mutual goals. A model for acquiring the serial order of a task is proposed in Chapter 7, inspired by previous work conducted in the Mobile and Anthropomorphic Robotics Laboratory. The model was validated in a scenario where Sawyer acquires, from tutor demonstration and verbal feedback, the sequential structure and the precedence relations between sub-goals of an assembly task. By adding a Short-Term Memory mechanism for memorizing sequential information, it was possible to reduce the number of demonstration trials necessary to train the network for learning and thus reducing the workload for the human tutor. The results were satisfactory and revealed that Sawyer could acquire the constraints of the task successfully. Furthermore, the learned information was employed in an architecture that incorporated workplace knowledge 111
112 Chapter 10. General discussion and Future Work in a scenario where Human and Robot had to coordinate their actions in space to insert each one of the pieces that compose the structure. The additional layers provided information regarding object location to help the robotic system in selecting the most suitable action in each step. For that, a two-dimensional DNF was implemented to represent in a single field the two distinct features of the new process: the color of the next piece and the action that need to be performed to insert it. The output of the system satisfied the expected results, also validating the architecture in a situation where one of the pieces was missing. The benefit of this new model is that, instead of stopping when facing an unpredictable situation, the system takes advantage of the knowledge of the task acquired before to continue and compute a different decision considering the state of the workplace, which brings greater flexibility for the task. For better coordination of actions in HRC scenarios, another critical capability is to know the time interval between events. Chapter 9 describes the first steps towards learning sequential information with time constraints. It follows the work of Ferreira et al. (2014) and Wojtak et al. (2018) that started to employ the DNF-framework to apply temporal information in robotic tasks. The tests performed pictured a scenario where the robot memorizes, in a single demonstration, information regarding the temporal and sequential order of the task codified in the same DNF representation. The model is able to store several multi-bump patterns in different fields according to the context associated with each demonstration, which in the case implemented corresponded to the different workspace layouts and time-behaviors of the different tutors. The results of this work allowed the robot to evolve from being in a learning position to be in a teaching position and instruct inexperienced co-workers facing similar contexts. That means that the robot can rapidly acquire information and transpose it to other co-workers without having to be pre-programmed for any task, having learned the sequence and time intervals entirely from the demonstrations. 10.2 Future Work Although the work performed has achieved good results and the objectives for this dissertation have been achieved, there is room for improvement and exploration of the models developed. While the models presented in Chapter 7 allowed to successfully acquire the connections between the several sub-goals from the demonstration, the architecture of Chapter 8 had mostly pre-defined connections between its several layers. It would be important to explore how the connections between item’s representations in the Object Memory Layer and Executable Tasks Layer to the decision process in the Action Execution Layer (Figure 8.6)
Chapter 10. General discussion and Future Work 113 can be obtained without the need to hand-code them. The possibility of acquiring these connections also from demonstration remains to be explored. Moreover, while tests were made to study how the architecture of Figure 8.1 behaves when one piece is missing from the workplace, further experiments should be made to test what would be the output of the models in the absence of multiple pieces. Additionally, Chapter 9 provided insights on a different matter: acquiring temporal order of a sequential task, also from demonstration. The models presented had the purpose of providing the base mechanism for coordinating actions and decisions in time in joint tasks between robots and humans. Although proving to be successful in memorizing the time interval between successive events in a sequence, it remains unexplored the possibility of acquiring the temporal constraints of a multiple-sequential task, the same way the system acquires the precedence relations between sub-goals in Chapter 7. That would imply the estimation/extrapolation of the interval of times between events that were not sequentially observed, a feature that could be incorporated in the architecture of Chapter 8 to allow the coordination of decisions and actions not only in space but also in time. With the integration of temporal information, it could be possible for the Robot to anticipate its human co-worker actions and starting handing over the pieces. That would allow Robot and Human to construct the structure using simultaneous motor-actions, increasing the autonomy of the Robot, and reducing the construction duration.
Part VI Appendices 114
Bibliography Ackerman, E. (2019). A Robot That Explains Its Actions Is a First Step Towards AI We Can (Maybe) Trust - IEEE Spectrum. Retrieved January 10, 2020, from https://spectrum.ieee.org/automaton/robotics/artificialintelligence/a-robot-that-explains-its-actions Amari, S.-i. (1977). Dynamic of pattern formation in lateral-inhibition type neural fields. Biological Cybernetics , 27 , 77–87. https://doi.org/10.1007/BF00337259 Amit, R., & Mataric, M. (2002). Learning movement sequences from demonstration, In Proceedings 2nd International Conference on Development and Learning. ICDL 2002 . https://doi.org/10.1109/DEVLRN. 2002.1011867 Argall, B. D., Chernova, S., Veloso, M., & Browning, B. (2009). A survey of robot learning from demonstration. Robotics and Autonomous Systems , 57 (5), 469–483. https://doi.org/10.1016/j.robot.2008.10.024 Bandura, A. (1977). Social Learning Theory . Englewood Cliffs, NJ: Prentice Hall. Bicho, E., Erlhagen, W., Sousa, E., Louro, L., Hipolito, N., Silva, E. C., Silva, R., Ferreira, F., MacHado, T., Hulstijn, M., Maas, Y., De Bruijn, E., Cuijpers, R. H., Newman-Norlund, R., Van Schie, H., Meulenbroek, R. G., & Bekkering, H. (2012). The power of prediction: Robots that read intentions, In IEEE International Conference on Intelligent Robots and Systems . https://doi.org/10.1109/IROS.2012.6386297 Bicho, E. (1999). Dynamic Approach to Behavior-Based Robotics: Design, Specification, Analysis, Simulation and Implementation (Doctoral dissertation). University of Minho. http://repositorium.sdum.uminho.pt/ handle/1822/210 Bicho, E., Erlhagen, W., Louro, L., & Costa e Silva, E. (2011a). Neuro-cognitive mechanisms of decision making in joint action: A human-robot interaction study. Human Movement Science , 30 (5), 846–868. https: //doi.org/10.1016/j.humov.2010.08.012 121
122 Bibliography Bicho, E., Erlhagen, W., Louro, L., Costa e Silva, E., Silva, R., & Hipólito, N. (2011b). A dynamic field approach to goal inference, error detection and anticipatory action selection in human-robot collaboration. In New Frontiers in Human-Robot Interaction (Advances in Interaction Studies) (pp. 135–164). https://doi.org/ 10.1075/ais.2.10bic Bicho, E., Louro, L., & Erlhagen, W. (2010). Integrating verbal and nonverbal communication in a dynamic neural field architecture for human-robot interaction. Frontiers in Neurorobotics , 4 . https://doi.org/10.3389/ fnbot.2010.00005 Bicho, E., Louro, L., Hipólito, N., & Erlhagen, W. (2009). A dynamic field approach to goal inference and error monitoring for human-robot interaction, In Proceedings of the International Symposium on New Frontiers in Human-Robot Interaction AISB (Adaptive & Emergent Behaviour & Complex Systems) Convention . http://hdl.handle.net/1822/10306 Bicho, E., Mallet, P., & Schöner, G. (2000). Target Representation on an Autonomous Vehicle with Low-Level Sensors. The International Journal of Robotics Research , 19 (5), 424–447. https://doi.org/10.1177/ 02783640022066950 Billard, A., Calinon, S., Dillmann, R., & Schaal, S. (2008). Robot programming by demonstration. In Springer Handbook of Robotics (pp. 1371–1394). https://doi.org/10.1007/978-3-540-30301-5_60 Breazeal, C., Gray, J., & Berlin, M. (2009). An embodied cognition approach to mindreading skills for socially intelligent robots. International Journal of Robotics Research , 28 (5), 656–680. https://doi.org/10. 1177/0278364909102796 Brown, G. D., Hulme, C., & Preece, T. (2000). Oscillator-Based Memory for Serial Order. Psychological Review , 107 (1), 127–181. https://doi.org/10.1037/0033-295X.107.1.127 Butterfield, J., Osentoski, S., Jay, G., & Jenkins, O. C. (2010). Learning from demonstration using a multi-valued function regressor for time-series data. 10th IEEE-RAS International Conference on Humanoid Robots , 328–333. https://doi.org/10.1109/ICHR.2010.5686284 Cakmak, M., & Thomaz, A. L. (2012). Designing robot learners that ask good questions, In Proceedings of the Seventh Annual ACM/IEEE International Conference on Human-Robot Interaction . https://doi.org/10. 1145/2157689.2157693
Bibliography 123 Calinon, S., Guenter, F., & Billard, A. (2007). On learning, representing, and generalizing a task in a humanoid robot. IEEE Transactions on Systems, Man, and Cybernetics, Part B: Cybernetics , 37 (2), 286–298. https://doi.org/10.1109/TSMCB.2006.886952 Chang, G. (2013). Robot Motion and Task Learning with Error Recovery . University of Waterloo. https://uwspace. uwaterloo.ca/handle/10012/7627 Chen, K., Kvasnicka, V., Kanen, P. C., & Haykin, S. (2001). Neural and adaptive systems: Fundamentals through simulations. IEEE Transactions on Neural Networks , 12 (3), 648–649. https://doi.org/10.1109/TNN. 2001.925574 Chernova, S., & Thomaz, A. L. (2014). Robot Learning from Human Teachers. Synthesis Lectures on Artificial Intelligence and Machine Learning , 8 (3), 1–121. https://doi.org/10.2200/S00568ED1V01Y201402AIM028 Cunha, A., Ferreira, F., Erlhagen, W., Sousa, E., Louro, L., Vicente, P., Monteiro, S., & Bicho, E. (2020). Towards endowing collaborative robots with fast learning for minimizing tutors’ demonstrations: What and when to do?, In Robot 2019: Fourth Iberian Robotics Conference . https://doi.org/10.1007/978-3-030- 35990-4_30 Curtis, C. E., & Lee, D. (2010). Beyond working memory: The role of persistent activity in decision making. Trends in Cognitive Sciences , 14 (5), 216–222. https://doi.org/10.1016/j.tics.2010.03.006 Dautenhahn, K., Nehaniv, C. L., Walters, M. L., Robins, B., Kose-Bagci, H., Mirza, N. A., & Blow, M. (2009). KASPAR - a minimally expressive humanoid robot for human-robot interaction research. Applied Bionics and Biomechanics . https://doi.org/10.1080/11762320903123567 Diedrichsen, J., & Kornysheva, K. (2015). Motor skill learning between selection and execution. Trends in Cognitive Sciences , 19 (4), 227–233. https://doi.org/10.1016/j.tics.2015.02.003 Dillmann, R. (2004). Teaching and learning of robot tasks via observation of human performance. Robotics and Autonomous Systems , 47 (2-3), 109–116. https://doi.org/10.1016/j.robot.2004.03.005 Ekvall, S., & Kragic, D. (2006). Learning task models from multiple human demonstrations. Proceedings - IEEE International Workshop on Robot and Human Interactive Communication , 358–363. https://doi.org/ 10.1109/ROMAN.2006.314460 Engels, C., & Schöner, G. (1995). Dynamic fields endow behavior-based robots with representations. Robotics and Autonomous Systems , 14 (1), 55–77. https://doi.org/10.1016/0921-8890(94)00020-3
124 Bibliography Erlhagen, W., Mukovskiy, A., Bicho, E., Panin, G., Kiss, C., Knoll, A., van Schie, H., & Bekkering, H. (2006). Goaldirected imitation for robots: A bio-inspired approach to action understanding and skill learning. Robotics and Autonomous Systems , 54 (5), 353–360. https://doi.org/10.1016/j.robot.2006.01.004 Erlhagen, W., & Bicho, E. (2006). The dynamic neural field approach to cognitive robotics. Journal of Neural Engineering , 3 (3), R36–R54. https://doi.org/10.1088/1741-2560/3/3/R02 Erlhagen, W., & Bicho, E. (2014). A dynamic neural field approach to natural and efficient human-robot collaboration. Neural Fields: Theory and Applications , 1–487. https://doi.org/10.1007/978-3-642-54593-1 Erlhagen, W., Mukovskiy, A., Bicho, E., Panin, G., Kiss, C., Knoll, A., Van Schie, H., & Bekkering, H. (2005). Action understanding and imitation learning in a robot-human task, In Artificial Neural Networks: Biological Inspirations – ICANN . https://doi.org/10.1007/11550822_42 Faubel, C., & Schöner, G. (2008). Learning to recognize objects on the fly: A neurally based dynamic field approach. Neural Networks , 21 (4), 562–576. https://doi.org/10.1016/j.neunet.2008.03.007 Ferreira, F. (2014). Multi-bump solutions in dynamic neural fields : Analysis and Applications (Doctoral dissertation). University of Minho. Ferreira, F., Erlhagen, W., & Bicho, E. (2011). A dynamic field model of ordinal and timing properties of sequential events. https://doi.org/10.1007/978-3-642-21738-8_42 Ferreira, F., Erlhagen, W., & Bicho, E. (2016). Multi-bump solutions in a neural field model with external inputs. Physica D: Nonlinear Phenomena , 326 , 32–51. https://doi.org/10.1016/j.physd.2016.01.009 Ferreira, F., Erlhagen, W., Sousa, E., Louro, L., & Bicho, E. (2014). Learning a musical sequence by observation: A robotics implementation of a dynamic neural field model. IEEE ICDL-EPIROB 2014 - 4th Joint IEEE International Conference on Development and Learning and on Epigenetic Robotics , 157–162. https: //doi.org/10.1109/DEVLRN.2014.6982973 Fong, T., Nourbakhsh, I., & Dautenhahn, K. (2003a). A Survey of Socially Interactive Robots: Concepts, Design, and Applications. Robotics and Autonomous Systems , 42 (3), 143–166. https://doi.org/10.1016/S0921- 8890(02)00372-X Fong, T., Thorpe, C., & Baur, C. (2003b). Collaboration, Dialogue, Human-Robot Interaction, In Robotics Research , Springer Berlin Heidelberg. https://doi.org/10.1007/3-540-36460-9_17
Bibliography 125 Garland, A., & Lesh, N. (2003). Learning hierarchical task models by demonstration . Technical Report TR2003- 01, Mitsubishi Electric Research Laboratories. http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10. 1.1.69.1211 Hebb, D. O. (1949). The organization of behavior: A neuropsychological theory . New York, Wiley. Henson, R. N. (1998). Short-Term Memory for Serial Order: The Start-End Model. Cognitive Psychology , 36 (2), 73–137. https://doi.org/10.1006/cogp.1998.0685 Houghton, G. (1990). The problem of serial order: A neural network model of sequence learning and recall. In Current research in natural language generation (pp. 287–319). USA, Academic Press Professional, Inc. https://dl.acm.org/doi/10.5555/103363.103622 International Federation of Robotics. (2018). Robots and the Workplace of the Future . https://ifr.org/papers/ robots-and-the-workplace-of-the-future Khamassi, M., Girard, B., Clodic, A., Sandra, D., Renaudo, E., Pacherie, E., Alami, R., & Chatila, R. (2016). Integration of action, joint action and learning in robotics cognitive architectures. Intellectica. Revue de l’Association pour la Recherche Cognitive. Nouvelles approches en Robotique Cognitive. , 65 . https: //doi.org/10.3406/intel.2016.1794 Kim, M.-G., & Suzuki, K. (2010). A card playing humanoid for understanding socio-emotional interaction, In Entertainment Computing - ICEC 2010 , Springer Berlin Heidelberg. https://doi.org/10.1007/978-3-642- 15399-0_2 Koenemann, J., Burget, F., & Bennewitz, M. (2014). Real-time imitation of human whole-body motions by humanoids, In 2014 IEEE International Conference on Robotics and Automation (ICRA) . https://doi.org/ 10.1109/ICRA.2014.6907261 Konidaris, G., Kuindersma, S., Grupen, R., & Barto, A. (2012). Robot learning from demonstration by constructing skill trees. International Journal of Robotics Research , 31 (3), 360–375. https://doi.org/10.1177/ 0278364911428653 Krüger, J., Bernhardt, R., & Surdilovic, D. (2006). Intelligent assist systems for flexible assembly. CIRP Annals - Manufacturing Technology , 55 (1), 29–32. https://doi.org/10.1016/S0007-8506(07)60359-X Kuniyoshi, Y., Inaba, M., & Inoue, H. (1994). Learning by watching: Extracting reusable task knowledge from visual observation of human performance. IEEE Transactions on Robotics and Automation , 10 (6), 799–822. https://doi.org/10.1109/70.338535
126 Bibliography Kyrarini, M., Haseeb, M. A., Ristić-Durrant, D., & Gräser, A. (2018). Robot learning of industrial assembly task via human demonstrations. Autonomous Robots , 43 (1), 239–257. https://doi.org/10.1007/s10514-018- 9725-6 Laing, C. R., Troy, W. C., Gutkin, B., & Ermentrout, G. B. (2002). Multiple Bumps in a Neuronal Model of Working Memory. SIAM Journal on Applied Mathematics . https://doi.org/10.1137/S0036139901389495 Lashley, K. (1951). The problem of serial order in behavior. Cerebral mechanisms in behavior , (7), 112–147. Lee, J. (2017). A survey of robot learning from demonstrations for human-robot collaboration. https://arxiv.org/ abs/1710.08789 Lek, S., & Park, Y. (2008). Artificial neural networks. In S. E. Jørgensen & B. D. Fath (Eds.), Encyclopedia of ecology (pp. 237–245). Oxford, Academic Press. https://doi.org/https://doi.org/10.1016/B978- 008045405-4.00173-7 Lek, S., & Guégan, J. F. (1999). Artificial neural networks as a tool in ecological modelling, an introduction. Ecological Modelling , 120 (2-3), 65–73. https://doi.org/10.1016/S0304-3800(99)00092-7 Levas, A., & Selfridge, M. (1984). A user-friendly high-level robot teaching system, In Proceedings. 1984 IEEE International Conference on Robotics and Automation . https://doi. org / 10 . 1109 /ROBOT.1984. 1087193 Lewandowsky, S., & Murdock, B. B. (1989). Memory for Serial Order. Psychological Review , 96 (1), 25–57. https: //doi.org/10.1037/0033-295X.96.1.25 Lind, J., Ghirlanda, S., & Enquist, M. (2019). Social learning through associative processes: A computational theory. Royal Society Open Science , 6 (3). https://doi.org/10.1098/rsos.181777 Malheiro, T., Bicho, E., Machado, T., Louro, L., Monteiro, S., Vicente, P., & Erlhagen, W. (2017). A software framework for the implementation of dynamic neural field control architectures for human-robot interaction, In 2017 IEEE International Conference on Autonomous Robot Systems and Competitions, ICARSC 2017 . https://doi.org/10.1109/ICARSC.2017.7964067 Mcclelland, J., Mcnaughton, B., & O’Reilly, R. (1995). Why there are complementary learning systems in the hippocampus and neocortex: Insights from the successes and failures of connectionist models of learning and memory. Psychological Review , 102 , 419–57. https://doi.org/10.1037/0033-295X.102.3.419 McCulloch, W. S., & Pitts, W. (1943). A logical calculus of the ideas immanent in nervous activity. The Bulletin of Mathematical Biophysics , 5 (4), 115–133. https://doi.org/10.1007/BF02478259
Bibliography 127 Misra, D. K., Sung, J., Lee, K., & Saxena, A. (2016). Tell me Dave: Context-sensitive grounding of natural language to manipulation instructions. International Journal of Robotics Research , 35 (1-3), 281–300. https:// doi.org/10.1177/0278364915602060 Miura, J., Iwase, K., & Shirai, Y. (2005). Interactive teaching of a mobile robot. Proceedings of the IEEE International Conference on Robotics and Automation , 3378–3383. https://doi.org/10.1109/ROBOT.2005. 1570632 Monteiro, S., Vaz, M., & Bicho, E. (2004). Attractor dynamics generates robot formations: From theory to implementation. IEEE International Conference on Robotics and Automation , 3 , 2582–2586. https://doi. org/10.1109/ROBOT.2004.1307450 Murdock, B. B. (1995). Developing TODAM: Three models for serial-order information. Memory & Cognition , 23 (5), 631–645. https://doi.org/10.3758/BF03197264 Nicolescu, M. N., & Mataric, M. J. (2003). Natural Methods for Robot Task Learning: Instructive Demonstrations, Generalization and Practice. Proceedings of the International Conference on Autonomous Agents , 2 (May 2014), 241–248. https://doi.org/10.1145/860575.860614 Niekum, S., Osentoski, S., Konidaris, G., & Barto, A. G. (2012). Learning and generalization of complex tasks from unstructured demonstrations, In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems , IEEE. https://doi.org/10.1109/IROS.2012.6386006 Ollis, M., Huang, W. H., & Happold, M. (2007). A bayesian approach to imitation learning for robot navigation, In 2007 IEEE/RSJ International Conference on Intelligent Robots and Systems . https://doi.org/10.1109/ IROS.2007.4399220 Page, M. P. A., & Norris, D. (1998). The Primacy Model: A New Model of Immediate Serial Recall. Psychological Review , 105 (4), 761–781. https://doi.org/10.1037/0033-295X.105.4.761-781 Pardowitz, M., Knoop, S., Dillmann, R., & Zollner, R. D. (2007). Incremental learning of tasks from user demonstrations, past experiences, and vocal comments. IEEE Transactions on Systems, Man, and Cybernetics, Part B: Cybernetics , 37 (2), 322–332. https://doi.org/10.1109/TSMCB.2006.886951 Rethink Robotics. (2018). Sawyer collaborative robot. Retrieved July 2, 2019, from http://www.rethinkrobotics. com/sawyer/
128 Bibliography Salem, M., Eyssel, F., Rohlfing, K., Kopp, S., & Joublin, F. (2013). To err is human(-like): Effects of robot gesture on perceived anthropomorphism and likability. International Journal of Social Robotics , 5 (3), 313–323. https://doi.org/10.1007/s12369-013-0196-9 Sammut, C., & Webb, G. I. (Eds.). (2017). Unsupervised learning. In Encyclopedia of Machine Learning and Data Mining (pp. 1304–1304). Boston, MA, Springer US. https://doi.org/10.1007/978-1-4899-7687- 1_976 Sandamirskaya, Y. (2014). Dynamic neural fields as a step toward cognitive neuromorphic architectures. Frontiers in Neuroscience , 7 (8 JAN), 1–13. https://doi.org/10.3389/fnins.2013.00276 Sandamirskaya, Y., & Schöner, G. (2010). An embodied account of serial order: How instabilities drive sequence generation. Neural Networks , 23 (10), 1164–1179. https://doi.org/10.1016/j.neunet.2010.07.012 Sandry, E. (2015). Re-evaluating the form and communication of social robots. International Journal of Social Robotics , 7 (3), 335–346. https://doi.org/10.1007/s12369-014-0278-3 Sato, Y., Bernardin, K., Kimura, H., & Ikeuchi, K. (2002). Task analysis based on observing hands and objects by vision, In IEEE/RSJ International Conference on Intelligent Robots and Systems . https://doi.org/10. 1109/IRDS.2002.1043898 Scholtz, J. (2003). Theory and evaluation of human robot interactions, In Proceedings of the 36th Annual Hawaii International Conference on System Sciences . https://doi.org/10.1109/HICSS.2003.1174284 Schöner, G., Dose, M., & Engels, C. (1995). Dynamics of behavior: Theory and applications for autonomous robot architectures. Robotics and Autonomous Systems , 16 (2), 213–245. https://doi.org/10.1016/0921- 8890(95)00049-6 Seitz, A. R., & Dinse, H. R. (2007). A common framework for perceptual learning. Current Opinion in Neurobiology , 17 (2), 148–153. https://doi.org/10.1016/j.conb.2007.02.004 Sheridan, T. B. (1997). Eight ultimate challenges of human-robot communication, In Proceedings 6th IEEE International Workshop on Robot and Human Communication . https://doi.org/10.1109/ROMAN.1997. 646944 Sheridan, T. B. (2016). Human–robot interaction: Status and challenges. Human Factors , 58 (4), 525–532. https: //doi.org/10.1177/0018720816644364 Silva, R. (2008). Design e construção de um robot antropomórfico. http://hdl.handle.net/1822/9102
Bibliography 129 Sousa, E. (2014). On Learning and Generalizing Representations in a Dynamic Field Based Architecture for Human- Robot Interaction (Doctoral dissertation). University of Minho. http://repositorium.sdum.uminho.pt/ handle/1822/36642 Sousa, E., Bicho, E., & Erlhagen, W. (2009). On the learning of inter-field connections in a dynamic field architecture for human-robot collaboration. 9th Conference on Autonomous Robot Systems and Competitions . Sousa, E., Erlhagen, W., & Bicho, E. (2014). On observational learning of hierarchies in sequential tasks: A dynamic neural field model. In Computational Models of Cognitive Processes (pp. 196–210). https: //doi.org/10.1142/9789814458849_0015 Sousa, E., Erlhagen, W., Ferreira, F., & Bicho, E. (2015). Off-line simulation inspires insight: A neurodynamics approach to efficient robot task learning. Neural Networks , 72 , 123–139. https://doi.org/10.1016/j. neunet.2015.09.002 Sutton, R. S., & Barto, A. G. (1998). Introduction to reinforcement learning (1st). Cambridge, MA, USA, MIT Press. Veeraraghavan, H., & Veloso, M. (2008). Teaching sequential tasks with repetition through demonstration. Proceedings of the 7th international joint conference on Autonomous agents and multiagent systemsVolume 3 , 3 (Aamas), 1357–1360. http://portal.acm.org/citation.cfm?id=1402821.1402871 Widrow, B., & Hoff, M. E. (1988). Adaptive switching circuits. In Neurocomputing: Foundations of research (pp. 123–134). Cambridge, MA, USA, MIT Press. https://dl.acm.org/doi/10.5555/103363.103622 Wiese, E., Metta, G., & Wykowska, A. (2017). Robots as intentional agents: Using neuroscientific methods to make robots appear more social. Frontiers in Psychology , 8 , 1663. https://doi.org/10.3389/fpsyg.2017. 01663 Wise, M. (2018). The 5 stages of acceptance as robots enter the workforce - World Economic Forum. Retrieved January 14, 2020, from https://www.weforum.org/agenda/2018/10/robots-are-coming-to-your- workplace-here-s-how-to-get-along-with-them/ Wojtak, W., Ferreira, F., Louro, L., Bicho, E., & Erlhagen, W. (2018). Towards temporal cognition for robots: A neurodynamics approach. 7th Joint IEEE International Conference on Development and Learning and on Epigenetic Robotics, ICDL-EpiRob 2017 , 407–412. https://doi.org/10.1109/DEVLRN.2017.8329836 Zador, A. M. (2019). A critique of pure learning and what artificial neural networks can learn from animal brains. Nature Communications , 10 (1). https://doi.org/10.1038/s41467-019-11786-6
130 Bibliography Zhao, L., Lawhorn, R., Patil, S., Susanibar, S., Lu, L., Wang, C., & Ouyang, B. (2017). Multiform adaptive robot skill learning from humans , Vol. 1. August . https://doi.org/10.1115/DSCC2017-5114