RESEARCH
Handwriting Interface for Computer Algebra
“Design and Development of a Handwriting Interface for Computer Algebra”
- Researchers: UENO Masayuki (Osaka Electro-Communication University), TSUSHIMA Katsuhide (Osaka Electro-Communication University), et al.
Overview
Conventional computer algebra systems require users to enter formulas — which are written two-dimensionally on paper — as one-dimensional commands from the keyboard. For learners accustomed to handling formulas on paper, this creates a gap between their mental model and the operations required, a serious problem for an educational system. In this research we used a “display tablet” (LCD tablet) that integrates a tablet with a display, and developed a computer algebra interface in which everything from input through editing to executing operations is done by handwriting with a stylus pen. This realizes a direct manipulation interface (DMI) for computer algebra.

In the initial stage we tried input on a tablet without a display, but because results appeared only on the CRT, users had to look at both the tablet and the CRT, and the system was not practical. Using a display tablet, where input and output share the same surface, solved this problem.
System features
- Formulas are entered directly in handwritten two-dimensional notation instead of one-dimensional commands
- The two-dimensional structure of a formula is recognized and converted into commands that an existing computer algebra system can read (the algebra itself is left to the existing system)
- Output from the computer algebra system is typeset on the tablet, where it can be modified with the pen and reused as the next input
- Users never need to look at the computer’s CRT
- Formulas can be edited with the same feel as using a pencil on paper
Recognizing handwritten formulas
Recognition proceeds in two stages: first the characters, symbols and digits that make up a formula are recognized, and then the structure of the formula is recognized from the result.
- Character recognition — One stroke is the trajectory from pen-down to pen-up. On-line handwritten character recognition combines pattern matching with line-structure analysis. Limiting the targets to about twenty mathematical symbols plus letters and digits, and having timing information on pen movement, reduce the recognition load.
- Structure recognition — Regions are first divided hierarchically according to the vertical and horizontal gaps between characters. The structure is then determined by matching against formula templates: “hierarchical templates” describe structures determined by particular symbols such as integral signs, Σ and fractions, and “relational templates” describe structures determined by the relative positions of symbols, such as exponents and subscripts.
When a character cannot be recognized, the system presents candidates for the user to choose from. A character registration utility lets users register their own handwriting, and a training module has users write formulas in advance to improve the recognition rate.

Manipulating formulas with operation symbols
Users act on formulas displayed on the tablet by drawing graphical “operation symbols” with the pen to delete, move or correct parts of a formula or to execute algebraic operations. There are three kinds of operation symbols: “referents” that refer to a symbol’s value or to the symbol itself, “modifiers” that attach qualifying information to an operation, and “executors” that carry out editing or algebraic operations. Combined, they cover most situations in computer algebra. For example, circling part of a formula and drawing the factorization executor factors just that part.

Because characters entered by the user and characters output by the system are treated as equivalent objects, continuous processing — such as adding a handwritten term to an integration result and integrating again — is natural. We also realized the evaluation-suppression functions of ICAS, the intelligent computer algebra system developed in our laboratory (which enable or suppress the evaluation of functions and operators), as handwritten notation instead of commands.
Context
Computer algebra systems have historically been built for researchers and later adapted to education. By allowing computer algebra to be used without thinking about commands, this interface opens new possibilities for mathematics education with computer algebra. Prior to this work, we also designed mathematics exercises using functional computer algebra (IEICE Transactions, 1992).
This research forms Part 1 of Ueno’s doctoral dissertation “DMI in Intelligent Learning Environments” (1996). Together with Part 2, the interactive learning environment for physics IPE, it aimed to realize direct manipulation interfaces in intelligent learning environments. It was carried out in parallel with our research on interactive learning environments and CAI systems in the same period.
Publications
Journal Papers(2)
- 手書き数式編集システムの開発和田 慎二郎, 植野 雅之, 松本 正嗣, 対馬 勝英, CAI学会誌, Vol. 11, No. 3, pp. 136-149 (1994)
- 汎関数的数式処理を利用した数学演習の設計対馬 勝英, 中村 勝則, 植野 雅之, 電子情報通信学会論文誌. A, 基礎・境界, Vol. 75, No. 2, pp. 323-331 (1992)
International Conference Papers (Refereed)(4)
- The editing system for hand-write mathematical formula on the nematic displayTSUSHIMA K., Proc. of The First Asia Technology Conference in Mathematics(ATCM95), pp. 531-539 (1995)
- Handwriting Interface for Computer Algebra SystemUENO Masayuki, WADA Shinjirou, TSUSHIMA Katsuhide, Proc. of The First Asia Technology Conference in Mathematics(ATCM95), pp. 545-550 (1995)
- The Hand-write Editor for Computer AlgebraK.Tsushima, M.Ueno, S.Wada, H.Hayano, Proc. of sixth IFIP World Conference Computers in Education (WCCE95) (1995)
- Computer Algebra System for Mathematical Education Handwrite Interface using TabletTSUSHIMA K., Proc. of Asia Pacific Information Technology in Traning and Education Conference and Exhibition(Apitite 94), p. 452 (1994)
Oral Presentations(7)
- 数式処理システムを用いた教育の設計対馬 勝英, 早野 秀樹, 中村 勝則, 植野 雅之, 教育システム情報学会研究報告 (1996)
- 手書き数式入力システムにおける整式の認識戦略和田 慎二郎, 植野 雅之, 対馬 勝英, 電子情報通信学会技術研究報告(ET) (1995)
- 手書きPADを用いた数式編集システムの開発和田 慎一郎, 松本 正嗣, 植野 雅之, 対馬 勝英, 電子情報通信学会技術研究報告(ET) (1994)
- 手書き数式入力システムと手書き数式エディティング松本 正嗣, 植野 雅之, 斎藤 裕, 対馬 勝英, 電子情報通信学会技術研究報告(ET) (1993)
- 数式処理システムの記号入力インターフェースの分析と改善植野雅之, 斎藤裕, 対馬勝英, CAI学会研究会 (1992)
- 数式処理におけるユーザー支援環境の開発植野雅之, 対馬勝英, 教育工学関連学協会連合第3回全国大会 (1991)
- 知的な数式処理システムICASにおける問題解決の分析植野雅之, 対馬勝英, 中村勝則, CAI学会研究会 (1991)