# Managing and Retrieving Bilingual Documents Using Artificial Intelligence-Based Ontological Framework

Authors: Abdulaziz Fahad Alothman; Abdul Rahaman Wahab Sait
Journal: Computational Intelligence and Neuroscience
 (2022)

---

## Abstract

In recent times, artificial intelligence (AI) methods have been applied in document and content management to make decisions and improve the organization’s functionalities. However, the lack of semantics and restricted metadata hinders the current document management technique from achieving a better outcome. E-Government activities demand a sophisticated approach to handle a large corpus of data and produce valuable insights. There is a lack of methods to manage and retrieve bilingual (Arabic and English) documents. Therefore, the study aims to develop an ontology-based AI framework for managing documents. A testbed is employed to simulate the existing and proposed framework for the performance evaluation. Initially, a data extraction methodology is utilized to extract Arabic and English content from 77 documents. Researchers developed a bilingual dictionary to teach the proposed information retrieval technique. A classifier based on the Naïve Bayes approach is designed to identify the documents’ relations. Finally, a ranking approach based on link analysis is used for ranking the documents according to the users’ queries. The benchmark evaluation metrics are applied to measure the performance of the proposed ontological framework. The findings suggest that the proposed framework offers supreme results and outperforms the existing framework.


---

## Body

## 1. Introduction

The recent development in the information retrieval (IR) techniques facilitates effective document management (DM) functionalities in organizations. The process of retrieving relevant information by passing a query in a search engine is called IR [1–5]. A query is a text in a natural language to extract a relevant document. For instance, a search engine can fetch approximately one million webpages for a user query. Organizations apply business intelligence (BI) tools to process a large amount of data and retrieve valuable information [6–11]. To compete effectively, organizations should analyze and leverage a wide range of data, information, and expertise in order to make effective decisions. Decision Support Systems (DSS) are interactive computer-based systems designed to assist decision-makers in identifying and solving problems, completing decision process tasks, and making decisions [12–19]. These systems are becoming increasingly popular among managers due to this trend. However, the shortcomings include unstructured data and complex queries reducing IR technologies’ performance. In other words, users failed to retrieve relevant documents for their queries [20–25]. Moreover, the absence of bilingual (English and Arabic) IR systems causes difficulties for organizations in the Middle East countries.On the one hand, there is an availability of a wide range of IR systems. On the other hand, there is a lack of domain-specific ontologies or IR systems to serve an organization [26–30]. In the Kingdom of Saudi Arabia (KSA), most organizations offer a sophisticated application for employees and stakeholders to share the information and valuable documents. The internal communication between employees generates a larger amount of documents [31–35]. Organizations demand an artificial intelligence (AI) based system to generate knowledge from the documents [36–41].In the current environment, organizations store documents in Portable Document Format (PDF) form and their relevant metadata in a different storage location. The AI tools widely use the metadata for making decisions [42–47]. There are many techniques for retrieving a document using a query. Thus, organizations cannot access the document’s content without its metadata [48–51]. The KSA’s Vision 2030 motivates researchers to apply innovative techniques to the current functionalities of the organization. Therefore, developing an ontological framework for document management can support organizations in satisfying their stakeholders. In addition, the role of natural language processing (NLP) in the ontological framework enables individuals to interact with the system in their natural language [52–54].The objectives of the study are:(1)
Build a data extraction model for extracting text from Arabic and English PDF documents.(2)
Construct a name entity-relationship (NER) classifier for classifying the documents.(3)
Implement a ranking approach to retrieve relevant documents for a user query.The remaining part of the study is organized as follows: Section2 reports the features of existing literature and research gaps. Section 3 outlines the research methodology and Section 4 discusses the study’s findings. Finally, Section 5 concludes the study with its future direction.


## 2. Literature Review

