Efficient Feature-Engineering-Based Optimized Neural Network Architecture for Stock Price Prediction

Authors

  • Shambhu Dayal Sahu
  • Dr. Puneet Dwivedi

Abstract

Predicting stock market trends is inherently challenging due to the volatile and nonlinear nature of financial data. To address these complexities, optimization-driven machine learning approaches have gained increasing attention. This study presents a comparative evaluation of machine learning models for predicting the opening and closing prices of IT company stocks using historical market data. The dataset, comprising features such as high price, low price, and trading volume, was pre-processed through linear interpolation to handle missing values and normalized using z-score standardization. Feature engineering was further applied by incorporating a 3-day moving average, while Principal Component Analysis (PCA) reduced dimensionality while preserving 95% of the data variance. The models evaluated include Artificial Neural Networks (ANN), Linear Regression (LR), and Support Vector Regression (SVR). A grid search was employed to optimize the number of hidden neurons in the ANN, resulting in an optimal configuration for Microsoft with R² = 0.9876, MSE = 0.0124, and MAE = 0.0879. The final ANN model achieved superior performance on the test set, with an MSE of 0.0098, MAE of 0.0781, and R² of 0.9902. Comparative analysis indicated that the ANN consistently outperformed both LR and SVR across all evaluation metrics for predicting opening and closing prices. Key Words Stock Market Prediction, Machine Learning, Optimization, Neural Network, PCA, SVR, LR, MSE.

Downloads

Published

2025-11-08

How to Cite

Shambhu Dayal Sahu, & Dr. Puneet Dwivedi. (2025). Efficient Feature-Engineering-Based Optimized Neural Network Architecture for Stock Price Prediction. Utilitas Mathematica, 122(2), 2485–2503. Retrieved from https://utilitasmathematica.com/index.php/Index/article/view/3006

Citation Check

Most read articles by the same author(s)

Obs.: This plugin requires at least one statistics/report plugin to be enabled. If your statistics plugins provide more than one metric then please also select a main metric on the admin's site settings page and/or on the journal manager's settings pages.