Volition module of the

First Working AGI Mind in JavaScript

MindForth for robots -- Ghost.pl for webservers


1. Diagram of Volition FreeWill Mind-Module


  Hearing    Vision  CONCEPTS                      Motor Output
 /iiiiiii\  /!i!i!i!\  a| | |                     /YYYYYYYYYYYY\
| ||||||| ||         | b|C| |     __________     | |||||||||||| |
| ||||||| ||         | s|O|f|    / FreeWill \    | | ||| ||| || |
| ||||||| ||         | t|N|i|   (  Volition  )   | | ||| ||| || |
| ||||||| ||         | r|C|b|    \__________/    | | ||| ||| || |
| ||||||| ||         | a|E|e|        /    | \    | |S||| ||| || |
| ||||||| ||   ___   | c|P|r|   ____/__   |  \   | |H||| ||| || |
| ||||||| ||  /dog\  | t|T|s|  /       \  |   \  | |A|||R|||P|| |
| ||||||| || (image)-|--|-+-|-( Emotion ) |    \ | |K|||U|||E|| |
| ||||||| ||  \___/  |  | | |  \_______/  |     \| |E|||N|||T|| |
| ||||||| ||         |  | | |             |      \ |?|||?|||?|| |
| ||||||| ||         |  | | |          ___V___   |\  ________   |
| ||||||| ||         |  | | |         /       \  | \/        \  |
| |d------||---------|--|-+-|--------( EnThink ) | ( Motorium ) |
| ||||o|| ||         |  | | |         \_______/  |  \________/  |
| ||g|||| ||         |  | | |                    | |||||||||||| |


2. Algorithm

The Volition module combines the influence from Emotion and the deliberations from thinking to select and inititiate motor options learned and habituated in the Motorium module.


3. Code of Volition() from ghost.pl First Working AGI in Perl

sub Volition() {  # http://ai.neocities.org/Volition.html
# http://discourse.numenta.org/t/free-will-volition-module 
# Emotion();   # 2016mar05: physiological emotion will influence thought;
# if ($impetus > 60)  {  # 2017-12-03: if AI not given input for too long...
  if ($impetus > 512) {  # 2017-12-06: if AI not given input for too long...
    $beep = 1;     # 2017-12-03: send a beep-command to the Motorium() module;
    Motorium();    # 2017-12-03: for execution of the commands of Volition()
    $beep = 0;     # 2017-12-03: reset the flag after each motor execution.
    Imperative();  # 2017-12-03: issue an imperative command for new input. 
    $impetus = 0;  # 2017-12-03: reset to zero for next outreach event.
    return;        # 2017-12-03: after outreach, skip rest of Volition().
  }  # 2017-12-03: end of test for too long without input
  if ($hlc eq "en") {  # 2017-06-17: check human-language-code $hlc
    EnThink();  # 2017-06-17: In response to English input, think in English.
  }  # 2017-06-17: End of test to select a human language to think in.
  if ($hlc eq "ru") {  # 2017-06-17: check human-language-code $hlc
    RuThink();  # 2017-06-17: In response to Russian input, think in Russian.
  }  # 2017-06-17: End of test to select a human language to think in.
# MetEmPsychosis();  # 2017-04-10: move source code and memories across the Web?
# MindMeld();  # 2017-04-23: module stubbed in to promote shared AI dreaming. 
# Motorium();  # 2016mar05: motor memories will control robot actuators;
  if ($trigger > 99) {  # 2017may29: if user presses [Enter] with no input...
    $beep = 1;     # 2016apr29: send a beep-command to the Motorium() module;
    Motorium();    # 2016apr29: for execution of the commands of Volition()
    $beep = 0;     # 2016apr29: reset the flag after each motor execution.
    $trigger = 0;  # 2016apr29: reset the trigger for a fresh integration.
  }  # 2016apr29: end of the integration of components to will an action.
} # 2016mar05: Volition() will return to the MainLoop of the AI.


4. Troubleshooting and Robotic Psychosurgery

4.1.a. Symptom: (Something goes wrong.)
4.1.b. Solution: (AI Mind Maintainer devises solution.)

5. Variables

$impetus -- an accumulating variable to hold the activation-level of a trigger to initiate action by the FreeWill Volition module.


6. Resources

Please see

http://mind.sourceforge.net/volition.html

http://en.wikipedia.org/wiki/Robust_decision-making


7. AiTree of First Working AGI Mind-Modules




Return to top; or to
javascript subreddit for Mentifex AI Mind discussion;
Forth subreddit and robotics subreddit for MindForth discussion;
Perl subreddit for ghost.pl AI Mind Maintainers.