It's a tricky question, especially true if you only have access to the top of the book information. For market that are always quoted single tick wide and has a nice thick book, I'd use weighted mid, i.e. bid*ask_size/(ask_size+bid_size) + ask*bid_size/(ask_size+bid_size). However, for something...