Maximizing Supermarket Profits: Data-Driven Strategies for Pricing, Sales, and Forecasting
Download PDF


Long short-term memory (LSTM)
Pricing strategy
Decision making



Submitted : 2024-01-26
Accepted : 2024-02-10
Published : 2024-02-25


The actual circumstances of daily life are crucial for the purchasing and pricing strategies of supermarkets. Developing strategies based on these circumstances can assist businesses in ensuring profits and fostering win-win cooperation. This paper explores methods to maximize profit through purchasing and sales strategies. Initially, the relevant data for various categories of vegetables is integrated. Through histograms, their sales patterns are directly understood, highlighting the most popular vegetables. Upon analyzing each vegetable category, it becomes evident that their sales data do not conform to normal distributions. Therefore, Spearman correlation coefficients are calculated, revealing strong correlations between certain categories, such as aquatic roots and edible fungi. A line chart depicting the top ten selling vegetables indicates a noticeable periodicity. Traditional fitting methods struggle to adequately model the sales of each vegetable category and their relationship with cost-plus pricing. To address this, additional factors such as holidays, weeks, and months are incorporated using techniques like random forest regression. This approach yields cost-plus pricing dependence curves that better capture the relationship, while effectively managing noise. Regarding sales volume prediction, the original data displays significant volatility, necessitating the handling of outliers using the threshold method. For missing data, linear interpolation is employed to mitigate the impact of continuous missing values on prediction accuracy. Subsequently, Adam-optimized long short-term memory (LSTM) networks are utilized to forecast incoming quantities for the next seven days. By extrapolating from normal sales volume, market capacity is estimated, allowing for additional sales through discount strategies. This framework has the potential to increase original income by 1.1 times.


Chen R, 2018, Research on the Category and Pricing Optimization Problems Based on the Discrete Selection Model, thesis, Tsinghua University.

Shao Y, 2018, The Scientificity of Clothing Retail Management Under the Independent Management Mode. New West, 2018(23): 78 + 85.

Xiao C, 2024, Evaluation Method of Hydropower Project Resettlement Effect Based on Random Forest Regression Algorithm. Water Conservancy Technical Supervision, 2024(1): 163–166.

Yang S, Huang J, Yuan J, 2024, Spatiotemporal Prediction Algorithm for Mushroom Growth State Based on Improved LSTM. Journal of Agricultural Machinery, 2024: 1–14.

Chen H, Zhang J, Xue S, 2022, Modeling of the Backpack Problem and Experimental Case Design Based on 1st Opt. China Education Technology and Equipment, 2022(12): 133–140.

Qian J, Wang B, Zheng J, et al. 2015, Quantum Evolution Solving Algorithm for the Multiple Quadratic Backpacking Problem. Journal of Computer Science, 38(8): 1516–1529.