• No results found

Accuracy Evaluation of Arabic Optical Character Recognition Voting Technique: Experimental Study

N/A
N/A
Protected

Academic year: 2020

Share "Accuracy Evaluation of Arabic Optical Character Recognition Voting Technique: Experimental Study"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

127301-4848 IJECS-IJENS © February 2012 IJENS

Yusof A. Batawi and Osama A. Abulnaja

Abstract — In earlier work we have introduced a high accurate Arabic Optical Character Recognition (AOCR) technique. The proposed algorithm is based on the N-Version Programming (NVP) technique and AOCR software. The proposed technique is called Arabic Optical Character Recognition Voting (AOCRV) scheme.

This work studies the effect of the AOCRV technique on AOCR accuracy. The research evaluates four accuracy types: AccuracyALL, Accuracy~, Accuracy!, and Accuracy~!.

Key Words — Arabic Optical Character Recognition, N-Version Programming Technique, Arabic Optical Character Recognition Software Accuracy, Accuracy Evaluation.

1.INTRODUCTION

Optical Character Recognition (OCR) programs are used to transform the image of a scanned printed text into an editable electronic file. There are many commercially available OCR software. The accuracy of the English OCR has become very high, but unfortunately, Arabic OCR (AOCR) outputs accuracy are not satisfying [1, 2].

OCR contains the recognition for the printed text and the handwritten text. But to divide the two types of the character recognition researchers specify the OCR software for the printed text recognition. For the recognition of the handwritten text the software called Intelligent Character Recognition (ICR).

1.1. ISRI Voting Algorithm

In 1992, researchers at the Information Science Research Institute (ISRI) at the University of Nevada Las Vegas (UNLV) conducted an experiment to determine the accuracy of six commercially available Optical Character Recognition (OCR) devices. In this experiment other than the six OCR devices, the ISRI used a voting algorithm that used all of the six programs. The result of this experiment was that the ISRI voting algorithm has the most accurate result among the other devices [3].

Also, in 1994 the researchers at ISRI preformed another experiment of OCR accuracy with 12 vendors participated in this test. The result of this experiment was that the ISRI voting algorithm has the most accurate result among the other devices. Moreover, when the accuracy of the results obtained from the OCR programs is high the voting system performed better. This is due to the fact that if the accuracy of the results

obtained from the OCR programs is low, it will be difficult to get an agreement among the outputs of the participated OCR programs which is hard for a voting system to resolve [4].

Furthermore, in 1996, the researchers at ISRI performed another experiment of OCR accuracy with five vendors participated and the ISRI voting machine. The researchers study the character accuracy between the vendors, the study included the effect of resolution and page quality. The highest performance was by ISRI voting algorithm for all selected samples except for magazine sample it came the second [5].

1.2. Arabic Optical Character Recognition (AOCR) Software

Arabic characters contains 28 characters, each character have a different shape according to its position. Most Arabic characters have four shapes, except some of them have two shapes. This issue extends the character shape from 28 to 100. The difference of writing the character happens when the character been isolated, at the beginning, in the middle and at the ending. Arabic is a cursive language. This is one of the differences between Arabic character and Latin character. Basically this is the main problem for recognition the Arabic characters. Other differences between the Arabic character and the Latin character is that the Arabic characters are written from right to left unlike the Latin character which is written from left to right. Another problem in recognizing the Arabic character is the diacritics which are special samples that change the meaning of a word. Also, in Arabic printed text we can use wrapping between two characters. Those are the main reasons for the difficulties for the Arabic Optical Character Recognition development [6].

There have been several studies on Arabic Optical Character Recognition (AOCR) [7] – [12]. Due to the difficulty in dealing with the Arabic characters there are just few AOCR software commercially available. The most common AOCR software are:

1. Rediris Ver.11 Middle East: supports more than 120 languages including the Arabic language. It can convert PDF files into editable text. Also, it can recognize barcodes and capture hand printed notes. The company claims that this software has the most accuracy in recognition the Arabic characters [13]. 2. Sakher Gold V.8: supports the main Arabic based

