Stainless Steel Market Price Prediction Model: AI Algorithm Construction Based On Ferronickel Cost, Inventory Data And Downstream Operating Rate

Nov 15, 2025|

Stainless steel prices fluctuate sharply under the influence of raw material costs, market supply and demand, and macroeconomic factors. For manufacturers, traders, and downstream enterprises, accurate price forecasts are critical to reducing operational risks and optimizing procurement strategies. Traditional prediction methods relying on experience or linear models often fail to capture complex nonlinear relationships in the market. This article introduces an AI-based stainless steel price prediction model that integrates three core indicators-ferronickel cost (accounting for 60% of production costs), social inventory data, and downstream operating rate-to achieve a prediction accuracy of over 85%. It details the model's data processing, algorithm selection, and practical application effects.

Core Logic: Why These Three Indicators Determine Price Trends

Stainless steel price formation is a comprehensive result of cost push and demand pull. Ferronickel cost, inventory data, and downstream operating rate form a "cost-supply-demand" trinity, directly reflecting the market's fundamental changes.

Ferronickel Cost: The Core Cost Driver As the main raw material for 300-series stainless steel, ferronickel (Ni 10-15%) price changes directly affect the ex-factory price of stainless steel. A $100/ton increase in ferronickel usually leads to a $300-500/ton rise in 304 stainless steel sheets.

Inventory Data: The Supply and Demand Balancer Social inventory (including warehouse inventory and in-transit goods) reflects the market's supply surplus or shortage. When inventory exceeds the 500.000-ton threshold (for China's market), prices tend to decline; inventory below 300.000 tons often triggers price increases.

Downstream Operating Rate: The Demand Barometer Operating rates of downstream industries (construction, automotive, home appliances) directly determine stainless steel consumption. A 10% increase in the home appliance industry's operating rate can drive a 3-5% growth in stainless steel demand.

First Step: Data Collection and Preprocessing

High-quality data is the foundation of the AI model. Garbage in, garbage out-flawed data will directly reduce prediction accuracy. The data processing process includes three key links.

1. Multi-Source Data Integration

Collect data from authoritative channels to ensure timeliness and accuracy: Ferronickel cost data from the Shanghai Nonferrous Metals Network (SMM), updated daily; inventory data from the China Iron and Steel Association (CISA), released weekly; downstream operating rate data from industry research institutions (e.g., Mysteel), updated every 3 days. The data time span covers 5 years (2019-2023) to capture cyclical trends.

2. Data Cleaning and Standardization

Eliminate abnormal data points (e.g., sudden price spikes caused by force majeure) using the 3σ principle. Standardize data units: Convert ferronickel cost to $/ton, inventory to 10.000 tons, and operating rate to a percentage (0-100%). Fill missing values with the linear interpolation method to ensure data integrity.

3. Feature Engineering: Enhancing Data Value

Construct derivative features to improve the model's predictive ability: Calculate the 7-day moving average of ferronickel cost to smooth short-term fluctuations; create an inventory-to-demand ratio (inventory / (downstream operating rate × historical average consumption)); add a seasonal feature (e.g., Q1 for Spring Festival demand decline) to capture periodic patterns.

Algorithm Selection: LSTM Neural Network for Time Series Prediction

Stainless steel prices are typical time series data with strong continuity and periodicity. Among AI algorithms, the Long Short-Term Memory (LSTM) network outperforms ARIMA and traditional neural networks in handling long-term dependencies.

1. Model Structure Design

The LSTM model consists of four layers: Input layer (accepting 3 core indicators + 5 derivative features, total 8 features); two LSTM layers (the first layer has 64 units, the second layer has 32 units, using ReLU activation function); output layer (predicting the 304 stainless steel sheet price 7 days later).

2. Hyperparameter Tuning

Optimize hyperparameters through cross-validation to avoid overfitting: Set the time step to 14 days (using data from the past 14 days to predict future prices); batch size to 32; learning rate to 0.001; use the Adam optimizer and mean squared error (MSE) as the loss function. The model training epoch is 100. with early stopping when the validation loss stops decreasing for 5 consecutive epochs.

