Agreed about "AI" but I think we are stuck with the name.

I have tried several AI chat bots to help with software code and found them 
both useful and dangerous. Clearly helpful in learning a language. I often 
asked it how does one do a specific thing in R. This can be faster than 
repeatedly skimming through the documentation when first learning a language. I 
also experimented with trying to improve an entire R script with many 
functions. I think because of an unclear comment in my R code it silently 
changed one of my functions to correctly and efficiently compute something 
entirely different!. Obviously, the final results were not what I intended. 
That was using ChatGPT. Perhaps Claude would do better now. I now only have it 
check very few functions at once so I can more easily make sure there are no 
side effects and I still get the same numerical or graphical results. Yes, the 
possibility of "hallucinations" should always be a concern when using these new 
AI tools, whether to help generate code or to perform computations. Perhaps not 
that different from the fact that there is always the possibility of "bugs" in 
complex software created the "old fashioned" way. 

I don't think one can long fight the clear trend. I first learned to code in 
1958 using machine language on an IBM 650 computer, but assembly language soon 
became available because it was easier to remember symbols than just numbers. 
Then there were compiled languages like FORTRAN that were even easier to 
program and could be used on more than one specific kind of computer hardware. 
Then languages like MATLAB and R were used for scientific computations as 
computers became fast enough to compensate for the slowness of interpreted code 
compared to that of compiled programs (such as the tps programs). The use of AI 
to carry out computations seems like the next logical step in this evolutionary 
progression. Computationally less efficient (so much faster computers are 
required) but easier for humans to use with even less technical knowledge of 
how computers actually work.

Jim


F. James Rohlf                                    
Distinguished Professor, Emeritus and Research Professor
Depts: Anthropology and Ecology & Evolution
Stony Brook University
On 3/24/2026 3:27:45 AM, Mike Collyer <[email protected]> wrote:
Hi Jim,

I personally do not like the acronym, AI, because the “I" part is not 
consistent with what I would consider intelligence.  Nevertheless, it can be 
extremely helpful for your efforts of improving your software.  Maybe it should 
be called, “AmI”, for amplify my intelligence?  In a situation similar to 
yours, I have provided AI software with my code and asked if it can find ways 
for me to make the code more efficient.  Also, if one discovers a bug or coding 
inefficiency, AI can be useful for discovering other places in a mountain of 
code where the same problem could occur.  These are helpful uses, should be 
indirectly helpful for the users of the software, and are not unnecessarily 
memory-intense uses of AI (I think… at least compared to asking it to perform 
analyses). But I assume when you asked it to build an app for you, it is going 
to pick the lowest hanging fruit, at least initially, and it would take a lot 
of subsequent coaxing to optimize the app to work efficiently.  In this case, I 
question if the juice is worth the squeeze.  Asking AI to identify the places 
in your existing code that could be improved is a good use of a tool that 
augments your intelligence and would probably make your software better than an 
AI-generated app could.  I could be wrong; maybe I just do not appreciate how 
great AI is.

Speaking of hallucinations, in the first few years of chatGPT, it would suggest 
using functions for our software that do not exist.  Now any AI software seems 
to know the software landscape pretty well.  But this makes me question the AI 
limits.  It seems to perform established analyses well, but what if one wanted 
to develop a Procrustes alignment method, for example, that did not require 
estimating missing landmarks, but using rotation matrices calculated from only 
matching landmarks between a reference and the specimen?  If one asks AI to do 
this, it will probably find a solution, right?  What kind of hallucinations 
would the solution contain?  If the person requesting this is not keen enough 
to recognize mathematical or statistical issues with the solution, could its 
haphazard use become published, encouraging others to do something similar?

I’m not sure if my example is a good one but hopefully it illustrates my 
concern.  I do not think much good can arise if software developers stop 
developing software because AI can make an app, on the spot.  I think a lot of 
good can arise if software developers use AI to improve their software.

Maybe I’ll see it differently in a few years though.

Mike

On Mar 23, 2026, at 11:48 PM, '[email protected]' via Morphmet 
<[email protected]> wrote:

