ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

241
I ONL THESIS D FAC INTERN LINE UR UNCO SUBMITT DEPART CULTY NATIONA RDU CHA ONSTRA ED FOR PA P MUHAMM 36-F SU PROF. DR PROF. DR TMENT O OF BAS AL ISLA ARACTE AINED E ARTIAL RE PHILOSOP BY MAD IMRA FBAS/PHDC UPERVISE R. SYED AF R. MUHAM OF COM IC AND AMIC UN 2011 ER REC ENVIRON EQUIREM PHY AN RAZZA CS/F07 D BY FAQ HUSA MMAD SHE MPUTER APPLIE NIVERS OGNITI NMENT MENT OF D AK AIN ER R SCIENC ED SCIE ITY, ISL ION IN T OCTOR OF CE, ENCES LAMABA F AD

Transcript of ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Page 1: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

I

ONL

THESIS

D

FAC

INTERN

LINE URUNCO

SUBMITT

DEPART

CULTY

NATIONA

RDU CHAONSTRA

ED FOR PAP

MUHAMM

36-F

SU

PROF. DR

PROF. DR

TMENT O

OF BAS

AL ISLA

ARACTEAINED E

ARTIAL REPHILOSOP

BY

MAD IMRA

FBAS/PHDC

UPERVISE

R. SYED AF

R. MUHAM

OF COM

IC AND

AMIC UN

2011

ER RECENVIRON

EQUIREMPHY

AN RAZZA

CS/F07

D BY

FAQ HUSA

MMAD SHE

MPUTER

APPLIE

NIVERS

OGNITINMENT

MENT OF D

AK

AIN

ER

R SCIENC

ED SCIE

ITY, ISL

ION IN T

OCTOR OF

CE,

ENCES

LAMABA

F

AD

Page 2: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Abstract

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) II  

ABSTRACT

Computer, the humongous giant of technology, has brought innovative changes in every aspect of life, especially in applications imitating humans. Currently, it is used in every field of life to facilitate human endeavor. One such application is character recognition. Character recognition is an important offshoot of pattern recognition problems. It imitates a human’s ability to read, using a machine. It has been a field of intensive, if exotic, research since the early days of the computer. This task becomes more complex and demanding in case of handwritten and cursive text. Arabic script-based languages, which are used by almost a quarter of the world’s population [Belaid et. al, 2010], are cursive, rich in diacritical marks and variety of writing styles present a challenging task for the researchers. Urdu is an Arabic script based languages however the Urdu character set is the superset of all Arabic script-based languages. Character recognition has been performed either through segmentation free or segmentation based approaches. There are numerous issues with a segmentation free approach, and it is very difficult to train using a large dataset. On the other hand in Urdu, a segmentation based approach has a large overhead and has less accuracy for cursive script as compared to segmentation free methods. In terms of classification, this thesis presents two approaches for Urdu character recognition: segmentation free method based on a hybrid approach (HMM and fuzzy logic), and bio-inspired character recognition system that uses fuzzy logics. Fuzzy is used as inner and outer shells for preprocessing and post processing of HMM. Biologically inspired multilayered fuzzy rules based system has been presented. Using the human visual concept, a layered approach has been suggested where the diacritical marks are separated from the ghost characters and mapped onto the primary ligature in the final layer. The proposed technique also caters to Multilanguage character recognition system for all Arabic script-based languages like Arabic, Persian, Urdu, Punjabi etc. The presented multilayered bio-inspired approach recognizes the ligature by extracting the features and combining them to find new premises in a bottom up fashion and it provided accuracy of 87.4%.

Page 3: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Declaration  

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) III  

DECLARATION

I,Muhammad Imran Razzak, Registration No: 36-FBAS/PHDCS/F07, hereby declare

that this thesis titled “Online Urdu Character Recognition in Unconstrained

Environment” forthe fulfill of requirements of Doctor of Philosophy in Computer

Sciencesubmitted to Department of Computer Science, International Islamic University,

Islamabad, Pakistan is my own work and has not copied from any other resource. It is

further declared that I have conducted this research and have accomplished this thesis

entirely on the basis of my personal efforts and under the sincere guidance of my

supervisors.

Muhammad Imran Razzak

36-FBAS/PHDCS/F07

Page 4: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Dissertation

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) IV  

A THESIS SUBMITTED FOR PARTIAL

REQUIREMENT OF DOCTOR OF

PHILOSOPHY

Page 5: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Dedication

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) V  

To My Beloved Parents.

Page 6: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Acknowledgements

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) VI  

ACKNOWLEDGEMENTS

First of all, I would like to extend special thanks to my supervisors: Prof. Sysed Afaq

Husain, Chairman, Department of Computer Science, Riphah International University

and Prof. Muhammad Sher, Chairman International Islamic University for giving me

their golden time and helping in research. Secondly, I would like to thanks Professor

Fateh Muhammad Malik, Rector International Islamic University and Dr Attash Durani,

Director, Center of Excellence for Urdu Informatics, National Language Authority, for

guiding me to develop multi-language character recognition system. I am also grateful to

Prof. Abdel Belid, READ, LORIA, France for his kind guidance in writing research. I

would also like to thank Prof. Rubiyah Yosuf, Director of Center of Artificial Intelligence

and Robotics, University of technology, Malaysia for helping me in research during my

stay at CAIRO University of Technology, Malaysia.I would like to pay special thanks to

Ghulam Rasool Tahir for his encouragement and moral support during my PhD.

I would also like to thank my PhD colleagues, Mr. Aneel Rahim, Mr. Shoaib Ishaq, Mr.

Ifikhar Wattofor their encouragement and assistance in research work.

Last but not least, my younger brother Usman Razzak for his loving support during my

PhD, he had to deal with stressed PhD students. Anyhow, he did well.

Page 7: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Table of Contents

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) VII  

 

 

TABLE OF CONTENTS

 

ACKNOWLEDGEMENT .............................................................................................. VI

LIST OF FIGURES .......................................................................................................... X

LIST OF TABLES ....................................................................................................... XIV

LIST OF ABBREVIATIONS ....................................................................................... XV

1. INTRODUCTION.......................................................................................................1

1.1 Motivation ..............................................................................................................4

1.2 Classification of Character Recognition. ...............................................................5

1.3 Constrained Vs Unconstrained ..............................................................................8

1.4 Urdu/Arabic Character Recognition Process .......................................................9

1.5 Challenges to Urdu Script Character Recognition ( ...........................................10

problem 

1.6 Objectives ............................................................................................................13

1.7 Knowledge Based Urdu Character Recognition System (research methodlogy) .14

1.8 Contributions .......................................................................................................15

1.9 Thesis Organization .............................................................................................16

2. HANDWRITTEN CHARACTER RECOGNITION:LITERATURE SURVEY 21

Page 8: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Table of Contents

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) VIII  

2.1 Preprocessing .. ....................................................................................................24

2.2 Feature Extraction. ...............................................................................................33

2.3 Classifier ..............................................................................................................37

2.4 Final Remarks .....................................................................................................43

3. BACKGROUNG KNOWLEDGE ...........................................................................45

3.1 Fuzzy Logics .. ......................................................................................................47

3.2.1 Linguistic Variables. ....................................................................................49

3.3 Human Visual Perception ....................................................................................51

3.2.1 Autonomy of Human Visual System ............................................................53

3.3 Bio-Inspired Image Processing ...........................................................................55

3.4 Bio-Inspired Fuzzy Logics System .......................................................................59

3.5 Final Remarks .....................................................................................................60

4. GHOST CHARACTER RECOGNITION THEORY ...........................................61

3.1 Urdu Script Based Languages .. ...........................................................................62

3.2 Arabic Script Based Languages Character Recognition. .....................................66

4.3 Ghost Character Theory ......................................................................................67

4.4 Ghost Character Recognition Theory...................................................................68

4.5 Effect of Ghost Character Theory .......................................................................72

4.6 Merits ...................................................................................................................74

4.7 Demerits ..............................................................................................................75

4.8 Final Remarks .....................................................................................................76

5. BIO-INSPIRED FUZZY BASED PREPROCESSING AND FEATURE

Page 9: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Table of Contents

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) IX  

EXTRACTION ........................................................................................................78

5.1 Preprocessing Methodology .. ..............................................................................79

5.1.1 De-Hooking ...................................................................................................81

5.1.2 Smoothing. ....................................................................................................82

5.1.3 Interpolation. ................................................................................................83

5.1.4 Secondary Stroke Separation. .......................................................................84

5.1.5 Slant Correction. ...........................................................................................93

5.1.6 Stroke Mapping. ............................................................................................96

5.1.7 Baseline Estimation. .....................................................................................98

5.2 Feature Extraction .. ...........................................................................................103

5.2.1 Directional Features ..................................................................................107

5.2.1 Structural Features ....................................................................................109

5.3 Final Remarks ...................................................................................................113

7. BIOLOGICAL INSPIRED URDU CHARACTER RECOGNITION..................137

6.1 Multilayered Human Visual System .. ................................................................141

6.2 Multilayered Character Recognition .. ...............................................................144

6.2.1 Level-0: Stroke Acquisition .. .....................................................................149

6.2.2 Level-1: Low level processing .. ................................................................150

6.2.3 Level-2: Geometrical processing .. ............................................................151

6.2.4 Level-3: Simple Feature Extraction .. ........................................................152

6.2.5 Level-4: Complex Feature Extraction .. ....................................................155

6.2.6 Level-5: Character Formation .. ................................................................156

6.2.7 Level-6: Word Formation .. .......................................................................158

Page 10: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Table of Contents

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) X  

6.3 Discussion .. ........................................................................................................157

6.4 Final Remarks ...................................................................................................158

7. HOLISTIC APPROACH FOR URDU CHARACTER RECOGNITION USING

MODIFIED HMM .................................................................................................116

6.1 Modified HMM Based Urdu Classification .. .....................................................117

6.2 HMM And Fuzzy Logics: A Hybrid Approach .. ................................................125

6.2.1 Phase-1 Clustering .....................................................................................127

6.2.2 Phase-II Classifier- I HMM .......................................................................129

6.2.3 Phase-III Classifier- II Fuzzy Rules ............................................................130

6.3 Post Processing .................................................................................................131

6.4 Final Remarks ...................................................................................................133

8. COMPRATIVE ANALYSIS AND CONCLUSIONS.............................................162

8.1 Ghost Character Recognition Theory .. .............................................................163

8.2 Segmentation Free and Segmentation Approach .. ............................................164

8.3 Conclusions .......................................................................................................171

8.4 Future Work .......................................................................................................174

REFERENCES .......................................................................................................176

APPENDIX A PATENT ( ABSTRACT) ..............................................................188

APPENDIX B BOOK CHAPTER ( ABSTRACT) ..............................................190

APPENDIX C JOURNAL PAPERS (ABSTRACT) ...........................................192

APPENDIX D CONFERENCE PAPERS (ABSTRACT)...................................213

Page 11: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

List of Figures

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) XII  

LIST OF FIGURES

Figure 1.1World vision in order to facilitate students using iPod………………….5

Figure 1.2 Character recognition methodologies .. .....................................................7

Figure 1.3 Digital pen using Anoto functionality. ........................................................8

Figure 1.4.a Discrete writing ......................................................................................9

Figure 1.4.b Cursive writing .......................................................................................9

Figure 1.5 Character recognition process ................................................................10

Figure 1.6.a Different shapes of Nasta’liqscript ........................................................12

Figure 1.6.b Diacritical marks complexity .................................................................12

Figure 2.1 Baseline estimation using histogram .......................................................25

Figure 2.2 Diacritical marks handling ......................................................................31

Figure 2.3 Vertical Projection of Diacritical marks .................................................31

Figure 2.4 Issues diacritical marks separation .........................................................32

Figure 2.5 Arabic ligature and their constituent character ......................................33

Figure 2.6 Segmentation point estimation based on histogram ................................35

Figure 2.7 HMM modal for digits 4 ...........................................................................39

Figure 3.1 Fuzzy Membership function .....................................................................49

Figure 3.2.a Stimulus diagram for frog. prey acquisition behavior ..........................53

Figure 3.2.b detouring around the barrier in reaching stimuli..................................53

Figure 3.3 The autonomy of human visual object recognition ..................................54

Page 12: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

List of Figures

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) XIII  

Figure 3.4 Biological perception mechanism of human mind ...................................55

Figure 3.5 Visual ventral stream based object recognition ......................................56

Figure 3.6Bio-inspired Numeral recognition ............................................................57

Figure 4.1 Different shapes wrt position from left to right isolated, start, mid,end 62

Figure 4.2.a Arabic Alphabets ..................................................................................62

Figure 4.2.b Persian Alphabets .................................................................................62

Figure 4.3.a Urdu Alphabets ....................................................................................64

Figure 4.3.b . Punjabi Alphabets Shahmukhi ...........................................................64

Figure 4.4.a Sindhi Alphabets ...................................................................................64

Figure 4.4.b Pashto Alphabets ..................................................................................64

Figure 4.5.a Convergence of four dots to "Tota" .....................................................67

Figure 4.5.b Additional shapes in Urdu and Persian .................................................67

Figure 4.6 Ghost characters used in Arabic script based language .......................67

Figure 4.7 Recognition of 2nd ghost character letter with associated dot .................69

Figure 4.8 Urdu Samples in three different styles. Urdu Nasta'liq, Nasq, Naskh ......70

Figure 4.9 different shapes of "ب" in Nasta'liq wrt neighbor character ..................70

Figure 4.10 Feature comparison of Nasta'liq and Naskh ........................................71

Figure 4.11.a Mapping of diacritical marks and ghost character ...........................73

Figure 4.11.b Word level recognition HMM for same word in Urdu and Arabic ....73

Figure 4.12 Combination of diacritical marks with respect to languages ...............73

Figure 5.1 Urdu Samples in three different styles. Nasta'liq, Nasq, Naskh ..............79

Figure 5.2Before Preprocessing issue (a) صا (b) 82................................................... طا

Figure 5.3Missing points due to fast speed of writing ..............................................83

Page 13: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

List of Figures

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) XIV  

Figure 5.4Smoothed and Interpolated stroke .............................................................84

Figure 5.5Secondary stroke separation .....................................................................85

Figure 5.6Membership function for Table 5.1 and 5.2 .............................................85

Figure 5.7Smoothed and Interpolated stroke .............................................................86

Figure 5.8Secondary stroke separation .....................................................................87

Figure 5.9Diacritical marks issue with three dots in Naskh .....................................90

Figure 5.10 Fuzzy Membership function for Table 5.1 and 5.2 ................................91

Figure 5.11Recognition rate of diacritical marks .....................................................92

Figure 5.12 Left slanted, right slanted and normal words .........................................95

Figure 5.13Locally angle computation for Slant normalization ...............................96

Figure 5.14Base storks that are difficult to write in single stroke ............................97

Figure 5.15.aResolved problem shown in figure 5.14. ..............................................97

Figure 5.15.bError in combining ..............................................................................97

Figure 5.16Baseline and Descender lines for Nasta'liq and Naskh for Urdu ...........90

Figure 5.17Baseline for Nasta'liq and Naskh and blue line show baseline issues ....90

Figure 5.18.a Raw input strokes. .............................................................................101

Figure 5.18.b Ghost shapes after separation of secondary strokes. .......................101

Figure 5.18.c Primary baseline estimation based on projection. ...........................101

Figure 5.18.c Locally baseline estimation based on features. ................................101

Figure 5.19Features for baseline estimation ...........................................................102

Figure 5.20Fuzzy Membership Function for Angle fusion .......................................102

Figure 5.21Recognition result of baseline estimation ..............................................103

Figure 5.22Biologically Inspired feature extraction ...............................................105

Page 14: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

List of Figures

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) XV  

Figure 5.23Loop confliction and detection .............................................................106

Figure 5.24Chain code extraction ............................................................................108

Figure 5.25(a) Layered based low level to complex level feature extraction ..........108

Figure 5.25 (b)Level-3 and level-4:Fuzzy based small pattern to larger pattern ....108

Figure 5.26Structural feature(inflection point, cusp, end point, branch point) .......109

Figure 5.27Level-4 Fusion of structural features and directional features .............111

Figure 5.28Fusion of structural and direction features ...........................................113

Figure 6.1 Recognition system architecture .............................................................119

Figure 6.2 Simple right to left HMM ........................................................................122

Figure 6.3Fuzzy modeling on HMM wrt language modeling ..................................126

Figure 6.4.aFuzzy member function for classification ............................................128

Figure 6.4.bProper classification ............................................................................128

Figure 6.4.cConfused classification .........................................................................128

Figure 6.5Layered Fuzzy with HMM .......................................................................130

Figure 6.6Stroke Mapping ........................................................................................133

Figure 7.1Framework for the study of living organisms ..........................................139

Figure 7.2Human visual system ...............................................................................142

Figure 7.3Human behavior diagram for character recognition ..............................143

Figure 7.4Bio-Inspired Machine based character recognition ................................145

Figure 7.5Machine based character recognition behavior diagram .......................147

Figure 7.6Multilevel bio-inspired rule model ..........................................................148

Figure 7.7Diacritical marks issue with three dots in Naskh style ............................150

Figure 7.8Basic GC for Arabic script based languages written in Nasta’liq ..........151

Page 15: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

List of Figures

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) XVI  

Figure 7.9Simple example using multilayer fuzzy based approach ........................154

Figure 7.10Level-4 complex features and candidate independent character ..........156

Figure 7.11 Combination of diacritical marks with respect to languages ..............157

Figure 7.12 Bio-Inspired diacritical mapping .......................................................157

Figure 7.13 Combination of diacritical marks with respect to languages ..............156

Figure 7.14.a Ligature formation by combination of diacritical marks and GC .....156

Figure 7.14.b Word level recognition HMM for same word in Urdu and Arabic ...156

Figure 8.1 Combination of diacritical marks with respect to languages ................164

Figure 8.2 Division in to ligature from word ..........................................................166

Figure 8.3 Combination of diacritical marks with respect to languages ................165

Figure 8.4 Combination of diacritical marks with respect to languages ................168

Figure 8.5.a Ligature formation by combination of diacritical marks and GC ......168

Figure 8.5.b Word level recognition HMM for same word in Urdu and Arabic ....168

Figure 8.6Bio-inspired character recognition process of word Pakistan ................169

Figure 8.7Probabilistic based modeling for future work .........................................171

Figure 8.8Recognition rate .......................................................................................172

Figure 8.9Computational Complexity ......................................................................172

 

 

 

Page 16: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

List of Tables

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) XVII  

LIST OF TABLES  

Table 5.1 Distance Vs Position Fuzzy Rules.. ...........................................................88

Table 5.2 Result Vs Size Fuzzy Rules. ........................................................................88

Table 5.3 Diacritical Marks Separation Algorithm ..................................................89

Table 6.1 Classes division of strokes ........................................................................121

Table 6.2 Code Book for HMM ................................................................................122

Table 6.3 Recognition result in % on two data set A and data set B ......................124

Table 6.4 Comparison with previous systems .........................................................124

Table 6.5 Vector Quantization .................................................................................127

Table 6.6 Rule for Secondary strokes handling .......................................................132

Table 6.7 Comparison of recognition rate WRT to Methodology .........................134

Table 6.8 Comparison of recognition rate with previous System ...........................135

Table 7.1 Biological Inspired Character recognition .............................................153

Table 7.1 Recognition Rate .....................................................................................160

Table 8.1 Comparison of Recognition Result of different system ...........................170

Table 8.2Comparison with existing systems .............................................................173

Page 17: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

List of Abbreviations

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) XVIII  

LIST OF ABBREVIATIONS

BPNN Back Propagation Neural Network

CAPTCHA Completely Automated Turing Test To Tell Computers and Humans Apart

CHMM Continuous Hidden Markov Model

CNS Central Nervous System

DHMM Discrete Hidden Markov Model

EM Expectation Maximization

GCRT Ghost Character Recognition Theory

GCT Ghost Character Theory

IFN/ENIT Arabic Handwritten Database

IT Inferotemporal Cortex

HMM Hidden Markov Model

KNN K NearestNeighbor

L-0 Level-0: Stroke Acquisition

L-1 Level-1 Low Level Processing

Page 18: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

List of Abbreviations

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) XIX  

L-2 Level-2 Geometrical Processing

L-3 Level-3 Simple Feature Extraction

L-4 Level-4 Complex Feature Extraction

L-5 Level-5 Ligature Formation

L-6 Word Formation

LDA Linear Discriminate Analysis

LGN Lateral Geniculate Nucleus

LVQ Linear Vector Quantization

MER Minimum Enclosing Rectangle

MLP Multilayer Preceptron

MT Visual Area

V1 Primary Visual Cortex

PCA Principle Component Analysis

PDAs Personal Digital Assistants

OCR Optical Character Recognition

SVM Support Vector Machine

V1 Striat cortex

Page 19: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 1  

CHAPTER 1

INTRODUCTION

Computers have brought revolutionary changes in the way we do things and they are

even imitating the human's capabilities. Character recognition is to mimic the human

ability to read just like a human using a computer although here the machine has not been

able to compete the human visual system.Handwritten text provides difficulty for even

human readers who utilize contextual information as well as the domain knowledge to

interpret and recognize such text. The concept of handwritten text is very old, for the

purpose of expanding people’s memory and facilitating communication. Character

recognition is an important offshoot of pattern recognition problems that imitate the

human reading capabilities in machine. This task becomes complex and demanding if it

involves cursive text and writing styles like Arabic. One of the aims of character

recognition is to read much faster rate by associating symbolic identities with images of

characters. Some of the potential applications of character recognition are number plate

recognition, automatic mail sorting, automatic form reader archiving and retrieving text

Page 20: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 2  

provision of interface for entering text in PDAs through pen like devices, etc shown in

figure 1.1.

The tremendous advances in the computational intelligence algorithms have

provided significant improvement in the development of character recognition systems.

OCRhas becomes one of the most successful and challenging applications of artificial

intelligence and pattern recognition. It is an interdisciplinary research area, involving

researchers from pattern recognition, computer vision, image processing, statistical

computation and machine learning. Many commercial character recognition applications

such as MyScript, Calligrapher,ICHITARO etc. exist for different languages and

different applications. However in the case of languages like Persian, Urdu Arabic

etcwhich share the same basic Arabic character set and have been coined as Arabic

character script based languages very little work has been reported [Husain et. al, 2007].

Moreover,we could not findany no public database for Arabic script based languages

[Biadsy et al, 2006] ,[Halavati et al, 2005] especially for Nasta’liq writing style. It is after

long time that middle East Asian script has gotten attention in research, which may be

due to the complexities of Arabic script[Sternby et al, 2009].

A computer can perform mostproblems more precisely and efficientlyas

compared to a human. However, there are certain types of complex problems like pattern

recognition and visual perception where a few years old child can perform much better

than the state-of-the-art computer with latest algorithms that are available today. With the

growth of child, he starts to acquire reading and writing skills and he is able to read the

texts, whether it is written in different fonts and styles. Moreover, even ahuman may have

problem in reading complex text i.e. poorly written and requires context knowledge and

Page 21: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 3  

experience for correct recognition. The complex mechanism behind human visual

perception and context knowledge makes the human more powerful than the current

machines. Due to these factors, lot of research is required in this field.

The computer can perform many complex problems more precisely, efficiently

and faster than human however there are still many problems such as pattern recognition,

where few months old child can perform much better than the latest algorithms available

today and one such problem is character recognition. The real world is dynamic,

enormous and very complex. To deal with it, biological systems have been evolving and

self-adjusting over millions of years and adapting to the changes in the environment.

Imitation of human capabilities in machine is a field of intense research since the early

days of computer and among them one of the interesting issues is human vision

modeling. In this regard biology has been an important source of inspiration in image

processing and pattern recognition applications. The high context knowledge, adapting

and learning capability of human is robust intelligence in complex problems.

To imitate the human brain capability into machine is crucial and very difficult in

real world application. Human brain can be modeled by deeply investigating the

human visual system. To modal the biological vision of human the research on human

visual system has been in progress since 80, but still it is facing many challenges. The

image processing inspired by biological perception is an efficient way to handle the

complex problems. The high context knowledge, learning ability and efficient visionary

devices are very robust and cannot be achieved perfectly by machine. Thus modeling the

human brain exactly into our daily life applications is almost impossible in current age

but the integration of biological visionary system of humans helps to recognize the

Page 22: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 4  

complex pattern recognition problems efficiently than conventional methods. More detail

of biology inspired system is briefly described in chapter 3.

The happy relation of fuzzy logics with biologically inspired processing for character

recognition is an ideal way to deal with complex handwritten patterns. Fuzzy logic has

proved itself a powerful classifier to recognize irregular and complex patterns. Naturally

translation, rotation and position are independent of human visual perception which

cannot be attained by computer system but it has substantial effect on reading speed and

accuracy even with human at some level. Due to the success of fuzzy logics for complex

patterns, high level fuzzy IF-THEN thinking and reasoning rules are modeled with

human visionary concept to resolve the issue of Urdu handwritten text. Further detail of

fuzzy with biology inspired recognition is briefly described in chapter 3.

Since the inception of computers, alots of research efforts has gone in to the field

of computer human interface. Input devices such as mouse, keyboard, etc. have several

limitations. Two quick ways of interaction with computers is speech and handwriting.

Speech recognition has several limitations. Handwriting is the easiest and accurate way

of interaction between the machine and humans. There are also several limitations of

handwriting due to the variations involved in it.

1.1 Motivation

On-line Latin or Asian language has been a research issue for thirty years.

However, only few researchers have focused on Arabic language [Kherallah et al, 2008].

Most of the Arabic script recognition systems do not allow noisy input. Therefore, multi-

Page 23: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

cu

A

w

la

au

w

T

pr

b

li

Chapter 1

Muhammad Imr

ultural and M

Arabic script

world popula

anguages su

utomation o

writing styles

The research

roblem due

ased approa

imitation of d

F

ran Razzak (36

Multilangua

based langu

ationand in

uch as Ara

of Urdu scri

s are used b

h for Multil

to different

ach for hand

dataset for s

Figure 1.1: W

6-FBAS/PHDC

age handwrit

uages.The U

many count

abic, Persian

ipt based lan

by these lang

language ch

t writing sty

dwritten Urd

egmentation

World vision

CS/F07)

ting styles i

Urdu/Arabic

tries and by

n, Urdu, S

nguages has

guages; the

haracter rec

yles and lang

du script bas

n based appro

in order to f

is the curren

characters a

y many natio

Sindhi, Punj

s wide spre

most comm

cognition is

guage prope

sed language

oach.

facilitate stud

nt and hot r

are used by

ons in the f

jabi, Pashto

ad benefitsw

mon are Nast

still open

erty. Moreov

es are still in

dents using

Introduc

esearch issu

at least ¼ o

form of diff

o etc. Thus

whereas diff

ta’liq and N

and challen

ver segment

n demand d

iPod.

ction

ue for

of the

ferent

s the

ferent

Naskh.

nging

tation

due to

Page 24: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 6  

1.2 Classification of Character Recognition.

The origination of character recognition starts from 1870’s with the invention of

scanner whereas the first successful attempt was made by Tyurin, Russian scientist in

1900. The modern character recognition system started from 1940s [Mantas 1986]. Now

a days it is a most intensive field of research.There is a worldwide interest in the

development of handwritten character applications and it is the most important part of

research of artificial intelligence and pattern recognition. The aim of the character

recognition system is to behave like human in reading the spatial form of handwritten

marks. With respected to the user data, character recognition can be writer independent or

writer dependent. Writer dependent character recognition is much more easy and more

accurate than writer independent [Subrahmonia, 2000] because in writer dependent the

system is trained on few user’s and only these users can use the system. The writer

independent must be expert in commonly used writing style and intelligent to large

variations. Character recognition system differs with respect to mode of input i.e. input

acquisition (offline or online), writing mode (printed or handwritten) and font (single or

omni) [Al-Badr 1995],[Govindan 1990]. This categorization is illustrated in figure 1.2.

Depending upon the nature of application character recognition system is classified into

two groups.

1.2.1. Offline Character Recognition

Offline character recognition system deals with recognizing the input text after it is

written. The input is obtained by digitizing the paper using a camera or scanner.

Therefore input for offline character recognition is the two dimensional spatial

Page 25: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

in

tw

o

re

sc

1

d

in

h

du

in

Chapter 1

Muhammad Imr

nformation o

wo types wi

ffline handw

efers to th

canned/captu

.2.2. Onlin

Anoth

ocument ma

ntegrate thes

andwritten s

uring the tim

nput through

Iso

ran Razzak (36

of the written

ith respect t

written char

he process

ured from pa

Fi

ne Charac

her attractive

anagement. T

se acts into in

shapes and s

me user is w

h pc tablet o

Onlin

olated 

6-FBAS/PHDC

n text. The o

to the mode

racter recog

of recogn

aper.

igure 1.2: Ch

cter Recog

e area of ch

The digital p

nformation s

store it in a v

writing with

or digital pe

Ha

ne 

Cur

CS/F07)

offline chara

e of input o

gnition. Off-

nizing the

haracter Rec

gnition

haracter reco

pen allows p

systems [Fuj

very natural

a digital pe

en consists

andwritten Cha

Recognition

rsive 

acter recogni

offline printe

-line handw

handwritte

cognition me

ognition is a

people to rea

jiswa, 2008]

l way. The s

en or pc tabl

of duration,

aracter 

O

Isolated

ition is furth

ed character

writing chara

n words t

ethodologies

digital pen

ad, write, an

]. The digita

system can r

let shown in

, stroke elem

Offline 

Introduc

her classified

r recognition

acter recogn

that have

s.

and handwr

nd memorize

al pen can ca

recognize the

n Figure 1.3

ments and s

Cursive

ction

d into

n and

nition

been

riting

e, and

apture

e text

. The

stroke

Page 26: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 8  

order. It has great potential to improve the communication between human and machine.

The use of digital pen enables humans to work in digital world just as in real world.

Handwritten characters provide the most promising method for interaction with small

portable machines. Online character recognition is becoming popular input mode

especially in the growing pen applications and improvement in handheld devices such as

Tablet PCs, Palm, and Pocket PC based PDAs etc [Tanaka 2003]. This may be due to the

natural way of human interaction with these machines. Online handwritten character

recognition is suitable for mobile application whereas it is difficult to use the keyboard

i.e. small PDA has a very small keyboard and it is very difficult to use the keyboard.

Whenever the term handwriting recognition is used without prefixing it with offline and

online terms, people normally think of handwritten input using recognition devices i.e.

personal digital assistants (PDAs), pc tablet etc.

Now adays online character recognition is gaining more intention due to the latest

improvements in handheld device, latest mobile phones, etc. Due to the complexities

involved in handwritten text i.e. variability, distortions, etc. the accurate handwritten

character recognition is very difficult.

Page 27: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

1

n

w

se

h

w

is

st

p

Chapter 1

Muhammad Imr

F

.3 Constra

Handw

ature, const

written insid

eparately wi

andwriting.

writing is cal

s cursive and

trokes are m

eople write

ran Razzak (36

Figure 1.3. D

ained Vs U

writing char

trained hand

de the speci

ith spaces a

If the chara

led run-on d

d complex in

more than on

in mixed cu

6-FBAS/PHDC

Digital pen us

Unconstra

racter can b

dwriting tex

ial boxes a

and don’t to

acters are w

discrete hand

n nature. In t

ne in individ

rsive styles

CS/F07)

sing Anoto f

ained

e constraine

xt is the spa

as shown in

uch the oth

written separ

dwriting wh

the cursive t

dual characte

that include

functionality

ed or uncon

aced discret

n figure 1.4

her character

rately and t

ereas the un

text, the char

er shown in

s spaced, run

y [Fujiswa, 2

nstrained [Ta

te and boxe

4(a). The c

rs are called

they touch e

nconstrained

racters are c

Figure 1.4(b

un-on discret

Introduc

2008]

appert, 1984

ed discrete.

character w

d spaced dis

each other,

handwriting

connected an

b). Normally

te and cursiv

ction

4]. In

It is

written

screte

the

g text

nd the

y, the

ve but

Page 28: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

it

h

sp

1

pr

F

n

p

re

p

d

d

d

Chapter 1

Muhammad Imr

t is called th

andwriting t

peed of writi

.4 Urdu/A

Generally

reprocessing

igure 1.5. P

ormalize it f

atterns from

ecognition m

attern class

erivation of

ata used by

iscriminator

ran Razzak (36

e cursive ha

text due to t

ing and large

Figure

Arabic Cha

y, the chara

g, feature ex

Preprocessing

for further p

m large data

methodology

sifier. Featu

f salient feat

y the classifi

ry power.

6-FBAS/PHDC

andwritten te

the complex

e variations

e 1.4 (a) Dis

aracter Re

acter recogni

xtraction, tra

g phase is re

processing. F

that can bet

y depends hig

ure selection

tures from th

ier for class

CS/F07)

ext. It is a ve

xities involv

in shapes.

screte writing

ecognition

ition proces

aining/classi

esponsible to

Feature extr

tter discrimi

ghly on the

n in patter

he raw data

sification an

(a)

(b)

10 

ery difficult

ved in it i.e.

g, (b) Cursiv

n Process

s is divided

ification and

o clean the ra

action allow

inate the sha

particular ch

rn recogniti

a input in or

nd simultane

task to reco

order of str

ve writing

d into four p

d post proce

aw input fro

ws extraction

apes. A suc

hoice of fea

ion problem

rder to reduc

eously provi

Introduc

ognize the cu

rokes, noise

phases whic

essing, show

om noisy dat

n of some un

ccessful char

atures used b

ms involves

ce the amou

ide the enha

ction

ursive

e, and

ch are

wn in

ta and

nique

racter

by the

s the

unt of

anced

Page 29: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 11  

Figure 1.5: Character recognition process

The classification phase is responsible for recognition of learning based on the

discriminant features whereas, post processing phase is further applied on to the

recognized text to further investigate the recognized data based on context

knowledge/word knowledge i.e. diacritical mapping, dictionary based processing, word

formation etc.

1.5 Challenges in Urdu Script Character Recognition

Arabic civilization has wide culture because many civilizationshas been inspired

by Arabs culturally and Arabic language is closely associated with Islam and with a

highly esteemed body of literature. The Arabic/Urdu scripts consists of many challenges

that make it more complex as compared to other scripts. Moreover the Urdu script is

written in Nasta’liq that makes it more difficult in the family of Arabic script based

languages. Unlike other scripts Arabic script based languages are written from right to

Input

Preprocessing

Feature Extraction

Training/Classification

Post Processing

Recognized output

Page 30: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

le

ch

co

d

up

co

U

w

ex

pr

m

C

1

T

Chapter 1

Muhammad Imr

eft. It is writ

haracter dep

omplex as c

epending up

pon the asso

omplex as co

Moreo

Urdu, hence i

was not the

xtensive am

resences of

more difficult

Figure 1.

Characters m

.5. Moreove

Thus, the Ar

ran Razzak (36

tten in cursiv

pends upon

compared to

pon the posi

ociated chara

ompared to N

over, Arabic

it is difficult

part of lan

mount of do

diacritical m

t.

6(a): differe

may overlap v

er the size o

rabic charac

6-FBAS/PHDC

ve form in b

the associa

o Naskh styl

ition wherea

acters on bo

Naskh show

c script base

t to different

nguages and

ots associate

marks make

nt shapes of

vertically ev

of each ligat

cters have n

CS/F07)

both printed

ated connect

le. For exam

as the charac

th sides and

wn in figure 1

ed languages

tiate betwee

hence, it w

ed with eac

base line de

f Nasta’liq sc

ven without

ure varies d

ot got symm

(a)

(b)

12 

and handwr

ted characte

mple the cha

cter shapes

d secondly th

1.6.

s are rich in

en similar sh

was added

ch word m

etection, line

cript (b) diac

touching ea

due to cursiv

metry in he

ritten form.

ers. Nasta’li

aracter in N

may be up

he shape of N

n diacritical

hapes. Histor

later on for

makes it ver

e detection a

critical mark

ach other as

veness and s

ight and wi

Introduc

The shape o

iq script is

Naskh are up

to 32 depen

Nasta’liq is

marks espec

rically, diacr

r nonnative.

ry complex.

and segment

ks complexit

shown in F

size of chara

idth. Words

ction

of the

more

p to 4

nding

more

cially

ritical

. The

The

tation

y

Figure

acter.

may

Page 31: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 13  

consist of one or more ligatures whereas the ligature may be composed of one or more

alphabets i.e. only Urdu consists of more than 22000 ligatures [Attash Durani, 2010]. It is

very difficult to segment the ligatures into characters especially in the case of Nasta’liq

script. Some of the Urdu script letters have same form however; they are differentiated

from each other by the addition of diacritical marks at different positions. Moreover,

some character use special marks which leads to modify the characters accent [Kherallah

et.al 2009]. These diacritical marks are positioned at certain distance either below or

above from the character. In most of the cases, the Urdu script based languages writing

for native reader does not use vowels because the sense of the word can be determined by

the context of the sentence. However they are used for nonnative user. The richness of

Urdu script based languages in diacritical marks makes it more difficult and complex.

Moreover the Urdu words composed of sub words and sub words may compose of one or

more letters and these letters are combined in cursive form. This property of similarity of

character, ligature and words makes the Urdu script based language more difficult due to

the absence of context knowledge. The very similar contours are very difficult to segment

and recognize [Hamad and Zitar, 2010]. The characters such as the shown in Figure 1.6.b

complicate segmentation and recognition when it occurs in the middle of a word.

Variations in handwritten text depend upon the alignments and the different forms

of handwritten strokes and these variations are geometrical. Most common geometrical

properties are position, size, aspect ratio of strokes, slant and number of strokes in a

character. Characters may look similar although the number of characters, number of

strokes, drawing order and direction of the strokes may vary considerably. Thus

recognition and segmentation of Urdu handwritten script based languages is a difficult

Page 32: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 14  

task because the Urdu script handwritten characters are naturally cursive and

unconstrained and it is believed that a good segmentation technique is one of the

important reason for high accuracy character recognition.

1.6 Objectives

Urdu script based languages has received limited attention as compared to the

other scripts and therefore no single commercial application exists for the purpose.

Moreover, Urdu script based languages are similar to each other due to the same script.

The idea of Multilanguage Urdu script based languages has not been considered. The one

of the basic objectives is to provide a framework for Multilanguage Urdu script based

upon the language characters. While the main objective of the thesis is to explore the

segmentation based techniques to avoid the heavy training required for ligature approach

and limitation of dataset i.e. only Urdu script contain more than 22000 ligatures and it is

very difficult and complex to train large datasets. The third objective is to explore the

character recognition according to the biological perceptive of human vision for Urdu

script based languages which are rich in diacritical marks and complex shapes. An

efficient solution to recognize the complex Urdu script is to observe them based on

biologically vision. Natural images contain ambiguous and incomplete data due to

various effects. Due to the large variations in modeling of human visual perception, fuzzy

logics is a significant tool to handle such complex problems. Most of the cases, the Urdu

script does not use the special diacritical marks for accent because the sense of the word

is determined by the context of the sentence. Thus all the vowels in this work are not

considered.

Page 33: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 15  

1.7 Knowledge Based Urdu Character Recognition System

The intelligent knowledge-based methods used to imitate the human visual system

include expert systems, genetic algorithms, neuralnetworks, evolutionary computing and

fuzzy logics. Fuzzy logic provides a basis for representing uncertain and

impreciseknowledge and uncertainties can be modeled easily as inspired from the human

visual system. This thesis presents biologly inspired Urdu script based languages

character recognition using fuzzy logic. The ghost character recognition theory provides