DM is one of the critical processes in an organization. The communication between the users of the internal and the external units of an organization may generate a document [1–5]. Organizations follow the government and the international archival policies to store and manage their documents [6–9]. The existing studies show many techniques and frameworks for managing documents and IR [9–15].Zaman et al. proposed an ontological framework for retrieving scientific sources [1]. They employed fuzzy rule base and word sense disambiguation for extracting information from multiple scientific documents. The experimental outcome suggests that the framework was less sensitive to the document file format modifications. However, there is limited information on the performance of the framework.Yao et al. developed an AI-based ontological model for predicting the side effects of medicines [2]. The model had certain entities such as value and relationships. The value and relationship are used to indicate the drug and its side effects. The AI model’s fuzzy and dynamically defined latent attributions can redefine vital records. The performance of the IR model is affected by the limitations, including the lack of negative data and the smaller dataset.Crimp and Trotman proposed a linguistic model using Roget’s and WordNet [3]. They employed an Attre search engine and evaluated the model using the mean average precision (MAP) metric. The outcome highlights the better performance of the linguistic model. However, the authors utilized a limited set of features from Roget’s and WordNet.Vocabulary mismatch is one of the limitations of the IR system. To overcome this limitation, query expansion (QE) techniques are developed. However, QE techniques are based on specialization and context relationships [4]. Raza et al. discussed that domain-specific ontologies are widely used in medicine, agriculture, and other scientific fields [4]. Multiple automated QE systems are proposed in IR [5]. Yunzhi et al. constructed an Arabic ontology based on the Protégé and SPARQL language to extract candidate expansion terms [6].Domain-independent ontologies serve as a valuable resource for multiple domains. Aggarwal and Paul extracted expansion concepts from DBPedia and Wikipedia ontologies using semantic analysis [7]. However, the shortcomings include ambiguous terms and a lack of unique ontological properties causes more complexities. Zingla et al. and Omar et al. proposed hybrid models for extracting expansion concepts from DBpedia and Wikipedia [8, 9]. They employed Microblog and TREC 2011 datasets for evaluating their ontological performance.The existing studies focus on the specific domains, and there are no studies on the DM and IR [10–15]. There is a lack of bilingual ontological framework for the organizations in the KSA. Most studies considered the NER classification of webpages as a primary objective rather than the ranking approach [16–21]. Particle Swarm Optimization (PSO) is used to enhance and train Hidden Markov Model (HMM) estimate approaches (PSO). PSO identifies the optimal response for a user query. For instance, the metadata of a document can be extracted using this approach [22–27]. A text extractor can be built using the AI technique for the automated extraction of key terms from a document [28–34]. An ontology-based dynamic information extraction framework identifies a wide range of document resources published in the scientific community and extracts the whole structural information [35–41]. The accuracy and scope of information extraction can be improved using an entity-relationship-based framework [42–47]. Few research works employed the term—frequency methodology for ranking the webpages [48–54]. Thus, there is a demand for a practical ontological framework for managing documents and retrieving information based on the user query. Furthermore, the recent ontological frameworks, including Gohar Zaman et al. (GOF) and Yuazhe Yao et al. (YOF), are employed to compare the performance of the proposed ontological framework (POF).


## 3. Research Methodology

In order to achieve the objective of the study, researchers construct a bilingual (Arabic and English) ontological framework for retrieving documents. Figure1 presents the proposed research framework of the proposed study. It covers four phases including data extraction, NER classification, ranking technique, and performance evaluation.Figure 1
Proposed research framework.The first phase outlines the data extraction process for extracting text from PDF documents. The NER classification using MNB is described in the second phase. The third phase highlights the ranking techniques to retrieve relevant documents. Lastly, the fourth phase evaluates the performance of the proposed ontological framework (POF).


### 3.1. Phase 1: Data Extraction

This phase transforms the PDF document into a text document. It supports the retrieval process to extract relevant documents. During communication, employees or stakeholders widely use PDF documents for sharing information. It is difficult to search a PDF document using a user query. Therefore, A PDFtoWord is developed in order to automate the process of converting a PDF document to a Word document. However, a PDF document may contain handwritten content which cannot be converted into a Word document. In other words, converting handwritten text into standard text is challenging. Figure2 shows the activities of phase 1. Initially, a document is converted to image format in order to extract the text. The extracted raw text is preprocessed and stored as a set of keywords and a word file. Phase 1 supports the proposed framework to search a document using a keyword. It overcomes the limitations of the searching document using metadata.Figure 2
Text extraction process.Thus, this study transforms the PDF document into an image, JPEG, or PNG format. The procedure of the data extraction process is as follows:Step 1: Input a PDF document.Step 2: Converting documents from a PDF form to JPEG or PNG format.Let PD be the PDF document, ID be an image format of the PDF document. Doc_To_Img is a function for converting the documents from PDF to image structure and hres is the attribute to make the image with high resolution (1100 × 900 pixels at 600 pixels per inch). Equation (1) shows the expression of converting the PDF document into image format.(1)ID=Doc_To_ImgPD⋅hres1100,900,600.Step 3: Designing a text extractor.A text extractor is designed using the AI-based Tessaract module that extracts the text from the image [55]. Nonetheless, the module is limited to the English Language. Thus, a dedicated Arabic dictionary is developed and integrated with the Tessaract module. Let Tessaract() be a function to extract text from an image, P_process be a preprocess function, RT is a raw text, and d be the document’s content. Equations (2) and (3) outline the extraction and preprocessing of text.(2)RT=TessaractID,(3)D=P_processRT.The P_process function employs an Arabic and English dictionary to ensure the RT is correct. During the text extraction, the extracted text may contain some errors. For instance, “name” may be misspelt as “mame.” Thus, the dictionary corrects the erroneous content.


