Leveraging Neural Network for Accurate and Context Aware Text Suggestions

Authors

  • N. Sruthilaya
  • S. Vaishali

Keywords:

Bidirectional, LSTM, Neural networks, Text suggestion, Tokenizer

Abstract

This project explores the use of Bidirectional Long Short Term Memory (Bi LSTM) neural networks to generate accurate and context aware text suggestions, aiming to overcome limitations in traditional rule based and shallow machine learning models. Using a dataset of over 6,500 text titles, the project applies tokenization, word embedding, and sequence padding to prepare data for deep learning.
Training was conducted on over 48,000 sequences using the Adam optimizer and categorical cross entropy loss function. The model demonstrated consistent improvements in prediction accuracy and loss reduction across training epochs. Over the course of training, the model demonstrated a significant improvement in accuracy and a steady reduction in loss, highlighting its ability to learn contextual patterns in the text data. Beyond technical performance, the project emphasizes ethical concerns such as bias and interpretability in NLP models, while also highlighting real world applications in predictive text systems, writing assistants, and automated content generation.

References

F.-Y. Lo, T. H.-K. Yu and H.-H. Chen, “Purchasing intention and behavior in the sharing economy: Mediating effects of APP assessments,” Journal of Business Research, vol. 121, pp. 93–102, Dec. 2020, doi: https://doi.org/10.1016/j.jbusres.2020.08.017.

H. Ting, P. Thaichon, F. Chuah, and S. R. Tan, “Consumer behaviour and disposition decisions: The why and how of smartphone disposition,” Journal of Retailing and Consumer Services, vol. 51, no. 1, pp. 212–220, Nov. 2019, doi: https://doi.org/10.1016/j.jretconser.2019.06.002.

A. L. Roggeveen and R. Sethuraman, “Using Commentaries, Special Sections, and Special Issues to Enhance Research into Important and Cutting Edge Topics in this Dynamic Field of Retailing,” Journal of Retailing, vol. 95, no. 4, pp. 109–110, Dec. 2019, doi: https://doi.org/10.1016/j.jretai.2019.12.002.

L. Bauer, K. Ranglová, J. Masojídek, B. Drosg, and K. Meixner, “Digestate as Sustainable Nutrient Source for Microalgae—Challenges and Prospects,” Applied Sciences, vol. 11, no. 3, p. 1056, Jan. 2021, doi: https://doi.org/10.3390/app11031056.

K. Dhanushkodi, A. Bala, N. Kodipyaka, and V. Shreyas, “Customer Behaviour Analysis and Predictive Modelling in Supermarket Retail: A Comprehensive Data Mining Approach,” IEEE Access, pp. 1–1, Jan. 2024, doi: https://doi.org/10.1109/access.2024.3407151.

H. De la Torre-Gutiérrez and D. Pham, “A control chart pattern recognition system for feedback-control processes,” Expert Systems with Applications, vol. 138, p. 112826, Dec. 2019, doi: https://doi.org/10.1016/j.eswa.2019.112826.

L. A. Book, S. Tanford, and W. Chang, “Customer reviews are not always informative: The impact of effortful versus heuristic processing,” Journal of Retailing and Consumer Services, vol. 41, pp. 272–280, Mar. 2018, doi: https://doi.org/10.1016/j.jretconser.2018.01.001.

C. Gonçalves, R. J. Bessa, and P. Pinson, “A critical overview of privacy-preserving approaches for collaborative forecasting,” International Journal of Forecasting, vol. 37, no. 1, pp. 322–342, Jan. 2021, doi: https://doi.org/10.1016/j.ijforecast.2020.06.003.

H. Smolic, “Sales Forecasting with Machine Learning,” Apr. 08, 2024. https://graphite-note.com/machine-learning-sales-forecasting/

E. Deniz and S. Ç. Bülbül, “Predicting Customer Purchase Behavior Using Machine Learning Models,” Information Technology in Economics and Business, Jul. 2024, doi: https://doi.org/10.69882/adba.iteb.2024071.

L. Eglite and I. Birzniece, “Retail Sales Forecasting Using Deep Learning: Systematic Literature Review,” Complex Systems Informatics and Modeling Quarterly, no. 30, pp. 53–62, Apr. 2022, doi: https://doi.org/10.7250/csimq.2022-30.03.

K. Pai, M. Batool, N. Ravi, R. Surendra, A. N. R. Shree, and S. J. Meenakshi, “Enhancing Sales Forecasting and Prediction with Cutting-Edge Machine Learning Methods,” 2024 Second International Conference on Data Science and Information System (ICDSIS), May 2024, doi: https://doi.org/10.1109/icdsis61070.2024.10594627.

IBM, “Sales Planning with IBM Planning Analytics,” Ibm.com, 2024. https://www.ibm.com/products/planning-analytics/sales-planning?utm_content=SRCWW&p1=Search&p4=43700082012772315&p5=p&p9=58700008306563113&gad_source=1&gad_campaignid

S. Clark, “Predictive Analytics: Forecasting a Loyal Future,” CMSWire.com, 2023. https://www.cmswire.com/customer-experience/using-predictive-analytics-to-improve-customer-retention/

G. Zhang, G. Dai, H. Sun, G. Zhang, and Z. Yang, “Equilibrium in supply chain network with competition and service level between channels considering consumers’ channel preferences,” Journal of Retailing and Consumer Services, vol. 57, p. 102199, Nov. 2020, doi: https://doi.org/10.1016/j.jretconser.2020.102199

P. Stacey, R. Taylor, O. Olowosule, and K. Spanaki, “Emotional reactions and coping responses of employees to a cyber-attack: A case study,” International Journal of Information Management, vol. 58, p. 102298, Jun. 2021, doi: https://doi.org/10.1016/j.ijinfomgt.2020.102298

B. J. Babin, D. J. Ortinau, J.-L. Herrmann, and C. Lopez, “Science is about corroborating empirical evidence, even in academic business research journals,” Journal of Business Research, vol. 126, Jun. 2020, doi: https://doi.org/10.1016/j.jbusres.2020.06.002

C. Jebarajakirthy, M. Das, I. Maggioni, S. Sands, M. Dharmesti, and C. Ferraro, “Understanding on-the-go consumption: A retail mix perspective,” Journal of Retailing and Consumer Services, vol. 58, p. 102327, Jan. 2021, doi: https://doi.org/10.1016/j.jretconser.2020.102327

M. Sigala, “Tourism and COVID-19: Impacts and implications for advancing and resetting industry and research,” Journal of Business Research, vol. 117, no. 1, pp. 312–321, Sep. 2020, doi: https://doi.org/10.1016/j.jbusres.2020.06.015.

C. Mele, T. Russo Spena, V. Kaartemo, and M. L. Marzullo, “Smart nudging: How cognitive technologies enable choice architectures for value co-creation,” Journal of Business Research, vol. 129, Sep. 2020, doi: https://doi.org/10.1016/j.jbusres.2020.09.004.

Published

2025-06-13

How to Cite

N. Sruthilaya, & S. Vaishali. (2025). Leveraging Neural Network for Accurate and Context Aware Text Suggestions. Journal of Computer Based Parallel Programming, 10(2), 7–14. Retrieved from https://matjournals.net/engineering/index.php/JoCPP/article/view/2021

Issue

Section

Articles