This document presents SAPSM, a system that uses machine learning to classify smartphone apps as either high or low priority based on their network usage patterns. It then uses these classifications to optimize the phone's WiFi power save mode for each app's traffic, allowing low priority app traffic without triggering a power-hungry mode switch. This can significantly reduce energy consumption from WiFi without degrading performance of high priority apps like web browsing. The system was evaluated using a user study and shown to achieve large energy savings for low priority apps while maintaining performance for high priority ones.