### 3.2. Phase 2: NER Classification

In this proposed study, the researchers employed the Multinomial Naïve Bayes (MNB) for classifying the documents [56]. Each document is a collection of words. A class or label consists of homogeneous documents. MNB algorithm is widely used in NLP applications. It classifies documents based on the statistical outcome of the content. Figure 3 outlines the processes of phase 2. The word document is processed using the Bayesian property. The posterior function is computed for each term in the document. Finally, each document is stored as a vector. The following section explains the computation of Bayesian property and posterior function in detail.Figure 3
Entity–relationship classification.The classification assigns a text segment to a class using the probability of documents in the class of other documents. The process of grouping similar documents under a specific class is called labeling. LetS be the document to be classified. Each document in S is treated as a string related to one or multiple documents based on a class L. The classification of documents is based on a train set that contains the classified documents according to the document relationship in Figure 4. Figure 5 shows the classification of documents using the train set.Figure 4
Document relationship.Figure 5
Document classification model [24].Letf be the vector in S, fi be the feature in f representing the ith term in L. The core of the MNB model is the evaluation of probability-based decision function. The Bayesian probability for the documents is expressed in equations (4) and (5). The likelihood of the ith term fi belonging to the class Lm is shown in equation (6). Equation (7) outlines the MNB in the log space. The evaluation log(P) is expressed in (8).(4)PLm|f=PLmXPfLm|Pf,(5)Prf|Lm=∑i=1nfi!∏i=1nfi!X∏i=1npmifi,(6)Prf|Lm=∏i=1nPfi|Lm,(7)logPrLm|f∝logPLm+∑i=1nfiXlogPfi|Lm,(8)logP=lnP,P<1,1.0,P≤1.The following steps are followed for classifying the documents using the MNB classifier:Step 1: Divide the documents (S) into a group of n-terms.Step 2: Repeat the following process for eachith term in S.Step 2(a): Compute the Bayesian probability using equation (4).Step 2(b): Evaluate theP(Lm) function for each document i in L.Step 2(c): Compute the posterior function by integrating the prior function to the sum of each term using equation.(9)PrLm|f=logPLm+∑i=1nfi∗logPfi|Lm.Step 3: ComputeLS of S using Eqn.(10)LS=argMaxm∈1…nPrLm|f.Step 4: Repeat Steps 1 to 3 with the train set.Step 5: Classify the documents and store them as a vector.


### 3.3. Phase 3: Ranking Approach

In this phase, the researchers apply the ranking approach based on the study [19]. Figure 6 highlights the flow of processes in phase 3. Phase 3 initializes the vector and computes Hub and authorities similar to the HITS algorithm. However, a random walk feature is employed for updating Hub and authority weights.Figure 6
Proposed ranking approach.The approach is the combination of PageRank [20], HITS [21], and SALSA [22] algorithms. It is a link-based ranking technique. Assume ai be the authority weight, hi be the hub weight. This ranking approach considers the document with higher ai as better authorities and higher hi as better hubs. Figures 7(a) and 7(b) show the authorities and Hub pointing with P. The weights of hi and ai are updated dynamically.Figure 7
(a) Hub and (b) authority assignments.
(a)(b)Documents are ranked according to the user query based on the weights ofhi and ai. It works similar to HITS using bipartite graph (G) and seed set (Rf). In addition, the P-norms, a parameter, assign multiple normalized weights to each document link. A duplicative feature is employed to initiate Hub and authority, and vice-versa. The random walk feature of SALSA is used to identify the highly reachable node in G. Finally, normalization of the A⟶ generates the ranked documents. The following procedure is applied for the ranking documents:Step 1: Input user query and initialize theNh and Na node and the parameter (P), P-norm value.Step 2: InitializeA⟶=1 (A⟶⟶Na)Step 3: For each elementi in NhStep 3a: For each element I in the set of nodes pointed byith nodeComputeTemp=Temp+ajP/BjStep 3b: Computehj=TempPStep 4: For each elementk in NaStep 4a: For each elementl in B(k)ComputeTemp=Temp+hlP/FlStep 4b: Computeak=TempPStep 5: Repeat Step 3 to 5 until weight convergesStep 6: UpdateA⟶ with authority weightStep 7: NormalizeA⟶, ranked documents.