characters languages: Arabic, Farsi, Urdu, Jawi, Pashto,

Accuracy Evaluation of Arabic Optical

Character Recognition Voting Technique:

(2)

127301-4848 IJECS-IJENS © February 2012 IJENS as well as eighteen other international languages

(English, Czech, Danish, Dutch, Finnish, French, German, Greek, Hungarian, Indonesian, Italian, Norwegian, Polish, Portuguese, Russian, Spanish, Swedish, and Turkish). It combines two main technologies: Omni Technology, which depends on highly advanced research in artificial intelligence, and Training Technology, which increases the accuracy of character recognition [14].

3. Vajeh Shenas 1st Edition: is a multi-language optical character recognition that supports Farsi, Arabic, English, Pashtu, Urdu, French and 15 other languages. The company claims that the accuracy for Persian /Arabic language is more than 95% [15].

4. VERUS™ Professional: the company claims that this program is the most accurate Middle Eastern language optical character recognition in the world. It recognizes Arabic, Farsi (Persian), Dari, Pashto, English and French. It automatically detects and cleans degraded and skewed documents, automatically identifies page primary language, and recognizes page fonts without manual intervention [16].

1.3. N-Version Programming (NVP) Approach

One of the most widely used software fault-tolerant technique is the N-Version Programming (NVP) technique. In the N-Version Programming (NVP) technique every program or a program version is made up of N independently (diversely) designed program versions (V1, V2, …, VN/2+1, …, VN-1, VN) performing the same task and a voter (decision

function) which generates the program output by taking the output with the majority votes. A program output is considered reliable if at least (N/2 + 1) versions agree on the same output [17, 18], see Figure 1.

Fig. 1. NVP Technique

1.4. Arabic Optical Character Recognition Voting (AOCRV) Technique

In earlier work we have introduced a high accurate Arabic

Optical Character Recognition (AOCR) technique. The proposed algorithm is based on the N-Version Programming (NVP) technique and AOCR software. The proposed technique is called Arabic Optical Character Recognition Voting (AOCRV) scheme.

The AOCRV technique works as follows. The AOCRV technique contains N independently (diversely) designed AOCR programs (S1, S2, …, SN/2+1, …, SN-1, SN) processing

the same image and a voter (decision function) which generates the output by taking the output with the majority votes. The AOCRV technique output is considered reliable if at least (N/2 + 1) AOCR software agree on the same output [19, 20], see Figure 2.

Fig. 2. AOCRV Technique

2. ACCURACY TYPES

In our experiment three types of errors are considered: 1. Missing Character Error: occurs when software could

not recognize a character and no character is generated. 2. Added Character Error: occurs when software does not recognize a character correctly and generates another character instead of the original one.

3. Marked Character Error: occurs when software could not recognize a character and generates a mark character. The marked characters are used in all Optical Character Recognition (OCR) software when it could not recognize a character. However, OCR software use different marked character to indicate that error. For example, Rediris Ver.11 Middle East version uses the tilde mark (~), and Sakher Gold V.8 and Vajeh Shenas 1st Edition use the exclamation mark (!).

