Skip to main content

METHODS article

Front. Artif. Intell.
Sec. Language and Computation
Volume 8 - 2025 | doi: 10.3389/frai.2025.1523336
This article is part of the Research Topic Emerging Techniques in Arabic Natural Language Processing View all articles

Determining the Meter of Classical Arabic Poetry Using Deep Learning: A Performance Analysis

Provisionally accepted
A.M. Mutawa A.M. Mutawa 1,2*Ayshah Alrumaih Ayshah Alrumaih 1
  • 1 Computer Engineering Department, Kuwait University, Kuwait City, Kuwait
  • 2 Computer Sciences Department, University of Hamburg, Hamburg, Hamburg, Germany

The final, formatted version of the article will be published soon.

    The metrical structure of Classical Arabic poetry, deeply rooted in its rich literary heritage, is governed by 16 distinct meters, making its analysis both a linguistic and computational challenge. In this study, a deep learning-based approach was developed to accurately determine the meter of Arabic poetry using TensorFlow and a large dataset. Character-level encoding was employed to convert text into integers, enabling the classification of both full-verse and half-verse data. Notably, the data was evaluated without removing diacritics, preserving critical linguistic features. A traintest-split method with a 70-15-15 division was utilized, with 15% of the total dataset reserved as unseen test data for evaluation across all models. Multiple deep learning architectures, including Long Short-Term Memory (LSTM), Gated Recurrent Units (GRU), and Bidirectional Long Short-Term Memory (BiLSTM), were tested. Among these, the Bidirectional Long Short-Term Memory model achieved the highest accuracy, with 97.53% for full-verse and 95.23% for half-verse data. This study introduces an effective framework for Arabic meter classification, contributing significantly to the application of artificial intelligence in natural language processing and text analytics.

    Keywords: Arabic poetry, Arabic meters, Bi-LSTM, deep learning, machine learning, Natural Language Processing

    Received: 05 Nov 2024; Accepted: 28 Jan 2025.

    Copyright: © 2025 Mutawa and Alrumaih. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

    * Correspondence: A.M. Mutawa, Computer Engineering Department, Kuwait University, Kuwait City, Kuwait

    Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.