A study of topological structures in TJ-II radiation profiles using an automated pattern recognition procedure and their correlation with plasma confinement