A decent comeback, that shouldn't have happened (you should have won).
You had a few blunders in archiac which i'm sure you're aware of, otherwise the main things I have to say are:
-Don't start farming when you have herdables.
-Don't march your army in when you have no idea what the size or units of his army are.
-Make more midgols, and when one goes down, put it back up.
-His oracle was standing in the middle of your wood gatherers for over half the game and had perfect vision in your base, DON'T LET THIS HAPPEN!