the a framework for Multilanguage character recognition system similar to human visual

system. Although the human visual system is translation, rotation etc. invariant, yet it has

some effect on accuracy and speed. Fuzzy based several preprocessing steps e.g.

skewness, baseline estimation, slant correction, smoothing etc are applied to normalize

the handwritten input strokes. These series of steps are applied only on the ghost

character to avoid the error introduced due to diacritical marks. The preprocessing results

in clean and smoothed input for feature extraction like the input is normalized by eyes so

that the data is translation and rotation invariant. The structural and directional features

are extracted in a layered manner like the human and fusion is performed to create a new

feature matrix. The lower layer extract similar features and these similar features are

further refined to form new complex features. The languages rules are added with fuzzy

rules to extract unique and discriminant features. Modified HMM is used for the

segmentation free approach whereas fuzzy logic based biological inspired method is used

and partially implicit segmentation based recognition is performed. Fuzzy provided an

excellent way to model the biological concept for Urdu handwritten character

Page 34: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 16  

recognition. Finally, the diacritical marks are mapped on to the primary strokes with the

help of language rules.

1.8 Contributions

The original contributions of this works are

I. A new method “Biological inspired character recognition for Urdu script

based languages” is presented. It is built as human visual system which

finds the larger more significant patterns from the smaller patterns.

II. Multilanguage technique “Ghost Character Recognition Theory” for

Arabic script based language is presented. Due to the similarity of all

Arabic script based languages, ghost character recognition theory helps to

build the Multilanguage character recognition system. The diacritical

marks are separated and ghost shapes are treated separately and finally

mapping of diacritical is performed based on the language.

III. In order to make handwritten communication with machine more natural,

several preprocessing steps for handwritten online Urdu script character

recognition have been presented to overcome the issue in raw input.

IV. Fusion is performed on structural and directional features to form new

feature sets. The combination of structural and directional features is

based on time and position information.

V. Segmentation free (Modified HMM, Hybrid Approach: Fuzzy logics and

HMM) and simultaneous bio-inspired segmentation based approach are

presented. HMM classes are reduced using fuzzy logics based on the word

structure whereas bottom up approach is used to find the more

Page 35: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 17  

discriminatory patterns from the small sub patterns using recursive

approach.

VI. A fuzzy logics based method for diacritical marks handling is presented.

As these languages are rich in diacritical marks, and they have lots of

issues in handling of diacritical marks. Fuzzy clustering is performed to

read diacritical marks.

VII. Finally mapping of diacritical marks is performed based on the languages

structure.

1.9 Thesis Organization

The focus of the thesis is the applicability of bio-inspired preprocessing, feature

extraction and recognition of text in layered manner and analysis of segmentation and

segmentation free approach for Urdu script based languages character recognition

especially languages written in Nasta’liq script. The rest of the thesis is divided into eight

chapters. The organization of the thesis is as follow:

Chapter 2 Handwritten Character Recognition: A Literature Survey

Chapter 2 briefly presents the state of the art on Arabic script based

language character recognition. The main phases on Urdu character recognition

i.e. preprocessing, feature extraction, classification and post processing is

reviewed. Finally, the gaps between the previous works are described.

Chapter 3 Fuzzy Logic and Human Biological Visual Perception

Page 36: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 18  

This chapter briefly describes the fuzzy logics and analysis of human

visual perception and computational modeling on applications. The first part of

this chapter presents fuzzy logic and the second part exposes the terminology of

the material studied inspired by biological systems. Object recognition in real

world still remains challenging and important in daily life applications such as

character recognition, robot navigation, image understanding, security etc as

compared to application in constrained environment. An efficient solution to

recognize the complex pattern is to observe them based on biological vision. Due

to the large variations the modeling of human visual perception using fuzzy logics

is a significant tool to handle such complex problems. To deal with the complex

problem and involve human intelligence, fuzzy logic inspired by biological vision

concept is presented. Finally it presentsbiological inspired character recognition

with the concept of fuzzy logic. The main contribution of this chapter is to discuss

the biological inspired fuzzy model.

Chapter 4 Ghost Character Recognition Theory and Arabic Script based Languages

Character Recognition

This chapter presents the ghost character recognition theory based on

ghost character theory. The proposed ghost character recognition theory is the

important step towards the biological inspired and Multilanguage character

recognition system. The main benefit of proposed approach is that it works well

for all Arabic script based languages by concentrating ghost shapes and diacritical

marks separately and developing dictionary for every language that helps in

ligature and word formation. Handling all Arabic script based languages has

Page 37: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 19  

several issues as compared to system for specific languages and specific writing

style i.e. Nastaliq or Naskh.

Chapter 5:

Preprocessing and feature extraction is the most important and complex

part of the thesis. The handwritten Urdu script contains lot of variations and noisy

pattern. Based on the ghost character theory proposed in chapter 4, the diacritical

marks are separated from the base stroke and treat the ghost character separately.

The raw input data is preprocessing by applying several preprocessing steps i.e.

baseline estimation and correction, smoothing, de-hooking, normalization etc.

Secondly, the unique features are extracted, based on the geometry of handwritten

strokes. The aim of feature extraction from the input strokes reduces the input

pattern to avoid complexities while maintaining the high accuracy and the

extraction of these distinct patterns that uniquely define the strokes and most

important for classification. This phase includes the feature extraction fromm the

primary strokes that provides sufficient information to the inference engine for

classification. The biological inspired features are extracted in bottom up fashion.

Both directional and structural features are extracted using fuzzy logic.

Chapter 6: Holistic Approach for Urdu Recognition using Modified HMM

Segmentation based approach for recognition of handwritten Urdu script

incorporates a considerable overhead and has less accuracy as compared to other

script. This chapter presents two approaches for Urdu character recognition. The

first phase introduces a ligature based approach using Hidden Markov Model that

Page 38: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 20  

provides solution for recognition of Urdu script. HMM database is divided into 54

subclasses based on the starting and ending shapes of the ligature. The sub

division in classes reduces the time complexity and increases the efficiency. The

second part presents a segmentation free approach for recognition of Online Urdu

handwritten script using hybrid classifier, HMM and Fuzzy logic. The

classification is performed using fuzzy instead of exactly based on feature.

Trained data set consists of HMM’s for each stroke is further classified into 62

sub pattern based on the primary stroke using fuzzy rule. Fuzzy linguistic

variables based on language structure are used to model features and provide

suitable result for large variation in handwritten strokes.

Chapter 7: Biology Inspired Character Recognition

Due to the limitation involved in segmentation approach, this chapter

presents segmentation based approach for online Urdu script based language

character recognition. The concept of ghost character recognition discussed in

chapter 4 helps to build biological inspired and Multilanguage character

recognition system. This chapter integrates the biological concept with fuzzy

logics to achieve robust system in terms of speed, accuracy and efficiency. The

visual perception system of human is very powerful in pattern recognition

problems. Bio-inspired multi-layered fuzzy rules based expert system is presented

for handwritten Multilanguage character recognition i.e. Arabic script based

languages inspired by visual ventral stream to improve the recognition accuracy.

Chapter 8: Comparative Analysis and Conclusion

Page 39: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 1 Introduction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 21  

This chapter analyzes the presented approach i.e. ghost character theory,

effect of fuzzy preprocessing and feature extraction and finally compare the

segmentation free approach with biological inspired segmentation base approach.

Finally future work is presented.

Appendix A: Book Chapter

The section presents the book chapter written based on PhD work for Document

Image Understanding

Appendix B: Journal Papers

The section presents the journal paper written during PhD.

Appendix C: Conference Papers

The section presents the conference paper written during PhD.

Page 40: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 21  

CHAPTER 2

HANDWRITTEN CHARACTER RECOGNITION:

LITERATURE SURVEY

Character recognition is a fundamental but most challenging in the field of pattern

recognition with large number of useful applications. It has been an intensive field of

research since the early days of computer science due to it being a natural way of

interactions between computers and humans. There is a worldwide interest in the

development of handwritten character applications and the tremendous advances in the

computational intelligence algorithms have provided new tools for the development of

intelligent character recognition. With respect to the mode of input, Handwritten

character recognition is classified into two classes namely; online and offline. In offline

handwritten character recognition, the input is available in the form of an image obtained

through a scanner or a digital camera whereas in online character recognition coordinate

information of strokes is available with timing information, this additional timing

information makes online recognition easier as compared to offline. Furthermore online

Page 41: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 22  

character recognition can be processed from both online and offline perspective while

versa is not possible.

From the classifier perspective, character recognition systems are classified into

two main category i.e. segmentation free (global) and segmentation based (analytic). The

segmentation free also known as the holistic approach to recognize the character without

segmenting it into sub units or characters.Each word is represented as a set of global

features e.g. ascender, loops, cusp etc. Whereas segmentation based approach; each

words/ligature is segmented into subunits either uniform or non-uniform and subunits are

considered independently [Lorigo and Govindaraju, 2006].The segmentation systems

have low recognition rate as compared to segmentation free approach due to error

involved in segmentation. On the other hand segmentation based approach are more

powerful for large datasets as compared to the segmentation free systems.

Automatic recognition of cursive handwritten script remains a challenging

problem even with the promising improvement in the classifier. Online Urdu script based

languages character recognition is very challenging task due to its complex structure of

graphical marks. Vast variation and inconsistencies makes handwritten Arabic script

based languages character recognition much more complex than any other language.

Segmentation free methods are very helpful in the recognition of complex patterns, but

for Urdu script, the numbers of ligatures are more than 22000[Attash Durani, 2010]. Thus

it’s very difficult to build a system based on segmentation free approach for such large

amount of ligature in term of both complexity and recognition rate. Thesegmentation

based approach for recognition of handwritten Urdu script incorporates a considerable

overhead and has extremely leow accuracy as compared to other script. Moreover

Page 42: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 23  

presence of complimentary characters in Urdu language makes it complicated as these

have to be segmented into secondary strokes. A lot of research works have been done for

offline printed Arabic Persian and Urdu documents with reasonable levels of accuracy.

However, within the context of online handwritten character recognition, studies dealing

with Arabic script based languages characters are scarce [Hussain et al, 2007] especially

for Urdu script. Furthermore the work done for Arabic and Persian cannot be directly

applied to Urdu due to more complexities involved in Nasta'liq style as compared to

Naskh. Moreover, there is no standard dataset available for Urdu script especially for

online character recognition. For handwritten offline only few available databases are

IFN/ENIT [Pechwitz et al., 2002], LMCA[Kherallah et al, 2008 ], AHDB [Adeed et alm

2004] and Urdu database and Farsi database by CENPARMI respectively [Sagheer et al.,

2009],[Haghighi et al, 2009].

Normally handwritten recognition is divided in to four phases which are

preprocessing, feature extraction, classification and post processing. The input is obtained

from PC tablet and it consists of strokes elements x,y in order of occurrence, time, force,

velocity. The additional timing information and order of strokes elements makes online

character recognition little easy over offline handwritten character recognition. Force and

velocity information are helpful in personality observation, person identification etc. but

not helpful for character recognition due to different force and writing speed. Strokes are

acquired from the movement of pen during the pen down and pen up event. These raw

inputs strokes contain lot of inconsistencies and large data which cannot be directly used

by classifier, thus preprocessing and pattern extraction are performed on raw input

strokes.

Page 43: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 24  

2.1 Preprocessing

Preprocessing is the basic phase of character recognition and its crucial for good

recognition rate. The main objective of preprocessing steps is to normalize strokes and

remove variations that would otherwise complicate recognition and reduce the

recognition rate. The input of preprocessing phase is raw data x,y strokes elements and

output is normalized strokes. Several basic preprocessing steps are skew detection, noise

removal, filtering, slant correction, normalization etc.

J. Sternby et al. performed noise reduction at the time of recognition and some

improper pattern are considered as noise whereas segmentation of strokes into sub

patterns that contain shapes of individual character is performed as a preprocessing step.

Some robust rules are added with traditional segment point to segment the strokes into

independent subunits whereas the missing segmentation and complex curve pattern are

not considered [Sternby et al, 2009]. J. Schenk et al. performed histogram based skew

detection and slant normalization and for normalization the handwritten strokes re-

sampling is performed to achieve the strokes elements at equidistant [Schenk et al, 2008].

Ahmad and Maen performed slope estimation and normalization for online Arabic digits

[Ahmad and Maen, 2008]. The sign of slope values zero and infinity are extracted to use

for feature extraction and breaks points are estimated from slope value. Primitives are

extracted from normalized slope and break points and finally primitives are sorted to

reduce the input pattern size. Hussam et al presented several preprocessing steps in order

to normalized the handwritten strokes i.e. noise removal, baseline estimation, diacritical

Page 44: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

m

es

st

on

2

ex

se

p

U

du

th

tr

tr

fi

re

Chapter 2

Muhammad Imr

marks extrac

stimation, an

tage [Hussam

n Bangle an

009]. Sternb

xtreme poin

egmentation

Figur

Husai

erformed rep

Urdu input. E

uring writin

he feature se

ranslation, s

ranslated the

ill the missin

eduction and

ran Razzak (36

ction, middle

nd stroke wi

m et al, 201

nd Farsi num

by et al per

nt with resp

n is individua

re 2.1: Basel

in et.al perfo

petition rem

El-Anwar eta

g due to fas

et for Arabic

scaling, con

e image usin

ng [Al-Ghon

d smoothing

6-FBAS/PHDC

e region de

idth estimati

10]. Lui et a

merals charac

rformed seg

ect to the d

al character b

line estimatio

ormed smoot

moval and filt

al. proposed

t pen movem

c language [R

nnected line

ng the center

neim et al, 2

and Dougla

Handwr

CS/F07)

etection, his

ion etc and t

al performed

cter on both

gmentation b

direction of

by using heu

on using hist

thing; de-hoo

tering step to

a method to

ment and seg

Randa et al

generation,

r of gravity a

001]. Fadi B

s and Peuck

ritten Characte

25 

stogram esti

the diacritica

d nonlinear m

h binary and

by segmenti

writing of

uristic rules

togram [Ham

oking on cha

o remove the

o relate the b

gment the do

l, 2007]. Al-

, and smoo

and used bre

Biadsy at.el.u

ker’s algorith

er Recognition

imation, mo

al marks are

moment bas

d gray scale

ing the char

character an

[Sternby et a

mad and Zat

ain code and

e repetition a

broken strok

ot from the

-Ghoneim K

othing for o

esenham’s l

used low pa

hm [Douglas

n: Literature Su

odified histo

e extracted at

sed normaliz

image [Lui

racter at ve

nd the outp

al, 2009].

tar, 2009]

d Malik and

and staircase

kes due to pe

strokes to re

K. et.al perfo

offline input

ine algorithm

ass filter for

s D, 1973] is

urvey

ogram

t first

zation

et al,

ertical

put of

Khan

es for

en lift

educe

ormed

t and

ms to

noise

s used

Page 45: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 26  

to eliminate the redundant points [Biadsy et al, 2006 ]. Benouareth et.al performed

binerization, smoothing, baseline detection and thinning operation for offline Arabic

handwritten recognition [Benouareth et al, 2008]. Razzak et.al proposed several

preprocessing steps for online Urdu character recognition from both online and offline

perspective [Benouareth et al, 2008]. Adeed presented normalization to reduce the

character to uniform height of strokes based on slope, stroke width, and stroke height

[Adeed et al, 2002]. Ibrahiem et.al performed smoothing on chain code. Baseline is the

virtual line on which semi cursive or cursive text are aligned/ joined. Generally baseline

is kept in mind during both writing and reading. Baseline detection is not only used for

automatic character recognition but it is also necessary for human. Without baseline

detection it is very difficult to read the text even for human due to improper visibility and

error rate increase up to 10% while the context sensitive interpretation is involved in

human reading. Whereas in automatic classification no context based interpretation is

involved and decision of baseline may be on one word which is very difficult especially

estimation of diacritical marks without proper baseline being very difficult. Thus baseline

detection is the necessary part of better classification especially for Arabic script based

languages. Several baseline detection methods based on horizontal projection have been

proposed in literatures but they are for large text lines.

The horizontal projection based approach counts the elements on horizontal line

and assumes that maximum number of elements on horizontal line is the baseline.

Although it is robust and very easy to implement but it needs long straight line of text but

in the case of handwritten text especially for online handwritten text the length of the line

may be very short. Thus the histogram projection mostly fails in estimating the correct

Page 46: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 27  

baseline for isolated handwritten text and ligatures having greater number of ascender

and descender.

Boubaker et.al presented a novel method for both online and offline Arabic

handwritten text based on the graphemes segmentation The segmentation of Arabic

character works on the previous detection of baseline using the topologically points i.e.

the backs of the valleys adjoining the baseline and the angular points. [Boubaker et al,

2009]. Maddouri and Abed compared the six methods for Arabic character recognition on

IFN/ENIT database. Projection based method fails to estimate the baseline for short word

length and words having more diacritical marks, ascender, descender [Maddouri and

Abed, 2008]. Min-Max and PAWs are presented based on the projection based method.

Min-Max contour method used critical points from the word contour and two baselines

upper and lower are extracted from mean of maxima and minima respectively. The

combination of Min-Max and some structural primitives i.e. loops, diacritical marks is

used for baseline estimation. These additional primitives are used to differentiate

contours from the others.

Faisal et al. modified the RAST algorithms by introducing two desender lower

line d1 and desender upper line d2 for Urdu images [Faisal et.al 2005]. Farooq et.al and

Benoureth et al. presented linear regression on local minima of the word for baseline

detection [Farooq et.al 2005], [Benoureth et.al 2009]. Mohammad et.al presented a

vertical projection algorithm obtained by summing the value along x-axis and detected

two baselines [Mohammad et al. 2009]. The lower baseline is identified by maximum

projection profile. The upper baseline is estimated by scanning the image from top to

bottom . Alkhateeb presented knowledge based baseline estimation by using the location

Page 47: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 28  

information for baseline estimation [Alkhateeb,2009]. The algorithm is improved by

estimating the baseline at bottom half of image because of baseline existence at bottom of

word. The vertically projection is inefficient for small length text. Benouareth et.al used

projection after transforming image into Hough parameter for baseline estimation

[Benouareth et.al ,2009]. M.Pechwitz et.al used linear piecewise curves using projections

for baseline estimation [M.Pechwitz and V.Maergner, 2003]. Izadi et al performed

resampling; smoothing and de-hooking for online writer independent character

recognition and the character are normalized at same height and the original aspect ratio

of the character remains same [Izadi et al, 2008]. For training SVM, point re-sampling is

performed to make all the instants of same length in order to get feature matrix of same

length. Amor and Amara et.al presented several preprocessing step i.e. noise reduction,

edge detection etc [Amor and Amara, 2006]. Aly et.al presented method for baseline

discrimination dealing super script and subscript for mathematical equation and they

normalized the text in bounding box by estimating the partial height of character [Aly et

al. , 2007]. Deepu et.al performed smoothing, translation and re-sampling for online

Tamil handwritten character recognition. The original coordinates are replaced with new

coordinates using piece wise linear transformation [Deepu etal., 2004]. Baghshah et.al

performed stroke segmentation, noise reduction and smoothing for online Persian

handwritten character recognition. Smoothing is performed using the average point of

neighbor pixel and apply filtering step to reduce the close point [Baghshah et al., 2006].

Arabic script based languages are rich in diacritical marks. The primary shape is

called ghost character whereassecondary strokes associated with each character is called

diacritical marks. The diacritical marks are small secondary strokes such as dot, accents

Page 48: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 29  

to distinguish basic shape from other [Sternby et al, 2009]. The basic rule of Arabic script

based languages is that primary stroke contains zero or more diacritical marks shown in

figure 1.5.a. Moreover one character may contain up to four diacritical marks and it may

be increased to six by adding zeer, zaber etc. These diacritical marks may appear at

inside, top, below, right side of the ghost character. Basically each word in Arabic script

is broken into ligature which consist one or more alphabets.

Diacritical marks separation in Nasta'liq is more complex as compared to Naskh

style due to the complex nature of Nasta’liq over Naskh i.e ب has 32 shapes depending

upon the position of character and adjoining character on both side as shown in figure

1.6.b. Thus the recognition for handwritten Nasta’liq script is more complex. More than

half of the Urdu script based languages character set consists of diacritical marks whereas

these characters have as unique mian stroke. Normally maximum number of dots for one

character is three but for some languages i.e. Sindhi, Pashto it may be four. The huge

number of dots sometimes causes word to be read in various form with completely

different meaning due to incorrect association.

Researcheres have proposed different methods for Arabic script character

recognition but the attention paid to diacritical marks is very low where as it is more

complex in the case of handwritten character recognition especially for nastaliq script.

Sternby et al handled diacritical marks by adding to the segmentation graph as extra edge

[Sternby et al, 2009]. Biadsy et al estimated the diacritical position by projecting the

diacritical marks onto the base stroke and detection is performed by using size, shape of

bounding box, location and time of the stroke [Biadsy et al, 2006]. The last point of

diacritical marks is added with the base stroke where the projection falls and new

Page 49: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 30  

sequence includes all points of base stroke mixed with secondary strokes. Sari et al

extracted morphological features which are stored in associates list to consider diacritical

marks [Sari et al, 2002]. Saabni and Sana handled the diacritical marks based on

sequential order, size and location [Saabni and Sana, 2009]. Benouareth et. al used

location information for offline Arabic handwritten character recognition [Benouareth etl

al, 2008]. Khorsheed modeled the order of diacritical marks with other base character

features [Khorsheed, 2003]. Husain et al handled thediacritical marks using position and

order information. Husam et al removed the punctuation marks to find the best vertical

histogram. The extraction of punctuation marks is based on the density of the stroke. The

stroke is removed if its density is less than constant the c and on the other hand they also

face problem in the case of small base characters such as ر[Husam et al., 2010]. The

separation of dot is only for vertical histogram estimation whereas the consideration of

diacritical marks on to associated character is based on this vertical histogram. This

approach is somehow suitable in the case of Naskh style for Arabic script while it has

several issues for Arabic script used Indian region i.e. Urdu, Punjabi, Sindhi.

Kherallah et al treated some most commonly used diacritical marks for Arabic script and

their mapping is based on elliptic representation [Kherallah et al, 2009]. The above short

review on Arabic script base languages shows that very less attention has been paid to

deal with diacritical marks. While there are lot of issues are involved in diacritical marks

especially in Nasta’liq script. The Arabic script based languages are rich in diacritical

marks; it is very difficult to handle the diacritical marks for some character. The position,

order and size are not enough to estimate the associated character. Husam et.al separated

the punctuation marks at first stage from the character to reduce the complexity in the

Page 50: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

h

ch

pu

T

ac

gh

S

d

b

pr

2

Chapter 2

Muhammad Imr

andwritten t

haracter tech

unctuation m

The other han

ccent. Based

host charact

ternby et. al

id not tread

asic shape sh

rimary strok

009].

ran Razzak (36

text then th

hnique is us

marks cause

nd the autho

d on the den

ter but this

extracted di

d like base s

hared the sam

ke with resp

Figure 2.2

6-FBAS/PHDC

hey removed

sed in locati

incorrect se

r did not tre

nsity of the d

step is only

iacritical ma

shape thus a

me template

ect to their

: Diacritical

Handwr

CS/F07)

d the diacrit

ing the pros

egment point

eat all the dia

diacritical m

y for the pr

arks from the

all letters wi

e. Later on th

relative pos

marks hand

ritten Characte

31 

tical marks.

spective seg

t due to the

acritical mar

marks,diacriti

reprocessing

e base shape

ith different

he diacritical

sition shown

dling [Sternb

er Recognition

Vertical hi

gmentation p

position of d

rks i.e. diacr

ical marks a

g phase [Hu

e and treated

t diacritical

l marks are a

n in figure 2

by et al, 2009

n: Literature Su

istogram on

point becaus

diacritical m

ritical marks

are removed

usam et.al 2

d separately.

marks and

attached on t

.2 [Sternby

9].

urvey

base

se the

marks.

s used

from

2010].

They

same

to the

et al,

Page 51: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

st

lo

es

p

ap

h

an

re

[M

up

se

sm

co

T

Chapter 2

Muhammad Imr

Figure

Biadsy

trokes shown

ocation of st

stimated usi

oint of delay

ppear as par

andled by pr

nd integratin

educe the le

Mozaffari et

p and 1 dow

Hama

egmentation

maller than

onstant c, ar

The disadvan

ran Razzak (36

e 2.3: Vertic

y F et.al han

n in figure 2

troke and or

ing the verti

y stroke is p

rt of connec

rojecting the

ng it with o

exicon. The

al, 2008]. T

wn). The dots

ad and Zitar

n for Arabic

Arabic char

re removed b

ntage of this

6-FBAS/PHDC

cal Projection

ndled the del

2.3. The dia

rder of strok

cal projectio

projected on

ted word wh

e starting po

other later. M

dots positio

The output of

s are separate

presented de

character re

racter. Thus

by utilizing

approach is

Handwr

CS/F07)

n of Diacriti

layed stroke

acritical mark

kes [Biadsy

on of diacrit

to the ligatu

hile they are

oint of each

Mozaffari et

on is estima

f segmented

ed as they ap

ensity shape

ecognition. A

s the diacrit

the x,y coor

that the sma

ritten Characte

32 

ical marks [B

based on th

ks detection

F. et.al, 200

tical marks o

ure body. N

e written us

delayed stro

t al extracted

ated using b

d dot is like 1

ppear in the

e based appro

As the densi

tical marks

rdinate infor

aller charact

er Recognition

Biadsy F. et.

e projection

n is performe

06]. Wherea

on the main

Normally the

ing differen

oke on to the

d the dots f

based line i

1U2D3U1D

word in seq

oach for the

ity shape of

of density s

rmation sho

ters are also

n: Literature Su

al, 2006].

onto the pri

ed based on

as the positi

n stroke. The

Arabic char

nt strokes. Th

e word part

from the wo

.e. up and d

( 1 up, 2 dow

quential orde

diacritical m

diacritical m

size smaller

own in figure

remove, wh

urvey

imary

n size,

ion is

e first

racter

his is

body

ord to

down

wn, 3

er.

marks

marks

r than

e 2.4.

hereas

Page 52: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

in

pr

2

p

h

co

ty

al

ea

p

fr

el

an

pr

S

[S

Chapter 2

Muhammad Imr

n the case of

rimary size

Figu

.2 Feature

The m

ertinent for

orizontal po

orresponding

ype, connect

l.extracted s

ach other t

erception. M

rom level 0

lements, geo

nd these sma

rimitives [M

chenk extra

Schenk et al

ran Razzak (36

f Urdu script

[Hamad and

ure 2.4: Issue

e Extractio

main aim of

classificati

osition, rela

g mean horiz

tion angle, le

simples cells

to form the

Malaviay an

(strokes el

ometrical fe

all geometric

Malaviay et

cted three d

l, 2008]. Th

6-FBAS/PHDC

t, few diacri

d Zitar, 2010

es diacritical

on

feature extra

ion. J. Stern

tive vertica

zontal value

ength ratio a

s and grow

e features [B

nd L. Peters

lements) tow

atures are c

cal features

al, 1999]. In

dimensional

he online fea

Handwr

CS/F07)

tical marks h

].

l marks sepa

action phase

nby et al.

l position, w

e and each s

and relative p

these cells

Borji et al,

presented a

wards uniqu

computed by

are combine

n order to o

feature vect

atures are pe

ritten Characte

33 

have the sam

aration [Ham

e is to extrac

extracted re

with the m

egment is id

position [Ste

by connecti

, 2008] acc

layered app

ue identified

y using the

ed to form g

obtain 24 di

tor from bot

en pressure,

er Recognition

me size and

mad and Zitar

ct that patter

elative featu

mean value o

dentified by

ernby et al, 2

ing the asso

cording to b

proach by ex

d patterns. F

fuzzy memb

global feature

imensional f

th offline an

velocity, (x

n: Literature Su

same shape

r, 2010].

rns which is

ures i.e. rel

of segments

feature angl

2009]. A. Bo

ociated cells

biological v

xtracting fea

From the str

bership func

es by using f

feature vecto

nd online do

x ,y) coordin

urvey

as of

most

lative

s and

e, arc

orji et

with

visual

atures

rokes

ction,

fuzzy

ors J.

omain

nates,

Page 53: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

d

sa

st

o

d

co

st

ch

co

te

lo

ex

[B

fr

1

Chapter 2

Muhammad Imr

ifference of

ampled into

Figure

El-An

trokes and e

f succeeding

irectional fe

oordinates.

troke. Sudo

haracters [Su

ontinuous m

emporal patt

oop-presence

xtracted bot

Benouareth e

rom the h

893],[Bezine

ran Razzak (36

f angles, ang

3x3 along p

e 2.5 Arabic

nwar et.al p

eight pen-up

g stroke and

eatures with

Hussain et.

T. (2002),

udo, 2002].

manner and

tern of pen p

e. Benouaret

th statistical

et al, 2008].

handwritten

e et al,2003]

6-FBAS/PHDC

gle between

pen trajectory

ligature and

roposed thr

for ensamp

d current stro

other feature

al extracted

proposed t

One is the p

other is the

pressure. Bi

th et.al used

and structu

Beta-ellipti

strokes [

],[Kherallah

Handwr

CS/F07)

lines etc an

y and ascend

d their consti

ree types fre

ple movemen

oke [Randa

es like slope

d 20 unique

two types o

pen pressure

e time deriv

iadsy et.al ex

d uniform and

ral features

cal represen

Kherallah

et.al., 2004]

ritten Characte

34 

nd for offline

ders and desc

ituent charac

eeman chain

nt with addi

et al, 2007]

e, writing di

e shape defi

of pen pres

representing

vative of th

xtracted loc

d non-unifor

for offline A

ntation is also

M, 2009],

] and in the

er Recognition

e features, t

