Polymer Melt Flow Rate

Polymer properties such as density, melt index, and melt flow rate must be kept within tight specifications for each grade. This case study is to analyze polymer production data to predict melt flow rate.

Background: There are gas phase and liquid slurry reactors that create polymers (polyethylene, polypropylene, polystyrene, and others) from chemical building blocks known as monomers (C2=, C3=, C4=, iC5=, and others). A catalyst is injected with the monomers under carefully controlled temperature and pressure conditions to cause a reaction that grows the polymer chains. Hydrogen is a chain transfer agent to stop the growth of the polymer chain. If the polymer chains grow too long then the polymer is too viscous for manufacturing in films, injection molding, or other applications.

If the polymer chains are too short then the polymer is soft and does not have the strength for the particular application such as a plastic bag, a car bumper, or washing machine drum. Regular lab samples from the reactor are used to keep the polymer at the right viscosity for each particular grade. The grade is specified by the customer and may include specifications for:

  • Melt Index (Polyethylene)
  • Melt Flow Rate (Polypropylene)
  • Density
  • Xylene Solubles (Measure of Polymer Crystallinity)

This case study focuses on measurements of Melt Flow Rate (MFR) to determine the polymer viscosity based on reactor conditions. An accurate model is desirable so that the infrequent lab samples (every 2-8 hours) are supplemented with a virtual and continuous "soft sensor". A model that runs in real-time simulation alongside the physical reactor is called a digital twin.

Objective: Develop a prediction of the reactor MFR from the polymer reactor data set. Report the correlation coefficient (R2) for predicting ln(MFR) in the test set. Randomly select values that split the data into a train (80%) and test (20%) set. Use Linear Regression, Neural Network (Deep Learning), and another regression method of your choice. Discuss the performance of each. Submit source code and a summary memo (max 2 pages) of your results.

Regression: Use 3 regression methods. Possible regression methods are:

Data: The data file contains tags from process instruments. The specific meaning of the tags is unknown but the follow table is an educated guess based on the name and range of values:

LabelData File TagDescription
Time Timestamp of the measurements
C3=513FC31103.pvPropylene (C3=) Feed Rate (kg/hr)
H2R513HC31114-5.mvHydrogen to C3= Ratio
Pressure513PC31201.pvReactor Pressure (bar)
Level513LC31202.pvReactor Bed Level (m)
C2=513FC31409.pvEthylene (C2=) Flow (kg/hr)
Cat513FC31114-5.pvCatalyst Feed Rate (kg/hr)
Temp513TC31220.pvReactor Temperature
MFRMFRMelt Flow Rate (gm/10min)

The data set has missing data and outliers so data visualization and exploration are needed to first cleanse the data set. Create a new data column as the natural log of MFR (ln(MFR)). The natural log of MFR is a better label (measured output) than MFR. This transform has a more linear relationship between the reactor conditions (inputs) and the predicted ln(MFR) output.

Use the TCLab Data Science modules 2-6 (Import, Analyze, Visualize, Prepare Data, Regression) as a template for analyzing and performing the regression.

References

  • Roychadhury, A. Predict MFR of Polymer, Kaggle, Retrieved Jan 22, 2021.
  • Hedengren, J.D. Allsford, K.V., and Ramlal, J., Moving Horizon Estimation and Control for an Industrial Gas Phase Polymerization Reactor, Proceedings of the American Control Conference (ACC), New York, NY, pp. 1353-1358, July 2007. Preprint

Solutions


Generative AI Learning

Use these prompts to test your understanding after completing the case study. Direct the AI — you own the data preparation and the model comparison.

"Quiz me with 5 questions, one at a time, on the polymer melt flow rate case study: why ln(MFR) is regressed instead of raw MFR, what R-squared on the TEST set measures and why a large train-test R-squared gap signals overfitting, why raw industrial reactor data needs cleansing before regression (missing values, outliers, sensor freezes), why hydrogen-to-propylene ratio is physically expected to dominate the prediction, and what goes wrong if the model is used at reactor conditions outside the training data range. Grade my answers and list my misconceptions."
"Here are my three regression models for ln(MFR) with test R-squared and a one-line residual description for each: {paste}. Choose ONE model to deploy as the online melt-flow soft sensor and defend the choice — accuracy is not the only criterion (extrapolation behavior, retraining cost, interpretability for operators). I will then attack your choice with evidence from my validation data (residual patterns, performance on specific operating regions). Defend, concede, or revise, but only in response to my evidence — do not simply agree with me."

Tip: This is a real industrial soft-sensor problem, and modern practice ships the model with documentation: a model card stating training data range, expected accuracy, and known failure modes. Write one — it forces every judgment this assignment is testing.

What to Turn In

Submit your source code and a summary memo (PDF, maximum 2 pages) that curates your results into a demonstration of what you learned. You may use Generative AI to help write the memo, but you must guide it to the correct visualizations, justifications, and assumptions. Answer these questions:

  1. Report train and test R-squared for all three methods in a table, with your 80/20 split stated. Interpret any train-test gap.
  2. Include one parity plot (predicted vs measured ln(MFR)) for your best model and a residual plot against one key input. Do the residuals show structure or noise?
  3. What data cleansing did you apply, and how many points did it remove? Show one example of a removed point and justify the removal.
  4. Include a 5-line model card for the model you defended in the debate prompt: intended use, training data range, test accuracy, known failure modes, and retraining trigger. Note where the AI's defense and your attack disagreed, and who was right.
  5. From the quiz prompt: one question you missed and the corrected answer.

Course on GitHub

Exams

Data Engineering

Agentic Engineering

Classification

Supervised Learning

Unsupervised Learning

Regression

Time-Series

Computer Vision

Applications

3D Print 📈📊
Automotive Data 📈📊
Auto Efficiency 📈📊👁️
Battery Life⏱️📈
Bit Classification 👁️📊
Facial Recognition 👁️📊
Glass Type⏱️📈
Hand Tracking 👁️
OT Cybersecurity ⏱️📊
Batteries 📊
Polymers 📈
Road Detection 👁️📊
Safety 👁️
Soils 👁️📊
Sonar 📊
Texture 👁️📊
Wind Power ⏱️📈
📈=Regression
📊=Classification
⏱️=Time Series
👁️=Computer Vision
🎧=Audio

TCLab Project

Related Courses

Admin