A middlegame position has a structure. That structure is determined by the opening. The simplest way to learn the middlegame is to select an opening and learn it well (see examples in English opening and French defence).