cenders [Sch

cter [Hamad

n codes, lon

tional pen d

. Malik and

rection, size

ining featur

sure as a f

g the pen up

he pressure

al-angle ,su

rm segmenta

Arabic char

o used for fe

,[Alimi,2000

second phas

n: Literature Su

the strokes i

henk et al, 20

d and Zitar, 2

ng strokes,

down inform

Khan used

e start and en

es from pri

feature for K

ps and down

representing

uper-segmen

ation schem

racter recogn

eatures extra

0],[Binet et

se Kherallah

urvey

s sub

008].

2010]

short

mation

three

nding

imary

Kanji

s in a

g the

nt and

e and

nition

action

t al,

h et al

Page 54: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

tr

an

d

h

co

ex

th

op

gr

ta

an

se

an

Chapter 2

Muhammad Imr

ransformed t

nd cognitive

erivative. H

andwritten w

ombines the

xtracted and

he foregroun

Lui et

perators are

radient vecto

angent angle

nd relative v

egment is re

nd the relativ

Figure 2

ran Razzak (36

the beta-ellip

e domain a

Husam et.al

word recogn

local featur

d then directi

nd pixels are

t el extracte

e used to ca

or is assigne

e quantizatio

vertical posi

presented by

ve position s

.6: Segment

6-FBAS/PHDC

ptical mode

and the curv

l presented

nition and t

re vector and

ions of line

replaced wi

d gradient b

alculate the

ed to discrete

on [Lui et a

ition by sign

y specified f

shown in fig

ation point e

Handwr

CS/F07)

l trajectory

vilinear velo

efficient n

the modified

d global stru

segments co

ith the direct

based featur

gradient co

e direction e

al, 2009]. St

nifying the m

feature angle

gure 2.6 [Ster

estimation ba

ritten Characte

35 

by visual co

ocity is com

neural based

d direction

uctural inform

omprising th

tion values [

res and for o

omponent in

either by par

ternby et al

mean vertica

e, arc type, l

rnby et al 20

ased on histo

er Recognition

odes based

mputed usin

d segmenta

feature extr

mation. First

he characters

[Husam et al

orientation R

n orthogona

rallelogram d

extracted re

al value of s

ength ratio,

009].

ogramSternb

n: Literature Su

on psycholo

nga second-

ation for A

raction techn

t the contour

s are detected

l, 2010].

Robert and S

al direction.

decompositi

elative horiz

segment and

connection

by et al 2009

urvey

ogical

order

Arabic

nique

rs are

d and

Sobel

. The

ion or

zontal

each

angle

9

Page 55: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 36  

Borgi used the Gabor and DoG filters as in the feature extraction phase to

implement biological inspired system [Borji et al, 2008]. Izadi et.al build shape

descriptors and define relative context as in the pair wise distance and angle and rational

property spanned by relative context making it possible to include different levels of

detail [Izadi et al, 2008]. Amor and Amara extracted features using Hough transformation

which correspond to major line features [Amor and Amara, 2006]. Aly et.al used a

technique that normalize normalized the text in bounding box by estimating the partial

height of character using which the normalized size and height of the characters are

defined [Aly et.al , 2007]. Hanmandlu et.al presented box method for feature extraction

for offline unconstrained character recognition and 24 pairs are extracted from

handwritten text and all the features are organized in sequential order [Hanmandlu et.al,

2003].

Deepu et. al extract sequence of feature which is used directly for classification

and preserved in order in which they appear and PCA is also used with pre-clustering

[Deepu et.al, 2004]. Khedher and Al-Talib combined statistical and structural method for

feature extraction and 12 features are extracted from both main and secondary parts of the

characters. For secondary stroke limited features such as height, width, height to width

ratio are extracted [Khedher and Al-Talib, 2004]. Baghshah et al extracted directional

features and relative vertical and horizontal motion features from online handwritten for

Persian character recognition. [Baghshah et al, 2006]. Parui et.al extracted features in

sequential order for online handwritten Bangla character and represent the whole stroke

using N points whereas for sub stroke sequence, straight line segments are used [Parui

eta.al, 2008]. Husam et.al presented segmentation based approach combined with neural

Page 56: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 37  

network for handwritten Arabic recognition [Husam et al, 2010]. The words are segment

into uniform and non-uniform segmentation. The segmentation points are validated using

neural network by fusing the confidence value and several directional features (manifold

direction, normalized direction value etc) are extracted for successful segmentation.

Features extracted [Hussain S.A. et.al], [Malik et al., Borji et al] do not fully

define the shape of the character in the case of segmented approach; and also fail to

recognize the primary stroke when excluding the secondary information. The pen

pressure features (Sudo T. 2002) are not useful for feature extraction of Urdu

handwritten text due to writer dependent force during writing [Fadi Biadsy at.el.] and will

not work properly for cursive Urdu script as it is very complex to segment using these

features. They also extracted feature matrix based on geometrical processing, while

automatic feature extraction based on recognition engine may be used to extract a better

feature matrix.

2.3 Classifier

Most handwrittentext recognition systems are based on the statistical method or rule

based methods. Normally statistical recognizers are more reliable however they also have

some disadvantages, as they are very complex and computationally difficult to train and

classify a large number of shapes using them because a large vocabulary is needed. The

problem in fuzzy rules is the lack of training and it is impossible to form an exhaustive

set of rules that can model all possibilities.

Hussain et.al presented segmentation free approach for nasta'liq font and used

backpropogation neural network for classification and recognize 240 basic ligatures and

Page 57: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 38  

used dictionary based post processing for 18000 words with accuracy of 93%. Malik S.

and Khan S.A recognized basic alphabets and numerals and used tree based dictionary

search for word classification and reported 93%, 78% accuracy for numerals and

character respectively. Benouareth et.al modeled discrete structure right to left HMM's

with explicit state duration and modified viterbe algorithm, while gamma, gaussian and

poisson distribution are used for state duration modeling [Benouareth et al, 2008]. K-

mean clustering is used for vector quantization of 32 statistical and 6 structural features

for Arabic word recognition. Gallies used implicit segmentation based on discrete HMM

for cursive word recognition [Gillies et al, 1992]. Khorsheed presented single left to right

HMM with structural features for offline Arabic recognition and each HMM represents

one letter from Arabic alphabets [Khorsheed, 2003]. Pechwitz and Maergner presented

semi continuous HMM for offline Arabic handwriting with 7 states and each states has

three transition i.e to itself, next and skip state [Pechwitz et al, 2003]. HMM is the

dominant classifier for cursive handwritten recognition especially for online recognition

due to additional timing information. Rigoll G. presented a novel recognition system for

online handwritten mathematical expressions based on HMM's by simultaneous

segmentation and recognition [Kosmala et. Al, 2004]. The segmentation and recognition

result is used for the interpretation of the symbols and their spatial relationships. Shu H.

described Fujitsu’s online handwritten character recognition system and some application

software that adopts HMM technology and claimed accuracy of 94.6% for Japanese text

[Shu, 1996]. M., Akira N. proposed new method for on-line handwriting recognition of

Kanji characters by employing sub stroke HMMs as minimum units. and direction of pen

motion is utilized as features [Mitsuru M et al, 2002]. Mohamed, M. and Gader, P

Page 58: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 39  

proposed continuous HMMs for handwritten Turkish words using segmentation-free

modeling. They used 12 states HMM for each character and observations symbols are

based on transition from white-black and black-white [Mohamed et al, 1996]. Chen,

M.Y. et al. presented explicit continuous density duration HMMs and modified viterbi

algorithm. The observation symbols were based on geometrical and topological features.

The words are segmented into characters and each sub character is identified with a state

which can account for up to four segments per letter [Chen et al, 1995]. Kherallah et al

presented online Arabic character recognition system based on genetic algorithm and

video encoding for different shapes of Arabic script. To estimate the evaluation function,

visual indices is developed [Kherallah et al, 2009].

Husam et al. used neural network for classification of online Arabic recognition

based on segmentation and finally the result are fused using fuzzy rules. First the

segmentation area of small dimension centered about each heuristic segment point is

extracted and classifier is trained on segmentation area either valid or invalid. The

segmentation area is extracted from the current segmentation point and previous

segmentation point and the second area is segmented about heuristic point [Hussam et al,

2010].

Al-Habian and Assaleh presented HMM based online Arabic character

recognition and decision logic is used to interpret the output of HMMs and converting its

output into recognized words shown in figure 2.7. [Habin and Assaleh et al, 2007].

Deepu et.al used PCA for online handwritten character recognition for Tamil script to

find the bases vector for each subspace. [Deepu et.al, 2004]. Ahmad et al, segmented the

printed Urdu character based on the complexity of the word calculated from the

Page 59: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

to

ef

ch

u

pr

to

st

d

p

cl

b

Chapter 2

Muhammad Imr

opological f

fficiency, bo

haracters. Sh

sing Rubine

rinted Urdu

o accept new

tate.

Figure

Lui e

iscriminant

olynomial n

lassifier [Lu

ack propaga

ran Razzak (36

features i.e.

oth horizont

hahzad et al

e features [Sh

characters [

w input, if t

e 2.7: HMM

t al used si

function,

network clas

ui et al., 2009

ation. Sternb

6-FBAS/PHDC

hole, widt

tal and verti

l. presented

hahzad et al

[Sattar et al.

the input is

M modal for d

ix type of c

discrimina

ssifier , SV

9] . MLP is

y et al prese

Handwr

CS/F07)

th, height [

cal scanning

isolated Urd

l. 2009]. Sat

, 2009]. The

white space

digits 4 [Awa

classifier M

tive learni

VM classifier

used with o

ented segmen

ritten Characte

40 

[Ahmed et

g of the wor

du character

ttar et al. pre

e finite state

e, it mean in

aidah and M

MLP neural n

ing quadra

r and class-

one hidden la

ntation base

er Recognition

al 2007].

rd is perform

r recognition

esented finit

e recognizer

ncomplete w

Mahmoud, 20

network, mo

atic discrim

-specific fea

ayer with er

ed technique

n: Literature Su

To improve

med for com

n for Urdu Q

te state mode

remain in a

word or acc

009]

odified quad

minant func

ature polyno

rror calculate

for Arabic s

urvey

e the

mplex

Qaeda

el for

a state

epted

dratic

ction,

omial

ed by

script

Page 60: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 41  

based on template matching and each template segment is modeled separately by setting

the maximum number of cluster [Sternby et al, 2009]. Lin et al presented biological

inspired CAPTCHA recognition system for English text i.e. luminance, chrominance and

knowledge base filters are applied to model human vision and an efficient biological

inspired segmentation technique is presented [Lin et.al 2008]. Wu et al presented

biological inspired hierarchical feature extraction method for localization and they

perform a hierarchical search from coarseto fine in order to minimize the computational

complexity. Dong et al presented biological inspired character recognition for natural

image classification and the features are extracted from the image to find saliency map

for each image [Dong et.al, 2007].System simulates the human-like image classification

by using the biological inspired knowledgeHuang et al presented enhanced biologically

inspired model which removes uninformative input by imposing constraints and utilizing

the weight locally for polling operation with physiological motivations. Moreover it

applies the feedback procedure that finds the effective features. Borji et al presented bio-

inspired character recognition system by extracting biologically inspired feature

extraction. The scale and translation invariant features are extracted for Farsi characters

and standard classifiers such as KNN, SVM are used and for feature extraction, Gabor

and DoG filters are used [Borji et al, 2008]. Al-Khateeb et al. presented a comparative

study for handwritten word Arabic feature extraction and different technique are

[AlKhateeb et al, 2009]. Hamada et al presented biologically inspired model for objection

recognition and Gabor filter is used for feature extraction and a multilayered bottom up

approach is presented.The model is based on feed backward and feed forward which is

similar to human feed forward and backward recognition[Hamada et al, 2009]. Izadi et al.

Page 61: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 42  

presented online writer independent character recognition using relational context

representation and a SVM classifier is used [Izadi et al, 2008]. The system is very helpful

for a series of recognition taskd. Amora and Amara presented multifont Arabic character

recognition system based on a hybrid method. HMM and ANN are used for classification

based on line features extracted using Hough transformation where ANN is responsible

for 28 observation to HMM [Amor and Amara, 2006]. Wang et al presented multiple

classifiersbased system for handwritten word recognition to increase the accuracy. The

results of multiple classifiers are combined and they use institutive run time weighted

opinion for large vocabulary. [Wang et al., 2002]. The final decision rule is based on

discriminant function computation and multiple results are combined using modified

ROVER algorithm. Hanmandlu et.al used multilayered BPNN with the input of 48

features extracted from box and the input layer contains 48 neurons, 32 and 16 neurons in

two hidden layers and 4 neurons are in the output layer and they used 24 fuzzy sets

[Hanmandlu et.al, 2003]. Deepu et.al used PCA for online handwritten character

recognition for Tamil script to find the bases vector for each subspace [Deepu et.al,

2004].Mitoma H. et.al used Eigen faces for handwritten online character recognition and

elastic based matching technique are used and category specific deformations are

employed to suppress misrecognition. [Mitoma H. et.al, 2004]. Khedher and Al-Talib

present fuzzy expert system and fuzzy rules are constructed using AND and OR

operations [Khedher and Al-Talib, 2004]. Baghshah et al used fuzzy LVQ for online

Persian character recognition to classify the end token and similarity of two token is

calculated using FLVQ [Baghshah et al, 2006]. Hamadani et al presented character

recognition system by combining both online and offline features and HMM classifier is

Page 62: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 43  

used and finally classification is compared with single domain systems [Hamadani et.al,

2009]. Husam et al presented segmentation based approach using neural network for

handwritten Arabic recognition [Husam et al, 2010]. The word is segmented into uniform

and non-uniform segmentation. The segmentation points are validated using neural

network by fusing the confidence value.

Husam et al presented several rules to check segmentation area, centered region

and right region. Neural network is used to verify the segmentation area which

characterized the segmentation area into valid or invalid by analyzing the confidence

value and the fusion is performed on the expert value [Husam et al, 2010]. Lui et al used

three databases for post processing and performance evaluation and proposed that by

combining the multiple classifiers the error rate can be reduced [Lui et al.,

2009].Daifallah presented segmentation algorithm for Arabic online handwritten

recognition [Daifallah et al, 2009]. It is based on arbitrary segmentation followed by

segmentation enhancement, consecutive joints connection and finally segmentation point

locating. HMM is used for classification of independent subunits. Mezghani performed

several preprocessing steps i.e. smoothing, normalization etc. and presented Bayes

classification for online Arabic character recognition using tangent differences

histograms and Gibbs modeling of the class-conditional probability density functions

[Mezghani et al, 2008].

Baidsy F. et.al used word and word part dictionaries and Arabic dictionary is

subdivided into sub dictionary and HMM is used for word modeling [Biadsy F. et.al,

2006]. Strenby et al used static dictionary lookup, the characters are directly constructed

from segmentation graph and the system does not support missing characters. The

Page 63: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 44  

dictionary is complemented with the words in the test set to avoid the error of dictionary

[Strenby et al, 2009].

2.5 Final Remarks

The above study shows that character recognition has been an intensive field of

research from early days of computer. Imitating the human abilities in computers is not

an easy task due to high context sensitivity and have extra ordinary viewing devices. The

above literature shows that the work done for Arabic script based languages is scarce

especially for handwritten character recognition. This may be due to the complexities of

this script. All Arabic script based languages are following approximately same character

set but written in different styles. From the family of Arabic script based languages, Urdu

is more complex and written in Nasta’liq style. In Nasta’liq, the shape of character

depends upon the associated character on both side and it may be up to 32 letters. Urdu

script contains more than 22000 ligatures and to train a classifier for such a large amount

of ligature is a very complex task while most of the characters share same basic shape

with Urdu and with its family. Literature shows that a lot of work is required in every

phase of the Urdu character recognition system, especially to treat the diacritical marks.

As the Arabic script based languages are rich in diacritical marks some researcher has

proposed method for diacritical marks separation. These methods can be applied on

Naskh writing style while due to the complexity of Nasta’liq and the presence of more

diacritical marks for Urdu script, the presented techniques in literatures are not suitable.

Page 64: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 2 Handwritten Character Recognition: Literature Survey

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 45  

On the other hand researchers i.e. computer scientist, neurologist are also working

to model the human visual concept in the field of character recognition. The biological

theories behind the image processing techniques are an intensive field of research to

attain an efficient system like the human visual system. Although there are many

complexities involved in modeling the human visual perception but the human reasoning

can be utilized to obtained better results close to the natural perception. Due to the large

variations in script and writing styles, fuzzy logics can be incorporated for better results.

Page 65: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 3 Fuzzy Logics and Human Biological Visual Preceptopm

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 46  

CHAPTER 3

FUZZY LOGIC AND HUMAN BIOLOGICAL VISUAL

PRECEPTION

This chapter gives the background knowledge regarding the fuzzy logic, analysis of

human visual perception and its computational modeling. The first part of this chapter

presents fuzzy logics whereas the second part describes the terminology and concept

of biology of human visual perception. Fuzzy logic is an important classification tool

and has been used as a means of interpreting vague, incomplete, noisy and

contradictory information into a compromised rule [Pham and Chen, 2002]. The real

world is dynamic, enormous and very complex. To deal with it, biological systems

have been evolving and self-adjusting over millions of years and adapting to the

changes in the environment. Imitation of human capabilities by machine has been

field of intense research since the early days of computer and amongst them one of

the interesting issues is human vision modeling. In this regard, biology has been an

important source of inspiration in image processing and pattern recognition

applications. On the other hand the understanding of visual information processing

and perception is one of the challenging tasks of contemporary science. Bio-inspired

Page 66: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 3 Fuzzy Logics and Human Biological Visual Preceptopm

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 47  

pattern recognition has been under consideration since mid-eighties not only by

computer scientists but also by physiologist and neuroscientists. The deeper review of

human vision has helped to advance pattern recognition research, thus making it more

robust. Image processing in humans is done in parts at different levels and in different

layers. The integration of human vision system in traditional approaches to pattern

recognition helps to achieve robustness in term of accuracy and efficiency. The visual

perception of humans is very powerful in pattern recognition applications. The

selectivity, transformation, speed and context knowledge are the most important

features of human visual perception. Moreover, a human is able to detect the familiar

and unfamiliar objects even in unfamiliar environment. A computer can perform

complex problems more precisely, efficiently and much faster than a human.

However, there are certain different types of complex algorithms like pattern

recognition and image processing situations where a few months old child can

perform much better than the state-of-the-art computer with latest algorithms

available today. In order to better understand how human brain performs this

extraordinary function the human visual system is briefly described in section 2.

While dealing with images, the real time data may be ambiguous and/or incomplete.

This may be due to several reasons e.g. blurred edges and/or irregular and missing

patterns. Thus, to cater for these data ambiguities and imperfections, it is suggested to

model human visual perception in pattern recognition application such as character

recognition. Human visual perception can be modeled using fuzzy logic, evolutionary

computation and neurocomputing.

Review of bioinspired system

Biologically inspired solutions are gaining more interest with wide spread use

of artificial intelligence applications [Halem, 2009], [Lin C.W et.al, 2008] [Bosner,

Page 67: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 3 Fuzzy Logics and Human Biological Visual Preceptopm

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 48  

2006] ,[Dong et.al, 2007], [Wu et.al, 2006],[Bosner et al 2006], [Forbes,

2005],[Collins et al, 2004],[Benyus, 1997],[Anastas, etal., 2000],[ Papanek, 1984].

The biology inspired image processing need expertise in two fields, human biological

perception and modeling the concept in a computer. Due to the gap between a

computer scientist and an expert in biology. Both speak different scientific lingua,

creating a communication challenge and both use different methods of investigation

[Helms, 2009].To deal with complex problems and involve human-like intelligence,

fuzzy logic is a very good approach and due to this property fuzzy logic has been used

in many applications of various areas such as pattern recognition, control, information

retrieval and quantities analysis etc.

3.1 Fuzzy Logic

Conventional logic is based on Boolean algebra and this logic is better for

modeling the well represented behavioral mathematical models. Whereas, human

decision power cannot be represented through Boolean representation thus, the legacy

programming languages are not sufficient for modeling the human reasoning because

the humans rely on relative instead of discrete values. Fuzzy logic provides the

solution to model the human reasoning in multiple categories rather than two

categories i.e. very small, small, medium, large etc. whereas the binary logic is

limited to two states: large or small.

In the early 1950s, Herbert Simon, Allen Newell and Cliff Shaw conducted

experiments in writing programs to imitate human thought processes. The basic

purpose of fuzzy logic was to implement human reasoning power through computer.

The comprehension of computer is limited to 0 and 1whereas the human rely on

multiple classes whose boundaries are imprecise or not well defined.

Page 68: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 3 Fuzzy Logics and Human Biological Visual Preceptopm

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 49  

Their experiments resulted in a program called Logic Theorist, which

consisted of rules of already proved axioms. When a new logical expression was

given to it, it would search through all possible operations to discover a proof of the

new expression, using heuristics. This was a major step in the development of AI. The

Logic Theorist was capable of quickly solving thirty-eight out of fifty-two problems

with proofs that Whitehead and Russel had devised [Al-Omari, 2004]. At the same

time, Shanon came out with a paper on the possibility of computers playing chess

[Salah, 2002]. Fuzzy logic is an important classification tool and has been used as a

means of interpreting vague, incomplete, noisy and contradictory information into a

compromised rule [Pham and Chen, 2002]. It has been applied in many applications

like medical imaging, document imaging, robotics applications etc [Pham and Chen,

2002], [Mahmoodabadi et.al, 2010], [Demirci, 2010], [Kazemian, 2005], [Patra et.al,

2009], [Ozturk, 2009].

The fuzzy logic is not based on probability i.e. a fuzzy system deals with

deterministic plausibility whereas the probability deals with non-deterministic

likelihood [Lin, 1996]. For example, the doctor predicts the patient’s diseases by

using if-else reasoning, taking into account a number of variables. Probability is the

number that measures the certainty of an event whereas the fuzzy logic measures the

degree of certainty of particular event. Probability is only meaningful for things that

have not happened yet while fuzzy set membership function caters after that

[Eberhart, 1996].

The following are the main reasons that make fuzzy logic very helpful in

pattern recognition problems.

Page 69: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 3 Fuzzy Logics and Human Biological Visual Preceptopm

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 50  

1. As fuzzy does not require precise results thus it is more robust to noisy and

missing data environment.

2. Since the user made rules are governed thus it can be easily changed to

improve and new data can easily be incorporated.

3. Due to the rule based approach reasonable inputs and outputs can be

processed. Thus it is better to break the problems into smaller chunks of

data/categories based on fuzzy sets.

4. It can better modal non-linear systems that are very difficult or impossible

to model mathematically.

Fuzzy logic is a multi-valued logic derived from fuzzy set theory to deal with

reasoning. Fuzzy logic is approximate rather than exact. The membership function is

not only 0 or 1 but have degree of truth of statement. The degree of truth ranges from

0 to 1. The membership function may be discrete or continuous. A continuous

memberships function is a mathematical function for example like bell shape,

triangular shape etc whereas the discrete membership function is a vector.

For reasoning the fuzzy logics use the IF-THEN rules. It is alternative to

traditional notion and it is leading towards artificial intelligence. It provides a simpler

ways to find conclusion based on noisy and missing input. Fuzzy Logic is the simple

IF-THEN rules to solve the complex problems rather than complex modeling i.e.

HMM, ANN.

3.1.1 Linguistic Variables

Linguistic variable represents the crisp information in precision and is

essential for fuzzy logic. Unlike conventional variables in mathematics, the fuzzy

logic also uses non-numerical linguistics variables to model the natural languages e.g.

Page 70: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

“S

“s

ex

th

te

im

T

Chapter 3

Muhammad Imr

Saeed is tall

short”, “sma

xample, supp

hese linguist

erm in fuzzy

Due to

mage proces

The fuzzy log

1. Th

ca

2. Th

3. Th

4. Th

5. To

6. Th

im

Kg 30 

Light

ran Razzak (36

l”, “today is

all”. The lin

pose x is the

tics variables

y variable is r

Fi

o its tremend

sing, quantit

gic is approp

he problems

annot be easi

he problems

he high noise

he problems

o model the

he problem

mplement the

6-FBAS/PHDC

s hot”. The l

nguistic varia

e linguistic v

s are light, n

ranged from

igure 3.1: Fu

dous propert

tative analys

priate in the f

s which ar

ily broken in

where math

e problems.

which invol

human beha

where exp

e natural beh

Fuzzy Logic

CS/F07)

linguistic va

ables can be

variable with

normal, heav

m 30Kg. to 10

uzzy Membe

ties, fuzzy lo

sis, control in

following pr

e concerned

nto discrete s

hematical mo

lve human in

avior.

perts are av

havior.

Kg60

Normal

cs and Human

51

ariables such

e modified v

h label weigh

vy and very

00 Kg. as sh

ership functio

ogic is used i

nference and

roblems [Lin

d with con

steps.

odel is very c

nteraction.

vailable and

Biological Vis

h as height m

via linguistic

ht; and the f

heavy. For

own in figur

on

in pattern re

d informatio

n, 1996].

ntinuous phe

complex or

d can mode

Heavy 

sual Preceptop

may be “tall

c hedges. Fo

fuzzy terms o

example eac

re 3.1.

cognition,

n retrieval.

enomena an

does not exi

l the rule t

Kg100  

pm

l”,

or

of

ch

nd

ist

to

Page 71: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 3 Fuzzy Logics and Human Biological Visual Preceptopm

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 52  

The main disadvantage of fuzzy logic is the lack of learning capability to tunes

the fuzzy variables and membership function. Basically, fuzzy variables and

membership functions are defined by experts according to the application

requirement. Thus, it is very difficult, and some-times impossible to define and model

all the rules and membership functions, required for application due to complexity,

uncertainty and ambiguity. The lack of learning capability of fuzzy logic make it

little weaker but the human reasoning involved in fuzzy logic makes it power full tool

to solve complex problems.

3.2 Human Visual Perception

Computers can solve most problems quite precisely, efficiently and much

faster than humans however there are still many problems such as pattern recognition

where few years old child can perform much better than the latest algorithms

available today. Character recognition is one of the important pattern recognition

applications. The handwritten script may be ambiguous and incomplete due to several

reasons i.e. blurred edges, irregular and missing patterns. Even Humans may find it

difficult to read handwritten script. Use of context knowledge, adaptability and

learning capability leads humans to robust recognition in complex scenarios. The

interpretation of complex patterns and transformation of these complex patterns into

behaviorally understandable signals is important in our daily life. The human brain

has achieved this robustness through thousands of years of evolution. Even the brain

of very small animals is so complex that it is very difficult to imitate it in the artificial

system [Mumolo, 2006]. To understand how human brain can achieve these

extraordinary abilities and to model the biological visual perception has been a

Page 72: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 3 Fuzzy Logics and Human Biological Visual Preceptopm

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 53  

research issue from many decades. Biological study of human vision has provided

important source of inspiration in the field of pattern recognition.

The visual perception system of humans is very powerful in pattern

recognition problems. The selectivity, transformation invariance, speed and context

knowledge are the most important features of human visual perception. Moreover,

human is able to detect the familiar and unfamiliar objects even in variable

environment. It has exquisite selectivity and context knowledge that helps to identify

even similar shapes such as twins’ face identification. Moreover, humans can

distinguish more that tens of thousands of different shapes [Biederma, 1987] while it

is very difficult (almost impossible in current age) to build a generalize system that

works like them. The computer system developed so far can identify only minor

changes i.e. handwritten characters where machine have any context knowledge, face

recognition problems where system can identify slight expression, pose or

illumination variation. Human perception is very fast and can recognize objects in

100-200 ms [Thorpe, 1996], [Potter, 1969]. The additional context knowledge of

human makes the recognition very easy i.e. the missing character can easily be

interpreted from the sentence knowledge. Moreover the transformation invariant

feature makes the human visual system more robust. The object remains the same

even after changing its position, scale and rotation. Moreover , the human neurons

are tuned to become selectively efficient for the shapes that are more frequent [Kuo

et.al. 2003], [Baker et.al, 2007].

3.2.1 Autonomy of Human Visual System

The human visual system has been under study for approximately four

decades to find the response of neurons in different part of the cortex. To model the

Page 73: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 3 Fuzzy Logics and Human Biological Visual Preceptopm

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 54  

human visual perception into computer vision applications, the detailed knowledge of

human visual system is very useful even though it is very difficult to attain the level

of human brain. When the light from an object falls on to the retina it is converted into

electrical signal. The retina is driven from the CNS (central nervous system) to

process the incoming light into signal and conveyed to the brain for further processing

by retinal ganglion cells [Rieke, 2006],[ Meister,1995],[ Koch, 1982]. The

information is sent to the V1 (primary visual cortex) after processing through the

thalamus [Reinagel, 1999],[ Sherman. 2001],[ Alonso, 1996], [Lesica, 2004]. The

primary visual cortex also called striate or V1 cortex receive feedback information

from higher cortical areas that consists of six layers. Dorsal and ventral are the two

information processing units after V1 [Mishkin, 1982],[ Haxby , 1991]. The dorsal is

responsible of spatial localization of object in the environment and guiding the actions

towards the object whereas the ventral is involved in recognition of the objects

[Goodale, 1992] and both are dependent on each other. The thalamical component

called lateral geniculate nucleus (LGN) send the information to the cortical area V1.

Thus LGN receives the output of retina. V1 sends the signal to ventral through visual

areas V2 and V4 and also projects back to thalamus. The information is further

processed from V1 to V2, V3, V4, IT (infero-temporal cortex). V1 is responsible for

static and moving object processing and is excellent in pattern recognition. A frog’s

behavior for catching with and without barrier diagram is shown in figure 3.2.

Page 74: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

fe

pr

st

co

fo

m

Chapter 3

Muhammad Imr

Figure: 3.2:

Gener

eatures than

roperties. V2

timulus is th

The c

ombination

or spatial fre

motion perce

ran Razzak (36

: Stimulus di

around the

rally the pri

n neurons in

2 responds t

he part of bac

cortex area

and also dea

equency, ori

eption and t

6-FBAS/PHDC

iagram for fr

barrier in re

imary visua

n the higher

to spatial pro

ckground or

V3 is res

als with colo

ientation and

the integrati

Fuzzy Logic

CS/F07)

frog. (a). prey

eaching stimu

al cortex ne

r cortex are

operties i.e.

object [Borj

sponsible fo

or sensitivity

d color. The

ion of local

cs and Human

55

y acquisition

uli [Weitzen

eurons are m

a. V1 and

contours, or

ji et al., 2008

or motion d

y whereas V4

e visual area

motion sig

Biological Vis

n behavior (b

nfeld, 2008]

more selecti

V2 have m

rientation an

8].

detection, v

4 neurons ar

a MT (V5) i

gnals into g

sual Preceptop

b) detouring

ive to simp

many commo

d whether th

visual stimu

re responsib

is sensitive t

lobal signal

pm

le

on

he

uli

le

to

ls.

Page 75: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

In

si

an

lo

pa

M

p

se

Chapter 3

Muhammad Imr

nferotempor

ignals like h

Figure 3

Dorsa

nd then to d

ocation, con

athway start

Mainly, it is

erforming st

ensitive to co

ran Razzak (36

al cortex is

andwritten m

3.3: The auto

al stream als

dorsomedial

ntrol and foc

ts from V1

s responsibl

tep by step c

omplex patte

6-FBAS/PHDC

the last sta

marks, faces

onomy of hu

o called whe

area and MT

cusing of ey

and goes thr

le for objec

categorizatio

erns [Borji, 2

Fuzzy Logic

CS/F07)

age of ventr

, etc.

uman visual

ere stream s

T. It is assoc

yes. Wherea

rough V4 vi

ct identificat

on. The comp

2008].

cs and Human

56

ral stream a

object recog

starts from V

ciated with s

s ventral ste

ia V2 and fi

tion by ext

plex objects

Biological Vis

and respond

gnition [Borj

V1 and passe

special prop

eam also kn

finally to inf

tracting the

are classifie

sual Preceptop

ds to comple

ji, 2008]

es through V

erties, obje

nown as wha

fero-tempora

features an

ed in IT and

pm

ex

V2

ct

at

al.

nd

is

Page 76: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

3

T

th

p

cr

pr

in

T

T

vi

h

D

ta

Chapter 3

Muhammad Imr

.3 Bio-Ins

The term ‘‘b

he former is

attern recog

ritical issues

roposed. T

ntensive field

There are ma

The tradition

isual system

elps to obtai

Figure 3

Developing a

ask in case

ran Razzak (36

spired Com

io-inspired’’

prefered [Z

gnition appli

s. Lots of re

The biologic

d of research

any complex

al image pro

m has 126 pho

in better reco

3.4: Biologic

an efficient h

of many la

6-FBAS/PHDC

mputer Vi

’ is also refe

Zhou, 2000].

cations, clas

esearch has b

cal theories

h to attain an

xities involv

ocessing sys

otoreceptors

ognition resu

cal perceptio

handwritten c

anguages i.e

Fuzzy Logic

CS/F07)

ision

ferred to as

Due to the

ssification h

been done a

behind the

n efficient v

ved in the m

stems are ba

s. It is well k

ult.

on mechanism

character rec

. Arabic, Fa

cs and Human

57

‘‘biomimetic

high growth

has become o

and a numbe

computer v

vision system

modeling of h

ased on 512x

known that b

m of human

cognition sy

arsi, Urdu,

Biological Vis

c’’ or ‘‘bion

h of comput

one of the i

er of algorith

vision algor

m like that o

human visua

x512 where

better resolut

n mind [Dong

ystem is still

Chinese, etc

sual Preceptop

nic’’ howeve

ter vision an

important an

hm have bee

rithms are a

f the human

al perception

as the huma

tion of image

g, 2007]

a challengin

c. Tradition

pm

er

nd

nd

en

an

ns.

n.

an

es

ng

nal

Page 77: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 3 Fuzzy Logics and Human Biological Visual Preceptopm

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 58  

character recognition systems face problem in handwritten script due to lots of

variations and complexity. A lot of research effort has been done but still there is a

room for improvement in the accuracy and efficiency and the research has focused to

biological visual perception. Fuzzy logic and neuro-computation have shown

promising results to cater to flexibility and ambiguity.

Not much research is available in character recognition inspired by biological vision.

Omari and Jarrah presented probabilistic neural network for handwritten recognition

of Indian numerals [Al-Omari, 2004]. Salah et.al presented selective attention based

method for handwritten English character recognition [Salah, 2002]. The brain

activity in major neural circuit in ventral and dorsal stream did not show muh

difference for English [Chan et.al, 2009] and similarly for Urdu and Arabic script.

The brain activities related to difference of structure has not been investigated yet for

Arabic script based languages. Lin et.al presented biologically inspired CAPTCHA

recognition system for English text, i.e. luminance, chrominance and knowledge

based filters are applied to model human vision concept and efficient biological

inspired segmentation technique have been presented [Lin et.al 2008]. Wu et.al

presented biologically inspired hierarchal feature extraction method for localization.

They performed the hierarchical search in order to minimize the computational

complexity. Dong et.al presented biologically inspired character recognition for

natural image classification and features are extracted from the image to find saliency

map for each image as shown in figure 3.5 and 3.6 [Dong et.al, 2007].

Page 78: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

Chapter 3

Muhammad Imr

Figure 3.5:

Fi

ran Razzak (36

Ventral strea

igure 3.6: Bi

6-FBAS/PHDC

am based ob

o-inspired N

Fuzzy Logic

CS/F07)

bject recogni

Numeral reco

cs and Human

59

ition [Riesen

ognition [Bo

Biological Vis

nhuber and P

orji et al, 200

sual Preceptop

Pggio, 1999]

08]

pm

Page 79: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 3 Fuzzy Logics and Human Biological Visual Preceptopm

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 60  

A system simulates the human-like image classification by using the biologically

inspired knowledge. Huang et.al presented an enhanced biologically inspired model

which removes the un-informative input by imposing constraints and utilizing the

weights locally for polling operation with physiological motivations. Moreover, it

applies the feedback procedure that finds the effective features. Borji et.al presented a

bio-inspired character recognition system by extracting biologically inspired features.

The scale and translation invariant features are extracted from Farsi characters and

standard classifiers such as KNN, SVM are used. For feature extraction, Gabor and

DoG filters were used [Borji et.al, 2008]. Hamada et.al presented a biologically

inspired model for objection recognition and Gabor filters were used for feature

extraction and multilayered bottom up approach is presented. Finally, the model is

based on feed backward and feed forward similar to human feed forward and

backward [Hamada et.al, 2009].

3.4 Bio-Inspired Fuzzy Logic System

Modeling human visual perception in real world image processing algorithms with the

help of some principle present in our visual system is an interesting field of research.

The human biological vision can be modeled using fuzzy logic, evolutionary

computation and neuro-computing. Fuzzy logic is the important tool due to reasoning

and has high range of values instead of definite. There are two main reasons for

success of fuzzy logic inspired biological vision.

1. The human visual system works layer by layer as discussed above i.e. from

retina to V1 to V2, etc. This layer by layer processing can easily be

modeled using fuzzy logic.

Page 80: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 3 Fuzzy Logics and Human Biological Visual Preceptopm

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 61  

2. The fuzzy logic can better handle the noisy and irregular information by

using the range of value instead of definite values.

Thus modeling fuzzy logic using human biological vision (the combination of

fuzzy logic and human biological perception system) is more power full to handle the

complex patterns than other conventional methods. Figure 3.5 briefly illustrates the

layered approach by human ventral stream. The robustness is due to the reasoning

mechanism. []

3.5. Final Remarks

In this chapter an introduction to fuzzy logic and human biological vision

system is presented. The fuzzy logic remains a powerful tool to solve the

unconstrained complex pattern recognition problems. The handwritten character

recognition in an unconstrained environment is very a complex pattern recognition

problem due to large variations involved. The real time data may be ambiguous;

incomplete due to several reasons i.e. blurred edges, irregular and missing patterns.

This fact suggests that modeling of the human visual perception in real world pattern

recognition applications such as character recognition by using principles present in

our visual system can present improved results. The human visual modeling using

fuzzy logics helps to handle complex problems in a better way. The happy relation of

reasoning based fuzzy logics and biological vision modeling can better model the

complex problems in layered approach.

Page 81: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 4 Ghost Character Recognition Theory

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 62  

CHAPTER 4

GHOST CHARACTER RECOGNITION THEORY

Arabic script is used by more than 1/4th population of the world in the form of

different languages like Arabic, Persian, Urdu, Sindhi, Pashto, Afghani, etc. but each

language has its own vocabulary, writing rules and set of alphabets. The set of Urdu

alphabets is a superset of the alphabets sets used by all other Arabic script based

languages. Character recognition of Arabic script based languages is one of the most

difficult tasks due to complexities involved in this script. This chapter presents a

novel technique i.e. the Ghost Character Recognition Theory that helps develop a

Multilanguage character recognition system for Arabic script based languages. The

main benefit of proposed approach is that it works well for all Arabic script based

languages by treating the ghost shapes and diacritical marks separately and using

dictionary for each language for ligature and word formation. On the other hand,

treating all Arabic script based languages has several issues as compared to a system

for a specific language (i.e. Urdu or Persian) and specific writing style (i.e. Nasta’liq

or Naskh). The layered word formation can be followed by the valid ligatures

Page 82: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 4 Ghost Character Recognition Theory

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 63  

recognition and these valid ligatures are combined to form a valid word. Moreover,

Ghost Character Recognition Theory also helps to mimic the biological character

recognition system.

4.1. Urdu Script Based Languages

There are at least 26% Muslims in the world having directly or indirectly

interaction with Arabic script based languages, it may be due to the fact that Islam

originated from the Arabia and Arabic is the language of the Quran. Generally this

script is followed in many countries of Arabian Peninsula, Iraq, Iran, Pakistan,

Afghanistan, India, Uzbekistan, Tajikistan, Kazakhstan, Turkey, etc. and is followed

by many languages like Arabic, Persian, Urdu, Punjabi, Sindhi, Pashto, Blochi, etc.

Arabic script based languages especially Urdu and Arabic are used in almost every

part of the world.

Arabic script based languages are written in a cursive style from right to left in

both machines printed and handwritten forms. These are context sensitive languages

and are written in the form of ligatures that may comprise a single or many different

characters to form a word. Most of the characters have different shapes depending on

their position in the ligature e.g. a letter may appear differently depending on its

position as an isolated, middle, center, or ending character as shown in Figure 4.1.

Arabic script based languages also use punctuation marks to separate sentences and

leave white space between ligatures and words for separation. Furthermore, characters

may overlap with each other and are very rich in diacritical marks; i.e. Urdu contains

22 diacritical marks and these additional diacritical marks associated with ligature

represent short vowels or other sounds. Some diacritical marks are compulsory

whereas some diacritical marks are optional and only added to help in pronunciation.

Page 83: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

O

U

th

K

di

co

di

A

st

w

Chapter 4

Muhammad Imr

Optional diac

Urdu speaker

he nonnative

Figure 4.1:

Figur

Arabi

Kuwait, Iraq,

ivine comm

ompiled in t

irectly (Arab

Arabic is ran

tyle. It cons

without diacr

ran Razzak (36

critical mark

r who do not

e speaker.

Different Sh

re4.2. a) Ar

c is spoken

, Egypt, Syr

mandments r

the form of

bic) or indir

nked at 5th m

sists of 28 a

ritical marks

6-FBAS/PHDC

ks are not o

t use the opt

hapes of ( بa

isolat

rabic Alphab

n in many c

ria, Yemen,

revealed to

f a book. Th

rectly (in the

most spoken

alphabets sho

s, but later o

CS/F07)

often used b

tional diacri

and ع)with

ed, start, mid

bets

countries i.e

etc. Arabic

the last pro

hus this scrip

e form of oth

n language i

own in Figu

on diacritica

Ghost

64

y the native

itical marks

respect to po

d, end

b) P

e. Saudi Ara

c is also the

ophet Muham

pt is mostly

her language

n the world

ure 4.2.a. Hi

al marks we

Character Rec

e speaker i.e

which are o

osition from

Persian Alph

ab, UAE, O

e language o

mmad [PBU

y used by M

e like Urdu,

d and is writ

istorically, i

ere added fo

cognition Theor

e. Arabic an

only added fo

m left to right

habets

Oman, Jordan

of the Quran

UH] and late

Muslims eithe

Persian etc.

tten in Naks

it was writte

or non-native

ry

nd

or

n,

n,

er

er

.).

sh

en

es

Page 84: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 4 Ghost Character Recognition Theory

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 65  

readers. Arabic has great influence on many other languages especially those used in

Muslim countries and is a major source of vocabulary for many languages i.e.

Spanish, Persian, Urdu, Hindi, Punjabi, Sindhi, Pashto, Malay, Turkish, Gujarati,

Kurdish, Bengali, Kashmiri, etc.

Persian also known as Farsi and is the official language of Iran, Tajikistan and

Afghanistan; it is written in Arabic script (Nastaiq style) and has 32 basic alphabets as

shown in Figure 4.2.b. It also has a large influence on Urdu, Punjabi and Sindhi and

other south Asian language [Lazard, 1975].

Urdu is the 2nd most spoken language of the world and is written in two main

scripts; Arabic Script, and Devanagari script. When written in Arabic script, it is

called Urdu which is mostly used in Pakistan and when Devanagari script is followed

then it is called Hindi which is used in India. The language scholars categorize Urdu

as standard version of Hindi. Actually Urdu has different versions that depend upon

regions instead of the writing script [Durani, 2008]. Urdu is the national language of

Pakistan and official language of many Indian states. It is written in Arabic script

(Nasta'liq style) and consists of 58 basic letters as shown in Figure 4.3.a. Other

languages that share the Urdu script are Sindhi, Pashto, Punjabi and Balochi. Punjabi

is the local language of Pakistan and India. It is written in Gurmukhi and Shahmuki in

Indian and Pakistani Punjab respectively. Shahmukhi is based on Arabic script and

mostly written in Nastaliq style as shown in figure 3.b. Punjabi consists of 47

alphabets and is ranked 11th most spoken language in the world.

Sindhi is the local language of India and Pakistan written in both Arabic and

Devanagari script. It is official language of the province of Sindh, and also some

states of India. In Pakistan; Sindhi is written in Arabic script and contains 52

Page 85: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

al

is

la

w

ra

F

Chapter 4

Muhammad Imr

lphabets as s

s written in A

anguage of

words belong

anked at 33.

Figure 4.3.

F

ran Razzak (36

shown in Fig

Arabic script

Pakistan. It

g to itself. I

a) Urdu Alp

Figure 4.4. a

6-FBAS/PHDC

gure 4.a. and

t ( Naskh) an

is influenc

It consists o

phabets [Dur

a) Sindhi Al

CS/F07)

d is ranked a

nd is spoken

ced by Farsi

f 39 alphab

rani 2008]

phabets

Ghost

66

as 23rd most

n in parts of A

i and Avast

ets as show

(b) Punjabi

(b) Pash

Character Rec

t spoken lang

Afghanistan

tan however

wn in figure

Alphabets (

hto Alphabet

cognition Theor

guage. Pasht

and is a loc

r most of th

4.b. and it

(Shahmukhi)

ts

ry

to

al

he

is

)

Page 86: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 4 Ghost Character Recognition Theory

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 67  

From the above discussion, it is concluded that Urdu is the superset of all

Arabic script based languages as it contains all basic shapes that are used by other

Arabic script based languages. Local languages of Pakistan like Punjabi, Sindhi, and

Pashto have different letters as compared to Urdu but with the same basic shapes and

different diacritical marks. Moreover, it is also concluded that all Arabic script based

languages have same basic structure and Urdu is complex in the family of Arabic

script based languages.

4.2 Character Recognition of Arabic Script Based Languages

Character recognition is the branch of pattern recognition to imitate the

computer in reading the graphical marks written by human or printed by machine so

that that the machine can perform like human skills in reading. It has been an on-

going research problem for more than four decades. Basically character recognition is

classified into two classes with respect to input namely online (handwritten), offline

handwritten/printed recognition. In offline; input is in the form of image while in

online case coordinates as well as timing information. The offline printed character

recognition is little easy task as compared to handwritten either online or offline due

to large variation in writing styles. The recognition for Arabic script based languages

is much more complicated than any other language like English, Chinese etc due to

complexities of this script. These complexities are context sensitive shape,

Cursiveness, Overlapping, large number of diacritical marks, segmentation of words

itself and mapping of diacritical marks. Moreover the recognition for handwritten

Nasta’liq is much more complicated as compared to Naskh writing style due to its

complexity. Naskh may contain only 4 basic shapes of character whereas Nasta’liq

contains 32 shapes depending upon the associated character shown in figure 4.9.

Page 87: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 4 Ghost Character Recognition Theory

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 68  

Limited research efforts have been carried out in Arabic script based

languages character recognition especially for handwritten recognition even though

no Multilanguage character recognition system available while there exist high

similarity between Arabic script based languages. Both segmentation base

[Safabakhsh 2006, Haraty 2002, 2004, Sari 2002, Fahmy 2000, Miled 2001, Abuhaiba

1998] and holistic [Haji 2005, Meslati and Farha 2004, Adeed 2004, 2002,

Khorsheed 2003, Pechwitz 2003, Dehgan 2001 and Al-Badr and Haralick 1998,1995]

approaches are discussed for Arabic script based languages (both printed and

handwritten) by using diacritical marks as features points with other features. There is

no such (separate the diacritical marks form ghost character and map these diacritical

marks with respect to position after recognition separately) effort proposed in the

literature that leads to multilingual character recognizer.

4.3 Ghost Character Theory

"There are some problems in Urdu ASCI code plate, when I

analyzed that some symbols and all the language of Pakistan is

possible from one code plate and one font. Then I proposed the

idea of Ghost Character. [Durani 2008]”.

Nasta'liq and Naskh are two basic and different writing scripts that have their

own fonts. Urdu is not a subset of Arabic [Durani, 2008] moreover Urdu alphabets are

the super set of alphabets of all Arabic script based languages. Nastaliq is more

complicated than Naskh, due to a higher number of shapes for each character in

Nastaliq as compared to Naskh where each character may have 4 shapes i.e. "Bay"

has 32 shapes in Nastaliq while only 4 in Naskh.[Durani, 2008].

Page 88: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

A

ch

di

m

by

in

ch

b

h

P

U

an

w

F

fi

P

Chapter 4

Muhammad Imr

All Arabic sc

haracter con

iacritical ma

marks were f

y Hajaj Bin

n Arabic. A

haracter by

ehind dots w

ad 2 dots an

ersia and so

Urdu 4 nuqta

nd then to U

were added in

Figure 4.5: a

Figure 4.6.

The 22

igure 4.6. Al

ersian, Balt

ran Razzak (36

cript based la

nsists of 22

arks [Durani

first applied

Yousif. Bef

Arabs were us

their cultura

was that the

nd 3rd had 3

ome dots on

as were adde

Urdu letter

n Urdu and P

. Convergen

Ghost char

2 ghost char

ll the Arabic

ti, etc. can

6-FBAS/PHDC

anguage can

basic shape

i, 2009]. Bas

on Quran to

fore his perio

sing only 19

al habits an

first charact

dots. Persia

character w

ed on ghost

"Tota" as sh

Persian as sh

nce of four d

racters used

racters used

c script base

be written

 

CS/F07)

n be written

es called Ka

sically, the i

o make it ea

od, there we

9 characters,

nd had no di

ter with simi

ans also follo

were added t

character w

hown in Fig

hown in Figu

ots to "Tota"

Persian.

in Arabic sc

in Arabic s

ed languages

with these

Ghost

69

with only 44

ashti as show

idea is 700 y

asy to read f

ere no dots a

and they w

ifficulty in r

ilar shapes h

owed the Ar

hat were no

which were l

gure 4.5.a. S

ure 4.5.b [Du

" (b). Additi

cript based la

script based

s like Persia

e 22 ghost

Character Rec

4 ghost char

wn in Figur

years old wh

for the non-n

and diacritica

ere reading

reading. Th

had one dot,

rabic script

ot in Arabic.

later on con

Some of the

urani 2008].

onal shapes

anguage [Du

d languages

an, Urdu, Pu

characters,

cognition Theor

racters. Gho

re 4.6 and 2

hen diacritic

native reade

al marks use

these dot-les

he philosoph

2nd characte

after Islam i

Similarly i

nverted to lin

basic shape

in Urdu and

urani 2008].

are shown i

unjabi, Sindh

22 dots an

 

 

ry

ost

22

al

rs

ed

ss

hy

er

in

in

ne

es

d

in

hi,

nd

Page 89: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 4 Ghost Character Recognition Theory

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 70  

diacritical marks. Thus, these 44 basic shapes and diacritical marks can represent all

Arabic script based languages.

4.4 Ghost Character Recognition Theory

Character recognition of Arabic script based languages is very difficult task

due to complication involved in this script and it has a large variety of shapes. Only

Urdu script has more than 22000 ligatures [Jamil, ]. No research efforts have been

done in the field of Multilanguage character recognition even though there are minor

differences between scripts followed by these languages. Most of the work done is

language specific while Multilanguage system can easily be achieved by making

some more effort in the preprocessing and post processing phases. To overcome

language specific character recognition with Multilanguage character recognition for

Arabic script, ghost character recognition theory is presented.

As mentioned above, all the Arabic script based languages can be written with

the 22 ghost character and 22 diacritical marks but each base ligature has its own

phonemes and meanings in each language with the same or different number of

diacritical marks. Thus the basic shapes (glyph) are same for all Arabic script based

languages with only difference in font i.e Naksh, Nasta'liq and diacritical marks.

Nasta'liq is mainly followed by Urdu, Persian, Sindhi and Punjabi and is more

complicated than Naksh i.e. "Bey" has 32 shapes as shown in Figure 4.8. Ghost

character theory has great influence on Arabic script based languages character

recognition in order to develop Multilanguage character recognition.

Based on the ghost character theory the ghost character recognition theory is divided

into five basic steps are

Page 90: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

Simil

Chapter 4

Muhammad Imr

I. Fi

fro

ka

II. Re

III. Re

IV. M

lan

V. W

The abov

used in al

Figure

lar shaper letters 

ran Razzak (36

irst step is t

om the wor

ashti) and dia

ecognize the

ecognize the

Map the diacr

nguage spec

Word formatio

ve process is

ll Arabic scri

e 4.7: Recog

Separated Gho

D

6-FBAS/PHDC

to segment

rd. Now the

acritical mar

e separated b

e diacritical m

ritical marks

cific ligature

on from vali

s shown in F

ipt based lan

gnition of 2nd

ost character and 

Dots

CS/F07)

