Quiver theory, zigzag homology and deep learning