AFAIK the compounds that make up the flavor are mostly known.
The problem is more that if you optimize plant growth for weight per time (because weight is what you are payed for) and leave flavor out of the equation, you'll end up with fruit that has a lot of weight with little flavor. If you switch to a growth regimen that gives the plants a bit more time, you will generally get a better flavor, even under hydroponic settings.
Given that you can sense a lot of compounds that make up a fruit non-destructively, I'm pretty optimistic that you could optimize for flavor too in a robotic/vertical farming setting.
The problem is more that if you optimize plant growth for weight per time (because weight is what you are payed for) and leave flavor out of the equation, you'll end up with fruit that has a lot of weight with little flavor. If you switch to a growth regimen that gives the plants a bit more time, you will generally get a better flavor, even under hydroponic settings.
Given that you can sense a lot of compounds that make up a fruit non-destructively, I'm pretty optimistic that you could optimize for flavor too in a robotic/vertical farming setting.