### 3.4. Phase 4: Performance Evaluation

Phase 4 evaluates the ontological framework using the benchmark metrics. Precision, Recall,F1-measure, and Accuracy are the widely used metrics to measure the performance of IR systems. The following terms are applied in the evaluation metrics to ensure the effectiveness of the outcome generated by the frameworks.True Positive (TP): The number of correctly predicted positive documents.True Negative (TN): The number of correctly predicted negative documents.False Positive (FP): The number of incorrectly predicted positive documents.False Negative (FN): The number of incorrectly predicted negative documents.Based on the above terms, the metrics are computed as follows:Precision is a set of retrieved documents relevant to the user query.(11)Precision=Number of relevant documents∩Number of retrieved documentsNumber of retrieved documents,Precision=TPTP+FP.It returns the number of documents divided by the number of retrieved documents. It can be computed for the topmost retrieved documents. For instance, Precision @10 indicates the top 10 retrieved documents.The recall is a set of retrieved relevant documents. In other words, it is a number of documents divided by the number of relevant documents.(12)Recall=Number of relevant documents∩Number of retrieved documentsNumber of relevant documents,Recall=TPTP+FN.F1–score is the harmonic mean of Precision and Recall.(13)F1−score=2∗Precision∗RecallPrecision+Recall.Accuracy is the number of retrieved documents for a user query.(14)Accuracy=TP+TNTP+TN+FP+FN.R–precision is used to ensure that the returned documents are relevant to a user query. It computes the recall value at Rth position.Mean Average Precision (MAP) is the average precision for each user query.MAP=∑q=1nAverage Precisionq/n where n is the number of queries (q).


## 3.1. Phase 1: Data Extraction

This phase transforms the PDF document into a text document. It supports the retrieval process to extract relevant documents. During communication, employees or stakeholders widely use PDF documents for sharing information. It is difficult to search a PDF document using a user query. Therefore, A PDFtoWord is developed in order to automate the process of converting a PDF document to a Word document. However, a PDF document may contain handwritten content which cannot be converted into a Word document. In other words, converting handwritten text into standard text is challenging. Figure2 shows the activities of phase 1. Initially, a document is converted to image format in order to extract the text. The extracted raw text is preprocessed and stored as a set of keywords and a word file. Phase 1 supports the proposed framework to search a document using a keyword. It overcomes the limitations of the searching document using metadata.Figure 2
Text extraction process.Thus, this study transforms the PDF document into an image, JPEG, or PNG format. The procedure of the data extraction process is as follows:Step 1: Input a PDF document.Step 2: Converting documents from a PDF form to JPEG or PNG format.Let PD be the PDF document, ID be an image format of the PDF document. Doc_To_Img is a function for converting the documents from PDF to image structure and hres is the attribute to make the image with high resolution (1100 × 900 pixels at 600 pixels per inch). Equation (1) shows the expression of converting the PDF document into image format.(1)ID=Doc_To_ImgPD⋅hres1100,900,600.Step 3: Designing a text extractor.A text extractor is designed using the AI-based Tessaract module that extracts the text from the image [55]. Nonetheless, the module is limited to the English Language. Thus, a dedicated Arabic dictionary is developed and integrated with the Tessaract module. Let Tessaract() be a function to extract text from an image, P_process be a preprocess function, RT is a raw text, and d be the document’s content. Equations (2) and (3) outline the extraction and preprocessing of text.(2)RT=TessaractID,(3)D=P_processRT.The P_process function employs an Arabic and English dictionary to ensure the RT is correct. During the text extraction, the extracted text may contain some errors. For instance, “name” may be misspelt as “mame.” Thus, the dictionary corrects the erroneous content.