Since I haven’t been able to go out much these past two weeks (we have been 
having very strong “Kona storms”), my mind started to wander and I wondered 
whether to debug existing code or create new morphometric software. But then I 
wondered whether conventional software is still needed in the age of AI. I 
described below a couple of the experiments I made. It seems that there are 
some alternatives that are worth discussing.
Google AI Studio
First, I tried Google AI Studio 
(https://protect.checkpoint.com/v2/r01/___https://aistudio.google.com/___.YzJ1OnN0b255YnJvb2s6YzpnOmMyOWQxYmQ3MjAwNTNlNTI3OTc5NWU4OGUyMjFkYjM3Ojc6YTZkMzphZWI2ZmJmOTRlMDZmMjM0MDUwY2ZhNTQyYWUwZmNlNmI4MTcxMzkzNmFiMmJmNjc5Yzc2ODJkNGM3ZWRmYzE2OnQ6VDpG).
 I entered the prompt “I need an app that performs an analysis of relative 
warps (geometric morphometrics) and displays the relative warps plot and 
estimates of implied shapes at user selected positions in the plot.” I was 
pleasantly surprised to find that it knew the terms I used and it created a 
simple interactive app in my browser. It already “knew” about geometric 
morphometrics. Thus, the computations that were required and how to perform a 
GPA, a singular-value decomposition, and compute a thin-plate spline. It could 
generate a plot of a thin-plate spline showing the difference between the mean 
shape and that corresponding to an arbitrary location in the space of the 
relative warps.  With a little experimentation I found that I needed to give it 
additional details about the specific options I wanted such as the criterion to 
stop the GPA iterations and that it should normalize the final configuration to 
have a centroid size of 1. It also assumed alpha = 1 when computing relative 
warps, so I had to add “using alpha = 0 when computing relative warps” 
(although I could have just said perform a PCA” and not mentioned relative 
warps. I also had to specify that it should use the same scales for the two 
relative warp axes. It automatically called the new app “MorphoWarp” which 
sounded like a reasonable name to me. I then had to specify what input file 
format I wanted to use (its default JSON format looked pretty tedious to 
prepare). I specified a simple text file format with each row corresponding to 
a specimen and each containing alternating x and y coordinates. Once the 
specifications were made, the app ran reasonably fast, though not as fast as a 
compiled program such as tpsRelw. The app can be uploaded to github and shared 
with others. I have not done this yet as I would like to make the app more 
complete first.
Claude
I then wondered about using an interactive AI bot directly. I tried Claude 
(https://protect.checkpoint.com/v2/r01/___https://claude.ai/chat___.YzJ1OnN0b255YnJvb2s6YzpnOmMyOWQxYmQ3MjAwNTNlNTI3OTc5NWU4OGUyMjFkYjM3Ojc6NjI1NDowNWUxMWIxOWZlMWZjYzEzZjdjZTQ5NjlmOTM2YjZlY2YwMGZlYjA2NzI1NWNkZmU3OGNmMTYxNmMyOGUyODdjOnQ6VDpG).
 I gave it the prompt: “Perform an analysis of relative warps on the provided 
data file. Display the relative contribution of each relative warp. Show a 
scatterplot of relative warp 2 against relative warp 1 with the axes using the 
same scale. Label the points numerically.” I also it with the same simple data 
file as above but it began with the following comment about the format: “The 
lines (specimens) contain alternating x and y coordinates for 8 landmarks.” It 
then performed the computations, but, as before, I found I needed to give more 
details such as the GPA iteration stopping criterion, alpha = 0, and to 
normalize the final configuration. I could also ask it to produce a thin-plate 
spline plot of the difference between the average shape and a selected position 
in the relative warps space. The plots it produced were quite clear and could 
be downloaded as PNG files. The computations were, however, very slow. No app 
was produced this way, so the only software to share is the prompt.
Broader implications
An alternative to downloading morphometric software may be to simply download 
prompts for AI bots. For serious applications the prompts should, of course, be 
more complete than my examples. The prompts should reduce ambiguity about how 
computations should be performed. They should also include test data to make 
sure the results are correct. Because these systems can “hallucinate,” 
validation checks are essential.
Another consideration is that using conventional software to perform the 
computations on your own computer might be better for the environment than 
increasing the need for even larger remote data centers that consume very large 
amounts of power. This may also be worth discussing.
It looks like the rain has stopped. I think I will go back outside for a while. 
It’s hard to work too hard for too long when on Maui.
Jim

F. James Rohlf                                    
Distinguished Professor, Emeritus and Research Professor
Depts: Anthropology and Ecology & Evolution
Stony Brook University

--
You received this message because you are subscribed to the Google Groups 
"Morphmet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected] 
[mailto:[email protected]].
To view this discussion visit 
https://groups.google.com/d/msgid/morphmet2/Mailbird-bbe66a46-76ca-4b7b-943c-07c973b058be%40stonybrook.edu
 
[https://protect.checkpoint.com/v2/r01/___https://groups.google.com/d/msgid/morphmet2/Mailbird-bbe66a46-76ca-4b7b-943c-07c973b058be*40stonybrook.edu?utm_medium=email&amp;utm_source=footer___.YzJ1OnN0b255YnJvb2s6YzpnOmMyOWQxYmQ3MjAwNTNlNTI3OTc5NWU4OGUyMjFkYjM3Ojc6NDU3YjpjZGZlNTQyOTk0YjgwYWQ0ZDY2MDVkYWUzOWY4OThmZDU0NjA5MDQwZTczOWIxZTNmNGMxODM0Nzk1NTY5MjM5Omg6VDpG].

-- 
You received this message because you are subscribed to the Google Groups 
"Morphmet" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/morphmet2/Mailbird-d0aef296-7c3d-4ce8-b927-e742150a886c%40stonybrook.edu.

Reply via email to