the addition

e word cons

rks.

basic shape th

marks associ

s on to the

formation d

id ligature us

Figure 4.7 f

nguages.

d ghost chara

Recognize

and D

Ghost

71

nal marks i.e

sists of only

hrough a cla

iated with re

recognized

dictionary.

sing languag

for 2nd ghos

acter letter w

ed Ghost characte

Dots separately 

Character Rec

e. dots, diac

y ghost cha

assifier.

ecognized lig

ghost charac

ge specific d

st character

with associat

Mapper 

cognition Theor

critical mark

aracters (kha

gature.

cter using th

ictionary.

of Figure 4

ted dot

ed Dots on Ghost 

character

ry

ks

ali

he

.6

Page 91: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

E

A

co

ev

st

re

ch

cu

se

m

F

N

st

It

th

th

sk

T

st

Chapter 4

Muhammad Imr

Expalin abov

As it is a v

omplexities

very languag

tyles like Na

educes the

haracter the

usp, end po

eparate syste

more comple

igure 4.8 an

Nashk style w

tructural feat

t is very diff

he solution i

he input dat

keleton prov

There are dif

tructural, dir

ran Razzak (36

ve figure….in

very difficu

involved in

ge puts a big

asta'liq, Nak

recognition

eory and ext

oints, line sh

ems for mos

x than other

nd Figure 4.9

with a little

tures may al

ficult to reco

is to extract

ta to reduce

vides some fe

fferent kinds

rectional etc

6-FBAS/PHDC

n detail…

lt task to c

n the script,

g overhead o

ksh by a sin

rate. This

tracting the

hapes, etc. I

tly used wri

r styles follo

9. The chara

variation. Th

lso work for

ognize direc

unique, mea

the dimens

features whic

s of features

.

CS/F07)

classify Ara

especially f

on recognitio

gle classifie

issue is re

style indep

In other wo

iting styles N

owed by Ara

cter appears

hus, the sys

other writin

tly, due to l

aningful wit

sionality. Ge

ch are very d

s with respe

Ghost

72

abic script

for handwritt

on engine to

er. This incre

esolved by

pendent struc

ords this is

Naskh and N

abic script b

s in Nasta'liq

tem develop

ng styles.

arge variatio

th high class

enerally the

difficult to ex

ect to extrac

Character Rec

based langu

ten text. Th

classify dif

eases the co

implementin

ctural featur

done by de

Nasta’liq. Na

based langua

q style may a

ped for Nast

on and large

s difference

shape or im

xtract from t

ction mode i

cognition Theor

uages due t

he training fo

fferent writin

omplexity an

ng the gho

res like loop

eveloping tw

asta'liq style

ages shown i

also appear i

ta'liq by usin

e data set. S

features from

mage of wor

the input dat

i.e. statistica

ry

to

or

ng

nd

ost

p,

wo

is

in

in

ng

So

m

rd

ta.

al,

Page 92: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

F

B

w

an

fo

re

li

st

sc

N

re

d

di

en

4

Chapter 4

Muhammad Imr

Figure 4.8: U

Figure 4.

Basically the

writing and c

nd mapping

or Arabic sc

eason struct

iterature. By

tructural fea

cript written

Nasta'liq scri

espect to its

eepening up

irectional fe

ndpoint, bran

4.5 Effect o

ran Razzak (36

Urdu Sample

.9: different

Figure 4.1

structural f

computed fr

of diacritic

cript based la

tural feature

y deeply ana

atures for Ur

n in either Na

ipt. The shap

associated c

pon the posit

eatures are e

nch point etc

of Ghost C

6-FBAS/PHDC

es in three di

shapes of "ب

10: Feature c

features i.e. l

rom the skel

al method is

anguages wh

es are most

alyzing the

rdu script w

asta'liq or N

pes in Nasta

character and

ion of the ch

extracted tha

c.

Character

CS/F07)

ifferent style

'in Nasta "بcharacter

comparison o

loops, cusp,

leton of the

s also based

hich are hea

tly used for

both Nasta

written in Na

Naskh style. T

a’liq are mo

d position w

haracter. Thu

at can help

Theory

Ghost

73

es. Urdu Nas

'liq Font wit

of Nasta'liq a

, endpoint et

ligature. Fu

d on the stru

althy in diac

r Arabic sc

'liq and Na

asta'liq font

This is due t

ore complex

whereas in Na

us those stru

in both writ

Character Rec

sta'liq, Urdu

h respect to

and Naskh

tc are intuiti

urthermore t

uctural featur

ritical mark

cript based

skh, it is co

may also w

to the comp

x and vary u

askh shapes

uctural featur

ting style i.e

cognition Theor

Nasq, Naskh

neighbor

ive aspects o

the extractio

res especiall

s. Due to th

languages i

oncluded th

work for othe

lexities in th

up to 32 wit

are only fou

res along wit

e. loop, cusp

ry

h

of

on

ly

his

in

at

er

he

th

ur

th

p,

Page 93: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 4 Ghost Character Recognition Theory

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 74  

Urdu script based language character recognition system for both Nasta’liq and Naskh

writing style. Normally Naskh and Nasta’liq are mostly followed by Arabic script

based languages. Nasta’liq is mostly followed for Urdu, Punjabi, Sindhi etc. whereas

Naskh is mostly followed for Arabic, Persian etc. Thus, this work is selectedbecause

of two reasons; it can recognize both Naskh and Nasta’liq writing style and

recognition of diacritical marks and primary strokes are done separately. The mapping

of diacritical marks and dictionary mapping is dependent upon the language selection.

Each language has its own dictionary, thus the ligature formation based on diacritical

marks and word formation based on the ligature is fully based on the selected

language. As every language has its own rule, ligatures and word but the basic shapes

remain the same. The recognition of basic shapes does not need language rules,

dictionary etc. It is only dependent on the writing style used i.e. Nasta’liq or Naskh

etc. Whereas the ligature formation from recognized ghost character and recognized

diacritical marks, and word formation from recognized ligature the language model is

required because it is completely dependent upon the language. The proposed

approach is very successful for large datasets in the sense that Multilanguage

recognition on Arabic script based languages can be developed by using the

dictionary of every language. Dictionary D= (Urdu, Arabic, Persian, Punjabi, Pashto,

Sindhi).

Ligature Dictionary for Urdu = [ L1{ ……..} ,

L2 {………}, …..

Li {حب،حت،حپ،حٹ،حث،جب،جت،جپ،جٹ،جث

{،خب،خت،خپ،خٹ،خث،چب،چت،چت،چپ،چٹ،چث

Page 94: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

M

T

an

Chapter 4

Muhammad Imr

The mapping

nd same num

Figure 4.11

character

Figure

 

 

ran Razzak (36

g of diacritic

mber of diac

1: (a) Ligatu

(b) Word le

+

Persian n

Punjabi b

Sindhi i

e 4.12: Comb

 

Arabi

Urdu

Sind

Punja

Persian

6-FBAS/PHDC

……

cal marks w

ritical marks

re formation

vel recognit

U

i

bination of d

 

hi

abi

CS/F07)

………Ln{…

with respect

s is shown in

n by combina

ion HMM fo

Arabic

Urdu

diacritical m

 

 

Ghost

75

…….}.]

to dictionary

n figure 4.12

ation of diac

or same wor

marks with re

 

 

Character Rec

y on same g

2.

critical mark

rd in Urdu an

spect to lang

cognition Theor

ghost ligatur

ks and ghost

nd Arabic.

guages

 

ry

re

Page 95: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 4 Ghost Character Recognition Theory

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 76  

4.6 Merits

The major benefit of the proposed ghost character recognition theory is that

recognition system developed based on Ghost Character Recognition Theory will

work for all Arabic script based languages by mapping the diacritical marks and dots

latter with respect to every language.. Although it is not easy to develop sucha system

that works for different fonts i.e Nasti'liq, Naksh. Nasti'liq and Naksh are the two

most popular styles for these languages i.e Naksh is used for Arabic while Nasti'liq is

used for Urdu, Punjabi and Persian. The overall ligatures hence decrease.

Ligature Multilanguage = No of total ligatures by Arabic script based languages

Ligature Arabic = No of total ligatures of Arabic

Ligature Urdu = No of total ligatures of Urdu

Ligature Persian = No of total ligatures of Persian

Ligature Punjabi = No of total ligatures of Punjabi

Ligature other Arabic script based languages = No of total ligatures of other Arabic script based

languages like Pashto, Sindhi etc

Ligature Multilanguage <<< Ligature Arabic + Ligature Urdu

+ Ligature Persian + Ligature Punjabi

+ Ligature other Arabic script based languages

Moreover by using the character theory, it can also be written as

Ghost Ligature Urdu << Ligature Urdu

(4.1)

(4.2)

Page 96: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 4 Ghost Character Recognition Theory

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 77  

4.7 Limitations

The ghost character recognition theory has also few disadvantages.

I. As there are Multiple languages in one classifier, the number of ligatures is

increased.

II. It is a difficult and complex task to develop classifier for multiple fonts for

Arabic script based languages.

III. The recognition rate is little low due to multiple fonts and large number of

diacritical marks as compared to language specific character recognition

system.

4.8. Final Remarks

Every fourth person in the world is Muslim and Arabic script is used directly

or indirectly by Muslims. Urdu is the language that contains 58 alphabets; the basic

shapes in Urdu also exist in other languages. Thus Urdu is the superset of all other

Arabic script based languages. This chapter presents a novel technique; ghost

character recognition theory that helps to develop Multilanguage character

recognition system for all Arabic script based languages. The main advantage of the

proposed technique is that the recognition system works for all Arabic script based

languages by classifying ghost character and mapping the associated diacritical marks

and dots latter with respect to selected language. By deeply analyzing the shapes,

appearance and structure of both Nasta'liq and Naskh script with Urdu linguistics it is

concluded that structural features for Urdu script written in Nasta'liq font may also

work for other script written in either Nasta'liq or Naskh style. This chapter discussion

shows that, an efficient multilingual character recognition for Arabic script based

languages system can be developed by including some preprocessing and post

Page 97: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 4 Ghost Character Recognition Theory

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 78  

processing steps. Moreover, Ghost Character Recognition Theory also helps to build

HVS inspired character recognition system.

Page 98: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 79  

CHAPTER 5

PREPROCESSING AND FEATURE EXTRACTION

This chapter discusses the issues involved in preprocessing and feature extraction.

Preprocessing forms level-1 and level-2 whereas the feature extraction comprises level-3

and level-4 of the bio-inspired character recognition system. The complete bio-inspired

character recognition is presented in chapter 6. The level-1 is responsible for the

segmentation of diacritical marks and basic level preprocessing; level-2 is responsible for

complex preprocessing steps. Level-3 is responsible for dividing the strokes into sub

patterns and extraction of unique sub patterns whereas the level 4 is responsible for

complex feature extraction and fusion of features. Pre-processing of the raw input strokes

is crucial part for better feature extraction and for success of character recognition

system. First phase (level-1 and lelve-2) describes several preprocessing steps for online

character recognition by considering the input strokes from both online and offline

perspectives to reduce the variation by normalizing the input stroke. The proposed

technique is also a necessary step towards character recognition, person identification,

Page 99: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

p

ph

F

sa

re

ex

ex

5

P

in

st

h

sm

pr

Chapter 5

Muhammad Imr

ersonality de

hase (level-3

eature extra

alient patter

educe the d

xtraction. F

xtraction.

5.1 Preproc

reprocessing

nfluences the

troke elemen

as been deal

Figure 5.1:

The p

moothing fr

reprocessing

ran Razzak (36

etermination

3 and lelve-4

action in patt

rns from the

data for cla

Fuzzy based

cessing

g is one of

e recognition

nts. Several

lt with both o

Urdu Samp

preprocessing

rom irregula

g prepares th

Bio

6-FBAS/PHDC

n where inpu

4) presents t

tern recogni

e raw data

assification.

d reasoning

the most im

n result. It is

l preprocessi

offline and o

ples in three

g in both do

ar patterns,

he text for s

o-Inspired Fuz

CS/F07)

ut data is pro

the feature e

tion problem

in order to

Success o

is presente

mportant pha

s required in

ing steps are

online data.

different sty

omains inclu

skew detect

segmentation

zzy Based Prep

80 

ocessed from

extraction m

ms involves

enhance th

of classifier

ed for both

ase of charac

order to com

e performed

yles. Urdu N

ude compen

tion and ba

n and feature

processing and

m all perspect

method used f

the extractio

he discrimin

depends u

h preprocess

cter recogni

mpensate for

and the pre

asta'liq, Urd

sating for v

ase line estim

e extraction

d Feature Extra

tives. The se

for classifica

on of unique

atory power

upon the fe

sing and fe

ition and dir

r variations i

eprocessing p

du Nasq, Nas

ariability in

mation, etc.

. Unlike Eng

action

econd

ation.

e and

r and

eature

eature

rectly

in the

phase

skh

size,

. The

glish,

Page 100: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 81  

Japanese, etc. the cursive Arabic script has not received much attention in the last few

years [Bouchareb et al, 2006] and within the family of Arabic script, studies dealing with

Urdu Nasta’liq script are scarce.

The main aim of the preprocessing step is to produce a clean version of raw input

data for either online strokes or images of handwritten text, so that they can be utilized

efficiently for feature extraction and classification. Generally, preprocessing phase is a

set of filters that produce simplified patterns from the noisy patterns for classification.

The raw input strokes for online character recognition consist of stroke elements i.e. x, y

coordinates, timing information, force. The writing force and speed is important for

personality detection, person identification, etc. but it is not important for character

recognition due to a variety of writing speeds in writing of the same strokes by the same

person as well as different people. Thus the accuracy of recognizing text either by

humans or machine is highly dependent on the quality of input as even humans cannot

read easily the noisy, irregular or unfamiliar input data.

To minimize the unnecessary elements for classification, several preprocessing

steps are presented for online Urdu character recognition. These unnecessary elements

occur due to a vast variety of writing styles and inconsistencies that exist in the natural

way of writing. It is not an easy task to reduce noise and variations to simplify the input

pattern for Urdu character recognition due to complexities in the script.

Generally preprocessing phase consists of some operation such as baseline

detection, de-hooking, smoothing, secondary strokes separation, slant correction, stroke

mapping. The resultant outcome of pre-processing phase is a normalized, skewed

Page 101: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 82  

smoothed and clean sequence of stroke element x',y' and can be used directly for feature

extraction and classification.

5.1.1. De-Hooking

Hooks are most common artifacts that occur at the beginning and ending of

strokes during handwriting. Due to the sensitivity of pen/pc tablet, hooks are generated

by inexperienced user or due to fast writing speed during the pen-down and pen-up

movements as shown in Figure 5.2. In other words hooks are the noisy pattern that may

occur at the start and end of handwritten strokes and are common in handwriting. The

presence of hooks may lead to incorrect feature extraction especially hooks create

problems in recognizing the character start with jeem ' ج ' and ayen ' due to the natural 'ع

presence of hooks in these characters. Thus before removing the hooks it is necessary to

take the decision whether it is a hook or not.

If variation in the chain code (last 6 chain code in length) at the beginning or end

is less than the specified threshold (T = 4), then the part considered a hook is removed by

either discarding it or replacing the respective co-ordinates with the neighboring ones.

There are some issue in removing the hooks i.e. it may be possible that small up of the

stroke ‘ج’ is removed as a hook which is the most important part in the detection of

stroke ‘ج’ as shown in Figure 5.3. So, to avoid de-hooking in jeem, de-hooking at

beginning is not performed on those ligatures which are written from left to right for

some length like ج. The isolated jeem is written from left to right and the ligature is جر

also written left to right at the beginning while the remaining ligature is written from

right to left.

Page 102: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

5

T

n

in

n

o

on

th

S

F

D

Chapter 5

Muhammad Imr

5.1.2 Smoo

The main aim

atural hand

nput text. Sm

ormalize the

f offline ch

nline charac

hus the smo

moothing is

igure 5.4 usi

Disscuss weig

ran Razzak (36

Figure

othing

m of smooth

shivering d

moothing is t

e variations

haracter reco

cter recognit

oothing ope

s performed

ing filters sh

ght value

ixP ' (

Bio

6-FBAS/PHDC

e 5.2: Before

hing is to de

during writin

the most sign

that does no

ognition, ave

tion the smo

eration does

d using weig

hown below

Unsmoo

j

jii y ),

o-Inspired Fuz

CS/F07)

e Preprocessi

crease the v

ng and it is

nificant oper

ot affect the

eraging filte

othing filter

not affect

ghted avera

where xiand

Cusp /Loop

oth

k

kj

nki

kijiP

),min(

)1,max(

(

zzy Based Prep

83 

ing issue (a)

variation occ

common in

ration of pre

basic structu

er is applied

r is only app

the width

age over str

d yi are the co

Hoo

issue

kjw

wyx ),(

processing and

.طا (b) صا (

curred due t

n literature

eprocessing a

ture of the st

d on the im

plied to strok

of the strok

rokes eleme

orresponding

oks

jw

d Feature Extra

o fast writin

to normaliz

and it attemp

troke. In the

mage wherea

ke element a

ke elements

ents as show

g x,y coordin

(5.

action

ng, or

ze the

pts to

e case

as for

array,

s x,y.

wn in

nates.

1)

Page 103: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5

Muhammad Imr

5.1.3 Interp

ometimes, in

rocessing po

re equidistan

peed. This

xtraction, es

reprocessing

pproach for

oints are est

ccur when th

he missing

erformed us

iltering step

istance betw

ilter on raw i

ran Razzak (36

polation

ntermediate

ower of pen.

nt in time.

missing and

specially in

g phase. Fig

re-sampling

timated afte

he point of i

points. To

sing Bresenh

is also nece

ween consecu

input data.

Fig

Figure

Bio

6-FBAS/PHDC

points are sk

Moreover,

Thus the nu

d non-equid

the case of

gure 5.3 show

g the points a

r fixed dista

ntersection i

compute th

ham's line d

essary to eli

utive points

gure 5.4: Sm

e 5.3: Missin

o-Inspired Fuz

CS/F07)

kipped by p

the points ar

umber of po

distant data

f loop and c

ws the missi

at equal dist

ance wherea

is not the sam

e missing d

drawing algo

minate the d

. The duplic

moothed and I

ng points du

zzy Based Prep

84 

en due to th

re not equid

oints varies

may create

cusp detectio

ing points. M

tance [Mezgh

as in loop ex

me. Thus pr

data between

orithms show

duplicated p

cates points

Interpolated

ue to fast spe

processing and

he high writin

distant betwe

depending u

e some prob

on and it’s

Mezghani et

hani et al.].

xtraction som

oposed appr

n two pints

wn in figure

points by for

are remove

d stroke

eed of writin

d Feature Extra

ng speed and

een them but

upon the wr

blems in fe

a crucial ste

t al. presente

The interme

me problem

roach interpo

s interpolati

e 5.4. More

rcing a mini

d using low

g.

action

d low

t they

riting

eature

ep of

ed an

ediate

m may

olates

on is

eover,

imum

w pass

Page 104: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 85  

5.1.4. Secondary Stroke Segmentation

Delayed strokes (secondary strokes) are necessary to differentiate the similar strokes in

inter languages i.e. Arabic, Urdu and Persian etc. and also in intra language i.e. پ, ڀ, ٺ.

The same ghost stroke may have different interpretations based on the diacritical marks.

Arabic script based languages contain zero or more secondary strokes associated with

primary strokes. A study on 50 native readers of Arabic, Urdu, Punjabi, Sindhi and

Pashto written in two mostly followed fonts Naskh and Nasta’liq showed that the first

step in recognition of Arabic script based languages is the recognition of basic shapes

without diacritical marks. Thus secondary strokes handling is very important for the

classification of Arabic script based languages. Generally Arabic script based languages

contains zero or more secondary strokes corresponding to one primary stroke and smaller

in size as compared to primary strokes. The separation of secondary strokes is not an easy

task, because the dots may not appear exactly above or below the character in the stroke

and they may have different order furthermore some delayed strokes have same or similar

shapes as of primary strokes i.e."ط " may appear as primary strokes and secondary stroke

as well. The positioning of secondary stroke is also very critical especially when related

character is of very small size or related stroke may contain more than one secondary

stroke shown in Figure 5.5. It is very difficult to decide, whether the secondary stroke

belongs to one character in the ligature or belongs to multiple characters in the ligatures.

If Premises Pothen Conclusion Co

If Premises P1 then Conclusion C1 (5.2)

Page 105: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

ex

Chapter 5

Muhammad Imr

Where

F

The separ

xactly above

سنتر ستنر

ran Razzak (36

e Premises P

Figur

Figure 5.6: D

ration of seco

e or below

نبتر

ثشر س

Bio

6-FBAS/PHDC

P1 ε Co

re 5.5 (a): N

Diacritical m

Figure 5.

ondary strok

the characte

لھببثر لھبن

سثر

o-Inspired Fuz

CS/F07)

asta’liq char

marks issue w

7: Diacritica

kes is not eas

er in the str

لھينتر

تنتشا

zzy Based Prep

86 

racter with th

with three do

al complexity

sy task, beca

roke and th

لھيتنر ير

ت تننثا

processing and

hree dots

ots in Naskh

y

ause the dots

ey may wit

لھشي ھيشر

شا نتتثا

d Feature Extra

style

s may not ap

th different

لھ

ثتشا شنش

action

ppear

order

نتنثا

 

Page 106: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

fu

i.

is

5

in

si

fi

co

th

ca

th

th

ti

se

Chapter 5

Muhammad Imr

urthermore s

e."ط " may a

ssue in diacr

I.

II.

5.1.4.1.Segm

As in

n some cases

ide respectiv

igure 5.7.Th

onsidered as

he occurring

andidate for

hirdly it’s en

he fuzzy term

iming, strok

egmentation

ran Razzak (36

some delaye

appear as pri

itical marks

Segmentat

Localizatio

mentation

Urdu script

s they may a

vely), or with

he strokes s

s candidate f

g stroke is

r secondary

nding point l

ms through t

ke size etc,

n. The fuzzy

Bio

6-FBAS/PHDC

ed strokes h

imary stroke

segmentatio

tion

on

n

t; secondary

appear little

hin the word

smaller than

for secondary

compared

strokes if it

ies within ra

the logical o

a number

membership

o-Inspired Fuz

CS/F07)

have same o

es and secon

on.

strokes are

before, littl

d-part with r

n the size θ

y strokes. If

with the pr

lies little up

ange θ1 (whe

perators (OR

of fuzzy ru

p function is

zzy Based Prep

87 

or similar sh

ndary stroke

written abo

le after (clos

respect to the

θ (where θ

f the size is g

rimary strok

p, ending m

ere θ1 1/6 of

R, AND) on

ules are con

explained in

processing and

hapes as of

as well. Th

ve or below

sely touching

e horizontal

is 1/10 of

greater than θ

ke, it will

must be from

stroke width

n fuzzy varia

nstructed for

n table 5.1 a

d Feature Extra

f primary str

here are two

w of the word

g the right o

axis as show

base stroke

θ then locati

be consider

m right to lef

h). By comb

ables i.e. loca

r delayed s

and table 5.2

action

rokes

main

d and

or left

wn in

e) are

ion of

red a

ft and

bining

ation,

stroke

.

Page 107: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

T

Chapter 5

Muhammad Imr

If Prem

If Prem

Where

The above ru

ran Razzak (36

mises Pothen

mises P1 the

e Premises P

les are descr

Bio

6-FBAS/PHDC

Figur

n Conclusion

n Conclusio

P1 ε Co

ribed in Tabl

o-Inspired Fuz

CS/F07)

re 5.8: Seco

n Co

on C1

le 5.1 and T

zzy Based Prep

88 

ondary stroke

able 5.2.

Si

D

processing and

e separation

 

ingle Dot (x',y'

Double Dot ( x''

d Feature Extra

)  

, y'') 

(5.3

action

3)

Page 108: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 89  

Table 5.1: Distance Vs Position Fuzzy Rules

Distance/Position Up Down Inside Left Right

Small MS-1 MS-1 MS-1 MS-1 MS-1

Medium MS-1 MS-1 MS-1 MS-2 MS-2

Large MS-2 MS-2 MS-2 NS MS-3

Very Large MS-3 NS NS NS NS

Inherited result

Table 5.2: Table 1 Result Vs Size Fuzzy Rules

Size/Score Result MS-1 MS-2 MS-3

Small SS SS NS

Medium SS SS NS

Large SS NS NS

Very Large SS NS NS

*MS May be Secondary Stroke

**NS not Secondary Stroke

Page 109: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 90  

Table 5.3: Diacritical Marks Separation Algorithm

Algorithms: Delayed Stroke Segmentation

For All P, Pi,j

Pi,j is the delayed Stroke, Pi is the concerned primary stroke.

RMER(Pi) is the point on right side of minimum enclosing rectangle

LMER(Pi) is the point on left side of minimum enclosing rectangle

IF Pi+j< θ

Pi+j may be the candidate for secondary stroke C(Sj Pi )

Else

IF| Pi,j ( xf, yf) – RMER(Pi) < θ1 ) OR | Pi,j ( xf, yf) – LMER(Pi )< θ1

Pi,j may be the candidate for secondary stroke C(Sj Pi )

Otherwise

Pi=Pi+1

5.1.4.2 Localization

The positioning of secondary stroke is also very critical especially when related

character is of very small size or related stroke may contain more than one secondary

stroke shown in figure 5.9. It is very difficult to decide, either the secondary stroke

belong to one character in the ligature or belong to multiple character in the ligatures.

Fuzzy logic is used to handle delayed-stroke through the vertically projection on the

stroke to find its corresponding character surrounded by considering vertical projection

along with timing information and corresponding stroke shape. The propose technique is

Page 110: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

d

ph

p

d

es

ea

fa

R

cl

d

o

ch

pr

m

d

Chapter 5

Muhammad Imr

ivided into t

hase the loc

osition and a

ots such as

stimation of

ach family

amily of the

Relative posi

luster. By

iacritical po

f diacritics

haracter. Th

roblems. It

mean is a sim

ata grouping

ran Razzak (36

two parts fuz

cal cluster a

associated ch

the one sh

f dots family

(cluster). Th

e each diacr

ition of diac

considering

sition and a

and charact

he fuzzy c-m

is technique

mple unsupe

g when the c

Figure 5.9

Bio

6-FBAS/PHDC

zzy clusterin

are estimate

haracters. Th

hown in Fig

y, the fuzzy

hus by usin

ritical mark

critical mark

the biolog

ssociated ch

ter is most i

mean algorith

e where each

ervised learn

clusters size i

9: Diacritical

o-Inspired Fuz

CS/F07)

ng and estim

ed on diacri

he basic aim

gure 5.9. Un

c-mean clu

ng the fuzzy

and then fi

ks is very im

gical knowle

haracter are e

important to

hm has been

h point belo

ning techniq

is known.

l marks issue

zzy Based Prep

91 

mation of ass

itical family

m of clusterin

Unlike the di

ustering find

y c-mean cl

finds the pro

mportant in

edge of hu

estimated. T

o map the d

n successfull

ongs to clust

que that can

e with three

processing and

sociated char

y with respe

ng is to resol

irect project

s the degree

lustering fir

ojection on

order to fin

uman visual

The relative

diacritics ont

y applied to

ter to some

be used for

dots in Nask

d Feature Extra

racter. In the

ective to rel

lve the confl

tion or dire

e of belongi

rst optimized

to the chara

nd the assoc

perception

size and pos

to the assoc

o many clust

degree. Fuz

r classificati

kh

action

e first

lative

lict of

ection

ng to

d the

acter.

ciated

n, the

sition

ciated

tering

zzy c-

on or

Page 111: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

fr

m

or

w

cl

Chapter 5

Muhammad Imr

For su

rom 10 users

Where

may belongs

r next charac

The d

with the char

lustering wit

ran Razzak (36

Figure 5.10

upervised lea

s which cont

e n is the nu

to the curren

cter.

decision is ba

racter. In th

thin the diac

3 Dots 

Bio

6-FBAS/PHDC

0: Fuzzy mem

arning distan

tain single do

xxX ,, 21

umber of dia

nt character,

{(xS

{(cS

{(C

{(C

ased upon th

he first phas

critical famil

o-Inspired Fuz

CS/F07)

mbership fu

nce metric, w

ot, double do

n andx,....

acritical mar

, previous or

|), jji anxxx

|), jji anxxc

|),( jji anssc

|),( jji anssc

he local clust

se, the abov

ly. The seco

Dots 

zzy Based Prep

92 

unction for di

we used som

ot and triple

ccC , 21

rks associate

r next chara

}ij xxnd

}ij xxnd

}ij csnd

}ij csnd

tering of dia

ve equations

ond phase ru

processing and

iacritical ma

me training s

e dot, taa etc.

mc,....

ed with m ba

acter or dot o

acritical mar

performed

un on the clu

Dot with next

d Feature Extra

arks

samples obt

.

ase characte

of same, prev

rks and clust

diacritical m

ustered diacr

(5

(5.

(5.

(5.

(5.

action

ained

ers. x1

vious

tering

marks

ritical

5.4)

5)

6)

7)

8)

Page 112: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

m

an

ch

W

ch

p

ir

ex

m

o

A

Chapter 5

Muhammad Imr

marks and ch

nd 2.5. We

haracter. Th

Where fi,j is th

One o

haracter. W

osition and u

rregular data

xperiments

marks moreo

f diacritical

Accuracy

ran Razzak (36

haracter in th

also discard

e distance ca

he feature ve

of the main

e present a

using fuzzy

a. We eleva

show that t

ver the resu

on to the ba

94

95

96

97

98

99

100

1 d

Bio

6-FBAS/PHDC

he ligature to

ded many p

an be compu

),( ji cxd

ector

issues is h

technique t

c-means clu

ated the per

the proposed

lt can also b

se stroke to

dot 2 dot

o-Inspired Fuz

CS/F07)

o find the as

air in first p

uted as

|||| ji cx

handling the

to handle di

ustering. Fuz

rformance o

d technique

be improved

avoid the inc

3 dot k

zzy Based Prep

93 

sociated cha

phase based

',(),( jiji fAf

e diacritical

iacritical ma

zzy logic is r

of the chara

e performs w

d by using di

correct clust

kaf end Alf

processing and

aracter show

d on the proj

)j

marks asso

arks with re

robust enoug

cter recogni

well to deal

ictionary dur

tering of dot

f Taa

d Feature Extra

wn in equatio

jection on t

ciated with

espect to rel

gh for scatte

ition system

l with diacr

ring the map

ts.

(5.

action

on 2.4

to the

each

lative

er and

m and

ritical

pping

9)

Page 113: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 94  

Figure 5.11: Recognition rate of diacritical marks

Algorithm: Diacritical Marks Fuzzy C-Mean Clustering

Input: Online handwritten strokes (base and diacritical marks)

Output: Diacritical marks with associated character i.e. position

Algorithm:

Step I: Select the number of cluster based on estimated characters.

Assign every cluster to every expected character.

Step II: Calculate the center of fuzzy cluster using position.

Step III: Repeat step IV and V for each diacritical mark

Step IV: Phase-1: Perform fuzzy estimation of diacritical marks clusters with each other.

Phase-II: Perform fuzzy estimation of diacritical cluster with characters.

Step V: Draw fuzzy projection on to the character to find the associated character.

5.1.5. Slant Correction

The character inclination that is normally found in cursive writing is called slant.

Slant correction is one of the important steps to reduce the variation in the handwritten

text and crucial part of preprocessing.The main purpose of slant correction is to reduce

the variation in handwritten script specifically to improve the diacritical marks

segmentation process etc. which in turn can yield a higher recognition accuracy.Since for

Urdu script especially Nasta'liq the feature extraction and segmentation is highly

dependent on the direction of writing thus it is important that vertical movement of pen is

Page 114: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 95  

as perpendicular as it is possible, instead of diagonally slanted. Otherwise for diagonally

slanted strokes written features will be poorly extracted or segmentation cannot be

performed correctly. For example for implicit segmentation it is very difficult to adjust

the criteria for segmenting the stroke into subunits i.e. the input stroke is divided into

slice/subunits for HMM based recognition so that accurate splitting is obtained; the

strokes must be vertically perpendicular.

Generally handwritten strokes are not uniform, thus the slant may change with

words and it may even be different within ligatures or strokes. Therefore the global

uniform slant estimation is not guaranteed to provide good slant correction for

handwritten text. Due to the complexity of Urdu handwritten script we need local slant

correction instead of global slant correction. Whereas it’s a difficult to estimate the slant

on stroke bases due to limited information available for estimation. This problem mostly

occurs where short strokes in height and width are involved i.e.ر،د،و . These kind of short

strokes contain limited information that helps in slant estimation. Thus the need is to

normalize the stroke by estimating the slant locally based on the current stroke and some

clue from the previous stroke to normalize the stroke on to the vertical axis. We present

an algorithm that computes slant locally based on vertical projection with the help of

neighbor strokes information.

For slant estimation only vertical and horizontal movements of pen are analyzed

while slant correction is performed on only vertical axis. As the Urdu ligatures are

written from top to bottom and left to right. The writers may write the ligatures little right

or left slanted shown in Figure 5.12. The slant estimation is performed on only primary

strokes because some of the secondary strokes are slanted naturally whereas alignment

Page 115: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

co

sl

d

es

in

co

fr

v

V

Chapter 5

Muhammad Imr

orrection is

lant estimat

iagonally ve

stimation of

n figure 5.12

If the

orrection is p

rom estimate

ertically dro

Vertical angle

ran Razzak (36

performed o

tion, gravity

ertical up o

f line from lo

2 and figure 5

topmost poi

performed. O

ed position t

opped positio

e detection.

If

Bio

6-FBAS/PHDC

on both prim

y fall of top

r vertical d

owest measu

5.13.

int angle wit

Otherwise sl

to the lowes

on as shown

(tan 1

(x

'( x i

o-Inspired Fuz

CS/F07)

mary and sec

pmost strok

own movem

ure towards

th starting po

lant correcti

st position an

in figure 5.1

)(

(

ax

x

()',' yx

()', yi

zzy Based Prep

96 

ondary strok

kes element

ment. The sl

new upward

oint angle is

ion is perform

nd the next

13.

(

)2

2

by

a

),bx

),( bx i

processing and

kes as shown

ts is used w

lant is corre

ds estimated

greater than

med by usin

segment is a

)) 2b

For all inte

d Feature Extra

n in figure 6

with additio

ected by ve

d points as sh

n 70 then no

ng the gravit

attached wit

ermediate po

(5.

(5

action

6. For

onally

ertical

hown

slant

ty fall

th the

oint i

10)

5.11)

Page 116: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

co

w

im

5

st

it

in

li

p

to

Chapter 5

Muhammad Imr

As the

orrect the sl

with it conce

mproved bas

5.1.6. Strok

The in

teps. Only on

ts characteri

nformation to

It is d

ifting the pe

ermit lifting

o overcome t

ran Razzak (36

Figure 5.

Figure 5.13:

e secondary

lant of secon

erned chara

sed on the sla

ke Mappin

nput strokes

nline finding

stics. It is m

o increase th

difficult to w

en as shown

g of pen duri

this issue, an

Bio

6-FBAS/PHDC

12: Left slan

: Locally ang

strokes are

ndary stroke

acter. The p

ant estimatio

ng

s are transfo

g are not eno

more suitabl

he recognitio

write some li

n in figure 5

ing the writin

n algorithm i

o-Inspired Fuz

CS/F07)

nted, right sl

gle computa

small and s

es. But the i

position of t

on of primar

ormed into

ough for the

le to involv

on rate.

igatures i.e ر

5.15, wherea

ng of ligatur

is proposed b

zzy Based Prep

97 

lanted and no

ation for Slan

small in num

issue is asso

the seconda

ry strokes co

image to pe

Urdu online

ve offline in

etc shلا ,بصر

as online ch

re for Urdu

based on tw

processing and

ormal words

nt normaliza

mber thus th

ociation of s

ary strokes

orrection ang

erform offlin

e character re

formation a

hown in figu

haracter reco

script based

wo rules:

d Feature Extra

s.

ation

here is no ne

secondary str

also need t

gle.

ne preproce

ecognition d

along with o

ure 5.14. Wi

ognition doe

d languages.

action

eed to

rokes

to be

essing

due to

online

ithout

es not

Thus

Page 117: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

R

st

st

h

R

en

an

W

Chapter 5

Muhammad Imr

Rule 1: Two c

tarting point

troke is vert

orizontal.

Rule 2: Two

nding point

nd considere

F

Figure 5.

If both str

Where α is de

ran Razzak (36

consecutive

t of second l

tical ending.

consecutive

is very clos

ed as a single

Figure 5.14:

15: (A) Res

If d

rokes ends a

epends upon

Bio

6-FBAS/PHDC

ligature are

ligature is c

. This value

strokes are

e to the star

e ligature as

Base storks

solved probl

,(| yxdist

t vertically t

(|dist

n the size of t

o-Inspired Fuz

CS/F07)

treated as on

lose to the e

e threshold β

combined to

t of second

shown in fi

that are diff

em shown in

|),(), nmy

then both str

(),,( imyx

the strokes.

zzy Based Prep

98 

ne ligature i

ending of th

β is conside

o form one s

stroke, these

igure 5.15.

ficult to write

n figure 5.14

rokes are com

|), ii n

processing and

f they overla

he first strok

ered twice in

stroke if the

e two ligatur

e in single st

4. (B) Error i

mbined

=Where i

d Feature Extra

ap each othe

ke and one o

n vertical th

e previous str

res are comb

troke

in combining

....1=  

(5.

(5

action

er and

of the

han in

rokes

bined

g

12)

.13)

Page 118: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 99  

The issue in figure 5.15.b can be resolved by using the word level processing.

5.1.7. Baseline Estimation

The most significant operation in preprocessing is the estimation of baseline.

Baseline is the virtual line on which characters are aligned to form the ligatures or words

and it is the necessary requirement for both readers and writers. Character in different

languages follow different baseline for example Hindi follows baseline in which the

characters are aligned at the top while Roman characters are aligned at the bottom. Naskh

writing style of Arabic follows bottom alignment whereas Nastaliq is aligned at the

center. Generally, baseline is kept in mind during both writing and reading. Baseline

detection is not only used for automatic character recognition but is also helpful for

human reading. If the characters are written without following the baseline, it is difficult

to read the text even for human and error rate increase up to 10% even with the context

sensitive interpretation []. In automatic character recognition where no context

knowledge is involved, baseline detection is the necessary part for better classification

especially for Arabic script based languages. Moreover the localization of diacritical

marks also requires the baseline estimation. Several baseline detection methods based on

horizontal projection have been proposed in literatures as discussed in chapter 2 but are

valid for complete text lines.

Urdu script based languages are written in many styles but mostly Nasta'liq and

Naskh are followed. Urdu, Punjabi etc. is written in Nasta'liq whereas Arabic, Pashto,

etc. are written in Naskh style. We have proposed a novel technique for baseline

estimation based on extraction of some primitives extracted from the ghost characters.

Page 119: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

F

ch

ov

up

an

es

kn

5

sh

fo

Chapter 5

Muhammad Imr

Nasta

igure 5.16 s

haracters ma

ver Naskh, o

pon the asso

nd does not

stimation fo

nowledge of

.16 shows t

how that ch

ollow differe

Figure 5.1

ran Razzak (36

'liq and Nas

shows the m

ay appears a

one characte

ociated chara

depend upon

or Nasta'liq

f word struct

he baseline

haracters in N

ent baselines

6: Baseline

Bio

6-FBAS/PHDC

skh styles ar

modeling of U

at different

er in Nastaliq

acters where

n its associat

written text

ture it is diff

for Nasta'li

Naskh follow

s depending

and Descend

o-Inspired Fuz

CS/F07)

re mostly fo

Urdu on bas

descender li

q may appea

as in Naskh

ted characte

t is more c

ficult to estim

q and Nask

w the same

on their con

der lines for

zzy Based Prep

100 

ollowed by U

seline and tw

ines. Due to

ar at differen

style each c

ers as shown

complex tha

mate the bas

kh style. Fig

baseline w

ntext.

Nasta'liq an

processing and

Urdu script

wo descende

o the comple

nt descender

character fol

in figure 5.1

an Naskh sty

seline. The b

gure 5.17.a a

whereas in N

nd Naskh fon

d Feature Extra

based langu

er lines. Diff

exity of Nas

r lines depen

lows the bas

17. Thus bas

yle. Withou

blue line in f

and figure 5

Nastaliq they

nt for Urdu [

action

uages.

ferent

sta'liq

nding

seline

seline

ut pre

figure

5.17.b

y may

[4]

Page 120: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

F

ch

5

pr

es

h

Chapter 5

Muhammad Imr

Figure 5.17.a

Figure

A no

haracter. Th

Phase

Phase

(the ch

5.1.7.1 Pha

For p

rimary base

stimation. T

orizontal lin

ran Razzak (36

a Baseline (

e 5.17.b Bas

vel baseline

e proposed a

I: Primary b

II: Locally

haracters ha

ase I. Prim

rimary base

eline estimat

The horizonta

ne. The line

Bio

6-FBAS/PHDC

Red) for Na

seline ( Red)

e estimation

approach is d

baseline esti

baseline esti

s been made

mary baseli

eline estimat

tion gives a

al projection

with the ma

o-Inspired Fuz

CS/F07)

asta'liq and N

baseline

Figure 1 

for Nasta'liq

n method i

divided into

mation

imation

e rotation inv

ine estima

tion we hav

a rough base

n based met

aximum num

zzy Based Prep

101 

Naskh Style

e

q

is presented

two phases.

variant in 5.1

ation

ve used a pr

eline for ref

thod counts

mber of pixe

processing and

and blue lin

 

d that uses

.

1….)add abo

rojection ba

finement by

the number

ls is conside

d Feature Extra

e shows issu

only the

ove

sed method

y locally bas

r of pixels o

ered as the i

action

uesin

ghost

. The

seline

on the

initial

Page 121: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 102  

baseline. As the secondary strokes are removed during the phase-I, thus projection

baseline is estimated based on ghost characters and gives good results by eliminating the

influence of diacritical marks on baseline estimation as followed in earlier research[].

5.1.7.2 Phase II. Locally Baseline Refinement

Although, projection baseline is robust and is easy to estimate but this method

requires a long straight line of text. In case of handwritten text especially for online

handwritten text the length of line/words may be very short and it is difficult to find a

single baseline due to large variation in handwritten text. Locally baseline estimation is

based on extraction of additional features like …………. These features are used to

refinement the baseline locally with the help of primary baseline. The features and locally

baseline estimation is fully dependent on the style of script i.e. Nasta'liq has different sets

of features with different rules as compared to Naskh. Figure 5.18 describes the proposed

baseline extraction method.

Features lying on the baseline are extracted i.e. ray, bey. (add glyph) etc. as shown in

figure 5.19 and then baseline is computed for these features instead of the whole stroke.

As in Nasta'liq, the last character may not lie on the baseline, thus for Nastaliq, the

baseline for the last character is extracted and has less influence on the final baseline.

Whereas for Nashk font, the local baseline has more influence on the final baseline

because the major portion of each character lies on the baseline. The projection angle

computed previously by the global projection method is further corrected based on the

local baseline.

Page 122: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

Chapter 5

Muhammad Imr

Figure 5.1

strokes. (c

ran Razzak (36

18: (a). Raw

c). Primary b

Discuss

Figure

Bio

6-FBAS/PHDC

input stroke

baseline esti

estimat

all steps brie

e 5.19: Featu

o-Inspired Fuz

CS/F07)

es. (b): Ghos

mation base

tion based o

efly …separ

ures for local

zzy Based Prep

103 

st shapes afte

ed on project

on features.

rate all in abo

lly baseline e

processing and

er separation

tion. (d): Loc

ove diagram

estimation

d Feature Extra

n of secondar

cally baselin

m

action

ry

ne

Page 123: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 104  

Figure 5.20 Fuzzy Membership Function for Angle fusion (move it down)

For primary baseline estimation α is computed based on horizontal projection as

shown in Figure 5.18.c on ghost character. The primary baseline estimation is used to

reduce the error occurred by using the feature based approach. Then the second baseline

is computed based on the features and previous baseline. The role of primary baseline is

to compute the exact angle (β) for local baseline by using the following relation.

For each ligature

IF | α – βi | < θ then estimated angle = (α+ βi)/φ

ELSE estimated angle = α

Where α , β are globally and locally computed angles of each ligature and φ

is computed using the fuzzy membership function α’= (φi α + φj βi ) as

shown in figure 5.20 based on the previous and current angles.

Defind Small medicum etc…. ,describe in above theory…..

If | α – βi | is very small then α’= (α+ βi)/2

If | α – βi | is small then φi=0.2~0.3 φj =0.7~0.8

If | α – βi | is medium then φi=0.3~0.4 φj =0.6~0.7

Membership Value

 

 

Previous Angle Current

Page 124: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 105  

If | α – βi | is large then φi=0.7~0.9 φj =0.3~0.1

5.111Alignment Correction

Alignment correction is performed on both ghost strokes and secondary strokes. The

angle of secondary strokes is the same as the angle of the associated ghost stroke and

performed using the following relation. (Association of diacritical marks based on writing

order)

For ghost strokes and diacritical marks.

ii

ii

xyy

yxx

coscos

sin'cos'

'

Figure 5.21: Recognition result of baseline estimation

Discuss the results

5.2 Feature Extraction

0

20

40

60

80

100

120

Globally baselinewith diacritical mark

Globally baselinewithout diacritical

marks

Locally baselinedetection on ghost

character

Nasta'liq

Naskh

(5.14)

Page 125: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 106  

A successful character recognition methodology depends on the choice of features used

by the pattern classifier. Feature selection in pattern recognition problems involves the

derivation of salient features from the preprocessed data in order to reduce the amount of

data used by the classifier for classification and simultaneously provide the enhanced

discriminatory power. In pattern recognition problems, feature selection involves the

evaluation of most discriminant features from the extracted. The direct recognition of

handwritten stroke is almost impossible due to high variability of handwritten strokes.

The feature selection phase also called dimensionality reduction. The aim of feature

extraction from the input strokes is reducing the input pattern to avoid from complexities

while keeping the high accuracy and the extraction of those distinct patterns that uniquely

define the strokes and most important for classification while the task of human expert is

to select those features that allow effective and efficient recognition. The feature

extraction phase must be robust enough so that extracted features are small in number,

produce less error during extraction and uniquely describe the shape of strokes.

Generally, handwritten strokes are oriented lines, loops, and curves. These orientations

play an important role in the classification of strokes. The directional and structural

features i.e. loop, cusp, etc. plays important role in the classification and previous work

shows that improved results have been obtained by combining structural and directional

features. Structural features are the shape defining features and these are based on the

instinctive aspects of writing and include loops, cusp, endpoints, starts points etc.

Sometimes, further preprocessing is required on this feature matrix to remove the

unnecessary and noisy features by using language rules. Fuzzy rules have been used to

extract the unique and meaningful shape defining features. Our main focus is on the

Page 126: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

st

o

in

o

es

un

co

at

L

tw

nu

p

Chapter 5

Muhammad Imr

tructural fea

ffline stroke

nformation i

ccurrence. T

stimation. F

nnecessary o

ommunicatio

t upper level

Figure5.22:

Loop is an im

wo categorie

umerals. To

oints interse

ran Razzak (36

atures. Time

e elements

is utilized t

This arrang

Finally, post

or noisy feat

on between

l. Figure 5.2

: Biologicall

and

mportant fea

es small (o

o detect loop

ect occurring

Bio

6-FBAS/PHDC

e variant stru

to identify

to extract f

gement help

processing i

tures by mo

upper level

2 briefly des

ly inspired fe

d describe th

ature to diffe

nly for zer

ps, the pen

g point, prev

 

 

o-Inspired Fuz

CS/F07)

uctural featu

on-line han

features from

s us in com

is applied on

deling the b

(Level-4) an

scribes the d

eature extrac

he whole pic

erentiate som

o written in

movement i

vious recoded

zzy Based Prep

107 

ure are extr

ndwritten lig

m the strok

mbining the

n extracted f

biological co

nd lower lev

directional fe

ction (divide

cture in parag

me similar nu

n Urdu Num

is recorded.

d and curren

processing and

racted from

gatures. The

ke elements

e diacritical

features matr

oncept and la

vel (Level-3)

eature extrac

e the above f

graph)

umerals, loo

merals) and

If points fr

nt point form

 

d Feature Extra

both online

e additional

in the ord

l marks thr

rix to remov

anguage rule

) to refine pa

ction process

figure in 4 pa

op is divided

d large for

rom the reco

ms a circle, t

 

action

e and

time

der of

rough

ve the

es i.e.

attern

s.

arts

d into

other

orded

thus a

Page 127: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 108  

closed loop is detected. If the internal width and length is greater than α (α<=7 pixel),

then this closed loop will be considered as a large loop otherwise this closed loop will be

considered as a small loop used for zero. Another issue is the open loops which always

exist at the beginning of the stroke. To find open loop, from the beginning of the stroke,

the distance between recorded points are calculated with the current point, if it is less than

β then it is considered at closed loop, then internal width and length of this closed loop is

calculated to find greater loop or small loop. As the open loops exist at the beginning of

the stroke, thus recorded length will be γ < 6 to avoid loop diction in some case like

figure 5.23.

For closed loop,

)()(1 xMinxMax

)()(2 yMinyMax

For closed loop

loopsmallother

21,

For open loop,

featureotherother

6

downward loop upward loop

oval loop

(5.16)

(5.17)

(5.18)

Page 128: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 109  

Figure 5.23: Loop confliction and detection

Move lope in structural features set…

5.3.1 Directional Features

Handwritten strokes are oriented lines, curves, or poly-lines which play an important

role in differentiating between various characters. For a long time, orientation or direction

has been taken into account in handwritten character recognition. In early stages,

character recognition using directional features was called directional pattern recognition

[Fujisawa and Lui, 2003]. Chain code is the important way to extract the directional

features as shown in figure 5.24. We have used chain codes and length for directional

feature extraction based on fuzzy logic and context knowledge of the ligature itself,

instead of length of current feature as shown in figure 5.25. The relative fuzzy decision of

directional features is performed in two steps. The first stage extracts small patterns and

the second stage combines these small patterns to form large patterns. The decision of

large patterns is performed in level-4 based on the associated patterns detected in the

ligature using the fuzzy language rules (Example describe).

As humans have high context knowledge and they can better differentiate the

different sizes based on their context knowledge, similarly we have tried to model the

context knowledge of ligature itself. Although it is very limited yet it helps to

differentiate and extract more discriminating features.

Page 129: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

F

Chapter 5

Muhammad Imr

Figure 5.25 (

ran Razzak (36

(a) Layered b

and Lev

Bio

6-FBAS/PHDC

Figure 5.2

Co

based low le

vel-4: Small

N

o-Inspired Fuz

CS/F07)

24:Chain cod

orrect below

evel to comp

l pattern to la

Name All Fea

zzy Based Prep

110 

de directiona

figure

plex level fea

arger pattern

atures

processing and

al vectors

ature extract

n extraction

 

d Feature Extra

tion (b) : Lev

 

 

 

 

action

vel-3

Page 130: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

Chapter 5

Muhammad Imr

This featu

top, down

This featu

beginning

This featu

beginning

differentia

Ending _V

long verti

Ending_V

straight lo

Long_Ho

movemen

Long_Dig

movemen

If during

horizonta

En

ran Razzak (36

ure depends

n or diagonal

ure is selecte

g. e.g. ،ط،ل١ .

ure is selec

g. As there i

ate numerals

Vertical_Lon

ical upward i

Vertical_Lon

ong vertical d

rizantle_Lef

nt is very lon

gonal_Left:

nt is long and

writing the

lly then the h

nd Point

Bio

6-FBAS/PHDC

upon the sm

l direction e

ed when the

cted when t

is no word w

s like ١ and

ng _Up: Thi

in the end. F

ng_down: T

downward in

ft: This featu

ng and from r

This feature

d from left to

e ligature, t

horizontal le

Branch Point

o-Inspired Fuz

CS/F07)

mall moveme

.g. ا،ب.

ligature was

the ligature

which starts

having sam ا

is feature is

For e.g.کا طا ،

This feature

n the end. e.

ure is selecte

right to left h

e is selected

o right diago

the pen mo

eft to right is

Inflection Po

t

zzy Based Prep

111 

ent at start of

s a straight lo

was a stra

from upwar

me shapes.

selected wh

.با،

is selected

g. ہم م .

ed if during

horizontally

d if during

onally like in

ovement is l

s selected e.g

oint

processing and

f the ligature

ong vertical

aight vertica

rd but this f

hen the ligatu

d when the

writing the

y e.g. inب، ف

writing the

n لا.

long and fr

g. in ے، سے

Cusp

d Feature Extra

e either left,

downward i

al upward in

feature is us

ure was a str

e ligature w

ligature, the

ligature the

rom left to

.

action

right,

in the

n the

sed to

raight

was a

e pen

e pen

right

Page 131: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 112  

Figure 5.26: Some Structural feature (inflection point, cusp, end point, branch point)

5.2.2 Structural Features

Some shapes have semi-circle. For such characters, feature called the semicircle

are extracted when left to right semicircle present from right to left like ن،ق.

Similarly the ligatures containing the semicircle from left to right i.e. ج ع.

The direction of writing of curves varies from right to left and from left to right.

Therefore, curve right to left is selected for characters those having shapes like ن

This feature is selected if the curve direction is from left to right then like ج ع ۔

),1(),1( SiSi

)(

)(tan

)(

)(,

kii

kiiSi xx

yyArc

Cusps are the sharp turning point in a stroke. This feature is selected for the

ligature which contains the up side cusps such as those present in سر ,س .

),1(),1( TiTi

),(),1( TiTi

8

This feature is selected for the ligature which contains the downward cusps such

as those present in سہہ،بہب.Similarly using the above value of .,

8

Whenever an intersection is encountered in a primary stroke this feature is

(5.19)

(5.20)

(5.21)

(5.22)

(5.23)

(5.24)

Page 132: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

Chapter 5

Muhammad Imr

select

This f

is a co

In ord

In ord

writin

To dif

and s

separa

differe

select

and st

In ord

identi

This

ran Razzak (36

ed i.e. فل ,ط .

feature is sel

ombination o

der to differe

der to differe

ng direction o

fferentiate th

elected for

ate the Swad

entiate betw

ion problem

tructural feat

der to differ

fied when i

feature is se

Bio

6-FBAS/PHDC

.

lected if ther

of ray or dal

entiate the lo

entiate fay, q

of the loop in

he loop in S

Swad. As t

d from other

ween the loop

m occurs then

tures decribe

rentiate the

isolated loop

lected if som

o-Inspired Fuz

CS/F07)

re is ray shap

then this fea

op the clock

qaf and meem

n meem is a

Swad from th

the swad lo

r loops like

p-swad, loop

n final decis

es in section

loop in fee

p occur i.e. H

me character

zzy Based Prep

113 

pe at the end

ature is also

kwise written

m, this featu

anti-clockwis

he other loo

oop is egg s

Som .ص بص

p-down, circ

sion is based

s …...

e, Qaf, Mee

Hey “۔”ه

rs combine w

processing and

d of the strok

selected i.e.

n loop is sele

ure is selecte

se . i.e. جم تم،

op, this featu

shaped so it

me time it is

ular hey and

d on the fusi

em and hey

with ray like

Complex Dand structu

Simple Distructur

d Feature Extra

ke. If any lig

.ر،بد،د .

ected i.e ف,ق

ed for Meem

.ہم،

ure was iden

t is identifi

s very difficu

d loop-up. If

ion of direct

, this featu

برجر .

Directional ural features

irectional andral features

action

gature

ف .

m. The

ntified

ed to

ult to

f loop

tional

ure is

d

Page 133: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

5

F

in

Chapter 5

Muhammad Imr

Figur

This f

involv

This f

ayen

having

Defin

This f

is sele

When

.11111 Feat

usion of str

nformation o

ran Razzak (36

re 5.27: Leve

feature is v

ved. It is sele

feature is us

i.e. ع ب،ع . I

g using the f

1

ne alpha beta

feature is sel

ected when l

n character co

ture Fusion:

ructural and

of each featu

Bio

6-FBAS/PHDC

el-4 Fusion o

ery difficult

ected if some

sed to resolv

Its selection

following eq

150

a and theta

lected on the

oop exist aft

ombines wit

:

d directional

ure.

SF

o-Inspired Fuz

CS/F07)

of structural

t to extract

e characters

ve the probl

n depends up

quation.

,1( Si

&&180

in above re

e presence of

fter long up a

th hey this fe

l features is

,..,{ 21 ff

,1( Si

zzy Based Prep

114 

l features and

because the

combines w

lem in differ

pon the pre

),() SiS

200&

elation

f tuan in any

and down.

eature is sele

s performed

}...... nf

,1() Si

processing and

d directional

ere are very

with choti ye

rentiating be

evious featur

)

250

y ligature lik

ected. i.e. بہ

d based on

Feature l

)S

d Feature Extra

l features

y small vari

like جيبی.

etween jeem

res and extr

ke اط، سط بط .

جہ ب .

relative pos

level fusion

(5.2

(5.2

(5.2

(5.2

(5.2

action

iation

m and

racted

Tuan

sition

25)

6)

27)

28)

29)

Page 134: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

W

F

Z

R

5

T

re

Chapter 5

Muhammad Imr

Where

{ 1F fF

Z is the featur

Results…

5.3. Final R

The first part

ecognition. A

ran Razzak (36

,...., 2FF f

Figure 5

re and x,y is

Remarks

t presents th

As Arabic sc

Bio

6-FBAS/PHDC

DF

if

'jf

}... Fkf

5.28 : Fusion

s the position

{FF

e issues of p

cript based c

Positi

P1  (x,y)P2 (x,y)

Directional 

F1      F2             .Fn 

o-Inspired Fuz

CS/F07)

,.,{ '2

'1 ff

,( ai xZ

,( j xZ

n of structura

n of the featu

, 21FF ff

preprocessin

character rec

ion 

)  

zzy Based Prep

115 

}....... 'mf

), ba y

), ba y

al and direct

ures. The fus

,...... Fkf

ng steps for

cognition is

Position 

P1 (x,y)  P2 (x,y) 

Structural 

F’1      F’2            .             F’n

processing and

tion features

sed feature m

}

handwritten

difficult task

d Feature Extra

matrix is giv

n online char

k due to com

(5.3

(5.3

(5.3

action

ven as

racter

mplex

30)

31)

32)

Page 135: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 116  

language structure to attain good accuracy in pre-processing of the raw input strokes,

which is crucial part. This phase describes the preprocessing steps for online character

recognition by considering the input strokes from both online and offline features and

their fusion to increase the efficiency of the recognition system. The proposed technique

is also a necessary step towards character recognition, person identification, personality

determination where input data is processed from all perspectives. A number of

preprocessing steps are presented in this chapter i.e. secondary stroke separation, baseline

estimation, etc. The secondary strokes localization algorithm is based on fuzzy logic to

handle secondary strokes through the vertically projection of the stroke. In Urdu script;

secondary strokes are written above or below the word and in some cases they may

appear little before or within the word-part with respect to the horizontal axis. Baseline

estimation is one of the most difficult steps and it has direct influence on accuracy. We

have presented a novel technique for baseline estimation for cursive handwritten Urdu

script written in Nasta'liq and Naskh styles. Firstly the secondary strokes are segmented

from the raw input strokes. Then primary baseline is extracted using the horizontal

projection on ghost shapes. Finally the locally baseline of each ligature is estimated based

on the features and primary baseline estimation. The presented approach gives good

results due to mixture of local baseline estimation over global baseline estimation and

reduction of diacritical marks. The proposed method provides accuracy of 85.3% and

96.7% for Nasta'liq and Naskh font respectively for baseline estimation.

The second phase of this chapter present biologically inspired feature extraction.

As successful character recognition methodology depends upon the particular choice of

features used by the classifier. Thus it is the most critical part in any recognition problem.

Page 136: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 5 Bio-Inspired Fuzzy Based Preprocessing and Feature Extraction

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 117  

Due to the complexity and variation, direct recognition of handwritten stroke is almost

impossible. The literature shows that directional and structural features i.e. loop, cusp etc

played important role in the classification. Fuzzy rules have been used to extract the

unique and meaningful directional and structural features and shape defining patterns i.e.

loops, cusp, endpoints, starts points, etc. Further post processing is also applied on

extracted features to remove the unnecessary and noisy features by modeling the

language rules and fusion of directional and structural features.

Page 137: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 118  

CHAPTER 7

BIO-INSPIRED ARABIC CHARACTER RECOGNITION

Bio-inspired pattern recognition has been under consideration by computer

scientists and neuroscientists since the mid-eighties so as to model the human vision

system into applications of pattern recognition. The understanding of visual information

processing and perception principle is one of the challenging tasks for contemporary

science. A deeper review of biological human vision helps to advance the pattern

recognition research and make it more robust. The natural world is enormous, dynamic,

incredibly diverse, and highly complex. Image perception in human indicates that

processing is integrated at different levels. The integration of principles of biological

vision with image processing helps to achieve robust system in terms of speed, accuracy

and efficiency. The visual perception of humans is very powerful in pattern recognition

problems. The selectivity, transformation invariance, speed and context knowledge are

the most important features of human visual perception. Moreover humans are able to

detect the familiar and unfamiliar objects even in variable environments. The computer

can perform complex problems more precisely, efficiently and much faster than humans

Page 138: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 119  

in the domain of data processing however it still lags behind in many pattern recognition

problems.

Despite the inherent challenges of surviving in real world, biological organisms

evolve, self-organize, self-repair, navigate and have been evolving over millions of years

and adapting to an ever-changing environment. The real time data may be ambiguous and

incomplete due to several reasons i.e. blurred edges, irregular and missing patterns. The

high context knowledge, adaptability and learning capability of humans provides robust

intelligence to complex problems. The interpretation of complex patterns and

transformation of these complex patterns into behaviorally understandable signals is

important in our daily lives. The human brain has achieved this robustness through

thousands of years of evolution. Even the brain of lower animals is too complex to

imitate. To understand how human brain can achieve these extraordinary abilities, human

visual system has been described here briefly in chapter 3…... This fact suggests

modeling of human visual perception in the real world image processing algorithms.

These systems can be modeled using fuzzy logic, evolutionary computation and neuro-

computing.

Biologically inspired solutions are gaining more interest as wide spread use of

artificial intelligence applications is materializing [Halem, 2009], [Bosner, 2006]

,[Bosner et al 2006], [Forbes, 2005],[Collins et al, 2004],[Benyus, 1997],[Anastas, etal.,

2000],[Papanek, 1984] [Marinakis et al, 200]), [Borji et al, 2008], [Jeng et al, 2009],

[Gupta, 1998], [Chang et al, 2008]. The biologically inspired image processing needs

expertise in two fields, human biological perception i.e. neurology and modeling the

concept in computer i.e. computer science. Computer scientists and neurologists strive to

Page 139: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 120  

build systems that can efficiently recognize the graphical marks. We performed the study

for character recognition based on biologically inspired character recognition as shown in

figure 6.1and model the human visual system into our system.

Figure 6.1: Framework for the study of human vision for character recognition

Describe the figure 6.

Data, Hypothesis

Formal Modal

Character Recognition Modeling

New Hypothesis ( Gaps in Character

Recognition)

New Modeling Hypothesis

New Neuroscience Hypothesis

Theoretical Neuroscience

Experimental Neuroscience

Simulated Model

Bio-Inspired Character

Recognition System

Page 140: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 121  

Several uncertainties exist in cognitive systems due to numerous reasons i.e. static,

random, physical, chaotic and fuzzy. These uncertainties have different effect depending

on the type of problem whereas it is very difficult to classify the problem into different

level of uncertainty. Vast variation and inconsistencies make handwritten Arabic script

based character recognition more complex than any other language. Thus a careful

observation is required to divide the complex handwriting recognition issue into

uncertainty levels. We use the human ventral stream concept to divide the character

recognition problem into different uncertainty levels.

Add four layers of above discisson on uncentanity level division

This chapter presents a multilayered fuzzy rules based expert system for handwritten

Multilanguage character recognition i.e. Arabic script based languages inspired by human

biological perception.

7.1 Multilayered Human Visual System

Several complex image processing applications have been studied under human

biological perception of object especially in motion detection, object recognition, etc. As

a model of V1 neurons (as described in chapter 3…) Gabor filter has been used for many

applications of image processing i.e. edge detection, writer identification, texture

classification, etc. Brain does not store the picture of object; it only possesses the spatial

information of the objects. This spatial information of object is encoded in neurons i.e.

various orientations, lines, edges and endpoints, etc. Recognition of the object is based on

Page 141: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 122  

these spatial relationships stored in the mind instead of image copy. The visual sense is

activated in response to the relative position and orientation of these characteristics.

 

 

 

 

Figure 6.2: Human visual system

The study on monkey has shown that object recognition is feed forward for fast

recognition whereas the visual perception is done in hierarchical manner and is sensitive

to edges, lines, etc [ref] . Sharp contours are more discriminating than gradients and

straight lines are more obvious as compared to irregular patterns. Early visual parts such

as retina, LGN, V1, V2 take part in extraction of simple features like edges, orientation,

color, etc. The neuron structure becomes more complex and its receptive field becomes

larger in the upper side of ventral stream. As the human visual system is more sensitive to

curved line, other geometrical points along with the context knowledge, therefore the

human recognition system is more powerful for complex shapes i.e. handwritten

character recognition, motion detection, etc.

The human recognition system consists of seven or eight major layers and four

layers are used for computation. Lower layer neurons are more precise for simple features

LGN  V1   V2   

V4   

MT   

IT    

MST    

Where

What

Ventral Pathway 

Page 142: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

as

fi

g

fo

up

co

p

re

d

co

p

p

Chapter 6

Muhammad Imr

s compared

igure 6.2. V

eniculate nu

or static and

Lower

pper layer f

ontour and b

erformed at

esponsible f

etection. Th

ombining th

attern. In t

erformed. T

ran Razzak (36

to upper lay

Visual inform

ucleus (LGN

moving obj

Figure. 6.3

r layer neuro

features. V2

boundary co

first level

for object m

he second sta

hese large nu

the fourth s

The high c

6-FBAS/PHDC

yer features.

mation cove

N).The striate

ects and rece

Human beha

ons (V1) are

2 is respons

omputation e

by the com

motion dete

age is respon

umber of fea

stage “obje

ontext know

Bio-

CS/F07)

Basic divis

ered by the t

e cortex V1

eive the info

avior diagram

e more respo

sible for ori

etc. The con

mbination of

ection, conto

nsible for co

atures extrac

ct generaliz

wledge data

-Inspired Arab

123 

sion of huma

two eyes is

is the prima

ormation from

m for charac

onsive for sim

ientation an

ntour extrac

V1and V2.

our extracti

omplex featu

cted during s

zation” in

abase plays

bic Script Char

an visual sy

transmitted

ary visual co

m LGN.

cter recognit

mple feature

nd spatial pr

ction and fea

Therefore

ion, backgro

ures and thir

stage 1 and

a view spe

s an import

racter Recogni

stem is show

d on to the l

ortex respon

tion

es as compar

roperties suc

ature groupi

the first sta

ound and o

rd stage inv

stage 2 to fo

ecific mann

tant role in

tion

wn in

literal

nsible

red to

ch as

ing is

age is

object

volves

orm a

ner is

n the

Page 143: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 124  

recognition of complex patterns, without which; human visual perception gives much

worse results. Although it is very difficult to build such a big memory as of human that

can be used as clue for recognizing the complex objects but we can divide the complex

task into layers inspired by human biological system and each layer can be focused by

different uncertainty levels using fuzzy logics.

6.2 Multilayered Character Recognition

Patterns of object are stored in human mind instead of copy of objects and

recognition is based on layer by layer computation of features. Unlike the traditional

machine the human recognize the text in different phases. The early phase separates the

needed character information form the background i.e. segment the character from noisy

background. The second stage is recognition which obtains minute details from the

earlier levels. The information in higher vertex revises the information from the earlier

phase during recognition. Naturally, every language has its own properties i.e. writing

rules, features, and unique complexities and therefore the classification process is

dependent on the language rules.

Traditional character recognition systems face problems in handwritten Arabic

script based character recognition due to variations and complexity in the script. The

biological concept to recognize the Arabic script in multilayered manner is inspired by

human biological system. Fuzzy logic with additional linguistics rules of Arabic script is

used to handle uncertainties involved in handwritten character recognition. The language

rules play an important role in solving the uncertainties using fuzzy logic. By using the

fuzzy logic, help of linguistic rules and biological division of recognition process,

Page 144: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

co

pr

co

is

g

an

Chapter 6

Muhammad Imr

omplex han

rocessing of

ontext know

Figur

At lev

s responsibl

eometrical p

nd extraction

ran Razzak (36

dwritten tex

f levels L1 ,

wledge of pre

re. 6.4 Bio-

vel-0, the str

le for segm

processing. L

n of sub patt

6-FBAS/PHDC

xt recognitio

L2 ….. L6 a

evious word

Inspired Ma

roke informa

mentation of

Level 3 is re

terns. Chain

Bio-

CS/F07)

on such as A

are based on

and knowled

achine based

ation (x,y) fr

f diacritical

esponsible f

code is used

-Inspired Arab

125 

Arabic and U

n the fuzzy

dge of word

d character re

rom the inpu

l marks wh

for dividing

d at level 3 t

bic Script Char

Urdu can be

triangular m

d itself for ne

ecognition (d

ut device is a

hereas level

the strokes

to find the sm

racter Recogni

e performed

member func

ext sub-part.

describe)

acquired. Le

l-2 account

into sub pat

mall sub patt

tion

. The

ction,

evel-1

s for

tterns

terns.

Page 145: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 126  

This level combines the small sub patterns (chain code) to form large patterns (lines and

curves). The complex pattern extraction from simple pattern and their combination to

form identified sub-unit (features) is performed at level 4. Level 5 is responsible ligature

formation based on the recognized features, and association of diacritical marks. For

further refinement; context clue at level 6 can be used for word formation. The rules

formed at one level form the input at other levels, where these rules are combined to form

new rules with the additional information of linguistic rules and summarization of rules is

layer by layer as shown below.

Level-1: If Premise1ithen Conclusion1i and If LinguisticPremise1athen

LinguisticConclusion1a

Where Premise1i ε Level 0 and LigusticPremise1a ε Language

Level-2: If Premise2jthen Conclusion2j If LingusticPremise2bthen Linguistic Conclusion2b

Where Premise1kε Conclusion1k andLigusticPremise2b ε Language &&

LinguisticConclusion1a

: :

: :

Level-6: If Premise6zthen Conclusion6z If LingusticPremise2gthen Linguistic Conclusion2g

Where Premise6zε Conclusion5y and LigusticPremise6g ε Language &&

LinguisticConclusion5f

Page 146: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

W

se

co

ar

R

Chapter 6

Muhammad Imr

Where Premi

eparated dia

onclusion ar

re the bas

Fi

ran Razzak (36

ise1i is the se

acritical mar

re the prima

sis of mult

igure 6.5 . M

6-FBAS/PHDC

et of rules f

rks with as

acies and con

tilayered b

Machine base

Bio-

CS/F07)

for diacritica

sociated po

nclusion bas

iological in

ed character

-Inspired Arab

127 

al marks sep

ositions and

sed on lingu

nspired cha

recognition

R

bic Script Char

paration and

LigusticPre

uistics rules.

aracter reco

behavior dia

racter Recogni

d Conclusion

emise, Lingu

The above

ognition sy

agram

LR

tion

n1i the

uistic

rules

ystem.

R

Page 147: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 128  

Level-6

Level-5

Level-4

Level-3

Level-2

Level-1

Figure 6.6: Multilevel bio-inspired rule model

Level-1: If Premise1ithen Conclusion1i and If LinguisticPremise1athen

LinguisticConclusion1a

Where Premise1i ε Level 0 and LigusticPremise1a ε Language

Level-2: If Premise2jthen Conclusion2j If LingusticPremise2bthen Linguistic Conclusion2b

Where Premise1kε Conclusion1k andLigusticPremise2b ε Language &&

LinguisticConclusion1a

R  RR  LR

R RLR

R R LR

R R LR

R R LR

Page 148: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 129  

: :

: :

Level-6: If Premise6zthen Conclusion6z If LingusticPremise2gthen Linguistic Conclusion2g

Where Premise6zε Conclusion5y and LigusticPremise6g ε Language &&

LinguisticConclusion5f

Where Premise1i is the set of rules for diacritical marks separation and Conclusion1i the

separated diacritical marks with associated positions and LigusticPremise, Linguistic

conclusion are the primacies and conclusion based on linguistics rules. The above rules

are the basis of multilayered biological inspired character recognition system.

6.2.1 Level-0: Stroke Acquisition

The input strokes are obtained through the digital pen/Wacom 4 electronic digitizing

tablet contains (x,y) coordinates and timing information, writing force, speed. Force and

speed are not helpful for character recognition due to variety in writing speed and writing

force and are mostly used for person identification, personality determination, etc. Thus,

time and stroke elements can be used for handwritten character recognition.

6.2.2 Level-1: Low Level Processing

Level 1 is responsible of diacritical marks segmentation and primary stroke

smoothing. Both operations have been described in chapter 5. Arabic script based

Page 149: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

la

b

se

p

P

p

la

fu

as

pr

F

Chapter 6

Muhammad Imr

anguages are

ased on the

econdary st

erception fo

unjabi, Sind

erformed. T

anguages is

uzzy based s

s discussed

rimary strok

Figure 6.6: D

ستنر

ran Razzak (36

e rich in diac

e diacritical

trokes assoc

or Arabic scr

dhi and Pas

The study sh

to separate t

separation o

in 5….. Th

ke noise redu

Diacritical m

نبتر

ر سنتر

6-FBAS/PHDC

critical mark

marks. Ara

ciated with

ript recognit

shto on the

howed that t

the diacritic

f diacritical

his layer is

uction based

marks issue w

لھببثر لھبن

سثر ثشر

Bio-

CS/F07)

ks. The same

abic script b

each prim

tion. A study

mostly fol

the first step

al marks fro

marks using

responsible

on the time

with three dodetail)

لھينتر

تنتشا

-Inspired Arab

130 

e ghost strok

based langu

mary stroke.

y on 50, nat

llowed Nask

p in recogn

om the basic

g delayed st

for separati

and position

ots in Naskh

لھيتنر ير

ت تننثا

bic Script Char

ke has differ

uages contai

. We obser

tive readers

kh and Nas

nition of Ara

c shapes. W

troke segmen

ion of diacr

n informatio

h style (Expl

لھشي ھيشر

شا نتتثا

racter Recogni

rent interpret

ns zero or

rved the hu

of Arabic, U

sta’liq fonts

abic script b

We have prop

ntation algor

ritical marks

on.

ain this figur

لھ

ثتشا شنش

tion

tation

more

uman

Urdu,

s was

based

posed

rithm

s and

re in

نتنثا

Page 150: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

F

6

T

hu

(l

ch

kn

n

b

th

es

lo

sy

in

w

or

d

Chapter 6

Muhammad Imr

Figure 6.8:

6.2.3 Level

The level 2

uman visua

lower area).

haracter. Ev

nowledge, r

ormalized te

ased on tran

heir percepti

stimation, st

ogic and con

ystem is lim

nvolved in st

with addition

r may not ta

ecision is ba

ran Razzak (36

Basic ghost

l-2: Geome

is responsib

l processing

It is very

ven for the h

eading speed

ext and that

nslation and

ion power. A

troke mappin

ntext knowl

mited as comp

troke recogn

nal knowledg

ake part in th

ased on the f

6-FBAS/PHDC

character fo

Explain

etrical Pro

ble for geom

g where geo

difficult to

humans, who

d and accura

t written on

rotation inv

At level-2, w

ng and slant

ledge. Alth

pared to the

nition i.e. the

ge of previou

he correction

fuzzy rules i

Bio-

CS/F07)

or Arabic scr

n the above f

ocessing

metrics comp

ometrical pr

recognize

o have brilli

acy of non-n

baseline. A

variant featu

we have perf

correction.

hough the co

humans, bu

e baseline is

us word angl

n of baseline

.e. if the bas

-Inspired Arab

131 

ript based lan

figure……..

putation, wh

rocessing is

the irregula

iant image c

normalized t

Although the

ures, yet bas

formed prep

These oper

ontext know

ut it can reso

computed b

le. The know

e as discusse

seline angle c

bic Script Char

nguages wri

hich is perfo

performed

ar, non-skew

capturing de

text is lesse

e human vis

seline has so

processing st

ations are ba

wledge used

olve most of

by the locally

wledge of pr

ed in detail

computed fo

racter Recogni

tten in Nasta

formed simil

in visual c

wed, non-bas

evice and co

er as compar

ual percepti

ome influenc

teps like bas

ased on the f

in the prop

f the uncerta

y computed

revious word

in chapter 5

or current wo

tion

a’liq

lar to

cortex

seline

ontext

red to

ion is

ce on

seline

fuzzy

posed

inties

angle

d may

. The

ord is

Page 151: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 132  

closer to the angle of previous and word length is large, then the previous has influence

on current angle estimation. The fuzzy rules used for baseline estimation have been

discussed in detail in chapter 5.

6.2.4 Level 3: Simple Feature Extraction

A successful character recognition methodology depends on the particular choice

of features used by the pattern classifier. Feature selection in pattern recognition

problems involves the derivation of salient features from the raw data input in order to

reduce the amount of data used by the classifier and simultaneously provides the

enhanced discriminatory power. The aim of feature extraction from the input strokes is to

reduce the input patterns to avoid complexities while keeping the accuracy and the

extraction of those distinct patterns that uniquely define the strokes. Generally

handwritten strokes are oriented line, loops, and curves. These orientations play an

important role in the classification of strokes. The directional and structural features i.e.

loop, cusp, etc. plays important role in the classification and previous work shows that

result are improved by combining structural and directional features. Level 3 and level 4

is responsible of feature extraction. Level 3 extract the small sub patterns and input to the

level 4 to find complex patterns from these small patterns.

Table: 6.1 Biological Inspired Character recognition

Algorithm: Multilayered Biological Inspired Urdu Character Recognition System

Page 152: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 133  

Step-1: RUN Level-1 Segmentation of diacritical mark from the words and primary stroke noise reduction

INPUT: Raw input Strokes, Low Level Linguistics Rules

OUTPUT: Primary Strokes, Associated Diacritical Marks, Position Coordinates

of each Diacritical Mark

Step-2: RUN Level-2 Geometrical Computation for Baseline estimation, Slant correction, Stroke Mapping

INPUT: Primary Strokes, Associated Diacritical Marks, Position, Low Level Linguistics Rules

OUTPUT: Normalized Word.

Step-3: RUN Level-3 Simple Feature Computation

INPUT: Normalized Words, Low Level Linguistics Rules

OUTPUT: Simple Features

Step-4: RUN Level-4 Complex Feature Extraction, Formation of Valid Sub Part

INPUT: Simple Features, High level Linguistic Rule

OUTPUT: Complex features, Recognized sub parts

Step-5: RUN Level-5: Formation of Valid Ligature [Character Level Recognition]

INPUT: Recognized Sub Parts, Diacritical Marks, Position Information

OUTPUT: Recognized Ligature

Step-6: RUN Level-6: Context Level Correction [Word Level Recognition]

INPUT: Recognized Word, Linguistic Rules

OUTPUT: Recognized Word at Context Level

Page 153: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 134  

Level-0 Level-6: Context Level Computation

Figure: 6.9: Simple example based on multilayer based approach

Level 3 is responsible for dividing the strokes into sub patterns and extraction of

sub patterns. Raw data consist of stroke elements thus, the first level pattern extraction is

chain code computation from the stroke elements. Now we have two types of sub

patterns, chain code and stroke elements. Firstly, the stroke elements are unitized to

extract more complex patterns i.e. loops, hedge. At level-3, the simple structural patterns

e.g. intersection point, close passing point, cusp, loops, curves etc. are extracted shown in

figure 6.10. Secondly, extracted chain code is further used to find bigger and complex

patterns from small patterns like directional features small vertical lines, horizontal lines

shown in figure 25 and figure 26. Moreover, the position of each pattern is kept in record

which will be used for fusion of structural and directional features.

6.2.5 Level-4: Complex Features Extraction

The level-4 is responsible for deduction of complex pattern extractions from

simple patterns and then the complex patterns are organized to deduce the independent

character. These semi-independent characters are candidate for independent character

based on the surrounded character. The candidacy of character is confirmed based on the

Page 154: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

d

6

lo

co

d

p

in

su

ch

Chapter 6

Muhammad Imr

iacritical ma

.9 and figure

The si

ong vertical

omplex patt

irection and

erformed to

nformation r

ubpart i.e. ch

haracter. Th

ran Razzak (36

arks. The lev

e 6.10.

imple patter

up, long ve

tern direction

d loop shape

get more ro

recorded at e

haracters in

e decision is

6-FBAS/PHDC

vel-4 can onl

n obtained a

ertical down,

ns are also

es. Finally

obust feature

each feature

the strokes.

s based on th

Bio-

CS/F07)

ly represent

at level 3 are

, small verti

extracted i.e

the fusion o

es. The featu

point shown

. These reco

he mapping o

-Inspired Arab

135 

the possible

e combined t

ical up, cusp

e. hedge cus

of direction

ure level fus

n in figure 6

ognized dot-

of diacritical

bic Script Char

e character a

to form com

p, loop, hedg

sp directions

nal and struc

sion is based

6.10. L4 give

-less charact

l marks at le

Independe

char

Expecte

without

m

racter Recogni

s shown in f

mplex pattern

ge etc. More

s, direction,

ctural featur

d on the pos

es the recogn

ters are cand

evel 5.

ent Candidate

racters 

ed Ligature 

t diacritical 

marks 

tion

figure

ns i.e.

eover

loop

res is

sition

nized

didate

Page 155: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

6

b

as

m

d

in

co

kn

th

n

su

as

m

B

Chapter 6

Muhammad Imr

Figure 6.

6.2.6 Level

These

ased approa

ssociated un

mapping the

iacritical ma

n figure 6.1

onfirm the

nowledge o

hree indepen

o diacritical

urrounding d

ssociated ch

may happen t

Based on this

ran Razzak (36

10: Level-4

l-5: Chara

e recognized

ch at level 5

nits and dia

secondary

arks on to th

2. The posi

candidate c

f surroundin

ndent charac

l marks or c

dots. The do

haracter are t

that the asso

s the result is

6-FBAS/PHDC

Computation

acter Form

d characters

5. The lingu

critical posi

strokes. Fig

he primary s

ition inform

character as

ng character

ters (cusp) a

considered a

ots may app

three, base o

ociated chara

s ‘tey and ‘n

Positi

P1  (x,y)P2 (x,y)

Bio-

CS/F07)

n of complex

character

mation

are combin

istics rules,

itional inform

gure 6.11 an

strokes as sim

mation of dia

s a recogniz

r is very imp

are combined

as ‘sheen’ if

ear as comb

on the associ

acters are tw

noon’.

 

ion

)  

-Inspired Arab

136 

x features an

r

ned using th

associated d

rmation base

nd Figure 6.

milar to the

acritical ma

zed characte

portant for c

d to form on

f three dots

bination of t

iated charact

wo and dots

Position 

P1 (x,y)  P2 (x,y) 

bic Script Char

nd candidate

he linguistic

dot, recogniz

ed on projec

.13 describe

human visu

arks and can

er based on

character m

ne character

appear and

two and one

ter, the decis

are in order

 

racter Recogni

e independen

cs rules and

zed sub unit

ction is use

e the mappin

ual system sh

ndidate char

n diacritics.

apping i.e. i

‘seen’ if all

there will b

e. In this cas

sion is ‘shee

r of two and

tion

nt

d rule

t with

ed for

ng of

hown

racter

The

if the

have

be no

se the

en’. It

d one.

Page 156: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 137  

فشاFigure 6.11: Combination of diacritical marks with respect to languages

 

 

 

 

 

 

Figure 6.12: Bio-Inspired diacritical mapping

LGN  V1   V2   

V4   

MT   

IT    

MST    

Dorsal Pathway  

Where

What

Ventral Pathway 

Diacritical 

Positioning 

Ghost Shape Recog. 

& diacriticsMapping 

Page 157: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

6

H

Chapter 6

Muhammad Imr

Figu

6.2.6 Level

HMM can be

Figure 6.1characte

 

 

ran Razzak (36

ure 6.13: Com

l-6: Word

used for wo

14 : (a) Ligaer (b) Word l

6-FBAS/PHDC

mbination of

Formatio

ord level reco

ature formatilevel recogn

 

 

Bio-

CS/F07)

f diacritical m

n

ognition sho

on by combinition HMM

 

 

-Inspired Arab

138 

marks with r

own in figure

ination of difor same wo

bic Script Char

respect to la

e 6.14.

iacritical maord in Urdu

 

 

 

racter Recogni

anguages

arks and ghoand Arabic.

tion

st

 

Page 158: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 139  

6.3 Discussions

Fuzzy logic has proved itself to be a powerful tool for classification of irregular

and complex patterns. Naturally human recognition system is translation, rotation and

position invariant. Thus it is very difficult to imitate the human perception capabilities in

machines. Translation, rotation and position have some effect on the recognition system

in terms of reading speed. With the help of fuzzy modeling, linguistic rules and biological

division of handwritten ligatures, complex handwritten recognition such as Arabic can be

performed. We divide the recognition system into multilayered architecture inspired by

human visual perception system. One example is discussed using the layered architecture

and layer by layer process is shown in figure 6.7.

Level-0 acquiring the strokes information (x,y) from the input device. Level-1 is

responsible for diacritical strokes segmentation and noise reduction. The four diacritical

marks are separated from the basic shapes and it positional information is calculated.

Translation, rotation and position also effect at some level on human recognition, while it

is very difficult to extract the translation and rotation invariant feature. We perform

translational and rotational preprocessing to make the text translation and rotation

invariant .Level 2 is responsible of baseline, slant, and mapping etc. The simple

geometrical features i.e. Loop, , Vertical Up, Vertical down, vertical left, Down left

horizontal attached with horizontal left are extracted from the basic shape. With the help

of linguistic rules, these simple features are combined to form the complex features i.e.

loop may be downward, upward, oval etc. Level 5 is responsible for forming the

character from these local complex features and mapping for diacritical marks. Every

diacritical mark is mapped onto the associated character. This mapping is based on fuzzy

Page 159: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 140  

triangular member function and linguistics rules are used to help the fuzzy member

function in diacritical mapping.

Table 6.2: Recognition Rate

System Name Classifier Recog. Rate Data Set

Multilanguage

Arabic System (

Proposed)

Biological Inspired

Multilayered Fuzzy

Logic

83.2 Unlimited Full Urdu, Arabic

etc

Only Nasta’liq Style

Hybrid HMM + Fuzzy 87.1 1500 Ligature only

OLUCR BPNN 93 240 Ligature only

Online Urdu

handwritten

Recognition

Tree Based Dictionary

Search

96 49 Ligature only

6.4 Final Remarks

This chapter presents multilayered fuzzy rules based expert system for handwritten

Multilanguage character recognition i.e. Arabic script based languages inspired by human

biological system. The biological visual perception is studied on 50 people, native readers

of Arabic, Urdu, Punjabi, Sindhi and Pashto written in two different scripts Naskh and

Nasta’liq to visualize the level of diacritical marks. The concept of ghost character

recognition is built on this study and this concept helps to build biology inspired

Multilanguage character recognition system. The character recognition system is divided

Page 160: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 6 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 141  

into layers according to human visual perception. The linguistics rules are added at each

level to add the help of language behavior. The presented biological inspired provide

86.2% accuracy for Arabic, Urdu, Persian and Punjabi written in only Nasta’liq style.

The result can be increase by adding the context clue at level 6.

Page 161: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 142  

CHAPTER 7

HOLISTIC APPROACH FOR URDU CHARACTER

RECOGNITION USING MODIFIED HMM

Automatic recognition of cursive handwritten script remains a challenging problem even

with the promising improvement in classifier and computational power. Segmentation

based approach for recognition of handwritten Urdu script has considerable

computational overhead and has lower accuracy as compared to Roman and Chinese

script due to additional segmentation error. Presence of complimentary characters in

Urdu language makes it complicated as they have to be segmented into secondary strokes

which are associated with a primary stroke. This first phase introduces a ligature based

approach using Hidden Markov Model that provides solution for recognition of Urdu

script. HMM database is divided into 54 subclasses based on the starting and ending

shapes of the ligature. Twenty six time variant features have been selected for the base

strokes. The sub division in classes reduces the time complexity and increases the

efficiency. The second part of this chapter presents a segmentation free approach for

recognition of Online Urdu handwritten script using hybrid classifier, HMM and Fuzzy

logic. Trained data set consisting of HMM’s for each stroke is classified into 62 sub

Page 162: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 143  

pattern based on the primary stroke shape at beginning and ending using fuzzy rule.

Fuzzy linguistic variables based on language structure are used to model features and

provide suitable results for large variation in handwritten strokes. The fuzzy classification

into sub patterns increases the efficiency and decreases the computational complexity due

to reduction in data set size. The sub divided HMM data set approach provides

classification rate of 83.6% and 74% for Nastaliq and Naskh respectively on 1500

ligatures obtained from 15 trained users whereas the hybrid HMM-Fuzzy provided 87.6%

and 77.1 for Nasta’liq and Naskh respectively on 1800 ligatures thus it is efficient for

large and complex data set. (no Need here)

7.1 Modified HMM Based Urdu Classification

After preprocessing phase, intended to simplify and reduce the noise from the

input strokes, several structural and directional features are extracted and arranged in a

sequence of score time. These features are further processed to remove unnecessary

features from the extracted matrix based on the language structure with the help of

language rule as described in chapter 5. Finally feature matrix is quantized to 32 discrete

observation symbols and fed to HMM classifier to recognize the primary strokes. We

have used the segmentation free approach i.e. ligature based approach in which the input

stroke is not broken into subunits to avoid segmentation errors. Successful use of HMM

in speech recognition led the researchers to use it for complex patterns especially for

handwritten text. The segmentation free system extracts features for each ligature as

described in chapter 5 that are passed on to the Hidden Markov Model for ligature

classification. Using the strokes (x, y) co-ordinates and the chain codes, we extracted

twenty six directional and structural features for primary strokes.

Page 163: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 144  

HMM based Arabic script handwritten recognition system illustrated in figure 7.1

that uses various approaches in terms of preprocessing and features extraction (described

in chapter 5) and classification. We build separate HMM for each ghost ligatures each

having 15 states. The HMM database is divided into 54 classes based upon the structural

shape of the primary stroke instead of size of the stroke. The additional timing

information plays central role in recognition of primary stroke. First the ghost characters

(basic shapes) are recognized (ligature based approach) and then secondary strokes

associates with recognized primary strokes are recognized and then associated with

primary strokes. We have used a grammar based approach to map the secondary strokes

on to the associated recognized primary strokes to form valid ligature (describe

grammatical here)

The task of classifier is to map the extracted features on to the trained data to find the best

matched class. Hidden Markov Models (HMMs) are finite state machines and powerful

statistical models for modeling the sequential or time-series data, and have been

Pre‐Processing

Feature Extraction 

Training 

Ligature 

Stroke 

Segmentation 

Pre‐Processing on 

Features

Input (PGC File)

Secondary Stoke 

Feature Extraction

Secondary Strokes

 HMM,s 

    Primary Stroke     

    Recognition 

GrammarRecognized 

Ligature 

Primary Stroke 

Recognition 

  Recognized    

  Secondary Strokes 

Pre‐Processing

Page 164: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 145  

Figure 7.1. HMM based Recognition system architecture

successfully used in many tasks such as speech recognition, OCR, information extraction

and robotics where the visible observations and state transitions generating the

observations form a doubly stochastic process with a sequential nature. HMMs are

defined with a finite number of states where the features are assumed to be generated by a

probability distribution depending on the current state. HMM can be differentiated by

model unit, type of HMM (discrete or continuous) state meaning, topology, state duration

modeling and it dimensionality. HMM's is dominant in the field of handwritten character

recognition thus due to its success in handwritten character we proposed a solution for

Urdu written in both Nasti'liq and Naskh style based on right to left, discrete with implicit

state duration on time variant observation symbols arranged in sequential order.

Handwriting strokes obtained through Tablet PC/ digital pen are segmented into primary

and secondary strokes based on location, timing and size of stroke. HMM's are used for

the classification of primary strokes.

To increase the efficiency and decrease the computational complexity the primary

strokes are divided into 54 classes based on the shape of the stroke instead of size of the

stroke due to large variation in size of handwritten strokes. This classification is based on

the directional and structural features at beginning and ending as shown in table 1. The

sharp classification into 54 classes has disadvantage: if incorrect directional features are

obtained, then definitely the wrong class will be selected and end result will be incorrect

Recognized 

Text

Page 165: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 146  

classification and advantage is that the computational complexities is decreased and the

recognition result is more accurate due to less number of HMM's selected classes. Before

forwarding the feature matrix to HMM classifier, lookup table is used to select the

appropriate HMM classifier. The following is the HMM

N: Number of States

aij: Transition probabilities

bjk :Observation probabilities

i :Expected frequency in state si at time k=1

k k

k k

j

ij ij ),(

),(

s state ofout ns transitioofnumber Expected

s state tos state ns transitioofnumber Expecteda

ji

ji

kOk,

k k

j

jm ij )(

),(

s statein timeofnumber Expected

s statein occure Vn observatio timesofnumber Expectedb

iV

ji

km

(i). = 1)=k at time si statein frequency (Expected = 1i

Observation sequence O=o1 o2 ….... ok

Where Ok ε FM{Loops, directional features, cusp etc}

Put in order…

As we used the discrete HMM’s therefore we have to map continuous features to

discrete values and this mapping is done by vector quantization process. The code book

of size 32 is used as shown in table 7.2. For example, the continuous data of loop is

k(i)=P(qk= si , o1 o2 ... ok)

P(o1 o2 ... ok)=

k(i) k(i)

i k(i) k(i)k(i)=

P(qk= si , o1 o2 ... ok)P(o1 o2 ... ok)

=k(i) k(i)

i k(i) k(i)

(6.1)

(6.2)

(6.3)

(6.4)

Page 166: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 147  

discreted based on width, height, position, size, and status of loop activation bit. If the

loop is below the intersection line, it is considered as downward loop. If the loop is

upward then size, width and height of internal side of loops are the important parameter

to identify whether it is oval or round loop.

Discuss how ( loop will be)

Table 7.1: Class division of strokes

Insert row above

Class Features for division Class Features for division

1 Starting Loop and ending with hedge i.e. ص بص.

7 Starting with long down and ending with long up. کا طا

2 Starting with Jeem and ending with ray برجر

8 Ending with long left to right direction سے

3 Starting with Jeem and ending with hedge i.e. جيجبی.

9 Starting with jeem and ending with long down جم،

4 Starting with small down and ending with long up i.e. سہل جہل

10 Starting and ending with long up. ل , لا.

5 Ending with ray 11 ر،بد،د Starting with jeem and ending with left to right hedge ج جج

6 Starting with loop and ending with right to left direction ق

12 Starting with ayen and ending with long right to left direction فعب ع .

The parameter estimation is concerned with training the HMMs through

optimizing the model parameters. There is no known approach to solve the model

parameter that maximizes probability of observation. However an iterative method such

as the Baum–Welch, also known as expectation maximization (EM), is used to locally

Page 167: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

m

tr

d

Chapter 7

Muhammad Imr

maximize the

raining estim

ata.

Tab

Cl

1

2

3

4

5

6

7

8

9

10

11

12

13

ran Razzak (36

e likelihood

mate the para

ble 7.2: Code

lass Descr

Start v

Start v

End v

End v

Diago

Diago

Horiz

Horiz

Hedge

Hedge

Curve

Curve

Cusp

6-FBAS/PHDC

P(O | M) of

ameter = (A

Figure 7.2:

e Book for H

ription

vertical dow

vertical up

vertical down

vertical up

onal right to

onal left to ri

zontal right to

zontal left to

e right to lef

e left to righ

e left to right

e right to left

Bio-

CS/F07)

f the chosen

A,B, ) for e

Simple righ

HMM

Cla

wn 14

15

n 16

17

left 18

ight 19

o left 20

right 21

ft 22

ht 23

t 24

t 25

26-

-Inspired Arab

148 

n model M=(

each primary

ht to left HM

ass Descri

Interac

Ray\D

Loop -

Loop -

Loop -

Hey

Bay-R

Bey-Y

Ayen S

Circul

Tuan

Shape

-32 Eight directi

bic Script Char

(A, B, ) . T

y stroke that

MM

iption

ction

Dal

-Up

-Down

-Swad

Ray

Ye

Shape

ar Hey

of Madda E

chain ion at start

racter Recogni

The Baum-W

best describ

Exist

code

tion

Welch

be the

Page 168: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 149  

The HMMs are estimated by giving some observation sequences O=o1 o2 ... ok

and general structure of HMM (numbers of hidden and visible states), determine HMM

parameters M=(A, B, ) that best fit training data, that maximizes P(O | M). The

observation sequence of each ligature is the sequentially occurrence of features. The

important issue is to decide the number of states of each ligature. In our research the no

of states are fixed for each ligature and we have used 15 states with skip state on simple

right to left HMM.

The training data for HMM has been obtained by taking input from Urdu literate

users for online Urdu handwritten script on the selected words. For training purpose,

input data is acquired from 15 people so that more variations are obtained. HMM is built

for each ghost character. The ghost character data set is divided into 54 classes depending

on the starting and ending shape of the ghost ligature. Thus there are 54 HMMs classes,

and each ligature HMM is placed in its relevant class depends upon the starting and

ending shape of a character for example, "فپ", "مت"and "صب" are placed in the same

class because they start with loop and ends with ب.

Recognition system is trained in two phases. In the first phase, database consist of

1500 ghost ligatures is obtained by taking the samples from 15 trained users. During data

collection for training, baseline is considered by providing the interface and the user

wrote on the provided baseline. In the second phase, secondary strokes are recognized

and mapped onto associated primary strokes.

For testing purpose, samples were taken form 15 skilled users. The testing is

divided into four parts on classical HMM and HMM with sub divided database for both

Page 169: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 150  

Table 7.3: Recognition result in % on two data set A and data set B

HMM Structure Input Type Sample Data A

Sample Data B

Classical HMM Primary Stroke 81.2 68.7

Classical HMM Ligature with mapped dots

75.4 63.2%

HMM with Sub divided Database

Primary Stroke 85.3 78.2

HMM with Sub divided Database

Ligature with mapped dots

82.1 72.4

Where data set 'A' contain good strokes and data set 'B' contain poor stroke.

Table 7.4: Comparison with previous systems

System Name Technology Used Recognition

Ligature

Dataset size

OLUCR Back Propagation Neural

Network

93% 240 Ligatures

Online Urdu

Handwritten

Recognition

Tree Based dictionary search 96.2 49 Ligatures

Proposed HMM with Sub Classes 87.4 & 74 1500 Ligatures

Nasti'liq and Naskh font. Finally the results are also compared with other systems

developed for Urdu. As most of the extracted features are font independent therefore it

works for both fonts. The result in table 7.4 shows that HMM divided into sub classes

(based on the shape of the ligature) improves the results. Several experiments have been

Page 170: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 151  

performed to measure performance. Most of the errors are due to imperfect feature

extraction that leads to incorrect class.

7.2 HMM and Fuzzy Logics: Hybrid Approach

We combined HMM with fuzzy logics for classification of handwritten Urdu script. This

hybrid approach uses fuzzy rules as preprocessing of features to normalize the input and

at post processing step to improve the results respectively. HMM is used as main

classifier for the recognition of basic shape by putting it into fuzzy rules (as inner and

outer shell) as shown in figure. Firstly, the preprocessing, feature extraction, feature

purification and clustering is performed through fuzzy rules as inner shell. Secondly the

futures matrix is forward to HMM's for further classification of primary stroke. Finally

this classified output is again purified through fuzzy rule outer shell by modeling the

language concept on to the recognized output. We put circular shield around HMM to

make it performance better than classical HMM. As the fuzzy logic is the powerful tool

to classify the irregular and complex pattern. Language properties are observed deeply to

increase the beauty of fuzzy logic in the recognition of Urdu script shown in figure 7.2.

Fuzzy rule are used in three steps, preprocessing, feature extraction and at the end for

post processing in classification correction and stroke mapping. Basically the proposed

approach uses two classifier Hidden Markov Models (HMMs) and fuzzy rules in three

layer. Fuzzy rules are used at layer 1 and layer 3 i.e. preprocessing and post processing

whereas the HMM is used at layer 2 as main classifier. The output of layer 1 is fed to the

HMM as the input of layer 2 for classification. Then classified result is again screened

through fuzzy rules at layer 3. Finally mapping of diacritical marks on to the associated

Page 171: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

pr

U

C

r

Chapter 7

Muhammad Imr

rimary strok

Urdu languag

Conceptual Mode

respect to Langua

ran Razzak (36

kes by using

ge structure.

FuzCluste

Ee

ling with 

ge

Clustering

Format

6-FBAS/PHDC

g fuzzy rule

The whole

 

zzy ering 

Ending"Alf"never 

exist at start

g Rules 

tions  

Bio-

CS/F07)

es which ar

process is d

Clas

t

S

M

-Inspired Arab

152 

re developed

described in 7

ssification 

through 

tatically 

Method

Kno

Man

bic Script Char

d by critical

7. 2.

owledge Based 

agement System

Post Processing  

racter Recogni

lly analyzin

 

Fuzzy Pos

Processin

tion

g the

st 

Page 172: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 153  

Figure 7.3: Fuzzy modeling on Statistical model with respect to language modeling.

The classification phase is divided into three sub phases are

1. Phase I: Clustering

2. Phase II: Classifier I-HMM's

3. Phase III: Classifier II- Fuzzy Rules

7.2.1 Phase I: Clustering

The fuzzy inspired algorithm for classification into sub classes is based on the basic

shape of the stroke guessed from the starting and ending of the stroke. Clustering is the

pre-step for HMM classification of primary strokes and it is subdividing the strokes into

subclasses according to their structure similarity. The division into subclasses can also be

Table 7.5: Vector Quantization

1 Starting Loop and ending with hedge i.e. ص بص.

7 Starting with long down and ending with long up. کا طا

2 Starting with Jeem and ending with ray برجر

8 Ending with long left to right direction سے

3 Starting with Jeem and ending with hedge i.e. جيجبی.

9 Starting with jeem and ending with long down جم،

4 Starting with small down and ending with long up i.e. سہل جہل

10 Starting and ending with long up. ل , لا.

5 Ending with ray 11 ر،بد،د Starting with jeem and ending with left to right hedge ج جج

Recognized output text

Page 173: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

h

M

th

cl

co

co

فم

(s

an

cl

v

st

Chapter 7

Muhammad Imr

6 Stw

andled with

Multilanguag

he same sha

lassified div

omputationa

omputed fro

ٹف and بہجعم،بل

small, big, cu

nd strokes a

lustering, m

ariation at s

troke.

ran Razzak (36

tarting with ith right to l

the help of

ge by treating

ape in other

vided into

al complexit

om the begin

d class 2: چب

urve, loop, u

are divided i

maximum dep

tarting and e

6-FBAS/PHDC

loop and eft direction

secondary s

g diacritics s

languages l

62 classes

ty. The sub

nning patter

خپ،خٹ،خث،چ

up, down) is

nto classes b

pendency at

ending are o

A

Bio-

CS/F07)

ending n ق

12

strokes mark

separately an

like Arabic

to increase

bdivision of

rn and endin

Th .خب،خت،خ

computed b

based on the

ttributes bas

observed wit

Activation bit

-Inspired Arab

154 

Starting with ldirection

ks number,

nd secondly

and Persian

e the recog

f strokes is

ng pattern of

he variations

by fuzzy tria

e output of t

sed on rough

th respect to

bic Script Char

with ayen long rightn فعب ع .

but here we

number of d

n. The prima

gnition rate

s based on

f the stroke

s in shape at

angular mem

these fuzzy

h set can al

o the height

racter Recogni

and endingt to left

e are dealing

dot may diffe

ary stroke i

and reduce

the fuzzy

i.e. class 1:

t end and sta

mber ship fun

terms. For b

lso be used

and width o

tion

g t

g with

fer for

s sub

e the

rule,

يم، : ب

arting

nction

better

. The

of the

Page 174: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 155  

Figure 7.4: (a) Fuzzy member function for classification (b) Proper classification (c)

Mixed dataset classification

7.2.2 Phase II: Classifier I-HMM's

The problem with fuzzy rule based method is absence of training and secondly it

is impossible to form large set of rules that can be able to model all the possible set of

shapes. The purpose of hybrid approach is to uses HMM's in folding of fuzzy rules

method. Basically Fuzzy rules are applied before forwarding the input to HMM's i.e.

classification into subclasses and again fuzzy inference rules are applied to purify the

output obtained through HMM's. The extracted features are the set of basic shapes within

strokes that uniquely define the structure of the stroke.

We used a right to left, no skip state and fixed state discrete Hidden Markov

Models (HMM's) for primary stroke recognition and HMM's is built for each primary

ligature. HMM database contain 62 sub databases whereas each sub database represents

different basic shapes shown in figure 7.6. Quantization is required to convert the feature

vector sequence into discrete symbols for observation sequence. Linguistically features

FMi i.e. loop, cups are quantized to the discrete value Oi. Eight directional features up to

length γ are quantized from 0 to 8 and three kinds of loops upward, downward and oval

are discredited to 9, 10 and 11 respectively and upward and downward cups are quantized

to 12 and 1 and similarly other feature matrix is quantized.

Figure 7.5 describe the layered hybrid structure member with the shell of fuzzy logic. The

outer layer is responsible of classification into sub patterns. This sub patterns HMM

Page 175: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 156  

database consist of small set of HMM’s and used classification using HMM. This

classification into sub pattern reduces the computation complexity due to less

computation required for small number of classes. And increases the results due to small

number of HMM’s. Thus it is more convenient to find the best probabilistic match from

this small dataset instead of large dataset.

Figure 7.5: Layered Fuzzy with HMM

7.2.3 Phase III: Classifier II- Fuzzy Rules

In some cases HMM fails to recognize the very closely similar shapes. Thus we

used fuzzy rule based method on the output probabilities of the HMM’s to clarify the

conflicted shapes better. In such cases rule based method is more powerful due to human

reasoning involved in development of rules. Fuzzy rule-based method utilizes the

linguistic variables. Fuzzy purification method is applied on to the output probabilities

from the statistical method. If the difference between three maximum probabilities is less

then ά then Fuzzy inference is applied on to the probabilities. The probabilities of the

Fuzzy

Fuzzy HMM

Page 176: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 157  

strokes ز،ذ are very close in some cases, thus we involved reasoning to resolve this

conflict.

IF Pm –Pm-1 < ά || Pm –Pm-2 <ά

THEN USE Fuzzy Rules.

IF Strokes starts with diagonally right to left downward

Then itڈ

7.3 Post Processing

As secondary strokes are necessary to differentiate between the similar shapes in

inter languages i.e. Arabic, Urdu and Persian etc. and in intra language. Urdu script based

languages contains zero or more secondary strokes correspond to one primary stroke. The

mapping of secondary strokes on to the primary stroke is not easy task, because the dots

may not appear exactly above or below the character in the stroke shown in figure 7.6.

The mapping of the secondary stroke is very critical especially when related and

surrounded character are very small or related stroke may contain more than one stroke.

During the segmentation process position of each stroke is computed and similarly

position of each feature is also recorded during the feature extraction phase. To map the

secondary stroke, dictionaries of possible valid words for all languages is used. The word

dictionary contain 14150 words and is divided into sub dictionary based languages i.e.

Urdu, Arabic, Persian. The dictionary for Urdu consists of 10500 valid ligatures, whereas

dictionary for Arabic and Persian contains 2200 and 1450 ligatures. The procedure of

forming the valid ligature by mapping the diacritical marks is shown in figure 7.6. These

Page 177: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 158  

valid ligatures are further used to form the valid word. The ligature dictionary contain

1800 ligature which are further used by word dictionary to form the valid words.

Table 7.6: Rule for Secondary strokes handling

Rule for Recognition of Secondary Strokes

Di is the directional feature where i=1:8 and D1 the left to right side directional feature

Rule 1: IF SIZE(C( Pi )< γ THEN Single Dot

Rule 2: IF SIZE(C( Pi )< 3γ AND C( Pi (x1,y1)< C( Pi (xf,yf))

THEN Double Dot

Rule 3:: IF C( Pi (x1,y1)> C( Pi (xf,yf)) AND D6,at startD6 at middle, D6 at end

THEN Kaf Line

Rule 4: IF C( Pi) contain loop then Tawn

Rule5:: IF C( Pi (x1,y1)< C( Pi (xf,yf)) AND D8,at startD8 at middle, D8 at end

THEN Kaf Line

Rule 6: IF C( Pi (x1,y1)> C( Pi (xf,yf)) AND D7 || D6 at startD5 at middle, D7 || D6 at end

THEN Madda.

DUrdu = {Valid set of Urdu words}

DArabic = {Valid set of Arabic words}

DPersian = {Valid set of Persian words}

For all SSj ε PSi Where j=0 to n and PSi is the current primary stroke.

Page 178: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 159  

PSi {حب،حت،حپ،حٹ،حث،جب،جت،جپ،جٹ،جث

{خب،خت،خپ،خٹ،خث،چب،چت،چت،چپ،چٹ،چث

Figure 7.6: Stroke Mapping.

7.4 Final Remarks

For testing purpose we took Nasta’liq samples from 10 skilled users due to

unavailability of Nasta’liq database whereas for Naskh style we used IFNENIT database

for Arabic. The testing phase is divided into two parts i.e. Nasti'liq and Naskh and finally

the results are also compared with previous work for Urdu script. As most of the

extracted features are time variant and font independent thus it perform well for both

Nasta’liq and Naskh. The result in table 5 shows that HMM divided into sub classes

based on the basic ligature shape improved the results and furthermore the recognition

rate is improved by using the Hybrid approach. The improvement in result using Hybrid

approach is due to the involvement of human reasoning using fuzzy classifier in both

features extraction and post processing phases. Several experiments are performed in

Mapping Secondary Strokes Fuzzy Measurements

Recognized Base Stroke

Recognized Secondary 

Strokes 

Recognized Ligature  

Page 179: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 160  

Table 7.7: Comparison of recognition rate WRT to Methodology

HMM Structure Input Type Sample Data A

Sample Data B

Classical HMM Primary Stroke 81.2 68.7

Classical HMM Ligature with mapped dots

75.4 63.2%

HMM with Sub divided Database

Primary Stroke 85.3 78.2

HMM with Sub divided Database

Ligature with mapped dots

81.1 70.4

Hybrid Classifier ( HMM + Fuzzy Logics)

Primary Stroke 87.4 80.1

Hybrid Classifier Ligature with mapped dots

87.3 78.6

order to measure this effect and average performance is increased by using hybrid

approach. The most of the errors that was due to imperfect classification into subclasses

is also reduced by the introduction of fuzzy classification into sub data set. Moreover the

system can recognize both Nasta'liq and Naskh font due independency of features on

font. As the Nasta'liq style has more complex shapes than Naskh style [25] and Nasta’liq

covers almost all shapes in Naskh style. Due to this reason the proposed system also

works for Persian, Arabic and other languages written in Nasta'liq or Naskh style. We

developed vocabulary of 10500, 2200 and 1450 words for Urdu, Arabic and Persian

respectively shown in table 5. The computational complexity is very less as compared to

conventional HMM due to the reduction in dataset for comparisons by defining the sub

dataset. For example, we trained 1800 ligatures and there are 67 classes whereas class-I

Page 180: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 161  

contain 30 ligatures. In conventional comparison is performed on 1800 HMM’s whereas

in proposed method only 30 HMM’s are used as a trained dataset for comparison.

Table 7.8 : Comparison of recognition rate with previous System

System Name Classifier Used Recognition Ligature Nasta'lia

and Naskh

Dataset size

OLUCR Back Propagation Neural Network

93% 240 Ligatures

Online Urdu Handwritten Recognition

Tree Based dictionary search

96.2 49 Ligatures

Proposed Hybrid Approch

HMM + Fuzzy Logics

87.6 & 74.1 1800 Ligatures

DUrdu =9500, DArabic=1800, , DPersian =1450

In this chapter we introduce a HMM based method for recognition of online Cursive

handwritten Urdu Nastaliq and Naskh Script. The system is currently trained for 1500

ligatures without segmenting the ligature into characters. The HMM's are divided into

subclasses to improve the recognition rate and decrease the complexity. For testing

purpose input was taken from 15 experienced users. We extracted 32 directional and

structural features by critical examining the structure of the language and preprocessing

on features matrix is applied to reduce the feature matrix from unnecessary features. We

build right to left topology based HMMs for ghost characters which have 15 states and 32

observation symbols. The states are fixed and no skip state is allowed. The system

provides 82.1% and 72.4% accuracy for both handwritten Nasta’liq and Nasakh font

respectively. K-mean clustering is used instead of HMM to recognize the secondary

Page 181: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 7 Bio-Inspired Arabic Script Character Recognition

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 162  

strokes and seven structural features are extracted. Finally the secondary strokes are

mapped onto the primary stroke using position information through grammar. In future

we will perform clustering on dot is required for correct segmentation from the primary

strokes.

Page 182: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 8 Comprative Analysis and Conclusions

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 164  

`

CHAPTER 8

COMPARATIVE ANALYSIA AND CONCLUSION

This chapter analyzes the presented approaches i.e. ghost character theory, fuzzy

preprocessing and feature extraction and finally compares the segmentation free approach

with the biologically inspired (segmentation base) approach. The presented approaches

are analyzed on both Nasta’liq and Naskh fonts. Some experiments were also performed

for multi-language character recognition system. The fusion of fuzzy logic, fuzzy rules

and human biological vision modeling provides a better solution to deal with complex

character recognition problem. The fuzzy has the lack of learning and context knowledge

whereas it provides flexibility in solving problems with large variation of data. A case

study has been presented and has been divided into three parts. The first part presents the

effect of ghost character theory for multi-language character recognition system and the

second part analyzes the fuzzy based bio-inspired preprocessing and feature extraction

Page 183: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 8 Comprative Analysis and Conclusions

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 165  

whereas bio-inspired segmentation based and segmentation free approaches have been

analyzed in the third part. Finally, conclusion is drawn and future work is presented.

8.1. Ghost Character Based Recognition.

Normally both Naskh and Nasta’liq are followed by Arabic script based

languages. Nasta’liq is mostly followed for Urdu, Persian, Punjabi, Sindhi, etc. whereas

Naskh is mostly followed for Arabic, Pashto, etc. All Arabic script based languages are

using almost similar writing script whereas they differ only by a few numbers of

characters. Almost all ghost characters are the same in all Arabic script based languages.

The mapping of diacritical marks and dictionary mapping is dependent upon the language

selection. Each language has its own grammar, thus the ligature formation based on

diacritical marks and word formation based on the ligatures which are according to the

selected language. As every language has its own writing rules, ligatures and words but

the basic shapes are the same therefore the recognition of basic shapes does not need any

word formation rules, dictionary, etc. It is only dependent on the writing style used i.e.

Nasta’liq or Naskh. The ligature formation from recognized ghost characters and

recognized diacritical marks, and word formation from recognized ligatures required

language modeling because the rules are dependent upon the language. The ghost

character recognition theory is very successful for large datasets in the sense that

Multilanguage recognition on Arabic script based languages can be developed by using

rules of each language. Figure 8.1 shows the result of simple ligature formation while

figure 8…. Shows the results for complex ligature formation for different languages.

Page 184: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

T

la

th

D

L

L

T

sa

Chapter 8

Muhammad Imr

The following

anguage and

he Ghost cha

Dictionary D=

Ligature Dict

Ligature Dict

The mapping

ame ghost li

ran Razzak (36

g section de

d it is eviden

aracter theor

= (Urdu, Ara

tionary for U

tionary for A

g of diacritic

gature and s

Arabi

 

6-FBAS/PHDC

escribes the d

nt that the nu

ry.

abic, Persian

Urdu = [ L1 {

Li {جٹ،جث

چپ،چٹ،چث

……

Arabic = [ L1

Li

……

cal marks w

same no of d

Persian

CS/F07)

dictionary fo

umber of lig

n, Punjabi, P

……..} , L2

،جب،جت،جپ،

چب،چت،چت،چ

………Ln{…

{ ……..} , L

حت،جب،جت}

………Lm{…

ith respect t

diacritical ma

Urdu

+

Comp

166 

ormation of

gatures is su

Pashto, Sindh

2 {……}

،حپ،حٹ،حث،

خپ،خٹ،خث،چ

…….}]

L2 {……}

,حب،ح جث خث{

…….}]

to various la

arks is show

 

prative Analysi

different Ar

ubstantially r

hi)

حب،حت،

{،خب،خت،خ

جث,خب،خت، خ

anguages dic

wn in figure 8

Punjabi

 

is and Conclus

rabic script b

reduced by u

ج ,

ctionary wit

8.1.

Sindhi

sions

based

using

th the

Page 185: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 8 Comprative Analysis and Conclusions

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 167  

Figure 8.1: Combination of diacritical marks with respect to languages

Write the position of dots

The major benefit of the proposed ghost character recognition theory is that the

developed system works for all Arabic script based languages and the overall ligature set

is decreased.

Ligature Multilanguage = No of total ligatures by Arabic script based languages

Ligature Arabic = No of total ligatures of Arabic

Ligature Urdu = No of total ligatures of Urdu

Ligature Persian = No of total ligatures of Persian

Ligature Punjabi = No of total ligatures of Punjabi

Ligature other Arabic script based languages = No of total ligatures of other Arabic script

based languages like Pashto, Sindhi etc.

Give example here of one character superst… language character, multilnguage ghost

character

As we know

Ligature Ghost ligature of urdu<<< Ligature Urdu

Thus we can say,

Page 186: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

L

Pu

8

8

C

ex

re

la

an

an

se

gh

p

co

Chapter 8

Muhammad Imr

Ligature Multi

unjabi+ Ligatu

8.2 Feature

8.3. Segme

Character rec

xisting in oth

ecognition a

anguages in

nalysis of th

nd use of

egmentation

host ligature

ost processi

omplexity a

ran Razzak (36

ilanguage (Ghost)

ure other Arabic

e etttttttttt

ntation Fr

cognition of

her language

accuracy. Seg

ncorporates

he Arabic scr

compliment

n free approa

e. A Fuzzy l

ing step to

and increas

6-FBAS/PHDC

~< Ligature

script based langu

ttttttttc

ree and Se

f Arabic scr

es; makes th

gmentation

a considera

ript is compl

tary charact

aches. In seg

ogic is used

improve the

sed the eff

CS/F07)

e Arabic + Li

uages

egmentatio

ript based la

heses langua

based appro

able overhea

licated due t

ters. We h

gmentation f

in the class

e results. Th

ficiency. G

Comp

168 

igature Urdu

on Based A

anguages ha

ages more co

oach for han

ad and hav

to segmentat

have present

free approac

sifier while f

he division

Generally th

prative Analysi

+ Ligature

Approach

as some tech

omplicated a

ndwritten Ar

ve very les

tion problem

ted both se

ch, HMM is

fuzzy rules h

in classes r

he system

is and Conclus

Persian + Lig

h

hnical issue

and hence the

rabic script b

s accuracy.

m of cursive s

egmentation

s trained for

have been us

reduced the

works for

sions

gature

es not

e low

based

The

script

n and

each

sed at

time

both

 

Page 187: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

h

cl

1

re

se

P

T

H

li

H

pr

w

Chapter 8

Muhammad Imr

andwritten N

lassification

5 trained use

equired a co

egmentation

ersian respe

Figu

The computa

HMM due to

igatures and

HMM, classi

roposed met

words i.e. city

ran Razzak (36

Nasta’liq an

result for th

ers. The liga

onsiderable

n free system

ctively as sh

ure 8.3: Com

ational comp

o the reduct

there are 6

ification is p

thod only 3

y name, verb

 

6-FBAS/PHDC

nd Naskh fon

he two fonts

ature based a

computation

m on 10500,

hown in table

mbination of

plexity durin

ion in datas

67 classes w

performed b

0 ligatures.

bs, etc.

CS/F07)

nts of Arabi

s respectively

approach is

nal overhead

2200 and 14

e 5.

f diacritical m

ng classificat

set for comp

whereas class

by single H

The ligature

Diacritical 

Mappi

Comp

169 

ic script and

y tested on

limited due

d during tra

450 valid lig

marks with r

tion is less a

parisons. Fo

s-I contain 3

HMM for the

e based app

Marks 

ing 

 

prative Analysi

d provided 8

1800 ligatur

to the traini

aining. We

gatures for U

respect to lan

as compared

or example,

30 ligatures.

e 1800 liga

proach is sui

Recognize

is and Conclus

87.4% and 8

res obtained

ing data used

e have teste

Urdu, Arabic

nguages

d to convent

we trained

. In convent

atures where

itable for lim

ed Text 

 

sions

80.1%

from

d and

d the

c and

tional

1800

tional

eas in

mited

 

Page 188: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

Chapter 8

Muhammad Imr

Figu

Figure 8

characte

 

 

ran Razzak (36

ure 8.4: Com

.5: (a) Ligatu

er (b) Word l

نا

6-FBAS/PHDC

mbination of

ure formatio

level recogn

Desc

 

 

با

One dot 

Two do

Abo

تا

CS/F07)

f diacritical m

on by combin

nition HMM

ribe the abov

 

 

}

otThree 

dot

Below

ove

ثا

با

No dot

Comp

170 

marks with r

nation of dia

for same wo

ve figure

One dot 

Tw

H

}

Tee

prative Analysi

respect to lan

acritical mar

ord in Urdu

 

 

 

با

wo dot

Three 

Hook 

is and Conclus

nguages

rks and ghost

and Arabic.

 يا

sions

t

 

Page 189: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

C

T

th

Chapter 8

Muhammad Imr

Figu

The segmenta

he Arabic sc

Level-

Level-1SeparatReduct

Level-2etc. est

Level-3Feature

Level-4Format

Level-Level

 

Level-Comp

 

ran Razzak (36

Forming

ure 8.6 : Bio-

ation based

ript especial

-0 

1 Diacriticaltion, Noise tion

2: Baseline, timation

3: Simple e Extraction

4: complex Ftion

-5: CharacteRecognition

-6: Context Lutation

6-FBAS/PHDC

g the characte

-inspired cha

approach is

lly the text w

l Marks

Slant

Feature

er n

Level

CS/F07)

er and mapp

aracter recog

difficult an

written in Na

Comp

171 

ping the diacr

gnition proce

nd less accur

asta’liq style

prative Analysi

ritical marks

ess of word P

rate due to th

e. On the oth

is and Conclus

s

Pakistan

he complexi

her segment b

sions

ity of

based

Page 190: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 8 Comprative Analysis and Conclusions

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 172  

approach can treat the full script. We presented biologically inspired segmentation based

approach in which the segmentation and recognition is done simultaneously using

Table 8.1: Comparison of Recognition Result of different system

HMM Structure Input Type Sample Data A

Sample Data B

Data Size

Classical HMM Primary Stroke 81.2 68.7 1000 Ligature

Classical HMM Ligature with mapped dots

75.4 63.2% 1000 Ligature

HMM with Sub divided Database

Primary Stroke 85.3 78.2 1500 Ligature

HMM with Sub divided Database

Ligature with mapped dots

81.1 70.4 1500 Ligature

Hybrid Classifier ( HMM + Fuzzy Logics)

Primary Stroke 87.4 76.1 1800 Ligatures

Hybrid Classifier Ligature with mapped dots

87.6 74.6 1800 Ligatures

Bio-Inspired Character Recog.

Primary Strokes 86.2 77.4 Full Urdu Text

Bio-Inspired Character Recog.

Ligatures with Diacritical marks

85.2 73.9 Full Urdu Text

Bio-Inspired for Word Recog.

Word 89.5 75.1 2000 Words

the fuzzy logics. The uncertainties in character recognition system have different effect

depending on the type of problem whereas it is difficult to classify the complex problem

into different level of uncertainty. Vast variation and inconsistencies makes handwritten

Arabic script based languages character recognition much more complex than any other

language. Thus a careful observation preformed and the complex handwritten recognition

Page 191: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 8 Comprative Analysis and Conclusions

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 173  

is divide into small uncertainty levels as similar the human ventral stream divide the

handwritten problem into different uncertainty levels. The layered fuzzy approach is used

that lead to recognized results by deducing the high end patterns from small patterns.

These high end patterns are used for the creation of further high end pattern. The

integration human biological vision with fuzzy logic provided speed, accuracy and

efficiency.

The biological visual perception is studied on 50 people, native readers of Arabic,

Urdu, Punjabi, Sindhi and Pashto written in two different scripts Naskh and Nasta’liq to

visualize the recognition level of diacritical marks. The concept of ghost character

recognition is built on this study and this concept helps to build biology inspired

Multilanguage character recognition system. The character recognition system is divided

into layers according to human visual perception.( put it in chapter 6) The linguistics

rules are added at each level to add the help of language behavior. The presented

biological inspired provide 86.2% accuracy for Arabic, Urdu, Persian and Punjabi written

in only Nasta’liq style. The result can be increase by adding the context clue at level 6.

8.3 Conclusion

Although the segmentation free approach provided good results as compared to

segmentation based approach but the segmentation free approach is suitable for small

data set i.e. cities name, country name, verbs, etc. Whereas the segmentation based

approach can work for full Urdu text. Thus multi-language system is developed using the

ghost character recognition theory and language rules by extracting the diacritical marks

from the handwritten text before recognition and their association to the recognized base

Page 192: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 8 Comprative Analysis and Conclusions

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 174  

shape. Using this concept, our proposed system works successfully for multiple

languages based on Arabic character script. The bio-inspired fuzzy approach is tested for

multiple languages written in both Nasta’liq and Naskh and it provides 86.2%, 74.1%

accuracy respectively on input from ten trained user. The main focus of the thesis was

the fuzzy based bio-inspired based character recognition by processing each step with the

help of fuzzy logic to add human reasoning.

(Why accueacy is less for naskh)

Figure 8.8. Recognition rate

65

70

75

80

85

90

95

Classical HMM Modified HMM Hybrid Approch (HMM+Fuzzy)

Bio‐Inspired CR

Ghost Character

Recognized Ligature

Word Level Recognition

Page 193: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 8 Comprative Analysis and Conclusions

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 175  

Figure 8.8. Computational Complexity

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

Classic HMM Modified HMM Hybrid HMM Expert Bio‐Inspired

character Level

Bio‐InspiredWord Level

Page 194: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 8 Comprative Analysis and Conclusions

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 176  

Table 8.2: Comparison with existing systems

Online Character Recognizer Approach Classifier Data Set Writing Style

Recog. Rate

Biologically Inspired Fuzzy Based Expert System

Simultaneous Segmentation

Fuzzy Logic, Fuzzy Rules, Bio-

Inspired Methodlogy

Full Data set ( Ligature

Level)

Nasta’liq Naskh

86.2

Hybrid Approach HMM and Fuzzy Logics [11]

Ligature Based Approach

HMM and Fuzzy Logics

14150 Words Nasta’liq Naskh

87.6

Arabic Character Recognition Genetic Algorithm And Visual Encoding

200 Words Naskh 97

Online Urdu Character Recognition [14]

Ligature Based Approach

Backpropogation Neural Network

240 Ligatures Nasta’liq 93

Online Arabic handwritten recog. With templates [16]

Template Based Matching

Full Data set Naskh 68.2

Bio-Inspired Handwritten Farsi [9]

KNN ANN SVM

Farsi Digits (MNIST)

Naskh

81.3 (KNN) 94.65 (ANN) 98.75 (SVM)

Arabic Handwritten using Matching Algorithm [18].

Ligature Based Matching Algorithm and Decision Tree

Arabic Alphabets

Naskh 98.8

Recognition Based Segmentation of Arabic [20]

Recognition based Simultaneous

HMM Arabic Naskh 88.8

Rule Based Urdu Online Character Recognition [21]

Simultaneous Segmentation based

recognition

Fuzzy Logics Urdu Full Dataset

Nasta’liq and Naskh

78

Online Arabic Characters by Gibbs Modeling

[23]

Gibbs Modeling of Class Conditional

Densities

Arabic Characters

Naskh 84.85 ( direct Bayes) 90.19 ( Indirect Bayes)

Arabic Character Recognition HMM Arabic full data Naskh 78.25

Page 195: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 8 Comprative Analysis and Conclusions

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 177  

using HMM [24] set

Page 196: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 8 Comprative Analysis and Conclusions

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 178  

8.4 Future Work

The presented work is not focused on post processing phase. In future, we will

focus on post processing steps (level-6) and add the context knowledge. For example the

presented work has lack of word level dictionary, In future, work can be carried out on

dictionary to improve the recognition rate as a post processing step.

Secondly, probabilistic based multi solution from lower level to final level can be tried

instead of exact solution during the feature extraction and classification as shown in

figure 8.7.

Figure 8.7 : Probabilistic based modeling for future work

با

با

 ياOne dot 

Two dot

Three }

Below

Two Dots  ( 1 dot is dingle, 2nd

may be double or singe dot  0.7

يا0.3

با

با

}

نا

No dot All Other Dots

0.35

0.35 

0.15 

0.15

Page 197: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Chapter 8 Comprative Analysis and Conclusions

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 179  

We will extract few close solutions and then these close solutions are further

modeled in layered manner. Some work on this is performed in chapter 6 by using hybrid

approach: Fuzzy and HMM, the output from HMM is further analyzed using fuzzy logic

but in this case only one solution is considered whereas in future we will consider several

top solutions and these solution are further reduced to one solution by performing the

probabilistic based modeling till word formation. For example the diacritical mapping is

discussed in figure 8.7.

Page 198: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 180  

REFERENCES

Abuhaiba, M.J.J. Holt, and S. Datta, (1998) “Recognition of Off-Line Cursive Handwriting,” Computer Vision and Image Understanding, vol. 71, pp. 19-38.

Adeed S.A, Higgens C., Elliman D. (2002), “ Recognition of Offline Handwritten Arabic Word Using Hidden Markov Model Approach” , 16th International Conference on Pattern Recognition (ICPR'02) - Volume 3

Ahmad Z., Orakzai J.K., Shamsher I., Adnan A, (2007) “Urdu Nastaleeq Optical Character Recognition” World Academy of Science, Engineering and Technology 32, 2007.

Ahn J.H., Lee J, Jo J., Choi Y, Lee Y, (2009)“Online Character Recognition using Elastic Curvature Matching”, Seventh International Conference on Advances in Pattern Recognition.

Al-Absi H.R.A., Abdullah A.B. (2009) “A Proposed Biologically Inspired Model for Object Recognition” IVIC 2009, LNCS 5857, pp. 213–222,

Al-Badr. B., Mahmoud, S.A. (1995), “Survey and Bibliography of Arabic Optical Text Recognition”, Elsevier Science, Signal Processing, Vol. 41, pp. 49-77.

Al-Badr B. and R. Haralick, (1998) “A Segmentation-Free Approach to Text Recognition with Application to Arabic Text,” International Journal Document Analysis and Recognition, vol. 1, pp. 147-166,.

Al-Badr B. and R. Haralick, (1995) “Segmentation-Free Word Recognition with Application to Arabic,” Proc. International Conference Document Analysis and Recognition, pp. 355-359.

Al-Ghoneim K. (2001) “Sub Stroke Approach to HMM-based On-line Kanji Handwriting Recognition” , International Conference on Document Analysis and Recognition, 2001

Al-Habian, G. Assaleh, K., (2007) “OnlineArabic handwriting recognition using continuous Gaussian mixture HMMS ” International Conference on Intelligent and Advanced Systems, 2007. .

Page 199: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 181  

Ramy A.H.M., Sulem L.L.,Mokbel C. (2009), Combining slanted-frame classifiers for improved HMM based Arabic and writing recognition, IEEE Transactions on Pattern Analysis and Machine Intelligence, Volume: 31 Issue:7

Al-Hamad H.A., Zitar R. A. (2010) “Development of an efficient neural-based segmentation technique for Arabic handwriting recognition” Pattern Recognition 43 2773–2798

Al-Khateeb J. H, Ren J., Ipson S.S, Jiang J. (2008), “Knowledge-based Baseline Detection and Optimal Thresholding for Words Segmentation in Efficient Pre-processing of Handwritten Arabic Text”, Fifth International Conference on Information Technology: New Generations, 2008

AlKhateeb J.H., Jinchang Ren, Jianmin Jiang, Stan S Ipson, (2009), “Unconstrained Arabic Handwritten Word Feature Extraction: A Comparative Study”, Sixth International Conference on Information Technology: New Generations,

Al-RashaidehH., (2006) "Preprocessing Phase for Arabic Word Handwritten Recognition ", .

Adeed S.A, Elliman D., Higgins C., “A Data Base for Arabic Handwritten Text Recognition Research”, The International Arab Journal of Information Technology, Vol. 1, No. 1, January 2004

Alma’adeed, S., D. Elliman, and C.A. Higgins (2002), “A Data Base for Arabic Handwritten Text Recognition Research,” Proceeding Eighth International Workshop Frontiers in Handwriting Recognition, pp. 485-489,.

Alama S.’ adeed (2008). , Recognition of Offline Handwritten Arabic Word Using Hidden Markov Model Approach” , 16th International Conference on Pattern Recognition (ICPR'02) - Volume 3.

Al-Omari FA, Al-Jarrah O (2004) Handwritten Indian numerals recognition system using probabilistic neural networks. Adv Eng Inform 18(1):9–16. doi:10.1016/j.aei.2004.02.001.

Alonso J., W. Usrey and R. Reid (1996), Precisely correlated firing in cells of the lateral geniculate nucleus. Nature, 1996. 383: 815-819.

Aly W., Uchida S, Suzuki M (2007), “Identifying Subscripts and Superscripts in Mathematical Documents”, Mathematics in Computer Science

Amor N.B., Amara N.E.B (2006), “Multifont Arabic Characters Recognition Using HoughTransform and HMM/ANN Classification”, Journal of Multimedia, Vol. 1, NO. 2, May 2006

Amara N. Ben and Bouslama F. (2003). Classification of Arabic script using Multiple sources of information: state of the art and perspective,” International Journal of Document Analysis and Recognition. vol. 5. pp. 195-212.

Page 200: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 182  

Anastas, P and Warner, J (2000) Green chemistry: theory and practice, Oxford University Press

Anwar W, Wang X, Wang X.L. (2006), “A survey of automatic Urdu language processing” Proceedings of the Fifth International Conference on Machine Learning and Cybernetics, Dalian, 13-16 August 2006

Baghshah M.S., Baghshah S.B., Kasaei S. (2006) “A novel fuzzy classifier using fuzzy LVQ to recognize online Persian handwriting”, Information and Communication Technologies, 2006. ICTTA '06

Baker, C.I., Liu, J., Wald, L.L., Kwong, K.K., Benner, T., Kanwisher, N., (2007). Visual word processing and experiential origins of functional selectivity in human extrastriate cortex. Proc. Natl. Acad. Sci. U. S. A. 104, 9087–9092

Benouareth A., A.Ennaji, M. Sellami, (2008)"Arabic Handwritten Word Recognition Using HMMs with Explicit state Duration" EURASIP Journal of Advance Signal Processing, Vol. 2008

Benoureth A, Ennaji A, Sellam M. (2008)"Semi-Continuous HMMs with Explicit State Duration Applied to Arabic Handwritten Word Recognition , Pattern Recognition Letter pp 1742-1752

Biadsy F., J. El-Sana, N. Habash (2006), Online Arabic handwriting recognition using hidden Markov models, in: Proceedings of the Tenth International Workshop on Frontiers in Handwriting Recognition, pp. 85–90.

Biederman I. (1987), “Recognition-by-components: A theory of human image Understanding” Psychological Review, 24: 115-147.

Borji A., Hamdi M, F Mahmoudi, (2008), "Robust Handwritten Character Recognition with Features Inspired by Visual Ventral Stream" Neural Processing Letters Vol 28 pp 97-111.

Bosner, R,(2006 ) “Patented biologically-inspired technological innovations:a twenty year view”, Journal of Bionic Engineering, Vol 3 pp 39e41

Bosner, R and Vincent, J Technology trajectories, innovation, and the growth of biomimetics, Journal of Mechanical Engineering Science ,2006, Vol 221 pp 1177-1180

Boubaker H., M. Kherallah, A. M. Alimi, New Algorithm of Straight or Curved Baseline Detection for Short Arabic Handwritten writing, 10th International Conference on Document Analysis and Recognition.

Bouchareb F., M Bedda, S. Ouchetati, (2006) "New Preprocessing Method for Handwritten Arabic Word", Asian Journal of Information Technology 2006, pp 609-613.

Page 201: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 183  

Chan S, Tang S.W., Tang K.W., Lee W.K., Lo S.S, Kwong K.K. (2009), “Hierarchical coding of characters in the ventral and dorsal visual streams of Chineselanguage processing”, NeuroImage 48 pp 423–435

Chen, M.Y., Kundu, A. and S. N. Srihari, (1995)“Variable duration hidden Markov model and morphological segmentation for handwritten word recognition,” IEEE Transactions on Image Processing, vol. 4, no. 12, pp. 1675–1688, 1995.

Collins, M and Brebbia (2001), C Design and nature II: comparing design in nature with science and engineering Wessex, 2001,) Institute of Technology Press

Deepu V., Sriganesh M. Ramakrishnan A. G. (2004), “Principal Component Analysis for Online Handwritten Character Recognition” 17th International Conference on (ICPR'04) Volume 2 - Volume 02.

Dehghani A., F. Shabani, and P. Nava, (2001)“Off-Line Recognition of Isolated Persian Handwritten Characters Using Multiple Hidden Markov Models,” Proceeding International Conference Information Technology: Coding and Computing, pp. 506-510, 2001.

Deng W, Hu J, Guo J., Cai, W., Feng, D. (2010) “Emulating biological strategies for uncontrolled face recognition” Pattern Recognition 43 (2010) 2210–2223

Durani A (2009), "Pakistani: Lingual Aspect of National Integration of Pakistan", www.nlauit.gov.pk.

Durani A (2008), "Urdu Informatics" Vol. 1, pp. 102-112, pp 8-15, National Language Authority Press

Dong L, Ebroul Izquierdo, (2007)“A Biologically Inspired System for Classification of Natural Images”, IEEE transactions on circuits and systems for video technology, vol. 17, no. 5, may 2007

Douglas D. , Peucker T. (1973), Algorithms for the reduction of the number of points required to represent a digitized line or its caricature. The Canadian Cartographer, 10(2):112–122, 1973.

Eberhart, R., Simpson P., Dobbins R., “Computational Intelligence PC Tools” Ed. AP Professional.

El-Hajj R., L. Likforman-Sulem, and C. Mokbel, (2005) “Arabic Handwriting Recognition Using Baseline Dependant Features and Hidden Markov Modeling,” Proceeding International Conference Document Analysis and Recognition, pp. 893-897, 2005.

Daifallah K., Zarka N, Jamous H., Recognition-Based Segmentation Algorithm for On-Line Arabic Handwriting, 2009 10th International Conference on Document Analysis and Recognition.

Page 202: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 184  

Dong Le and Ebroul Izquierdo, A Biologically Inspired System for lassification of Natural Images, IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, VOL. 17, NO. 5, MAY 2007

Douglas D. , Peucker T. Algorithms for the reduction of the number of points required to represent a digitized line or its caricature. The Canadian Cartographer, 10(2):112–122, 1973.

Duan J, Li R, Hu Y, “A bio-inspired application of natural language processing: A case study in extracting multiword expression” Expert Systems with Applications 36 (2009) 4876–4883.

Durani A., "Urdu Informatics" Vol. 1, pp. 102-112, pp 8-15, National Language Authority Press 2008.

Durani A (2009), "Pakistani: Lingual Aspect of National Integration of Pakistan",

www.nlauit.gov.pk.

Elanwar R. I., Simultaneous Segmentation and Recognition of Arabic Characters n an Unconstrained On-Line Cursive Handwritten Document International Journal of Computer and Information Science and Engineering Volume Number 4.

Farooq F., V. Govindaraju, and M. Perrone,(2005) "Preprocessing methods for handwritten Arabic documents".ICDAR (Proceedings of the Eighth International Conference on Document Analysis and Recognition), pp: 267-271, 2005.

Fahmy M..M. and S. Al Ali, (2001)“Automatic Recognition of Handwritten Arabic Characters Using Their Geometrical Features,” Studies in Informatics and Control Journal., vol. 10, 2001.

Faradji F., Faez K., Nosrati M.S. (2007), “Online Farsi handwritten words recognition using a combination of 3 cascaded RBF veural networks” Internatioanl Conference on Intelligent and Advance System 2007

Faradji F., Faez K., Nosrati M.S. (2007), “An HMM-based online recognition system for Farsi handwritten words” International Conference on Intelligent and Advance System 2007

Farghaly A, Shaalan K, (2009)“Arabic natural language processing: challenge and solution” ACM Transactions on Asian Language Information Processing, Vol. 8, No. 4, 2009.

Forbes, P The Gecko’s foot: bio-inspiration, (2005) engineering new materials and devices from nature Harper Collins

Fujiswa, H, (2008)“Forty years of research in character and document recognition---an industrial perspective” Pattern Recognition 41 (2008), pp 2435 – 2446.

Page 203: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 185  

Fujisawa H. and C.-L. Liu. (2003) Directional pattern matching for character recognition revisited. Proceedings of the 7th International Conference on Document Analysis and Recognition, Edinburgh, Scotland, 2003, pp. 794–798.

Gillies A. M., (1992 ), “Cursive word recognition using hidden Markov models,” in Proceedings of the 5th U.S. Postal Service Advanced Technology Conference, pp. 557–562, Washington, DC, USA, November 1992

Goodale M. and A. Milner (1992), Separate visual pathways for perception and action. Trends in Neurosciences, 1992. 15: 20-25

Govindan, V. K., Shivaprasad, A. P. (1990), “Character Recognition, A review”, Pattern Recognition, Vol. 23, No. 7, pp. 671–683, 1990.

Haghighi P. J,, Nobile N., He C.L. Suen C.Y. , “A New Large-Scale Multi-purpose Handwritten Farsi Database” Lecture Notes in Computer Science, 2009, Volume 5627/2009, pp 278-286.

Halavati R., M. Jamzad, M. Soleymani(2005), A novel approach to Persian online hand writing recognition, Transactions on Engineering, Computing and Technology 6 232–236.

Hamada R. H. A. and A. B. Abdullah (2009) A Proposed Biologically Inspired Model for Object Recognition, Lecture Notes in Computer Science, Volume 5857, pp 213-222.

Hamdani M, El Abed H. , Kherallah M, Alimi A.M. (2009), “Combining Multiple HMMs Using On-line and Off-line Features for Off-line Arabic Handwriting Recognition”, 10th International Conference on Document Analysis and Recognition

Hanmandlu M., Murali Mohan K.R., Chakraborty S, Goyal S,Choudhury D.R. (2003) “Unconstrained handwritten character recognition based on fuzzy logic” Pattern Recognition 36 pp. 603 – 623

Haraty R. and A. Hamid, (2002) “Segmenting Handwritten Arabic Text,” Proceeding. Int. Conf. Computer Science, Software Eng., Information Technology, e-Business, and Applications, 2002.

Haraty R. and C. Ghaddar, (2004 ) “Arabic Text Recognition,” International Arab Journal Information Technology, vol. 1, pp. 156-163, 2004.

Hathaway R.J, Bezdek J. C, Hu Y. (2000), “Generalized fuzzy c-means clustering strategies using Lp norm distances” IEEE Trans. on Fuzzy Systems, 2000 Vol. 8, pp. 576–582 

Haxby J. (1991), Dissociation of object and spatial visual processing pathways in human extrastriate cortex. PNAS, 1991. 88: 1621-1625.

HelmsM, Vattam S S, Goel A K.(2009). “Biologically inspired design: process and products”, Design Studies 30 pp. 606-622

Page 204: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 186  

Huang Y. Kaiqi Huang , Liangsheng Wang1, Dacheng Tao, Tieniu Tan1 and Xuelong Li, (2008 ), “Enhanced Biologically Inspired Model”, IEEE, 2008

Hung C., G. Kreiman, T. Poggio and J. DiCarlo, (2005), Fast Read-out of Object Identity from Macaque Inferior Temporal Cortex. Science, 2005. 310: 863-866.

Husam A.A, Zitar R.A.(2010), Development of an efficient neural-based segmentation technique for Arabic handwriting recognition, Pattern Recognition 43 pp. 2773–2798

Hussain, M., Khan, N. M. (2005 ),“ Urdu Character Recognition Using Spatial Temporal Neural Network”, INMIC 2005.

Hussain S.A, Anwar F. Sajjad A. (2007) “Online Urdu Character Recognition System.” MVA2007 IAPR Conference on Machine Vision Applications 2007

Izadi S., Sue C.Y. (2008 ), “Online Writer-independent Character Recognition Using a Novel Relational Context Representation” 2008 Seventh International Conference on Machine Learning and Applications

Khan, I. Haider, “Online Recognition of Multi-Stroke Handwritten Urdu Characters”, International Conference on Image Analysis and Signal Processing (IASP), 2010.

Khedher M.Z, Al-Talib G. (2007), “A fuzzy expert system for recognition of handwritten Arabic sub-words” 2007 IEEE

Kherallah M, Bouri F., Alimi A.M.,(2009) “On-line Arabic handwriting recognition system based on visual encoding and genetic algorithm” Engineering Applications of Artificial Intelligence 22 pp. 153–170

Kherallah M., Elbaati A, Abed H.E., Alimi A.M., “The On/Off (LMCA) Dual Arabic Handwriting Database” International Conference on Frontiers in Handwriting Recognition, 2008.

Khorsheed M.S.(2003), “Recognising Handwritten Arabic Manuscripts Using a Single Hidden Markov Model,” Pattern Recognition Letters, vol. 24, pp. 2235-2242,

Kuo,W.J., Yeh, T.C., Duann, J.R.,Wu, Y.T., Ho, L.T., Hung, D., Tzeng, O.J., Hsieh, J.C., A left-lateralized network for reading Chinese words: a 3 T fMRI study. NeuroReport 12, pp 3997–4001

Lazard G., (1995) “The Rise of the New Persian Language” in Frye, R. N., The Cambridge History of Iran, , Vol. pp. 595–632, Cambridge: Cambridge University Press.

Lee J.J, Kim J., Kim J.H. (2000)“Data driven design of HMM topology for online handwritten recognition” Proceedings of the Seventh International Workshop on Frontiers in Handwriting Recognition, September 11-13.

Lesica N.A. and G.B. Stanley (2004), Encoding of natural scene movies by tonic and burst spikes in the lateral geniculate nucleus. Journal of Neuroscience, 24: 10731-40.

Page 205: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 187  

Li Y, Dong M, Hua J,(2008) “Localized feature selection for clustering”, Pattern Recognition Letters 29, pp 10–18

Liu C.L., Suen C.Y. (2009), “A new benchmark on the recognition of handwritten Bangla and Farsi numeral characters” Pattern Recognition 42 pp. 3287 – 3295

Lin C.T., G. Lee, (1996) “Neural fuzzy system: A neuro fuzzy synergism to intelligent system” Prentice Hall

Lin C.W, Chen Y.H., Chen L.G, “Bio-inspired Unified model of Visual Segmentation system for CAPTCHA Character Recognition ”, IEEE workshop on signal processing system,

Lorigo L.M., V. Govindaraju, "Offline Arabic Character Recognition: A Survey" Pattern Recognition and Machine Intelligence (2006) Vol. 28 pp 712-724

GuptaM.M., (1998) “Cognition, Preception and uncertainty in :M.M. Gupta(Ed.), Fuzzy Computing, 1998”

Maddouri S.S.and Abed H.E. (2008). Baseline extraction: comparison of six methods on IFN/ENIT database. International conference of frontiers handwritten recognition.

Mantas J., (1986)“An overview of character recognition methodologies”, Pattern Recognition, Vol. 19, No. 6, pp. 425–430,.

Malaviya A., L. Petrs,(1999), "Multilayered Handwritten Recognition Appraoch", Fuzzy Sets and System Vol 104, pp 219-227

Malik, S. Khan, S.A., (2005) “Urdu Online Handwriting Recognition”, Emerging Technologies, 2005. Proceedings of the IEEE Symposium on Volume, Issue, 17-18.

N.Mezghani , Mitiche A., Cheriet M, “Bayes Classification of Online Arabic Characters by Gibbs Modeling of Class Conditional Densities” IEEE Transactions On Pattern Analysis And Machine Intelligence, Vol. 30, No. 7, July 2008.

Mezghani N., Mitiche A., Cheriet M.(2005), "A new representation of shape and its use for high performance in online Arabic character recognition by an associative memory" International Journal of Document Analysis 7(4): pp 201–210.

Miled H. and N.E. Ben Amara (2001), “Planar Markov Modeling for Arabic Writing Recognition Advancement State,” Proc. International Conference Document Analysis and Recognition, pp. 69-73, 2001.

Mishkin M. (1982), A memory system in the monkey. Philosophical Transaction of the Royal Society of London Series B, 1982. 298: 85.

Mitoma H., Uchida S., Sakoe H. (2004), “Online Character Recognition Using Eigen-Deformations”, 9th Int’l Workshop on Frontiers in Handwriting Recognition, 2004

Page 206: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 188  

Mitsuru M., Akira N., (2001) “Sub Stroke Approach to HMM-based On-line Kanji Handwriting Recognition” , Nakai, 2001

Mohamed, M., Gader, P. (1996) “Handwritten word recognition using segmentation-free hidden Markov modeling and segmentation-based dynamic programming techniques,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 18, no. 5, pp. 548–554, 1996.

Mohamad R.H., Sulem L.L, Mokbel C. (2009) Combining slanted-frame classifiers for improved HMM-based Arabic handwriting recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence

Mozaffari S., Faez K., Margner V., El-Abed H., “Lexicon reduction using dots for off-line Farsi/Arabic handwritten word recognition” Pattern Recognition Letters 29 (2008) 724–734.

Mumolo E. ,Massimiliano Nolich, (2006)“A Biological Inspired Robotic Auditory System Based on Binaural Perception and Motor Theory” American Assoc. Artificial Intelligence Technical Report, 2006

Omer M.A.H. and Ma S.L, “Online Arabic Handwriting Character Recognition Using Matching Algorithm” The 2nd International Conference on Computer and Automation Engineering (ICCAE), Beijing, China , 2010.

Papanek V, (1984) Design for the real world, human ecology and social change Pantheon Books, 1984 New York

Parui S. K., Guin K., Bhattacharya U. , Chaudhuri B. B. (2008), “Online handwritten Bangla character recognition using HMM”, IEEE 2008

Pechwitz M. and V. Ma¨rgner, (2003) “HMM Based Approach for Handwritten Arabic Word Recognition Using the IFN/ENIT-Database,” Proc. International Conference Document Analysis and Recognition, pp. 890-894, 2003.

Pechwitz M., Maddouri S. S., Märgner V., Ellouze N. , Amiri N., "IFN/ENIT-Database of Handwritten Arabic Words" , 7th Colloque International Francophone sur l'Ecrit et le Document , CIFED 2002, Oct. 21-23, 2002, Hammamet, Tunis, (2002).

Potter M. , E. Levy (1969), Recognition memory for a rapid sequence of pictures. Journal of Experimental Psychology, 1969. 81: 10-15.

Randa I. E, Mohsen A. R., and Samia A. M. (2007) “Simultaneous Segmentation and Recognition of Arabic Characters in an Unconstrained On-Line Cursive Handwritten Document World Academy of Science, Engineering and Technology 29 , p 288-29

Razzak M.I., S.A.Hussain, M.Sher (2009) “Combining online and offline preprocessing for online Urdu character recognition” IMECS 09, HongKong

Razzak M.I., S.A.Hussain, M.Sher ( 2009)“Numeral recognition for Urdu script in unconstrained enviornment” ICET, FAST 09

Page 207: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 189  

Razzak M.I., S.A.Hussain,A.Belaid, M.Sher (2010) “Multifont numeral recognition for Urdu script based languages ” International journal of research trend in engineering.

Riesenhuber M. and Ppggio T.,(1999), Hierarchical models of object recognition in cortex, Nature America Inc. http://neurosci.nature.com

Reinagel P. (1999), D. Godwin, S. Sherman and C. Koch, Encoding of visual information by LGN bursts. Journal of Neurophysiology, 1999. 81: 2558-2569.

Rieke F., D. Warland, R. van Steveninck and W. Bialek, Spikes. (1997), Cambridge, Massachusetts: The MIT Press.

Sari T., L. Souici, and M. Sellami, (2002) “Off-Line Handwritten Arabic Character Segmentation Algorithm: ACSA,” Proc. International Workshop Frontiers in Handwriting Recognition, pp. 452-457, 2002.

Sattar S.A., Haque S., Pathan M.K. (2009), “Finite State Model for Urdu Nastalique Optical CharacterRecognition, IJCSNS International Journal of Computer Science and Network Security, VOL.9 No.9, September 2009.

SlomanA., (1989 ), “On Designing a Visual System towards a Gibbsonian computation modal of vision” J. Exp. Theor, A.I. 1989.

Sudo T. (2002), Thesis, “On-Line Recognition of Handwritten Text Based on Hidden Markov” . Model, School of Information Science Japan.

Shafait F, HaA.san, Keysers, BreuelT. M., (2006) "Layout Analysis of Urdu Document Images" IUPR, 2006

Shahzad N., Paulson B., Hammond T. (2009), “Urdu Qaeda: Recognition System for Isolated UrduCharacters” IUI 2009 Workshop on Sketch RecognitionFebruary 8, 2009, Sanibel Island, Florida.

Sherman S., Tonic and burst firing: dual modes of thalamocortical relay. Trends in Neurosciences, 2001. 24: 122-126.

Sternby J., Morwing J., Andersson J., Friberg C., (2009) “On-line Arabic handwriting recognition with templates” pp. Pattern Recognition 42 3278 - 3286

Saabni R, Sana J E (2009), “Hierarchical online Arabic handwritten recognition” , 10th International conference on document analysis and recognition, pp 867-871.

Safabakhsh R. and P. Adibi, (2005) “Nastaaligh Handwritten Word Recognition Using a Continuous-Density Variable-Duration HMM,” The Arabian Journal Science and Engineering., vol. 30, pp. 95-118.

Sagheer M.W., He C.L, Nobile N., Suen C.Y. , “A New Large Urdu Database for Off-Line Handwriting Recognition” Lecture Notes in Computer Science, 5716, pp. 538–546, 2009.

Page 208: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 190  

Salah AA, Alpaydin E, Akarun L (2002) A selective attention-basedmethod for visual pattern recognition with application to handwritten digit recognition and face recognition. IEEE Trans Pattern Anal Mach Intell 24(3):420–425. doi:10.1109/34.990146

Sari T, L Soucici, M Sellami, (2002) “Off-line Arabic handwritten segmentation algorithm ACSA”8th International Workshop on Frontiers in Handwriting Recognition.

Sattar S.A, Haque S, Pathan M.K, Gee Q, (2008 ) “Implementation Challenges for Nastaliq Character Recognition” CCIS 20, pp. 279–285.

Schenk J., S. Schwarzler, G. Rigoll, (2008), "PCA in Online Handwritten Recognition of Whiteboard Notes: A Novel VQ Designe for Use with Discrete HMM's" in: Proc. of Int. Conference on Frontiers in Handwriting Recognition S. 544 – 549

Souici L., N. Farah, T. Sari, and M. Sellami, (2004 ), “Rule Based Neural Networks Construction for Handwritten Arabic City-Names Recognition,” Proceeding Artificial Intelligence: Methodology, Systems, and Applications, pp. 331-340,.

Sternby J., J Morwing, J Andersson, C Friberg, (2009) “On-line Arabic handwriting recognition with templates” Pattern Recognition 42 3278 – 3286

Subrahmonia, J., (2000). Similarity measures for writer clustering. In L. R. B. Schomaker and L. G. Vuurpijl (Eds.). Proceedings of the Seventh International Workshop on Frontiers in Handwriting Recognition, pp. 541-546.

Tappert, C. C., (1984 ), “Adaptive online handwriting recognition”. Proceedings of International Conference of Pattern Recognition, pp. 1004-1007.

Tanaka H., N. Iwayama, K. Akiyama, (2004), “Online Handwritten recognition technologies and its applications”, FUJITSU Science Technology Journal pp.170-178.

Thorpe S., D. Fize and C. Marlot, (1996), Speed of processing in the human visual system. Nature, 381: 520-522.

Wandell B.A. (1999), “Computational Neuroimaging Of Human Visual Cortex” Annu. Rev. Neurosci. 22:145–73

Wang W., Brakensiek A., Rigoll G. (2002), “Combination of multiple classifiers for handwritten word recognition”, IWFHR 2002

Weitzenfeld A. (2008) “From schemas to neural networks: A multi-level modelling approach to biologically-inspired autonomous robotic systems” Robotics and Autonomous Systems 56 , 177–197.

Wu L., Predrag Neskovic and Leon N Cooper, (2006) “Biologically Inspired Hierarchical Model for Feature Extraction and Localization” Proceedings of the 18th International Conference on Pattern Recognition (ICPR'06).

Page 209: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

References

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 191  

Zant T.V.D, Schomaker L, Haak K, (2008), “Handwritten-Word Spotting UsingBiologically Inspired Features” IEEE transactions on pattern analysis and machine intelligence, vol. 30, no. 11, November 2008

Zheng L, (2008) “Recognition for Arabic Character Based on Edge and BPNN”, Proceedings of the World Congress on Engineering and Computer Science 2008

Zhou B.L.,(2000) “Bio-inspired study of structural materials”, Materials Science and Engineering C 11, pp. 13–18

 

 

Page 210: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix A Patent

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 192  

APPENDIX A

PATENT

Page 211: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix A Patent

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 193  

US Patent filed April 2010.

Property Right: King Saud University, Kingdom of Saudi Arabia.

Biologically Inspired Multi-Liner Discriminant Analysis for

Complex Shape Recognition

1,2Muhammad Imran Razzak, 2Muhammad Khurram Khan,2Khaled Alghathbar

1International Islamic University, Islamabad, Pakistan

2Center of Excellence for Information Assurance, King Saud University, Saudi Arabia

Face recognition has great demands and become one of the most important research area of pattern recognition but there are several issues involved in it. Unsupervised statistical methods such as PCA, LDA, DLDA, ICA are the most popular face recognition algorithms that finds the set of basis images and represents faces as linear combination of those bases images. Biologically inspired image processing is an active research method for complex pattern recognition problems i.e. face recognition, character recognition human behavior perception. We present a novel bio-inspired multilayered face recognition method based on Fisher’s linear discriminant. Linear discriminant is applied in layered manner to extract the most similar pattern from the larger dataset by finding the best projection onto the feature vector in a similar manner that human select the interested patterns to identify from the large dataset. Fuzzy rule are used on LDA result to reduce the dataset into small subspace. The basic aim is to decrease FAR by reducing the face dataset to very small size through layered linear discriminant analysis. Although the computational complexity at recognition time is more than conventional PCA and LDA algorithms due to the computation of weights at run time whereas multilayered LDA (ML-LDA) provide significant performance gain especially similar face database and SSS problem. ML-LDA reduces the FAR to 0.0026 and provided accuracy 96.3 on BANCA database.The proposed approach is also applicable on other pattern recognition applications and methods i.e. PCA, KDA, DLDA etc.

Page 212: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix B Book Chpater

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 194  

APPENDIX B

BOOK CHAPTER

Page 213: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix B Book Chpater

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 195  

Handbook on Document Image Processing and Recognition

Springer Verlag.

Submitted ( Expected Publication July 2011)

pp: 1-26

Arabic Script Based Language Character Recognition

Abstract

The recognition of Arabic script and its derivatives such as Urdu, Persian, etc. is the

subject of this chapter. We first present the similarities between all these scripts, then we

show a unifying pattern recognition technique called Ghost Theory. Finally, we

summarize the techniques proposed for off-line and on-line Arabic based language word

recognition. For recognition, the parallel is drawn between Latin and Arabic to show

what it is new and what is an adaptation. Finally, all the methods are classified based on

the human vision perception as proposed by McClelland and Rumelhart for word

perception.

Page 214: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 196  

APPENDIX C

JOURNAL PAPERS

Journal Paper = 17

Total Impact Factor = 13.62

1. Muhammad Imran Razzak, Fareeha Anwar, Syed Afaq Husain, Abdel Belaid,

Muhammad Sher “A Hybrid Approach: HMM and Fuzzy Logics for Online

Urdu Script Character Recognition”. Knowledge-Based System: Elsevier,

(Impact Factor 1.308).

2. Muhammad Imran Razzak, Fareeha Anwar, Syed Afaq Hussain, Muhammad

Sher, A Fuzzy Expert System: Biologically Inspired Multilayered and

Multilanguage Character Recognition, Expert System: A Journal of

Knowledge Engineering. (Impact Factor 1.231) (Accepted).

3. Muhammad Imran Razzak, Rubiyah Yousf, Afaq Hussain Syed, Muhammad

Sher “HMM Based Online Urdu Character Recognition”. International Journal

of Computer Mathematics. (Impact Factor 0.478) (Accepted)

Page 215: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 197  

4. Muhammad Imran Razzak, Syed Afaq Hussain, Muhammad Sher "Locally

Baseline detection for Online Urdu Script based Languages Character

Recognition" International Journal of Physical Sciences, ISSN 1992 –

1950,Vol. 5(6), July, 2010.(Impact Factor 0.554)

5. Muhammad Imran Razzak, Syed Afaq Hussain, Muhammad Sher "Handling

Diacritical Marks for Arabic Script based Languages Online Character

Recognition using Fuzzy C-mean Clustering and Relative Position” Journal of

Information. (Impact Factor 0.09) ( Accepted)

6. Muhammad Imran Razzak, Muhammad Sher, Syed Afaq Hussain,“ Effect of

Ghost Character Theory on Arabic Script based Languages Character

Recognition" International Journal of Physical Sciences, ISSN 1992 –

1950,Vol. 5(6), July, 2010. (Impact Factor 0.554)

7. Muhammad Imran Razzak, Syed Afaq Hussain, Muhammad Sher

“Preprocessing for Arabic Script Based Languages" International Journal of

Innovative Computing, Information and Control(Impact Factor

2.92)(Accepted)

8. Muhammad Imran Razzak, Syed Afaq Hussain, Muhammad Sher,

Biologically Inspired Urdu Script Based Languages Character Recognition,

International Journal of Innovative Computing, Information and

Control(Impact Factor 2.92)(Accepted)

Page 216: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 198  

9. Muhammad Imran Razzak, Rubiyah Yousaf, Khaled Alghathbar, Muhammad

Khuram Khan, “Multimodal Biometric System Recognition using Fusion of

Low Resolution Face and Finger Veins, International Journal of Innovative

Computing, Information and Control. (Impact Factor 2.92)(Accepted).

10. Muhammad Imran Razzak, Khaled Alghathbar, Muhammad Khurram Khan,

Muhammad Sher, “Distributed Wireless Face Recognition” International

Journal of Innovative Computing, Information and Control. (Impact Factor

2.92) (Accepted).

11. Muhammad Imran Razzak, Rubiyah Yusof, Murzaki Khalid “Multimodal

Face and Finger Vein Authentication System” Scientific Research and

Essay,ISSN 1992-2248,Vol. 5 (15), August 2010. (Impact Factor 0.332)

12. Muhammad Imran Razzak,Khaled Alghathbar, Muhammad Khurram,

Muhammad Sher "Energy Efficient Distributed Wireless Face Recognition

System” Wireless Personal Communication (Springer), ISSN: 0929-6212,

(Impact Factor 0.286)

13. Muhammad Imran Razzak, Khaled Alghathbar, Muhammad Khurram Khan,

Rubiyah Yousaf, Syed Afaq Husain, “Face Recognition based on Fusion of

LDA and Client Specific to Client Liner Discriminant Analysis”Przeglad

Elektrotechniczny, ISSN 0033-2097 (Impact Factor 0.196).

14. Muhammad Imran Razzak, Rubiyah Yusof, Syed Afaq Hussain, Muhammad

Sher, Rule Based Online Urdu Character Recognition, ICIC-Express Letter:

Page 217: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 199  

An International Journal of Research and Survey Vol.4, No.2. ( HEC

Approved).

15. Muhammad Imran Razzak, Muhammad Sher, A. Belaid, Afaq Hussain Syed,

“Multifont Numerals Recognition for Urdu Script based Languages.

International Journal of Recent Trend in Engineering. Academy. Vol. 2, pp:

70-72. ( HEC Approved)

16. Muhammad Imran Razzak, Muhammad Sher, Abid Ali Minhas, Syed Afaq

Husain, “Collaborative Image Compression in Wireless Sensor Networks”.

International Journal Computational Cognition. Vol. 8, Number 1, pp 24-29.

(HEC Approved)

17. Muhammad Imran Razzak, Syed Afaq Hussain, Abid Ali Minhas “Energy

Efficient Image Compression in Wireless Sensor Networks”. International

Journal of Recent Trend in Engineering. Academy, Vol. 2, pp: 117-120.

(HEC Approved)

Page 218: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Ap

K

d

p

H

A

UotchbseOdonvrestprecoli

KC

pendix C

Muhammad Imr

Knowledge-B

doi:10.1016/j

p. 1-10

HMM anSc

1Muham

Email: imr

Abstract

Urdu script bther languaharacter recased languagegmentation

Online Urdu ata set consin the primarariables basesult for largtatistical feaatterns increduction in omplex dataigatures.

Keywords: FCharacter Rec

ran Razzak (36

Based Syste

j.knosys.201

nd Fuzzycript Bas

mmad Imran Ra

1Int

ran.mian@yaho

based languaages; makesognition appges incorpor

n free. This phandwrittenist of HMMry stroke shsed on languge variation atures are exreases the edata set size

a set. It provi

Fuzzy Logiccognition

6-FBAS/PHDC

em: Elsevier

10.06.007

y Logic: Ased Lang

azzak, 1Fareeha

ternational Isla

3LO

2Air Unive

oo.com,afaq.hu

ages charactes theses laproach for hrates numbepaper presen

n script usinM’s for each

ape at begiuage structu

in handwrixtracted for efficiency ae. The hybriided 87.6%

c, HMM, Hy

CS/F07) 20

r, (Impact F

A Hybridguages Ch

a Anwar 2S.A.H

mic University

ORIA-CNRS, F

rsity, Islamaba

[email protected]

er recognitioanguages mhandwritten r of overheants a segmeg hybrid clastroke is furnning and e

ure are used tten strokesthe base strnd decreaseid HMM-Fuand 74.1 for

ybrid Model,

00 

Factor 1.308

d Approaharacter

Husain, 3Abde

y, Islamabad, P

France 2

ad, Pakistan

du.pk, ,a.belaid

on has somemore compli

Urdu both ad and very ntation free assifier, HMrther classifiending using

to model f. Twenty sixrokes. The e in compuuzzy techniqr Nasta’liq a

, Segmentati

8)

ach for Or Recogni

el Belaid, 1Muh

Pakistan.

[email protected], m.sh

e technical isicated. SegmNasta’liq anless accuratapproach fo

MM and Fuzzied into 62 sg fuzzy rule.features and x time variafuzzy classi

utational comque is efficieand Nasakh r

ion Free, On

Journal Pap

Online Urition

hammad Sher

[email protected]

ssues not exmentation bnd Nasakh ste as comparfor recognitiozy logic. Trsub pattern b. Fuzzy lingu

provide suiant structuraification intomplexity duent for largerespectively

nline Handw

per

rdu

k

xist in based script red to on of ained based uistic itable

al and o sub ue to e and 1800

writing

Page 219: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 201  

Expert System: A Journal of Knowledge Engineering ( Impact Factor 1.213)

Accepted

Biologically Inspired Multilayered Urdu Word Recognition: A Simultaneous Segmentation Based Fuzzy Expert System

1Muhammad Imran Razzak,1Fareeha Anwar,2Syed Afaq Hussain, , 1Muhammad Sher

1International Islamic University, Pakistan

3Air University, Islamabad, Pakistan

Abstract

Character recognition is an important offshoot of pattern recognition problems that imitate the human reading capabilities in machine. This task becomes complex and demanding if it involves Arabic script based languages. Pattern recognition applications have taken vital inspirations from the field of Biology, whereas fuzzy logic has proved itself to be a powerful classifier to modal human reasoning mechanism and to recognize irregular and complex patterns. Although it may affect the reading speed and accuracy, yet, human visual perception is independent of translation, rotation and position of a character and it is difficult to create this capability in computer systems. This paper presents biologically inspired multilayered fuzzy rules based expert system for handwritten Arabic script based multilanguage character recognition i.e. Arabic script based languages character recognition inspired by human visual ventral stream. The proposed approach is tested on Nasta’liq writing style of Arabic script languages and provides 87.3% accuracy.

Keywords: Expert system, Urdu character recognition, fuzzy logics, Nasta'liq.

Page 220: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 202  

International Journal of Computer Mathematics (Impact Factor 0.478)

Accepted

Online Urdu Character Recognition Using HMM

1,3Muhammad Imran Razzak, 3Rabiah Yosaf , 2S.A.Hussain, 1Muhammad Sher

1Internatioanl Islamic University, Islamabad, Pakistan 2Air University, Islamabad, Pakistan

3CAIRO, University of Technology, Malaysia E-mail: [email protected] , [email protected] ,[email protected]@iiu.edu.pk

Abstract

Automatic recognition of cursive handwritten script remains a challenging problem even with the promising improvement in the classifier. Online Urdu character recognition is very challenging task due to its complex structure. Segmentation based approach of handwritten Urdu script recognition incorporates a considerable overhead and has extremely less accuracy as compared to other script. Presence of complimentary characters in Urdu language makes it more complicated. This paper introduces a ligature based approach using Hidden Markov Model for recognition of Urdu script. HMM database is divided into 54 subclasses based on shape of the ligature. The division into subclasses reduced the time complexity and increases the efficiency. Twenty six time variant features are extracted for the base strokes. The proposed system works for both handwritten Nasta’liq and Nasakh font of Urdu language and classification rate is 87.5% and 74% respectively on 1500 ligatures obtained from 15 trained users.

Keywords: HiddenMarkov Model, Ligature based character recognition, Online handwritten recognition, Urdu OCR.

Page 221: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 203  

International Journal of Physical Sciences (Impact Factor.0.557)

Accepted

Locally Baseline Detection for Online Urdu Script Based Languages Character Recognition

Muhammad Imran Razzak1*, Syed Afaq Husain2, Muhammad Sher1

1Department of Computer Science

International Islamic University, Islamabad, Pakistan

2Department of Computer Science

Air University, Islamabad, Pakistan

Abstract

Baseline detection is one of the most important step in character recognition and it has direct influence on recognition result. Due to the complexity of the Urdu scripts based languages, handwritten character recognition is very difficult task as compared to other languages. Baseline detection is one of the main issue and basic step of mostly preprocessing operations i.e. normalization, skewness, secondary strokes segmentation and also in feature extraction. This paper presents a novel method of baseline detection for cursive handwritten Urdu script. The proposed approach is divided into three steps: diacritical marks segmentation, primary baseline estimation and locally baseline estimation. The locally baseline extraction is estimated using the features extracted from ending shape of the words and additional clues form the primary base line. Due to structural difference between Nasta'liq and Naskh style, different rules are formed for baseline estimation.

Keywords: Baseline, Arabic, Nasta'liq, Naskh, Preprocessing, Character Recognition.

Page 222: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 204  

Information Journal (Impact Factor.0.09 )

Accepted

Handling Diacritical Marks for Online Urdu Script Based Languages Character Recognition using Fuzzy c-mean

Clustering and Relative Position

1Muhammad Imran Razzak, 2Syed Afaq Hussain, 1Muhammad Sher

1International Islamic University, Pakistan

[email protected],[email protected]

2Department of Computer Science

Air University, Islamabad

[email protected]

Abstract

Arabic script is used by more than 1/4th population of the world in the form of different languages like Arabic, Persian, Urdu, Sindhi, Pashto etc whereas each language has its own words meaning, writing rules and set of alphabets. On the other hand it is very difficult to deal with Arabic script based languages due its complex structure. These language are rich in diacritical marks associated with each character and it is one of the main issue due to variability, position, shape and association with different character. We present a novel technique to handle diacritical marks with respect to relative position and using fuzzy c-mean. The diacritical marks concerned character is estimated by combining the position information and fuzzy mapping on to the character. Experiment shows that the proposed technique preformed well to deal with diacritical marks.

Keywords: Diacritical Marks, Arabic, Urdu, Persian, Character Recognition, Relative Position

Page 223: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 205  

International Journal of Physical Science, ( Impact Factor 0.554)

Accepted

Ghost Character Recognition Theory and Arabic Script Based Languages Character Recognition

1,2Muhammad Imran Razzak, 3Syed Afaq Hussain, , 1Muhammad Sher

1International Islamic University, Pakistan

2CAIRO, University of Technology, Malaysia

3Air University, Pakistan

Abstract

Arabic script is used by more than 1/4th population of the world in the form of different languages like Arabic, Persian, Urdu, Sindhi, Pashto etc but each language have its own words meaning, writing rules and set of alphabets. The set of Urdu alphabets is a superset of the alphabets sets used by all other On the other hand Arabic script based languages. Arabic script based languages character recognition is one of the most difficult task due to complexities involved in this script not exist in any other script. This paper present a novel technique Ghost Character Recognition Theory that helps to develop a Multilanguage character recognition system for Arabic script based languages based on Ghost Character Theory. The main benefit of proposed approach is that it works well for all Arabic script based languages by concentrating ghost shapes and diacritical marks separately and developing dictionary for every language that helps in ligature and word formation. We built two level dictionaries for Arabic, Persian, Urdu, Sindhi and Pashto ligature and word formation and word level HMM is built for each word in the dictionary. Handling all Arabic script based languages has several issues as compared to system for specific languages and specific writing style i.e. Nastaliq or Naskh. The layered word formation is followed by form the valid ligatures first and these valid ligatures are combine to form valid word.

Keywords: Ghost Character Theory, Multilanguage Character Recognition, Arabic Script, Urdu, Persian.

Page 224: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 206  

International Journal of Innovative Computing, Information and Control

Accepted

Impact Factor ( 2.92)

Biologically Inspired Multilayered Arabic Script Based Languages Word Recognition

1Muhammad Imran Razzak,2Syed Afaq Hussain, , 1Muhammad Sher

1International Islamic University, Pakistan

3Air University, Islamabad, Pakistan

Abstract

This chapter presents biologically inspired multilayered fuzzy rules based expert system for handwritten Arabic script based multilanguage character recognition i.e. Arabic script based languages character recognition inspired by human visual ventral stream. Using the human visual concept, the diacritical marks are separated from the ghost character and treated separately. Finally the diacritical marks are mapped on to the primary ligature. This proposed technique also helps to develop multilanguage character recognition system for all Arabic script based languages. This happy relation of fuzzy logics with biological inspired processing for word recognition is an ideal way to deal with complex handwritten patterns. The presented multilayered bio-inspired approach recognizes the ligature by extracting the features and combining them to find new premises in bottom up fashion.

Keywords: Expert system, Urdu character recognition, fuzzy logics, Nasta'liq.

Page 225: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 207  

International Journal of Innovative Computing, Information and Control

(Impact Factor 2.92) (Accepted)

Preprocessing for Online Arabic Script Based Languages Character Recognition

1,2Muhammad Imran Razzak, 3Syed Afaq Hussain, 1Muhammad Sher

1International Islamic University, Pakistan

3Air University, Pakistan

Email: [email protected], [email protected], [email protected]

Abstract

The basic aim of this paper is to consider issue of preprocessing steps for handwritten online character recognition. Urdu online handwriting recognition is a very difficult task due to complex language structure. Pre-processing of the raw input strokes is crucial part for the success of character recognition system. This paper describes the preprocessing steps based on fuzzy logics for online character recognition by considering the input strokes from both online and offline side to reduce the variation by normalizing it to increase the efficiency of the recognition system. The proposed technique is also the necessary step towards character recognition, person identification, personality determination where input data is processed from all perspectives.

Keywords: Preprocessing, Baseline, slant correction, character recognition, diacritical marks, smoothing, Urdu, Nasta'liq.

Page 226: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 208  

International Journal of Research Trend in Engineering

Vol. 2, No. 3, 2009

Multi-font Numerals Recognition for Urdu Script based Languages

Muhammad Imran Razzak1, S.A.Hussain2, 3A. Belaid and Muhammad Sher1

1 International Islamic University, Islamabad, Pakistan

Email: {[email protected], [email protected]} 2Air University, Islamabad, Pakistan.

Abstract

Handwritten character recognition of Urdu script based languages is one of the most difficult task due to complexities of the script. Urdu script based languages has not received much attestation even this script is used more than 1/6th of the population. The complexities in the script makes more complicated the recognition process. The problem in handwritten numeral recognition is the shape similarity between handwritten numerals and dual style for Urdu. This paper presents a fuzzy rule base, HMM and Hybrid approaches for the recognition of numerals both Urdu and Arabic in unconstrained environment from both online and offline domain for online input. Basically offline domain is used for preprocessing i.e normalization, slant normalization. The proposed system is tested and provides accuracy of 97.1% .

Index Terms—Numerals Recognition, Online Urdu Numerals, Handwriting, Urdu

Page 227: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 209  

International Journal of Innovative Computing, Information and Control

Accepted

Impact Factor ( 2.92)

Multimodal Biometric Recognition Based on Fusion of Low Resolution Face and Finger Veins

1,2Muhammad Imran Razzak, 1Muhammad Khurram, 3Rubiyah Yousf, 1Khaled Alghthbar

1 Center of Excellence in Information Assurance (CoEIA), King Saud University, Kingdom of Saudi Arabia

2International Islamic University, Islamabad, Pakistan

3Center of Artificial Intelligence and Robotics, University of Technology, Malaysia

[email protected], [email protected]

Abstract

Multimodal biometric systems utilize multiple biometric sources in order to increase robustness as compared to single biometric system. Most of the biometric systems in real are single or multimodal authentication system. This paper presents an efficient multimodal low resolution face and finger veins biometric recognition system based on class specific liner discriminant to client specific discriminant analysis and finger veins fusion at score level. Simulation results shows that proposed multimodal recognition system is very efficient to reduce the FAR and increase GAR but it is more computational complex due to processing involved in layered computation of LDA and CSLDA at runtime.

Keywords: Multimodal biometric system, face, finger veins, CSLDA, fuzzy fusion.

Page 228: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 210  

Wireless Personal Communication, Springer (Impact Factor.0.286)

Accepted

Distributed Face Recognition in Wireless Sensor Network

Muhammad Imran Razzak1, 3Muhammad Sher, Muhammad Khurram Khan1, Khaled Alghathbar1,2

1 Center of Excellence in Information Assurance (CoEIA), King Saud University, Kingdom of Saudi Arabia

2 Information Systems Department, College of Computer and Information Sciences, King Saud University, Kingdom of Saudi Arabia

3International Islamic University, Islamabad, Pakistan/

[email protected], [email protected]

Abstract

Face recognition enhances the security through wireless sensor network and it is a challenging task due to constrains involved in wireless sensor network. Image processing and image communication in wireless sensor network reduces the life time of network due to the heavy processing and communication. This paper presents a collaborative face recognition system in wireless sensor network. The layered linear discriminant analysis is re-engineered to implement on wireless sensor network by efficiently allocating the network resources. Distributed face recognition not only help to reduce the communication overload but it also increase the node life time by distributing the work load on the nodes. The simulation shows that the proposed technique provide significant gain in network life time.

Keywords: Wireless sensor network, face recognition, distributed, fusion, subspace

Page 229: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 211  

International Journal of Innovative Computing, Information and Control 

(Impact Factor 2.92)

(Accepted)

Energy Efficient Distributed Face Recognition in Wireless Sensor Network

Muhammad Imran Razzak1,3, Basem. A. Elmogy1, Muhammad Khurram1, Khaled Alghathbar1,2

1 Center of Excellence in Information Assurance (CoEIA), King Saud University, Kingdom of Saudi Arabia

2 Information Systems Department, College of Computer and Information Sciences, King Saud University, Kingdom of Saudi Arabia

3International Islamic University, Islamabad, Pakistan

[email protected], [email protected]

Abstract

Face recognition enhances the security through wireless sensor network and it is a challenging task due to constrains involved in wireless sensor network. Image processing and image communication in wireless sensor network reduces the life time of network due to the heavy processing and communication. This paper presents a collaborative face recognition system in wireless sensor network. The layered linear discriminant analysis is re-engineered to implement on wireless sensor network by efficiently allocating the network resources. Distributed face recognition not only help to reduce the communication overload but it also increase the node life time by distributing the work load on the nodes. The simulation shows that the proposed technique provide significant gain in network life time.

Keywords: Wireless sensor network, face recognition, distributed, fusion, subspace

Page 230: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 212  

Scientific Review and Easy ( Impact Factor 0.34)

Multimodal Face and Finger Veins Biometric Authentication 1,2Muhammad Imran Razzak, 1Rubiyah Yusaf , 1Murzaki Khalid

1Center of Artificial Intelligence and Robotics, University of Technology, Malaysia

2International Islamic University, Islamabad, Pakistan

[email protected], [email protected]

Abstract

Due to the increase in security requirements, biometric systems have been commonly utilized in many recognition applications. Multimodal has great demands to overcome the issue involved in single trait system and it becomes one of the most important research area of pattern recognition. We present multimodal face and finger veins biometric verification system to improve the performance. We presented multilevel score fusion of face and finger veins to provide better accuracy. Simulation results shows that proposed multimodal recognition system is very efficient to reduce the false rejection rate.

Keywords: Multimodal biometric system, face, finger veins, CSLDA, fuzzy

fusion

Page 231: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 213  

Przeglad Elektrotechniczny(Impact Factor.0.196)

CSLDA and LDA Fusion based Face Recognition

1,2Muhammad Imran Razzak, 1Khalid Alghathbar, 1Rubiyah Yousaf, 1MuhammadKhuram,

1CoEIA, King Saud University Saudi Arab

2CAIRO, University of Technology, Malaysia.

[email protected], [email protected], [email protected]

Abstract

Face recognition has great demands and become one of the most important research area of pattern recognition but there are several issues involved in it. Unsupervised statistical methods i.e. PCA, LDA, ICA are the most popular algorithms in face recognition that finds the set of basis images and represents faces as linear combination of those images. This paper presents a novel layered face recognition method based on CSLDA and LDA. The basic aim is to decrease FAR by reducing the face dataset to very small size through layered linear discriminant analysis. Although the computational complexity at the time of recognition is much higher than conventional PCA and LDA because weights are computed for small subspace at time of recognition but it provide a good results especially for large dataset. CSLDA of LDA is insensitive to large dataset and also small sample size and it provided 84% accuracy on Banca face database. The proposed approach is also applicable on other applications and recognition methods i.e. PCA, KDA, DLDA etc.

Keywords: Subspace, LDA, Fuzzy Rules, Face Recognition, Small Sample Size, SSS.

Page 232: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 214  

ICIC Express Letter: A International Journal of Research and Surveys

Vol. 4, No. 2, 2010

Rule Based Online Urdu Character Recognition

Muhammad Imran Razzak1, 2, Rubiyah Yusaf2 , Syed Afaq Husain3 and Muhammad Sher1

1International Islamic University, Pakistan

[email protected] , [email protected]

2CAIRO, University of Technology, Malaysia

[email protected]

3Air University, Pakistan

[email protected]

Abstract

Online Characters Recognition is one of the most active fields of research due to the natural way of input. Even if Urdu script based languages are used by at least 1/6th people of the whole population, while this script has not received enough interests by the researcher as compared to the Latin and Chinese script. The cursive nature of the Urdu characters makes it more difficult to attain high accuracy in handwritten character recognition. This paper introduces a rule based technique that provides solution for recognition of Urdu script by concentrating on the feature extraction phase. These features are input to the rules used for the ligature formation

Keywords: Urdu character recognition, Rule based system, Online character recognition.

Page 233: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 215  

International Journal of Recent Trends in Engineering,

Vol. 2, No. 1, 2009

Energy Efficient Image Compression in Sensor Networks 1Muhammad Imran Razzak, 2Abid Ali Minhas, 1Muhammad Sher

1Department of Computer Science, International Islamic University,Islamabad, Pakistan

2Bahria University, Islamabad, Pakistan.

.Email: [email protected], [email protected] , [email protected]

Abstract

Sensor networks are mostly battery powered due to which their lifetime is limited. In camera equipped sensor nodes, due to battery and processing power constraints, the life time of sensor network is decreased quickly when image is processed and is transferred to the destination. Image compression not only helps to reduce the communication latency in a sensor network but also gives energy efficiency. In this paper, we present a novel technique, Image Subtraction Method with Quantization of image (ISMQ). We have shown that ISMQ improves the energy efficiency of each node of the sensor networks consequently the lifetime of the sensor network is increased.

Keyword: Sensor network, image compression, energy efficiency, lifetime of network

Page 234: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix C Journal Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 216  

International Journal of Computational Cognition,

Vol. 8, NO. 1, March 2010.

Collaborative Image Compression in Wireless Sensor Networks

1Muhammad Imran Razzak,2S.A.Hussain , 3Abid Ali Minhas , 1Muhammad Sher

1International Islamic University, Islamabad, Pakistan

3Air University, Islamabad.

3Bahria University, Islamabad.

Email: [email protected], [email protected], [email protected]@iiu.edu.pk

Abstract Life time of wireless sensor networks is limited due to battery constraint. In camera equipped sensor nodes, due to battery and processing power constraints, the life time of sensor network is decreased quickly when image is processed and is transferred to the destination. Image compression not only helps to reduce the communication latency in a sensor network but also save the life time of the network. In this paper, a novel technique is presented for collaborative image transmission in wireless sensor networks to avoid the extra energy usage during redundant data transmission. First a shape matching method to coarsely register image is applied by sharing shape context to avoid communication overhead. Image is divided into sub regions based on the gray scale value and quantization is performed on sub regions. This load is shared on the overlapping camera node.

Keywords: Image Compression, Sensor Network, Node Life Time, Battery Optimization.

Page 235: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix D Conference Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 217  

APPENDIX D

CONFERENCE PAPERS

1 Muhammad Imran Razzak, Syed Afaq Hussain, Muhammad Sher, Numeral

Recognition for Urdu Script Based Languages in Unconstrained Environment,

International Conference on Emerging Technologies, Islamabad, Pakistan.

2 Muhammad Imran Razzak, Muhammad Sher, Afaq Hussain Syed,

“Combining Offline and Online Preprocessing for Online Urdu Character

Recognition”. International Conference on Imaging Engineering, Hong Kong

18-20 March, 2009.

3 Muhammad Imran Razzak, Muhammad Khuram Khan, Khaled Alghathbar,

Rubiyah Yousaf “Face Recognition using Layered Linear Discriminant

Analysis and Small Subspace” International Conference on Computer and

Information Technology, UK, 2010.

4 Muhammad Imran Razzak, Muhammad Khuram Khan, Khaled Alghathbar,

“Bio-Inspired Hybrid Face Recognition System For Small Sample Size and

Page 236: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix D Conference Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 218  

Large Dataset” The Sixth International Conference on Intelligent Information

Hiding and Multimedia Signal Processing Germany, 2010.

5 Muhammad Imran Razzak, Muhammad Khuram Khan, Khaled Alghathbar,

“Contactless Biometrics in Wireless sensor network” International Conference

on Security Technologies,Indonesia, SecTech2010.

Page 237: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix D Conference Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 219  

International conference on Imaging Engineering, Hong Kong, 2009

Combining Offline and Online Preprocessing for Online Urdu Character Recognition

Muhammad Imran Razzak1 , Muhammad Sher2 , Syed Afaq Hussain3

1, 2 Department of Computer Science, International Islamic University.

3Department of Computer Science, Air University.

Email: ([email protected] , [email protected], [email protected] )

Abstract

Urdu online handwriting recognition is a very challenging task due to its cursive nature. Pre-processing of the raw input strokes is crucial part for the success of character recognition system. The findings from online data are not enough for recognition of Urdu due to the complexities of Urdu script. This paper describes the preprocessing steps for online character recognition. A novel technique is presented for preprocessing of Urdu online text in which both online and offline domain are used to remove the variations and to increase the efficiency of the recognition system for online input. The proposed technique is also the necessary step towards character recognition, person identification, personality determination where input data is processed from all perspectives.

Keywords: Preprocessing, Urdu Character Recognition, Online Urdu Character Recognition, Online Preprocessing.

Page 238: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix D Conference Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 220  

International Conference on Engineering and Technology 2010

Numeral Recognition for Urdu Script in Unconstrained Environment

Muhammad Imran Razzak ,S.A.Hussain, Muhammad Sher

International Islamic University, Islamabad, Pakistan

Air University, Islamabad, Pakistan

[email protected],[email protected],[email protected]

Abstract

Online character recognition of Urdu script based languages is one of the most difficult task due to cursive in nature. Urdu script based languages has not received much attestation even this script is used 1/6th of the population. The complexities in the script makes more complicated the recognition process. The problem in handwritten numeral recognition is the shape similarity between handwritten numerals. This paper presents a fuzzy rule base approach for the recognition of numerals both Urdu and Arabic in unconstrained environment. The proposed system is tested and provides accuracy of 96.3%.

Keywords-Numerals, Urdu, Arabic numerals, character recogniion, fuzzy logics.

Page 239: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix D Conference Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 221  

The sixth International Conference on Intelligent Information Hiding and

Multimedia Signal Processing

Bio-Inspired Hybrid Face Recognition System For Small Sample Size and Large Dataset

Muhammad Imran Razzak1,3, Muhammad Khurram Khan1, Khaled Alghathbar1,2

1 Center of Excellence in Information Assurance (CoEIA), King Saud University, Kingdom of Saudi Arabia

2 Information Systems Department, College of Computer and Information Sciences, King Saud University, Kingdom of Saudi Arabia

International Islamic University, Islamabad, Pakistan

[email protected], [email protected]

Abstract

Face recognition has a great demands in human authentication and it becomes one of the most intensive field of biometrics research areas. In this paper, we present a bio-inspired face recognition system based on linear discriminant analysis and external clue i.e. geometrical features. The use of external clue helps to identify the face among very close match and secondly it also helps in the creation of small data set. The proposed approach is insensitive to large dataset and small sample size (SSS) and it provides 94.5% accuracy on BANCA face database. Experimental and simulation results shows that the proposed scheme has encouraging results for a practical face recognition system. The computational complexity of proposed system is more than conventional LDA due to the computation of weights during recognition and in external clue but on the other it provides significant performance gain especially on similar face database.

Keywords-Face Recognition, Biometrics,GL- LDA, Bio-Inspired Face Recognition, SSS

Problems

Page 240: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix D Conference Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 222  

International Conference on Computer and Information Technology, UK.

Face Recognition using Layered Linear Discriminant Analysis and Small Subspace

Muhammad Imran Razzak1,3, Muhammad Khurram Khan1, Khaled Alghathbar1,2, Rubiyah Yousaf 3

1 Center of Excellence in Information Assurance (CoEIA), King Saud University, Kingdom of Saudi Arabia

2 Information Systems Department, College of Computer and Information Sciences, King Saud University, Kingdom of Saudi Arabia

3Center of Artificial Intelligence and Robotics, Universiti Teknologi Malaysia, Malaysia

[email protected], [email protected]

Abstract

Face recognition has great demands in human recognition and recently it becomes one of the most important research areas of biometrics. In this paper, we present a novel layered face recognition method based on Fisher’s linear discriminant analysis. The basic aim is to decrease FAR by reducing the face dataset to small size by applying layered linear discriminant analysis. Although, the computational complexity at the time of recognition is much higher than conventional PCA and LDA due to the weights computation for small subspace at the time of recognition, but on the other hand the layered LDA provides significant performance gain especially on similar face database. Layered LDA is insensitive to large dataset and also small sample size and it provides 93% accuracy on BANCA face database. Experimental and simulation results show that the proposed scheme has encouraging results for a practical face recognition system.

Keywords-Face Recognition, Biometrics, LDA, PCA, Layered

Page 241: ONLINE URDU CHARACTER RECOGNITION IN UNCONSTRAINED …

Apendix D Conference Paper

Muhammad Imran Razzak (36-FBAS/PHDCS/F07) 223  

International Conference on Security Technologies, Indonesia

CONTACTLESS BIOMETRICS IN WRELESS SENSOR NETWORK: A SURVEY

Muhammad Imran Razzak[1,3], Muhammad Khurram Khan1, Khaled Alghathbar[1,2]

1Center of Excellence in Information Assurance, King Saud University, KSA

[2] Information Systems Department, College of Computer and Information Sciences, King Saud University, KSA

[3] International Islamic University, Islamabad, Pakistan

Abstract. Security can be enhanced through wireless sensor network using contactless biometrics and it remains a challenging and demanding task due to several limitations of wireless sensor network. Network life time is very less if it involves image processing task due to heavy energy required for image processing and image communication. Contact less biometrics such as face recognition is most suitable and applicable for wireless sensor network. Distributed face recognition in WSN not only help to reduce the communication overload but it also increase the node life time by distributing the work load on the nodes. This paper presents state-of-art of biometric in wireless sensor network.

Keywords: Biometrics, Face Recognition, Wireless Sensor Network, Contactless

Biometrics.