From above we obtain the following:

) 1 ( sin

Characters Marked

of

Number Total

Characters Added

of Number

Total Characters g

Mis of Number Total

Error

+

+ =

Thus; Voted

Output V1

V2

VN VN-1 Input

Voter VN/2+1

OutN/2+1 Out2

Voted

Output S1

S2

SN SN-1 Input

Voter S

N/2+1

(3)

127301-4848 IJECS-IJENS © February 2012 IJENS ) 2 ( 100 × − = Characters of Number Total Error Characters of Number Total Accuracy

Also, in our experiment four types of accuracy are considered: AccuracyALL, Accuracy~, Accuracy!, and Accuracy~!. In the following the four types are explained.

2.1. AccuracyALL

In this type of accuracy, generation of tilde mark or exclamation mark for unrecognized character is considered an error. In other words, total number of marked characters is calculated as follows.

) 3 ( Marks n Exclamatio of Number Total Marks Tilde of Number Total Characters Marked of Number Total + =

From eq.(1) and eq.(3), we get:

) 4 ( sin Marks n Exclamatio of Number Total Marks Tilde of Number Total Characters Added of Number Total Characters g Mis of Number Total ErrorALL + + + =

From eq.(2) and eq.(4), we get:

) 5 ( 100 × − = Characters of Number Total Error Characters of Number Total

AccuracyALL ALL

2.2. Accuracy~

In this type of accuracy, generation of exclamation mark for unrecognized character is considered an error. On the other hand, generation of tilde mark for unrecognized character is considered correct character. In other words, total number of marked characters is calculated as follows.

) 6 ( Marks n Exclamatio of Number Total Characters Marked of Number Total =

From eq.(1) and eq.(6), we get:

) 7 ( sin ~ Marks n Exclamatio of Number Total Characters Added of Number Total Characters g Mis of Number Total Error + + =

From eq.(2) and eq.(7), we get:

) 8 ( 100 ~ ~ × − = Characters of Number Total Error Characters of Number Total Accuracy

2.3. Accuracy!

In this type of accuracy, generation of tilde mark for unrecognized character is considered an error. On the other hand, generation of exclamation mark for unrecognized character is considered correct character. In other words, total number of marked characters is calculated as follows.

) 9 ( Marks Tilde of Number Total Characters Marked of Number Total =

From eq.(1) and eq.(9), we get:

) 10 ( sin ! Marks Tilde of Number Total Characters Added of Number Total Characters g Mis of Number Total Error + + =

From eq.(2) and eq.(10), we get:

) 11 ( 100 ! ! × − = Characters of Number Total Error Characters of Number Total Accuracy

2.4. Accuracy~!

In this type of accuracy, generation of tilde mark or exclamation mark for unrecognized character is considered correct character. In other words, total number of marked characters always equal to zero.

From eq.(1), we get:

) 12 ( sin ~! Characters Added of Number Total Characters g Mis of Number Total

Error = +

From eq.(2) and eq.(12), we get:

) 13 ( 100 ~! ~! × − = Characters of Number Total Error Characters of Number Total Accuracy

3. EXPERIMENT AND RESULTS

Since we could not find an Arabic scanned images database, in our experiment we selected 35 printed text samples from newspaper and magazines. The selected samples contain 20829 characters. All samples are scanned and converted to images at resolution of 300-dot peer inch (dpi) using genies scanner. Three Arabic Optical Character Recognition (AOCR) software are selected (i.e., N = 3): Rediris Ver.11 Middle East, Sakher Gold V.8, and Vajeh Shenas 1st Edition. The outputs of the three selected AOCR software are passed to the Arabic Optical Character Recognition Voting (AOCRV) technique voter, which generates the output with the majority votes. The voting is done for each character generated by the AOCR software. If there is a character with a majority, the character is released; otherwise, a marked character (~) is produced.

Tables 1, 2, 3, and 4 show the ranking of the selected three AOCR software and the AOCRV technique (based on the generated outputs by the selected AOCR software for the selected 35 samples) for the AccuracyALL, Accuracy~, Accuracy~!, and Accuracy!, respectively. From these tables we

can see that the number of times the AOCRV technique ranked the 1st highest accuracy always the highest.

(4)

127301-4848 IJECS-IJENS © February 2012 IJENS these tables we can see that the AOCRV technique

outperforms the selected AOCR software.

4.CONCLUSION

In this work we studied the effect of the Arabic Optical Character Recognition Voting (AOCRV) technique on the Arabic Optical Character Recognition (AOCR) accuracy. The AOCRV technique is based on the N-Version Programming (NVP) technique and AOCR software.

In our experiment we selected three AOCR software: Rediris Ver.11 Middle East, Sakher Gold V.8, and Vajeh Shenas 1st Edition. Furthermore, we evaluated four accuracy types: AccuracyALL, Accuracy~, Accuracy!, and Accuracy~!.

Our study showed that under the conditions experimented here, the accuracy of the AOCRV technique outperforms the selected AOCR software.

The work accomplished for this research will serve as the foundation for future research work including:

• Study the effect of taking the vote word by word, instead of character by character, on AOCR technique accuracy.

• Study the effect of adding a dictionary to the AOCRV technique on accuracy.

• Study the effect of the type and the size of letter fonts on AOCR software accuracy, and hence on the AOCRV technique accuracy.

REFERENCES

[1] A. Al-Shoshan, “Arabic OCR Based on Image Invariants,” in Proceeding of IEEE International Conference on Geometric Modeling and Imaging-New Trends, London, U. K., pp. 150-154, 2006.

[2] M. Shirali-Shahreza, and S. Shirali-Shahreza, “Persian/Arabic Text Font Estimation using Dots,” in Proceeding of IEEE International

Symposium on Signal Processing and Information Technology,

Vancouver, Canada, pp. 420-425, 2006.

[3] S. Rice, J. Kanai, and T. Nartker, A Report on the Accuracy of OCR

Devices, Information Science Research Institute, University of Nevada,

1992.

[4] S. Rice, J. Kanai, and T. Nartker, The Third Annual Test of OCR

Accuracy, Information Science Research Institute, University of

Nevada, 1994.

[5] S. Rice, F. Jenkins, and T. Nartker, The Fifth Annual Test of OCR

Accuracy, Information Science Research Institute, University of

Nevada, 1996.

[6] K. Jambi, “Arabic Character Recognition: Many Approaches and One Decade,” Arabian Journal for Science and Engineering, Vol 16 (4B), pp. 501-509, 1991.

[7] S. Mori, C. Suen, and K. Yamamoto, “Historical Review of OCR Research and Development,” in Proceeding of IEEE, Vol 80 (7), pp. 1029-1058, 1992.

[8] V. Govindan, and A. Shivaprasad, “Character recognition - A Review,”

Pattern Recognition Review Papers, Vol 23 (7), pp. 671-683, 1990.

[9] A. Nouh, A. Sultan, and R. Tulba, “An Approach for Arabic Character Recognition,” Journal of Engineering and Science, King Saud University, 1980.

[10] F. El-Khaly, and M. Sid-Ahmed, “Machine Recognition of Optically Captured Machine Printed Arabic Text,” Pattern Recognition Review

Papers, Vol 23 (11), pp. 1207-1214, 1990.

[11] A. Cheung, M. Bennamoun, and N. Bergmann, “Implementation of a Statistical Based Arabic Character Recognition System,” in Proceeding

of IEEE Annual Conference on Speech and Image Technologies for Computing and Telecommunications, Brisbane, Australia, 1997.

[12] I. Albidewi, “The Use of Object-Oriented Approach for Arabic Documents Recognition,” International Journal of Computer Science

and Network Security, Vol 8 (4), pp. 341, 2008.

[13] http://www.irislink.com/c2-669-189/Readiris-Pro-11-Middle-East.aspx.

[14] http://www.sakhr.com/products/OCR/Default.aspx?sec=Product&item

=OCR.

[15] http://www.istgah.com/fireview/kid_131/page_108/170821.html.

[16] http://www.novodynamics.com/verus_pro.htm.

[17] A. Avižienis, “Fault Tolerance and Fault Intolerance: Complementary Approaches to Reliable Computing,” in Proceedings of International

Conference on Reliable Software, Los Angeles, CA, pp. 458-464, 1975.

[18] A. Avižienis, and L. Chen, “On the Implementation of N-Version Programming for Software Fault Tolerance During Execution,” in

Proceedings of IEEE-CS International Conference on Computer Software and Applications, Chicago, IL, pp. 149-155, 1977.

[19] O. Abulnaja, and Y. Batawi, “Improving Arabic Optical Character Recognition Accuracy Using N-Version Programming Technique,” will appear in Canadian Journal on Image Processing and Computer

Vision.

[20] Y. Batawi, “Evaluating the Effect of N-Version Programming

Technique on Arabic OCR Accuracy: Experimental Study”, Master

Thesis, King Abdulaziz University, October 2011.

Software

1st highest accuracy

2nd highest accuracy

3rd highest accuracy

4th highest accuracy

AOCRV 26 8 1 0

Sakher

Gold V.8 10 18 7 0

Rediris Ver.11 Middle East

2 3 14 16

Vajeh Shenas 1st Edition

0 3 14 18

Software 1

st highest accuracy

2nd highest accuracy

3rd highest accuracy

4th highest accuracy

AOCRV 34 1 0 0

Sakher Gold

V.8 2 25 8 0

Rediris Ver.11 Middle East

1 4 15 15

Vajeh Shenas 1st

Edition

0 3 13 19

TABLE 1

Software AccuracyALL Ranking

TABLE 2

(5)

127301-4848 IJECS-IJENS © February 2012 IJENS BIOGRAPHIES

Yusof A. Batawi received the BS degree in computer science and the MS degree in computer science from King Abdulaziz University, Jeddah, Saudi Arabia, in 2005 and 2011, respectively. Currently he is the head of the Academic Affairs Department in Faculty of Computing and Information Technology at King Abdulaziz University. His research interests are Fault Tolerance and Software Engineering.

Osama A. Abulnaja received the BS degree in

computer science from King Abdulaziz University, Jeddah, Saudi Arabia, in 1986. He received the MS degree in computer science and the PhD degree in engineering (computer science) from University of Wisconsin-Milwaukee, Milwaukee, Wisconsin, USA, in 1990 and 1996, respectively. Currently, he is a professor of computer science at King Abdulaziz University. His research interests are Fault Tolerance, Systems Programming, Software Engineering, Parallel and Distributed Processing, and Systems Performance.

Software 1 st

highest accuracy

2nd highest accuracy

3rd highest accuracy

4th highest accuracy

AOCRV 24 10 1 0

Sakher

Gold V.8 13 17 4 1

Vajeh Shenas 1st

Edition

2 2 22 9

Rediris Ver.11 Middle East

2 1 10 22

Software

1st highest accuracy

2nd highest accuracy

3rd highest accuracy

4th highest accuracy

AOCRV 34 1 0 0

Sakher

Gold V.8 2 27 5 1

Rediris Ver.11 Middle East

1 2 10 22

Vajeh Shenas 1st

Edition

0 4 22 9

Software Error# Accuracy

AOCRV 460 97.788

Sakher Gold V.8 575 97.235

Vajeh Shenas 1st Edition 1017 95.1096

Rediris Ver.11 Middle East 1072 94.8452

Software Error# ~ Mark Accuracy

AOCRV 310 150 98.5093

Sakher Gold V.8 575 0 97.235

Vajeh Shenas 1st Edition 1017 0 95.1096

Rediris Ver.11Middle East 1043 29 94.9846

Software Error# ! Mark Accuracy

AOCRV 451 9 97.8347

Sakher Gold V.8 532 43 97.4418

Vajeh Shenas 1st Edition 841 176 95.956

Rediris Ver.11Middle East 1072 0 94.8533

Software Error# ~/! Mark Accuracy

AOCRV 301 159 98.5526

Sakher Gold V.8 532 43 97.4418

Vajeh Shenas 1st Edition 841 176 95.956

Rediris Ver.11Middle East 1043 29 94.9846

TABLE 3

Software Accuracy! Ranking

TABLE 6 Software Accuracy~

TABLE 7 Software Accuracy!

TABLE 8 Software Accuracy~!

TABLE 4

Software Accuracy~! Ranking

Figure

TABLE 1 Accuracy
TABLE 3 Accuracy Ranking

References

Related documents