An adaptable time-delay neural-network algorithm for image sequence analysis