In this study, a composite film was created with the dual goal of prolonging pork shelf life and showing freshness. Hydrogel materials as solid base films were selected from gelatin (G), sodium alginate (SA) and carboxymethyl cellulose (CMC) based on their antioxidant activity, water vapor permeability, mechanical properties, as well as their stability, antimicrobial activity, and freshness, which indicates effectiveness when combined with anthocyanins. Furthermore, the effects of several concentrations of red cabbage anthocyanin (R) (3%, 6%, 12%, and 24%) on freshness indicators and bacteriostasis were investigated. The antimicrobial activity of the composite films was evaluated against Escherichia coli, Bacillus subtilis, and Staphylococcus aureus. Likewise, the freshness indicates effectiveness was evaluated for NH3. Considering the mechanical properties, antibacterial ability, freshness indicator effect, and stability of the composite film, CS film combined with 12% R was selected to prepare a dual-functional intelligent film for pork freshness indicator and preservation. By thoroughly investigating the effect of composite film on pork conservation and combining with it KNN, the discriminative model of pork freshness grade was established and the recognition rate of the prediction set was up to 93.3%. These results indicated that CSR film can be used for the creation of active food packaging materials.