## 3.2. Phase 2: NER Classification

In this proposed study, the researchers employed the Multinomial Naïve Bayes (MNB) for classifying the documents [56]. Each document is a collection of words. A class or label consists of homogeneous documents. MNB algorithm is widely used in NLP applications. It classifies documents based on the statistical outcome of the content. Figure 3 outlines the processes of phase 2. The word document is processed using the Bayesian property. The posterior function is computed for each term in the document. Finally, each document is stored as a vector. The following section explains the computation of Bayesian property and posterior function in detail.Figure 3
Entity–relationship classification.The classification assigns a text segment to a class using the probability of documents in the class of other documents. The process of grouping similar documents under a specific class is called labeling. LetS be the document to be classified. Each document in S is treated as a string related to one or multiple documents based on a class L. The classification of documents is based on a train set that contains the classified documents according to the document relationship in Figure 4. Figure 5 shows the classification of documents using the train set.Figure 4
Document relationship.Figure 5
Document classification model [24].Letf be the vector in S, fi be the feature in f representing the ith term in L. The core of the MNB model is the evaluation of probability-based decision function. The Bayesian probability for the documents is expressed in equations (4) and (5). The likelihood of the ith term fi belonging to the class Lm is shown in equation (6). Equation (7) outlines the MNB in the log space. The evaluation log(P) is expressed in (8).(4)PLm|f=PLmXPfLm|Pf,(5)Prf|Lm=∑i=1nfi!∏i=1nfi!X∏i=1npmifi,(6)Prf|Lm=∏i=1nPfi|Lm,(7)logPrLm|f∝logPLm+∑i=1nfiXlogPfi|Lm,(8)logP=lnP,P<1,1.0,P≤1.The following steps are followed for classifying the documents using the MNB classifier:Step 1: Divide the documents (S) into a group of n-terms.Step 2: Repeat the following process for eachith term in S.Step 2(a): Compute the Bayesian probability using equation (4).Step 2(b): Evaluate theP(Lm) function for each document i in L.Step 2(c): Compute the posterior function by integrating the prior function to the sum of each term using equation.(9)PrLm|f=logPLm+∑i=1nfi∗logPfi|Lm.Step 3: ComputeLS of S using Eqn.(10)LS=argMaxm∈1…nPrLm|f.Step 4: Repeat Steps 1 to 3 with the train set.Step 5: Classify the documents and store them as a vector.


## 3.3. Phase 3: Ranking Approach

In this phase, the researchers apply the ranking approach based on the study [19]. Figure 6 highlights the flow of processes in phase 3. Phase 3 initializes the vector and computes Hub and authorities similar to the HITS algorithm. However, a random walk feature is employed for updating Hub and authority weights.Figure 6
Proposed ranking approach.The approach is the combination of PageRank [20], HITS [21], and SALSA [22] algorithms. It is a link-based ranking technique. Assume ai be the authority weight, hi be the hub weight. This ranking approach considers the document with higher ai as better authorities and higher hi as better hubs. Figures 7(a) and 7(b) show the authorities and Hub pointing with P. The weights of hi and ai are updated dynamically.Figure 7
(a) Hub and (b) authority assignments.
(a)(b)Documents are ranked according to the user query based on the weights ofhi and ai. It works similar to HITS using bipartite graph (G) and seed set (Rf). In addition, the P-norms, a parameter, assign multiple normalized weights to each document link. A duplicative feature is employed to initiate Hub and authority, and vice-versa. The random walk feature of SALSA is used to identify the highly reachable node in G. Finally, normalization of the A⟶ generates the ranked documents. The following procedure is applied for the ranking documents:Step 1: Input user query and initialize theNh and Na node and the parameter (P), P-norm value.Step 2: InitializeA⟶=1 (A⟶⟶Na)Step 3: For each elementi in NhStep 3a: For each element I in the set of nodes pointed byith nodeComputeTemp=Temp+ajP/BjStep 3b: Computehj=TempPStep 4: For each elementk in NaStep 4a: For each elementl in B(k)ComputeTemp=Temp+hlP/FlStep 4b: Computeak=TempPStep 5: Repeat Step 3 to 5 until weight convergesStep 6: UpdateA⟶ with authority weightStep 7: NormalizeA⟶, ranked documents.


