what does chess.com insights classify as “opening, middle and end game”


I'm not seeing anything documented. I'm asking about it.
#1
I do not know how they do it here, but how it should be done.
Middle game is everything that is not opening or endgame.
Opening it is as long as a game with the same position exists in a data base.
Everything with 7 men or less is decidedly endgame. Some positions with >7 men can be considered endgame as well as middle game. Positions with at most 1 queen / rook / bishop / knight on each side are generally considered endgame, regardless of the number of pawns.
Some positions with 2 queen / rook / bishop / knight on each side are often considered endgame as well.