IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i23p4735-d1285741.html
   My bibliography  Save this article

A Natural-Language-Processing-Based Method for the Clustering and Analysis of Movie Reviews and Classification by Genre

Author

Listed:
  • Fernando González

    (Instituto Politécnico Nacional, Centro de Investigación en Computación, UPALM-Zacatenco, Ciudad de México 07320, Mexico)

  • Miguel Torres-Ruiz

    (Instituto Politécnico Nacional, Centro de Investigación en Computación, UPALM-Zacatenco, Ciudad de México 07320, Mexico)

  • Guadalupe Rivera-Torruco

    (Centro de Investigación y de Estudios Avanzados del IPN, Ciudad de México 07360, Mexico)

  • Liliana Chonona-Hernández

    (Instituto Politécnico Nacional, Centro de Investigación en Computación, UPALM-Zacatenco, Ciudad de México 07320, Mexico)

  • Rolando Quintero

    (Instituto Politécnico Nacional, Centro de Investigación en Computación, UPALM-Zacatenco, Ciudad de México 07320, Mexico)

Abstract

Reclassification of massive datasets acquired through different approaches, such as web scraping, is a big challenge to demonstrate the effectiveness of a machine learning model. Notably, there is a strong influence of the quality of the dataset used for training those models. Thus, we propose a threshold algorithm as an efficient method to remove stopwords. This method employs an unsupervised classification technique, such as K-means, to accurately categorize user reviews from the IMDb dataset into their most suitable categories, generating a well-balanced dataset. Analysis of the performance of the algorithm revealed a notable influence of the text vectorization method used concerning the generation of clusters when assessing various preprocessing approaches. Moreover, the algorithm demonstrated that the word embedding technique and the removal of stopwords to retrieve the clustered text significantly impacted the categorization. The proposed method involves confirming the presence of a suggested stopword within each review across various genres. Upon satisfying this condition, the method assesses if the word’s frequency exceeds a predefined threshold. The threshold algorithm yielded a mapping genre success above 80% compared to precompiled lists and a Zipf’s law-based method. In addition, we employed the mini-batch K-means method for the clustering formation of each differently preprocessed dataset. This approach enabled us to reclassify reviews more coherently. Summing up, our methodology categorizes sparsely labeled data into meaningful clusters, in particular, by using a combination of the proposed stopword removal method and TF-IDF. The reclassified and balanced datasets showed a significant improvement, achieving 94% accuracy compared to the original dataset.

