In one of Apple's latest patents, the title reads “Inferring user intent from battery usage level and charging trends”. In English, this means that Apple is working on software that will better understand when you need power and when you don't. For example, if your current battery consumption is above the daily average, certain hardware and software will know to use less power enabling you to last the period of time until you next charge your phone. Essentially, the iPhone will learn your charging patterns.
From this, Apple says that users could be warned if their phone will last the duration of a movie they are about to play, or if they have enough charge for a flight.
Currently, Apple is among the bottom of the pile when it comes to battery life, so much so, that it is often mocked. With this latest patent, let's hope Apple really powers up their efforts, no pun intended.