Walter Richard Miles, 93, a professor of psychology at Yale University and later director of the Navy's submarine medical research laboratory, died of heart and lung failure Monday at the Friends House nursing home in Sandy Spring, Md.

During World War II, Dr. Miles was a consultant to the armed forces. He introduced the use of red goggles for pilots standing by for night missions. The goggles shortened the time necessary for the pilots to acquire "night vision." Dr. Miles received a Presidential Certificate of Merit for this work.

He taught at Stamford for 10 years and then at Yale from 1931 until his retirement in 1953.

He was a professor at the University of Istanbul, Turkey, after leaving Yale. He became medical director of the submarine medical research laboratory at New London, Conn., in the late 1950s, and remained there until his second retirement at the age of 80. He came to this area in 1974.

Dr. Miles was a past president of the American and Turkish psychological associations and a member of the National Academy of Sciences. He received the American Psychological Foundation Gold Metal in 1962 for his work on aging and the sensory processes.

He was born in Silverleaf, N.D., and educated at Pacific and Earlham colleges and at the University of Iowa.

He belonged to the Society of Friends and the Cosmos Club here.

Survivors include his wife, Catherine Cox Miles, of the home in Sandy Spring; four children, Kirk, of Greenwich, Conn., Caretta Capers, of Riverside, Conn., Marjorie McClelland, of New Lisbon, N.Y., and Anna JOnes, of Washington; a sister, Esther Haworth, of Norwalk, Conn.; 12 grandchildren, and six great-grandchildren.