<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>How to Teach AI Programming for Elementary Students? - A Case Study ofAI Conversation Robot Programming at UEC Programming School</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Hiromitsu Yamaguchi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Hirofumi Abe</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Toshiyuki Shimazaki</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kenzo Ozaki</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Masayuki Numao</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Listing</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>: AIML</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Communication Engineering and Informatics, The University of Electro-Communications</institution>
        </aff>
      </contrib-group>
      <fpage>39</fpage>
      <lpage>40</lpage>
      <abstract>
        <p>In order to increase the number of human resources with programming thinking, programming education has become indispensable from elementary school students in Japan as well. To utilize communication robots for programming education Developed a scripting language for communication robots that even beginners can program I actually used it in a programming class.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>1 Hello.
2 I am a robot. Nice to meet you.</p>
      <p>Code written in natural language is spoken in order from
the top. Since it can be written in natural language, anyone
who can input using the keyboard can write it. No special
programming knowledge is required.</p>
      <p>Listing 2 is an example of conditional branching. This
script says ”Hello” when the robot recognizes ”Greeting”
by voice. When he recognizes other words, he says, ”I see.”
Lines with ”/” at the beginning of the line are command
lines. The line with ”:” at the beginning becomes a label and
can be specified as the transition destination of the goto or if
command. Lines beginning with ”//” are comment lines.
Listing 2: Conditional branching example</p>
      <p>Comparing the two in Listing 3 and Listing 4 It can be
seen that the script language devised this time can easily
describe the same contents.</p>
      <p>XML is a difficult grammar for beginners and elementary
school students, and it is difficult to notice grammar
mistakes. The script language used this time can be spoken in
natural language, Since the control syntax is also the
minimum number of characters, I thought that it could be used
as a language for programming education.</p>
    </sec>
    <sec id="sec-2">
      <title>Evaluation robot configuration</title>
      <p>Figure 1 shows a robot developed to evaluate this script
language. The robot has a built-in Linux-based single board
computer and A speaker, a microphone, a motor, a button
with LED, and a monitor are connected.</p>
      <p>The single board computer has a built-in web server and
The image specified in the script language can be displayed
via a web browser. Because the script language can also be
edited via a web browser No special development
environment is required.</p>
    </sec>
    <sec id="sec-3">
      <title>Example of use in programming classroom</title>
      <p>Used as a teaching material in the summer course of the
University of Electro-Communications programming class held
in August 2018. The target students were 50 students from
the 5th grade of elementary school to the 2nd grade of high
school, and each class was held for 2 days, for a total of 4
days.</p>
      <sec id="sec-3-1">
        <title>Understanding the network</title>
        <p>The main theme of the first day was network learning. The
evaluation robot has built-in WiFi and can connect to the
Internet. Have students understand how TCP / IP, IP addresses
and ports work They learned to operate their robot remotely
from their PC.</p>
        <p>Because all the robots are connected to the same WiFi
router Students who understand how IP addresses and ports
work Noticed that other people’s robots can also be
operated remotely they started to operate another student’s robot
remotely. The student noticed that his robot was being
operated remotely with others and changed a password on his
robot.</p>
        <p>From this experience, students learned the importance of
security in networks.</p>
      </sec>
      <sec id="sec-3-2">
        <title>Understanding control syntax</title>
        <p>On the second day, they developed a script that gives a theme
and makes the presentation a robot.</p>
        <p>First of all, We told the students that the robot would
speak when you typed Japanese characters into the editor.
Students who understand that the robot speaks when
entering a Japanese document. Then start trying what happens
when you enter a random sentence. They understood that
you can make the robot talk while having fun.</p>
        <p>Next, I gave some simple control syntax that are label and
goto command. Listing 5 shows the sample code.</p>
        <p>When this scenario is executed, the robot repeatedly says
”Hello”. Students enjoyed the behavior of a broken robot
and understood loop control.
1
2
3
:LOOP
Hello
/goto/:LOOP</p>
      </sec>
      <sec id="sec-3-3">
        <title>Creating a presentation</title>
        <p>Finally, the students actually developed a thematic
presentation program. You can make a robot give a presentation
by creating a program. The theme of the presentation was
”Thanks to my family, which I can’t usually say.” Listing 6
shows an example presentation script.</p>
        <p>Listing 6: Presentation example
/image/title.png
Gratitude.</p>
        <p>I’m Taro Yamada,
5th grade at Tokyo Elementary School.
/image/slide1.png
Dad, mom, thank you for your hard work
every day.</p>
        <p>A presentation is made by arranging the combinations of
slide images and utterances in order. The image command is
a command to display a slide image on the screen.
Some students in the programming class started touching the
keyboard a few months ago, As a result, everyone was able
to complete the presentation script.</p>
        <p>Understanding the network and basic control of
programming The students enjoyed learning.</p>
        <p>Visual programming languages are often used in
programming classes for beginners and you think Text-based
programming languages aren’t for beginners. It was shown that
it can be used for elementary school students by devising a
script language.
The reason for creating the script developed this time is the
sense of incongruity with the watching robot for the elderly.
A watching robot developed by your grandson is better than
being watched by an off-the-shelf robot. I think it will be a
robot that is loved like a treasure.</p>
        <p>It is still difficult in reality for AI to automatically learn
and perform various tasks. At present, it takes time and effort
to create a rule-based mechanism. An easy-to-write scripting
language will be needed to gain the power of many
nonengineers.</p>
        <p>Elementary school students develop a communication
robot for their summer vacation homework and you can see
a service using robots in the town. We would like to expand
the range of activities to build a richer and more enjoyable
world.</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <given-names>AIML</given-names>
            <surname>Foundation</surname>
          </string-name>
          .
          <year>2001</year>
          . http://www.aiml.foundation/. Accessed:
          <fpage>2022</fpage>
          -01-24.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>