I have a hack that makes this somewhat simpler — hook into people's online grocery shopping. Then, all the stuff you eat at home can be counted automatically. Obviously, it doesn't work so well if you throw food away (so you have to tell the app that, or allow for a small amount of wastage) or share food (so you have to say how many people live in the household and their consumption profiles), but the data is available now.
Also, you don't need to measure exercise to help with weight-loss; instead just work out how many calories the user is eating and then encourage them to restrict that until they start losing weight (basically we are building an eat-watch à la the hacker diet.)