Translates Natural-language Command to User Action

Author
WuXi
Advisor
LiuLei
School
Jilin University
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2010
Downloads
62
Citations
0

Request the full text

Abstract

Keyword command is a research field related to natural-language programming. Keyword command splits sentence into words (or called keywords) and then translates the keywords into application scripts. It accuracy is very high, so it‘s very easy to write keyword commands to someone never writes programming codes. Meanwhile, application with macro-recording function is increasing rapidly. Some researches are focusing on finishing user requirements by watching user behavior, like a macro-recorder, and doing the needed actions, we called those researches End-user programming. Instead of translating user actions into script codes, they dose real actions for the user. Both keyword command and End-user programming are very significant research directions in Human-Computer Interaction research, they both help user finishing their work batter and faster.Although keyword command has a very high accuracy in translating user natural-language command into application script, it also has some limitations, such as: 1) the host applications must support script programming, and 2) APIs in script language should be less than (or equal to) 20, etc. On the other side, an outstanding feature of End-user programming is: instead of translates macros into script code, it directly output macros as actions and help user does the work. It‘s more direct to end-user. Therefore, I present an approach directly translates natural-language command into actions. My approach can apply to far more applications, whatever they support script programming or not. And it is easier to end-users too.All I have done are: present an approach to translates natural language command into user actions and implement it under Windows 7. There‘re three steps to do the translating, are:Step-1: Tokenization. The first step is tokenization user input (natural-language command). In this step, the program splits user input sentence into words and lowered all up-cased letters in order to easy match in following steps.Step-2: Construct―Action-Tree‖. Create one or more Action-Tree(s) according to different type of actions, elements in system UI and tokens. Action-Tree is a tree with a set of actions as root and objects as leaves. There‘re 6 types of general actions: 1) Click action, 2) Double-click action, 3) Drag action, 4) Mouse scroll, 5) Text input, 6) Single keystroke. Remark that, the root of an Action-Tree is not a single word but a set of words with similar meaning, for example: {click, tap…}Step-3: Select the best match tree. The last step is to select the action-tree most likely to be the user‘s intention. To do so, we need to predefine some scoring rules. The scoring rules can vary in different environments (OS or application environment). There‘re 4 rules can be used in most cases: 1) Rule-1: +1, if a parameter is supplied in token set; 2) Rule-2: +2, if a word in token set equals the name of a UI element; 3) Rule-3: +1, if a word in token set equals the type of a UI element; 4) Rule-4: in―Click action‖and―Drag action‖, +3, if the second parameter and the last element are all supplied and the last parameter, in UI, is the parent element of the second parameter, in UI.In my implementation under Windows 7, there are 4 major modules:1) Observer: Observation module. Stays in background and observes the changes of OS and application windows. Another task of the observer is to obtain the handle and Microsoft Active Accessibility pointer of active application window (which are used to access the elements of a window).2) Command Parser: Command parse module. Waits for user input and then parses the input. After parsing, the output would be lower cased words set, we call the words tokens and the set token set. The token set is the input of following two modules (UI Finder and Arm).3) UI Finder: Query UI module. Query UI elements for information and relationship of elements according to the words in token set using window handle and MSAA pointer we got in step-1, then constructs action-trees.4) Arm: Action module. Scoring all action-trees and selecting the tree with highest score to execute.In this paper, I implemented the system under Windows 7 to verify my approach. In order to ensure my experimentation data were reliable, I selected 2 applications come with Windows 7 as the test applications and all natural-language commands were from their help document. I chose 8 pieces different operations in each help document, so totally 16 pieces operations, some simple one like this:―On the View tab, in the Show or hide group, select the Ruler check box‖(intention of this operation is: Display the ruler). Some operations are more complicated and have more than one step, such as:―1) On the Home tab, in the Shapes group, click the Line tool. 2) Click Size, and then click a line size, which determines the thickness of the line. 3) In the Colors group, click Color 1, click a color, and then drag the pointer to draw the line‖. The final result is: 87% natural language commands can successfully translate into user actions. The result is satisfactory.Research on how to translate natural language command into user action is useful. It can be the fundamental for other related research such as vice control computer. It can help vice control computer to parse and execute user commands in computer. In application field, it can become a standalone program to parse and execute application help documentations, like some similar systems do, such as DocWizards system.The experiments proved that my approach is verified and useful and its application field is very wide, most user operations can be successfully translated. Therefore, my research on translating natural language into user action has high value in research aspect as well as in application aspect. My research and approach can be the fundamental to other related research, so it has good effects in HCI field.