## 3.4. Phase 4: Performance Evaluation

Phase 4 evaluates the ontological framework using the benchmark metrics. Precision, Recall,F1-measure, and Accuracy are the widely used metrics to measure the performance of IR systems. The following terms are applied in the evaluation metrics to ensure the effectiveness of the outcome generated by the frameworks.True Positive (TP): The number of correctly predicted positive documents.True Negative (TN): The number of correctly predicted negative documents.False Positive (FP): The number of incorrectly predicted positive documents.False Negative (FN): The number of incorrectly predicted negative documents.Based on the above terms, the metrics are computed as follows:Precision is a set of retrieved documents relevant to the user query.(11)Precision=Number of relevant documents∩Number of retrieved documentsNumber of retrieved documents,Precision=TPTP+FP.It returns the number of documents divided by the number of retrieved documents. It can be computed for the topmost retrieved documents. For instance, Precision @10 indicates the top 10 retrieved documents.The recall is a set of retrieved relevant documents. In other words, it is a number of documents divided by the number of relevant documents.(12)Recall=Number of relevant documents∩Number of retrieved documentsNumber of relevant documents,Recall=TPTP+FN.F1–score is the harmonic mean of Precision and Recall.(13)F1−score=2∗Precision∗RecallPrecision+Recall.Accuracy is the number of retrieved documents for a user query.(14)Accuracy=TP+TNTP+TN+FP+FN.R–precision is used to ensure that the returned documents are relevant to a user query. It computes the recall value at Rth position.Mean Average Precision (MAP) is the average precision for each user query.MAP=∑q=1nAverage Precisionq/n where n is the number of queries (q).


## 4. Results and Discussion

