+
     ±kÐ  ã                   óÐ  € R t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIt]! ]	4      P                  4       P                  ^,          t]R,          t]R,          tR t]P                   ! ]R,          P#                  4       4      t]P                   ! ]R,          P#                  4       4      t]R,          ]! ]R,          4      8X  d7   ]R	,          ]! ]R
,          4      8X  d   ]R,          ]! ]R,          4      8X  g   Q h]R,          P)                  4        F  w  tt]! ]],          4      ]8X  d   K  Q h	  ]P.                  ! ]R
,          4      t]R,          t]R,          t]P6                  ]! ]R,          4      ^R38X  d!   ]P6                  ]! ]R,          4      R38X  g   Q h]P:                  ! ]4      P=                  4       '       d“   ]P:                  ! ]4      P=                  4       '       dm   ]P>                  ! ]P@                  PC                  ]^R7      ^RR7      '       d7   ]P>                  ! ]P@                  PC                  ]^R7      ^RR7      '       g   Q hR t"R]RI,          R]RJ,          R]RI,          ]RJ,          ,           ^,          R]RI,          ]RK,          ,           ^,          /t#/ t$. t%]#P)                  4        EFÃ  w  t&t']"! ]PP                  ! ]R,           U Uu. uF<  p ]']R,           Uu. uF  qR,          V 8H  NK  	  up,          PS                  ^ R7      NK>  	  upp 4      4      t*]P>                  ! ]*]R]&,           ,          RR7      '       g   Q h^ ]$]&&   ]+! ]R,          4       EF  w  t,t-]R,          ],,           Uu/ uF  q"]-V,          bK  	  up]R,          ],,          8X  d#   ]! ]]-R,          ,          4      ]-R,          8X  g   Q h]*]],,          ,          t.]-R,          ]&,          t/]P>                  ! ].]/R ,          RR7      '       dL   ]/R!,          ]R,          ]P`                  ! ].4      ,          8X  d    ]/R",          ]/R!,          ]-R,          8H  8X  g   Q h]$]&;;,          ]/R",          ,          uu&   EK  	  EKÆ  	  ]$]R#,          8X  g   Q h]R,           Uu0 uF  q3R$,          kK  	  up]R,           Uu0 uF  q3R$,          kK  	  up,          '       d   Q h]R,           Uu0 uF  q3R%,          kK  	  up]R,           Uu0 uF  q3R%,          kK  	  up,          '       d   Q hR&]! ]4      R']! ]4      R(]! ]R,           Uu0 uF  q3R$,          kK  	  up4      R)]1! R* ]R+,           4       4      R#]$R,R-/t2]R.,          Pg                  ]Ph                  ! ]2^R/7      R0,           4       ]Pj                  t6RR1RR2RR3RR4/t7R5Pq                  R6 ]7 4       4      t9R5t:]R,           Fl  t;]R,           Uu. uF  q3R,          ];8X  g   K  VNK  	  upt<]:R7]6! ];4      ,           R8,           R5Pq                  R9 ]7 4       4      ,           R:,           ,          t:Kn  	  ]R,           FÁ  t'R5Pq                  R; ]7 4       4      t=]%P}                  R<]6! ]'R,          4      ,           R=,           ]6! ]'R,          4      ,           R>,           ]6! ]'R,          4      ,           R?,           ]6! ]'R%,          4      ,           R@,           ]6! ]'R$,          4      ,           RA,           ]=,           RB,           4       KÃ  	  RC]9,           RD,           R5Pq                  RE ]7 4       4      ,           R:,           ]:,           RF,           R5Pq                  ]%4      ,           RG,           t?]RH,          Pg                  ]?4       ]@! ]Ph                  ! ]2^R/7      4       R# u upi u upp i u upi u upi u upi u upi u upi u upi u upi )LzAVerify and publish the frozen preliminary source-crop comparison.N)ÚPathz,results/r112/design/synthetic-training-pilotzresults/r112/species-depthc                 óf   € \         P                  ! V P                  4       4      P                  4       # )N)ÚhashlibÚsha256Ú
read_bytesÚ	hexdigest)Úps   &Ú&research/r112_training_pilot_report.pyÚshar
      s   € ”'—.’. §¡£Ó0×:Ñ:Ó<Ð<ó    zprotocol.jsonzresults.jsonÚprotocol_sha256Úfeatures_sha256zfeatures.npzÚscript_sha256zresearch/r112_training_pilot.pyÚinputs_sha256ÚtrainingÚ