Suggested Citation

  • Fernando González & Miguel Torres-Ruiz & Guadalupe Rivera-Torruco & Liliana Chonona-Hernández & Rolando Quintero, 2023. "A Natural-Language-Processing-Based Method for the Clustering and Analysis of Movie Reviews and Classification by Genre," Mathematics, MDPI, vol. 11(23), pages 1-26, November.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:23:p:4735-:d:1285741
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/23/4735/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/23/4735/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Blanchard, Antoine, 2007. "Understanding and customizing stopword lists for enhanced patent mapping," World Patent Information, Elsevier, vol. 29(4), pages 308-316, December.
    2. Robert Thorndike, 1953. "Who belongs in the family?," Psychometrika, Springer;The Psychometric Society, vol. 18(4), pages 267-276, December.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Becken, Susanne & Stantic, Bela & Chen, Jinyan & Connolly, Rod M., 2022. "Twitter conversations reveal issue salience of aviation in the broader context of climate change," Journal of Air Transport Management, Elsevier, vol. 98(C).
    2. Orietta Nicolis & Jean Paul Maidana & Fabian Contreras & Danilo Leal, 2024. "Analyzing the Impact of COVID-19 on Economic Sustainability: A Clustering Approach," Sustainability, MDPI, vol. 16(4), pages 1-30, February.
    3. Archana R. Panhalkar & Dharmpal D. Doye, 2020. "An approach of improving decision tree classifier using condensed informative data," DECISION: Official Journal of the Indian Institute of Management Calcutta, Springer;Indian Institute of Management Calcutta, vol. 47(4), pages 431-445, December.
    4. Michele Cincera, 2005. "Firms' productivity growth and R&D spillovers: An analysis of alternative technological proximity measures," Economics of Innovation and New Technology, Taylor & Francis Journals, vol. 14(8), pages 657-682.
    5. Korneliusz Pylak & Piotr Oleszczuk & Przemysław Kowalik, 2021. "Typology of Smart Specializations Across European Regions," European Research Studies Journal, European Research Studies Journal, vol. 0(Special 1), pages 503-512.
    6. Horstmann, Felix, 2017. "Measuring the shopper's attitude toward the point of sale display: Scale development and validation," Journal of Retailing and Consumer Services, Elsevier, vol. 36(C), pages 112-123.
    7. Junyong Jang & Yongbin Cho & Juntae Park, 2024. "Bus Route Sketching: A Multimetric Analysis from the User’s and Operator’s Perspectives," Sustainability, MDPI, vol. 16(16), pages 1-19, August.
    8. Elizaveta Zinovyeva & Raphael C. G. Reule & Wolfgang Karl Hardle, 2021. "Understanding Smart Contracts: Hype or Hope?," Papers 2103.08447, arXiv.org.
    9. Zhao, Yingrui & Hu, Songhua & Zhang, Ming, 2024. "Evaluating equitable Transit-Oriented development (TOD) via the Node-Place-People model," Transportation Research Part A: Policy and Practice, Elsevier, vol. 185(C).
    10. Chester Harris, 1955. "Characteristics of two measures of profile similarity," Psychometrika, Springer;The Psychometric Society, vol. 20(4), pages 289-297, December.
    11. Marrel, Amandine & Iooss, Bertrand, 2024. "Probabilistic surrogate modeling by Gaussian process: A new estimation algorithm for more robust prediction," Reliability Engineering and System Safety, Elsevier, vol. 247(C).
    12. Shahzad, Murtuza & Alhoori, Hamed & Freedman, Reva & Rahman, Shaikh Abdul, 2022. "Quantifying the online long-term interest in research," Journal of Informetrics, Elsevier, vol. 16(2).
    13. Ernesto López-Morales & Nicolás Herrera & Matías Garretón, 2024. "Neoliberal urban segregation and property tax: A critical view of Santiago, Chile," Environment and Planning A, , vol. 56(6), pages 1820-1840, September.
    14. Boztug, Yasemin & Reutterer, Thomas, 2008. "A combined approach for segment-specific market basket analysis," European Journal of Operational Research, Elsevier, vol. 187(1), pages 294-312, May.
    15. Martin Kueppers & Christian Perau & Marco Franken & Hans Joerg Heger & Matthias Huber & Michael Metzger & Stefan Niessen, 2020. "Data-Driven Regionalization of Decarbonized Energy Systems for Reflecting Their Changing Topologies in Planning and Optimization," Energies, MDPI, vol. 13(16), pages 1-15, August.
    16. João Antunes Rodrigues & Alexandre Martins & Mateus Mendes & José Torres Farinha & Ricardo J. G. Mateus & Antonio J. Marques Cardoso, 2022. "Automatic Risk Assessment for an Industrial Asset Using Unsupervised and Supervised Learning," Energies, MDPI, vol. 15(24), pages 1-17, December.
    17. Chompoonut Kongphunphin & Manat Srivanit, 2021. "A Multi-Dimensional Clustering Applied to Classify the Typology of Urban Public Parks in Bangkok Metropolitan Area, Thailand," Sustainability, MDPI, vol. 13(20), pages 1-18, October.
    18. Glenn Milligan & Martha Cooper, 1985. "An examination of procedures for determining the number of clusters in a data set," Psychometrika, Springer;The Psychometric Society, vol. 50(2), pages 159-179, June.
    19. Isakov , Alexander, 2013. "Stress indicator construction for internal money market," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 30(2), pages 77-92.
    20. Aurelia Rybak & Aleksandra Rybak & Spas D. Kolev, 2021. "Analysis of the EU-27 Countries Energy Markets Integration in Terms of the Sustainable Development SDG7 Implementation," Energies, MDPI, vol. 14(21), pages 1-22, October.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:11:y:2023:i:23:p:4735-:d:1285741. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.