To evaluate the performance of the proposed ontological framework (POF), a testbed containing 77 documents in PDF form is developed. Python 3.9.12 in Windows 10 professional environment is utilized for implementing the frameworks. Initially, a text extractor is employed to extract the text from the PDF. Figure8 illustrates the application interface for uploading the PDF file to convert it to a word file and extract key terms.Figure 8
Document conversion and extraction interface.An Arabic dictionary is integrated with the text extractor to extract the Arabic content. MNB is used for building the ontology by classifying the documents with NER. Finally, the LBR method is applied for ranking the documents according to the user query. Table1 outlines the Arabic and English queries for evaluating the framework’s performance. It comprises the five frequently used queries by the organizations to retrieve the documents.Table 1
User queries.
QueriesEnglishArabic1What are the terms or words highly communicated by unitA?ماهي الكلمة الأكثر استخداماً في الوحدة أ؟2What type of documents are accessed through the unitB?ما نوع الوثائق التي يتم الوصول إليها من خلال الوحدة ب ؟3How many times unitD uses the term “center” in their communication?كم مرة تستخدم الوحدة د مصطلح “مركز”في اتصالاتهم؟4What are the documents communicated by employeeA?ماهي الوثائق المرسلة من قبل الموظف أ؟5Who uses the word “delay” in the documents?من يستخدم كلمة “تأخير في الوثائق”؟Figure9 shows the list of documents for the term “salay issues.” POF searches the documents and retrieves 27 documents based on the key terms. Using the hyperlink, the user can view the specific document.Figure 9
Results window.Table2 reports the findings of the performance evaluation of the POF. It outlines that the POF achieved compelling results. For instance, in Precision@77 for English Query 1, the POF offered Precision, Recall, F1-Score, and Accuracy of 97.3%, 97.1%, 97.2%, and 98.3. Similarly, in Precision@77 for Arabic Query, the POF presented Precision, Recall, F1-Score, and Accuracy of 97.7%, 98.4%, 98.05%, and 98.1%. It is evident from the outcome that the POF has produced a similar set of results for English and Arabic queries, respectively. The NER classification and link-based ranking approach have supported the POF in retrieving an optimal set of documents for user queries.Table 2
Performance analysis of the POF.
QueriesNo of documentsEnglishArabicPrecisionRecallF1-scoreAccuracyPrecisionRecallF1-scoreAccuracy1@1098.297.89898.298.197.697.8598.3@3097.497.697.597.697.597.497.4597.6@5097.598.397.998.197.697.797.6597.9@7797.397.197.298.397.798.498.0598.12@1098.698.798.6598.698.598.398.498.7@3097.697.997.7598.197.697.597.5597.3@5097.197.597.397.797.598.497.9598.4@7797.497.397.3597.597.297.797.4597.53@1098.298.498.398.698.498.698.598.7@3097.997.297.5597.997.597.697.5597.1@5097.497.697.597.597.397.497.3597.3@7796.796.896.7596.796.896.596.6596.84@1098.898.798.7598.898.798.598.698.4@3097.997.797.897.997.797.597.697.8@5097.597.697.5597.597.697.497.597.5@7797.297.697.497.397.397.597.497.15@1098.698.898.798.698.598.698.5598.7@3097.797.597.697.797.697.397.4597.5@5097.197.397.297.697.397.697.4597.7@7797.397.497.3597.597.297.497.397.1Figure10 highlights the POF’s overall performance (Precision @77) for the English and Arabic queries. The POF achieved an average F1-Score of 97% for five English and Arabic queries. It is noticed that the POF retrieved relevant documents for Arabic queries. Thus, it can support Saudi organizations in extracting effective results for employees and stakeholders. Table 3 presents the findings of the comparative analysis of the ontological frameworks.Figure 10
Performance analysis of POF (a) English (b) Arabic.
(a)English (b)Table 3
Comparative analysis of the frameworks.
QueriesFrameworkEnglishArabicPrecisionRecallF1-scoreAccuracyPrecisionRecallF1-scoreAccuracy1POF97.397.197.298.397.798.498.0598.1GOF97.196.496.7597.897.197.897.4597.4YOF96.496.196.2596.496.796.896.7597.52POF97.497.397.3597.597.297.797.4597.5GOF97.296.89797.197.596.797.198.1YOF96.496.596.4596.496.797.196.997.83POF96.796.896.7596.796.896.596.6596.8GOF97.496.296.897.497.296.196.6594.6YOF96.496.596.4596.496.195.795.995.34POF97.297.697.497.397.397.597.497.1GOF96.295.395.7596.494.797.195.8896.4YOF95.497.296.2996.495.797.296.4497.65POF97.397.497.297.597.297.498.0597.1GOF94.695.196.7594.794.795.297.4597.2YOF96.596.596.2595.295.195.396.7596.8The frameworks have produced a better outcome for both English and Arabic queries, respectively. For context, the POF presented Precision, Recall,F1-Score, and Accuracy of 97.3%, 97.1%, 97.2%, and 98.3%, whereas the GOF and YOF have achieved Precision, Recall, F1-Score, and Accuracy of 97.1%, 96.4%, 96.75%, and 97.8% and 96.4%, 96.1%, 96.25%, and 96.4%. In addition, Figure 11 portrays the performance of the ontological framework for English queries, while Figure 12 presents the outcome for Arabic queries.Figure 11
Comparative analysis of frameworks for English (a) query 1, (b) query 2, (c) query 3, (d) query 4, and (e) query 5.
(a)(b)(c)(d)(e)Figure 12
Comparative analysis of frameworks for Arabic (a) query 1, (b) query 2, (c) query 3, (d) query 4, and (e) query 5.
(a)(b)(c)(d)(e)Figure11 portrays the comparative analysis of the frameworks for the English queries. It represents that the POF has gained better Precision, Recall, F1-Score, and accuracy. Similarly, the GOF and YOF have accomplished higher Precision, Recall, F1-Score, and accuracy.Likewise, Figure12 presents the results for the Arabic queries. The frameworks have achieved a better result. However, the POF’s overall performance is better than the existing frameworks. In addition to the benchmark metrics, Table 4 reveals the findings of R-Precision and MAP analysis. The POF outperforms both GOF and YOF, respectively. For instance, the value of R-Precision and MAP of the POF for Query 1 is 98.4% and 98.2, whereas GOF and YOF have offered R-Precision and MAP of 97.5% and 96.4% and 95.6% and 95.8%, respectively. The features of HITS and SALSA have favored the POF to retrieve a compelling set of documents compared to other frameworks.Table 4
Findings ofR-precision and MAP analysis.
QueriesFrameworkEnglishArabicR-precisionMAPR-precisionMAP1POF98.498.297.696.8GOF97.596.497.296.4YOF95.695.896.395.32POF97.597.295.996.3GOF97.194.494.895.2YOF96.395.196.495.33POF93.293.492.193.5GOF91.292.491.591.7YOF92.491.591.690.84POF96.896.297.397.6GOF94.693.795.194.6YOF94.393.894.692.55POF98.397.697.195.8GOF96.795.696.495.1YOF95.694.894.395.1Figure13 shows that the POF offered a supreme outcome for the English and Arabic queries compared to the GOF (Figure 14) and the YOF (Figure 15). It reveals that the effectiveness of data extraction, NER classification, and ranking approach supported the proposed framework to produce better results.Figure 13
R-Precision and MAP analysis of POF (a) English and (b) Arabic.
(a)(b)Figure 14
R-Precision and MAP analysis of GOF (a) English and (b) Arabic.
(a)(b)Figure 15
R-Precision and MAP analysis of YOF (a) English and (b) Arabic.
(a)(b)POF achieves a better Precision, Recall,F1-score, and Accuracy for both Arabic and English languages, respectively. It can be applied in any kind of document management environment. However, GOF and YOF are the ontological frameworks for specific documents which cannot be applied for general applications. In addition, POF offers a ranking technique for searching a bilingual document rather than GOF and YOF. It is a link-based searching technique, whereas GOF and YOF rank the documents according to the user query and term frequencies of the document. Thus, POF enables an effective searching environment for users compared to GOF and YOF.


