This puzzle is a variant of U-Bahn. The rules previously appeared in puzzles by uvo and Zzzyxas.
If you are unfamiliar with U-Bahn, here is a guide that covers the core logic.
Draw a loop network through the centers of some cells, which may branch or turn, but may not have any dead ends.
A clue outside the grid indicates how many times the corresponding line shape (i.e. a cross, branch, straight line, or turn) appears in the corresponding row or column, irrespective of the line shape's rotation.
In each cage, every possible line shape must occur exactly once in every possible orientation (one empty cell, one cross, four branches, two straight lines, and four turns). The possible line shapes for each cage are shown to the right of the puzzle.