validationi   )Úaxisgñhãˆµøä>)Úatolc                 óT   € V \         P                  P                  V RRR7      ,          # )é   T)r   Úkeepdimséÿÿÿÿ)ÚnpÚlinalgÚnorm)Úxs   &r	   Ú<lambda>r   
   s   € ˆa”—	‘	—‘˜q b°$�Ó7Ö7r   ÚrealÚ	syntheticÚreal_plus_syntheticÚreal_plus_transformedÚlabel_orderÚspeciesÚ	centroid_g�íµ ÷Æ°>Ú
local_filer   ÚoutputsÚscoresÚ
predictionÚcorrectÚcountsÚsource_slideÚannotation_idÚtraining_sourcesÚvalidation_cropsÚvalidation_slide_groupsÚsource_rectangle_clippedc              #   ó2   "  € T F  qR ,          x € K  	  R# 5i)r/   N© )Ú.0r   s   & r	   Ú	<genexpr>r3      s6   é € ð  hgñ  Pfð  KLð  kE÷  iFò  iFó  Pfùs   ‚Útraining_geometryÚcheckszåInput hashes, feature shapes and normalization, source-slide separation, saved centroids and every validation prediction reconstructed. Does not validate species labels, sample independence, model features or biological accuracy.z
verify.log)ÚindentÚ
zReal source cropszSynthetic crops onlyzReal + syntheticzReal + transformed controlÚ c              #   ó   "  € T Ft  pR \        \        V,          4      ,           R,           \        \        V,          4      ,           R,           \        ^\        V,          ,          4      ,           R,           x € Kv  	  R# 5i)ú<tr><th>z	</th><td>z/50</td><td>z%</td></tr>N)ÚeÚtitlesÚstrÚcnt©r2   Úks   & r	   r3   r3      sV   é € ÐyÑrxÐmnˆjœœ6 !�9›Õ% kÕ1´#´c¸!µf³+Õ=¸nÕLÌSÐQRÔSVÐWXÕSYÕQYË]ÕZÐ[h×hÒhÓrxùs   ‚A<A>r:   ú</th>c              #   ó„   a"  € T F5  oR \        \        V3R l\         4       4      4      ,           R,           x € K7  	  R# 5i)z<td>c              3   óP   <"  € T F  qR ,          S,          R,          x € K  	  R# 5i)r%   r(   Nr1   )r2   r   r@   s   & €r	   r3   Ú<genexpr>.<genexpr>   sS   øé € ð  xcñ  ]bð  XYð  {Dõ  yEð  FGõ  yHð  IR÷  ySò  ySó  ]bùs   ƒ#&z/5</td>N)r=   ÚsumÚcasesr?   s   &@r	   r3   r3      sj   øé € ð  iñ  x~ð  stÐioÔpsÔtwô  xcõ  ]bó  xcó  ucó  qdõ  jdð  en÷  jnò  jnó  x~ùs   ƒ=A z</tr>c              #   ó  "  € T Fƒ  pR \        \        V,          4      ,           R,           \        \        R,          V,          R,          4      ,           \        R,          V,          R,          '       d   RMR,           R,           x € K…  	  R# 5i)	z<li>z: r%   r'   r(   u    âœ“r8   z</li>N)r;   r<   r   r?   s   & r	   r3   r3      st   é € ð  Pñ  IOð  DEˆf”Q”v˜a•y“\Õ! $Õ&¤q¬¨9­°a­¸Õ)FÓ'GÕGÔSTÐU^ÕS_Ð`aÕSbÐcl×SmÔSmÉÐsuÕvÐw~×~Ò~ó  IOùs   ‚BBz.<article><a href="/results/r112/species-depth/z7"><img loading="lazy" src="/results/r112/species-depth/z," alt="Validation source crop"></a><div><h3>z</h3><p>Source annotation z; filename group z</p><ul>z</ul></div></article>u�  <!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Synthetic training comparison</title><style>body{font:16px/1.5 system-ui;color:#193b37;background:#f2f6f2;margin:0}main{max-width:1100px;margin:auto;padding:24px}a{color:#076c59}.notice{background:#fff8df;border-left:5px solid #b88418;padding:15px}table{border-collapse:collapse;background:white;max-width:100%;display:block;overflow:auto}td,th{border:1px solid #cbd8d1;padding:8px;text-align:left}article{display:flex;gap:20px;background:white;border:1px solid #d0ddd5;margin:12px 0;padding:14px}article img{width:180px;height:180px;object-fit:contain;background:#eee}article h3{margin:0}article ul{margin:0}@media(max-width:600px){article{display:block}}</style><body><main><nav><a href="/results/r112/">Synthetic training project</a> Â· <a href="/results/r112/weak-development-v1/">Synthetic scenes</a></nav><h1>Do synthetic crops improve species identification?</h1><p class="notice"><strong>Preliminary comparison, not an Academy accuracy estimate.</strong> Only ten source-named species are possible; there is no unknown option. Labels and masks have not been checked by a scientist. Five crops per species come from the same filename-derived slide group, and different slide names do not prove independent biological samples. The validation crops are now used; candidate test crops were not evaluated.</p><p>We used 153 distinct development specimens to build a frozen generic ResNet-18 feature centroid for each class. Synthetic crops use the known insertion rectangle in a generated scene, so this experiment does not test automatic detection or segmentation. The original Academy background can contain unlabeled diatoms. Each mixed method uses the same source specimens and equal weight for both views.</p><table><tr><th>Reference images</th><th>Exact source-name matches</th><th>Fraction</th></tr>aÝ  </table><p>Real + synthetic gained one match over real alone; this is too small and the sample too correlated to establish an improvement. Synthetic alone scored lower. The transformed control helps separate the effects of adding a second view from adding scene context, but these differences also include resampling, clipping and background changes. None establishes species-level performance on microscope scans.</p><h2>By source-named species</h2><table><tr><th>Species</th>c              #   ój   "  € T F)  pR \        \        V,          4      ,           R,           x € K+  	  R# 5i)z<th>rA   N)r;   r<   r?   s   & r	   r3   r3      sg   é € ð  N&{&ñ  t&z&ð  o&p&ð  O&U&ô  V&W&ô  X&^&ð  _&`&õ  X&a&ó  V&b&õ  O&b&ð  c&j&÷  O&j&ò  O&j&ó  t&z&ùs   ‚13uš  </table><p><a href="protocol.json">Frozen protocol and selected source IDs</a> Â· <a href="results.json">Predictions and scores</a> Â· <a href="verify.log">Verification</a> Â· <a href="/research/R112_DESIGN.md">Research notes</a></p><h2>Validation crops and predictions</h2><p>Click any crop to inspect it. A check mark means the prediction matches the source dataset name, not that an expert confirmed it.</p>z</main></body></html>z
index.html)ºNNNé    )rI   é   )rI   r   )AÚ__doc__Úcollectionsr   ÚhtmlÚjsonÚpathlibr   Únumpyr   Ú__file__ÚresolveÚparentsÚRÚOÚDr
   ÚloadsÚ	read_textr   ÚrÚitemsÚfÚhÚloadÚzÚtÚvÚshapeÚlenÚisfiniteÚallÚallcloser   r   ÚunitÚinputsr>   Úrowsr@   r   ÚstackÚmeanÚcÚ	enumerateÚiÚcaser&   ÚoutÚargmaxrE   ÚsummaryÚ