### 4.1. Applications of the Proposed Framework

The proposed ontological framework can be applied in the real-time document management and retrieval environment. It enables an opportunity for the users to retrieve relevant documents based on the keywords. In addition, it offers the following applications for society.Digital library: Using the proposed framework, a large corpus of documents can be developed to support the organization in facilitating a digital library for the employees to share information and manage their routine tasks.Chatbot: The advent of AI techniques leads to the development of the question-answering system (Chatbot service) for the employees and stakeholders of an organization. The proposed framework can support the developers in training and test the Chatbot applications. The NB classifier offers the relation-based documents which the Chatbot system can use to provide relevant answers for the user queries.Recommender system: Using phases 1 and 2, a recommender system can be developed for the employees to furnish useful data during document creation. The documents’ data can be used as a keyword or metadata to search a document.Furthermore, the bilingual feature of the proposed ontology supports Arabic and English-speaking users to share information effectively. It assists the user in overcoming the communication barrier and completing their routine tasks without difficulties.


## 4.1. Applications of the Proposed Framework

The proposed ontological framework can be applied in the real-time document management and retrieval environment. It enables an opportunity for the users to retrieve relevant documents based on the keywords. In addition, it offers the following applications for society.Digital library: Using the proposed framework, a large corpus of documents can be developed to support the organization in facilitating a digital library for the employees to share information and manage their routine tasks.Chatbot: The advent of AI techniques leads to the development of the question-answering system (Chatbot service) for the employees and stakeholders of an organization. The proposed framework can support the developers in training and test the Chatbot applications. The NB classifier offers the relation-based documents which the Chatbot system can use to provide relevant answers for the user queries.Recommender system: Using phases 1 and 2, a recommender system can be developed for the employees to furnish useful data during document creation. The documents’ data can be used as a keyword or metadata to search a document.Furthermore, the bilingual feature of the proposed ontology supports Arabic and English-speaking users to share information effectively. It assists the user in overcoming the communication barrier and completing their routine tasks without difficulties.


## 5. Conclusion

This study developed an ontological framework for managing Arabic and English documents in Saudi Arabian organizations. The proposed framework comprises three phases for converting the PDF documents into ordinary word documents with a set of unique terms; a Naïve Bayes-based entity-relationship document classifier and a ranking technique for arranging documents as per the user query. The conversion technique uses a modified text extractor for extracting Arabic and English terms from the images. Furthermore, the entity-relationship technique arranges the document as per the relationship among the terms of the documents. The ranking technique combines the features of the HITS and SALSA ranking algorithm to rank the documents at a faster rate. A set of 77 documents were utilized to compare the performance of the proposed frameworks with the recent techniques. The outcome reveals that the proposed ontological framework achieves adequate Precision, Recall,F1-score, and Accuracy for the bilingual documents using a user query. In addition, it offers an effective bilingual document management environment for employees and stakeholders of Saudi Arabian organizations. The proposed framework can be extended to other languages. Furthermore, the ranking technique can be improved using metadata with the newer deep learning techniques.



---

*Source: 4636931-2022-08-25.xml*