AI framework links gravitational waves and radio afterglows