write_textÚdumpsÚescaper;   r<   ÚjoinÚtableÚperr"   rF   ÚpredÚappendÚpageÚprint)ÚlabelÚar@   r   s   0000r	   Ú<module>r      s  ðÙ Gß $× $Ý Û Ù€xƒ.×ÑÓ×"Ñ" 1Õ%€¨Ð*XÕ(X aÐ[\Ð]yÕ[yÐYZÚ <Ø‡*‚*ˆa�Õ×*Ñ*Ó,Ó-€°·
²
¸A¸nÕ<L×;WÑ;WÓ;YÓ0Z¨aÐbcÐduÕbvÑx{Ð|}ð  Nõ  }Nó  yOô  cOð  TUð  Vgõ  Thñ  jmð  noð  p~õ  n~ó  jô  Tð  DEð  FUõ  DVñ  X[ð  \]ð  ^õ  \ó  X@ô  D@ð  \@ð  c@Øˆ_Õ×#Ñ#Ö%�C€A€a©S°°1µ«X°q®[Ð&8¨[Ñ%Ø‡'‚'ˆ!ˆNÕ
Ó€˜a 
�m˜A¨a°­o¨AÀQÇWÁWÉsÐSTÐU_ÕS`ÓOaÐbcÐdgÐNhÔEhÐmn×mtÑmtÑwzÐ{|ð  ~Jõ  |Kó  xLð  MPð  wQô  nQð  ?Qð  FQð  Y[÷  Ydò  Ydð  efó  Yg÷  Ykñ  Yk÷  Ymò  Ymð  rt÷  r}ò  r}ð  ~ó  r@÷  rDñ  rD÷  rFò  rFð  KM÷  KVò  KVð  WY÷  W`ñ  W`÷  Weñ  Weð  fgð  mnð  Weó  Woð  pqð  w{÷  K|ó  K|ð  AC÷  ALò  ALð  MO÷  MVñ  MV÷  M[ñ  M[ð  \]ð  cdð  M[ó  Með  fgð  mq÷  Aró  Arð  Rrð  YrÙ7€Øˆq��v�k ! C¥&Ð)>ÀÀ#ÅÀqÈÅvÅÈqÕ?PÐQhÐjkÐloÕjpÐqrÐsvÕqwÕjwÐyzÕizÐ{€ð  ACÐ|ð  IKð  DHØ�<‰<�>�C€A€aÙˆ�ŠÐ\]Ð^kÖ\lÔmÑ\lÐSX�!°!°J¶-Ó@±-¨Q�y•\ 5Ô(±-Ñ@ÕA×FÑFÈAÐFÖNÑ\lÒmÓnÓo€Ðxz÷  yDò  yDð  EFð  GHð  ITð  UVõ  IVõ  GWð  ]a÷  ybó  ybð  rbð  ybØ	€€Q�Ù˜˜<�×)�V€Q€tØ˜|�_¨QÖ/Ó	0Ñ/˜ˆD��GŠ)Ñ/Ñ	0°!°Lµ/À!Õ2DÔ	DÉÈQÈtÐT`ÕOaÕMaÓIbÐdhÐiqÕdrÔIrÐrÐ	rÐz{Ð|}Ð~õ  }Aõ  {AÐsyð  FJð  KTõ  FUð  VWõ  FXð  BEð  `b÷  `kò  `kð  lrð  svð  wõ  s@ð  FJ÷  `Kó  `Kð  PSð  T`õ  Pað  cdð  erõ  csð  tv÷  t}ò  t}ð  ~Dó  tEõ  cFô  PFð  KNð  OXõ  KYð  \_ð  `lõ  \mð  osð  t}õ  o~ñ  \~ô  Kð  Yð  `ð  @Cð  DE÷  @Fð  HKð  LUõ  HVõ  @Vö  @Fô *ñ ð
 ˆAˆh�KÔÐ Ð¸qÀ¾}Ó#M¹}¸! n×$5Ð$5¹}Ñ#MÐlmÐnzÖl{ÓP|Ñl{ÐghÐSa×QbÐQbÑl{ÑP|×#|Ô#|Ð|Ð|ð  fgð  hrö  fsó  Itñ  fsð  abð  L[÷  J\ð  J\ñ  fsñ  Itð  TUð  Vbö  Tcó  wdñ  Tcð  OPð  zI÷  xJð  xJñ  Tcñ  wd÷  Idô  Idð  ~dð  EdØ	™C ›FÐ#5±c¸!³fÐ=VÑWZÐwxð  zFö  xGó  \Hñ  xGÐrsÐ^l×\mÐ\mñ  xGñ  \Hó  XIð  Jdñ  ehñ  hgð  PQð  Reö  Pfó  hgó  egð  hpð  qtð  u}ð  ~eð  	f€ð  hið  jvõ  hv÷  gBñ  gBð  CG÷  CMò  CMð  NUð  ]^ô  C_ð  `dõ  Cdô  geØ‡+�+€�vÐ1°+Ð>TÐUjÐk}ð  Vð  Wsð  tˆvØ‡g�gÑyÑrxÓyÓy€Ø€Ø�×Ð€GØ�\–?Ó<‘?ˆa¨	¥l°GÑ&;�ˆ‘?Ñ<€¸cÀ:ÉaÐPWËjÕCXÐY`ÕC`Ðac×ahÑahñ  iñ  x~ó  ió  bõ  Dð  @Gõ  DGõ  ?Gºcñ  à	
