Nerval's Lobster writes "Computer scientists at Harvard University have come up with a way to convert algorithms that teach machines to learn into a form that would allow artificial intelligence to be programmed into complex chemical reactions. The ultimate result could be smart drugs programmed to react differently depending on which of several probable situations they might encounter – without the need to use nano-scale electronics to carry the instructions. 'This kind of chemical-based AI will be necessary for constructing therapies that sense and adapt to their environment,' according to Ryan P. Adams, assistant professor of computer science at Harvard's School of Engineering and Applied Sciences (SEAS), who co-wrote the paper explaining the technique (PDF). 'The hope is to eventually have drugs that can specialize themselves to your personal chemistry and can diagnose or treat a range of pathologies.' The techniques are part of a larger effort to program the behavior of molecules in manufacturing, decision-making and diagnostics, using both nano-scale electronics and the still-relatively-new study of bionanotechnology."