In an industrial mass production pattern, quality prediction is one of the important processes when guarding quality. The products are extracted periodically or quantitatively for inspection in order to observe the relationship between process variation and engineering specification. When these irregularities are not instantly detected by lot sampling inspection, lot defectives are produced, and the defective cost increases. Failure to identify defects during sampling inspection leads to product returns or harm to business reputation. Press casting is a common mass production method in the metal industry. After the metal is molten at a high temperature, high pressure is injected into the mold, and then it is solidified and formed in the mold. Thus, pressure stability inside the mold is one of the key factors that influences quality. The melting point of aluminum alloy is normally around 650 °C, but there was no sensor that could withstand this high temperature. To combat this, we developed a high temperature resistant sensor and installed it into pressure casting mold grounded on the principles of fluid mechanics and experts’ suggestions in order to realize the impact of pressure change on the mold. To our limited knowledge, it was a seminal study on predicting mold’s casting quality via in-mold pressure data. We propose a press casting quality prediction method based on machine learning. By collecting the in-mold pressure data in real time. Savitzky-Golay Filter is used for data smoothing, and first-order difference is taken to extract the time interval of an actual injection of molten metal in-to the mold. We extract the key data that influence the quality and employ XGBoost to establish a classifier. In the experiment we prove that the method achieves good accuracy of quality prediction and recall of defectives for in-mold pressure. Via this model, we not only can save large amount of time and costs, but also can carry out maintenance warnings in advance, notify professionals to stop produce defective products, reduce the shipping risk and maintain reputation so as to strengthen its competitive edge.