ˆ<�ˆ€AØ‡g�gñ  Pñ  IOó  Pó  P€Ø‡�Ð=¹aÀÀ,ÅÓ>PÕPð  RKõ  Kñ  LMð  NOð  P\õ  N]ó  L^õ  ^ð  _Mõ  Mñ  NOð  PQð  R[õ  P\ó  N]õ  ]ð  ^zõ  zñ  {|ð  }~ð  Nõ  }Oó  {Põ  Pð  Qdõ  dñ  efð  ghð  iwõ  gxó  eyõ  yð  zDõ  Dð  EIõ  Ið  Jaõ  aö  bñ 
ð \ð  ]bõ  bð  cF&õ  F&ð  G&I&÷  G&N&ñ  G&N&ñ  N&{&ñ  t&z&ó  N&{&ó  G&{&õ  {&ð  |&C'õ  C'ð  D'G'õ  G'ð  H'h-õ  h-ð  i-k-÷  i-p-ñ  i-p-ð  q-u-ó  i-v-õ  v-ð  w-R.õ  R.€ð  T.U.ð  V.b.õ  T.b.÷  S.n.ñ  S.n.ð  o.s.ô  S.t.ñ  u.z.ð  {..÷  {.E/ò  {.E/ð  F/M/ð  U/V/ô  {.W/ö  u.X/ùò AùÓmùò 
1ùÚ#MùÒP|ùò  Itùò  wdùò \Hùò
 =sH   Ë!^?Ë2^:Ì^?Î_Ò#_
Ó_Ó._Ô_Õ_×7_#Ø_#Þ:^?