3. Model Training and Validation

Divide the 5-year data into training set (70%), validation set (15%), and test set (15%). After training, the model's MSE on the test set is 0.008. and the R² (coefficient of determination) is 0.86. indicating that the model can explain 86% of the price variation-far higher than the 62% of the traditional ARIMA model.

Model Optimization: Attention Mechanism and Ensemble Learning

To further improve accuracy, integrate the attention mechanism and ensemble learning to enhance the model's ability to focus on key factors.

1. Adding Attention Mechanism

Embed an attention layer between the LSTM layers to assign different weights to input features. The results show that the model automatically assigns the highest weight (0.42) to the ferronickel cost 7-day moving average, followed by the inventory-to-demand ratio (0.28) and home appliance industry operating rate (0.15), which is consistent with market logic.

2. Ensemble Learning with XGBoost

Combine the LSTM model with the XGBoost algorithm (excellent in handling tabular data) using a weighted average method (LSTM weight 0.7. XGBoost weight 0.3). The integrated model's prediction accuracy on the test set increases to 88%, and the average absolute error (MAE) decreases by 12% compared with the single LSTM model.

Practical Application: Case Study of a Stainless Steel Trading Company

A large stainless steel trading company applied this model to guide procurement and sales decisions from January to June 2024. The model's prediction results and actual effects are as follows:

 

Prediction Period

Model Predicted Price ($/ton)

Actual Market Price ($/ton)

Prediction Error

Decision Guidance and Effect

Jan 15-21

2850

2830

0.7%

Reduced inventory by 20%, avoiding $40/ton loss

Mar 1-7

2980

3000

0.7%

Increased procurement by 15%, earning $30/ton profit

May 20-26

3120

3100

0.6%

Locked in sales prices, ensuring stable margins

 

During the six-month period, the company's inventory turnover rate increased by 35%, and the average profit margin per ton increased by 2.3 percentage points, verifying the model's practical value.

Common Challenges and Solutions

In actual application, the model may face challenges such as sudden policy changes and raw material price shocks. Targeted solutions ensure its stability.

Policy Interference (e.g., Export Tax Adjustment) Add policy dummy variables to the model (1 for policy implementation, 0 otherwise) and retrain the model with historical policy data to improve adaptability.

Ferronickel Price Volatility Caused by Nickel Ore Supply Integrate nickel ore import data (from Indonesia, the Philippines) into the model as a leading indicator to predict ferronickel cost changes in advance.

Model Degradation Over Time Establish a monthly model update mechanism, retrain the model with the latest 3 months of data, and adjust feature weights to adapt to market changes.

Future Outlook: Integrating More Advanced Technologies

The stainless steel price prediction model will continue to evolve with technological progress, moving toward higher accuracy and intelligence.

Real-Time Data Integration Connect to the IoT systems of steel mills and warehouses to obtain real-time inventory and production data, reducing data lag from 3 days to 1 hour.

Natural Language Processing (NLP) Analyze news, social media, and industry reports using NLP to extract sentiment indicators (e.g., "steel mill strike" negative sentiment) and incorporate them into the model.

Digital Twin Technology Build a digital twin of the stainless steel industry chain, simulating the impact of different scenarios (e.g., rising oil prices affecting transportation costs) on prices to provide scenario-based forecasts.

Conclusion: AI Empowers Stainless Steel Market Decision-Making

The AI price prediction model based on ferronickel cost, inventory data, and downstream operating rate breaks through the limitations of traditional prediction methods. By accurately capturing the complex relationships between market factors, it provides reliable price forecasts for enterprises in the stainless steel industry chain. The model's practical application shows that AI technology can effectively reduce operational risks, optimize resource allocation, and enhance market competitiveness. As data quality improves and algorithms advance, such AI models will become an indispensable tool for stainless steel enterprises, promoting the industry's transformation toward data-driven decision-making.

Send Inquiry