Table of contents

Summary 4-7 Chapter 1 Introduction 7-9 1.1 Background and Significance 7 1.2 Related research introduces 7 -8 1.3 paper work done and papers structural arrangements 8-9 Chapter 2 studies 9-13 2.1 end-user programming 9-11 2.1.1 demo programming system 9-10 2.1.2 structured editor 10-11 2.2 Keyword command Programming 11-13 Chapter 3 natural language commands to the user to convert 13-23 3.1 Introduction 13 3.2 natural language commands 13-15 3.2.1 definition of natural language commands 13-14 3.2.2 command processing natural language difficulties 14-15 3.3 user actions classification 15-17 3.3.1 user used to operate classification 15-16 3.3.2 operation tree 16-17 3.4 Nature language commands to the user conversion method 17-23 3.4.1 Token of user input 19 3.4.2 operating structure tree 19-21 <br / > 3.4.3 selects the best match of the tree 21-23 Chapter 4 Implementing and experimental results 23-36 4.1 system Architecture 23-24 < br /> 4.1.1 program Interface 23-24 4.1.2 program overall structure 24 4.2 WINDOWS system to achieve 24-29 <br / > 4.2.1 Observer: background monitoring module 24-26 4.2.2 Command Parser: command analysis module 26-27 4.2.3 UI Finder: UI query module 27-28 4.2.4 Arm: operation execution module 28-29 4.3 experimental 29-36 4.3.1 experiments and Results 30-33 4.3.2 analysis 33-36 Chapter 5 conclusions 36-37 5.1 research and application value 36 5.2 Summary 36-37 References 37-39 Thanks 39-40 Summary 40-43 ABSTRACT 43-45

Related dissertations

  1. Design of Intelligent Remote Controller for Human-computer Interaction Based on2.4G Wireless Transmission
  2. Research and Development of Hot Water Boiler Automatic Control System Based on ARM11
  3. The Design and Implement of Human-Computer Interaction System of Lower Extremity Rehabilitative Robot
    YinPengFei ·Hefei University of Technology ·2013 ·Master's thesis
  4. Design and Implementation of Kinect-based Virtual Fitting System
  5. Research on the Motion Analysis Ergonomics Evaluation Based Virtual Reality Environment
    WangHaiYan ·Zhejiang Sci-Tech University ·2014 ·Master's thesis
  6. The Research of Cursor Control Interactive Technology Based on Gesture Recognition
  7. The Research of the Hmm Dynamic Gesture Recognition Based on Trajectory Feature
  8. The Research on Observation Likelihood Model for3D Hand Tracking
    LiuBingChao ·University of Jinan ·2013 ·Master's thesis
  9. Real-time Eye-gaze Tracing System Based on CPU+GPU
    LiFeiFei ·Tianjin University ·2012 ·Master's thesis
  10. Face Analysis in Human-machine Interaction
    JinQiu ·Ningbo University ·2013 ·Master's thesis
  11. Research and Application of Hand Gesture Recognition Technology Based on Depth Image Information
    WuYuXia ·Northeastern University ·2013 ·Master's thesis
  12. Based on Stereo Vision Fingertips Positioning and Human-computer Interaction Research
    ZuoYaoYing ·Chang'an University ·2013 ·Master's thesis
  13. Gesture Recognition Based on Kinect Depth Data
  14. Research on Kinect-Based Gesture Recognition and Robot Control Technology
    WangSongLin ·Beijing Jiaotong University ·2014 ·Master's thesis
  15. The Research on the Interface Design of the Web Games, Based on the Digital Art Interactive Applications
    HeYaNa ·China University of Geosciences ·2013 ·Master's thesis
  16. Cloud-based Geological G~4I System Structure Design
    ZhangJiaTong ·Jilin University ·2013 ·Doctoral dissertation
  17. Realization of Fieldbus for the Multi-machine Servo Drive and Software Development of Human-Computer Interface
    TongCunZhi ·Zhejiang University ·2014 ·Master's thesis
  18. A Study on Smart Projector System Based On Self-adapted Projection Correction Methods
    ZhuBo ·Zhejiang University ·2013 ·Doctoral dissertation
  19. Study and Implementation of Speech Emotion Recognition Based on DSP
  20. Study of Intangible Interface Design for Elderly
    ZhangPeng ·Harbin Institute of Technology ·2012 ·Master's thesis