Genie User Guide - Digital Pathology
Genie User Guide - Digital Pathology
Users Guide
Copyright2008AperioTechnologies,Inc.
PartNumber/Revision:MAN0098,RevisionA
Date:December9,2008
ThisdocumentappliestosoftwareversionsRelease10.0andlater.
Allrightsreserved.Thisdocumentmaynotbecopiedinwholeorinpartorreproducedinanyothermediawithoutthe
expresswrittenpermissionofAperioTechnologies,Inc.Pleasenotethatundercopyrightlaw,copyingincludestranslation
intoanotherlanguage.
User Resources
ForthelatestinformationonAperioTechnologiesproductsandservices,pleasevisittheAperioTechnologieswebsiteat:
http://www.aperio.com.
Disclaimers
ThismanualisnotasubstituteforthedetailedoperatortrainingprovidedbyAperioTechnologies,Inc.,orforother
advancedinstruction.AperioTechnologiesFieldRepresentativesshouldbecontactedimmediatelyforassistanceinthe
eventofanyinstrumentmalfunction.InstallationofhardwareshouldonlybeperformedbyacertifiedAperioTechnologies
ServiceEngineer.
ImageServerisintendedforusewiththeSVSfileformat(thenativeformatfordigitalslidescreatedbyscanningglassslides
withtheScanScopescanner).EducatorswilluseAperiosoftwaretoviewandmodifydigitalslidesinCompositeWebSlide
(CWS)format.
AperioproductsareFDAclearedforspecificclinicalapplications,andareintendedforresearchuseforotherapplications.
Contact Information
Headquarters: AperioTechnologies,Inc. EuropeanOffice: Aperio
1360ParkCenterDrive 3TheSanctuary
Vista,CA92081 EdenOfficePark
UnitedStates HamGreen
BristolBS200DD,UK
Step#8TesttheClassifier....................................................................................39
CreateaTestingRegion .......................................................................................39
CreateaClassificationMacro..............................................................................41
RuntheClassifierMacro......................................................................................45
ImprovingClassificationPerformance ..............................................................45
ExportingandImportingClassifiers ....................................................................46
ToExportaClassifier ...........................................................................................46
ToImportaClassifier...........................................................................................47
UsingtheClassifier..................................................................................................47
ResultsofUsingtheGenieClassifier .................................................................49
INDEX ...................................................................................................57
LANLrecognizedthevalueoftheGenieProtechnologytoawiderangeofnon
satelliteimagingapplications,includingremotesensing,aerialimagery,and
biomedicalimageryandsoughtpartnerswithexpertiseinthoseareas.LANL
grantedalicensetoAperiofordevelopmentofdigitalpathologyapplications.
AperiousestheshortenednameGenieforitsimplementationofthetechnology.
Prerequisites
ThissectiondiscussesGeniesprerequisites.
Spectrum Server
SpectrummustbelicensedforSpectrumPlusandGenie.
Genie_v1_vx.x.x.x.exemustbeinstalledontheDSR(theserveror
computersconnectedtotheserveronwhichAAFClientisinstalled).
AnyalgorithmsthatwillmakeuseofGenieclassifiersmustbeinstalled
ontheDSR(theserverorcomputersconnectedtotheserveronwhich
AAFClientisinstalled).
usermustalsohaveImageScopeinstalledonhisorherworkstation.Thisuser
doesnotneedaccesstotheGeniedatahierarchy,projects,ortrainingsets.
Genie Workflow
The Classifier Developer:
Fordetailsonperformingthesesteps,seeChapter2,
NavigatinginGenieonpage7andChapter4,
CreatingaGenieClassifieronpage19.
Spectrum Plus
GenieisalicensedupgradetoSpectrumPlus.Afterobtainingavalidlicenseand
installingtheGeniealgorithm,toaccessGenieyoumustfirstlogintoSpectrum.
AccesstoGenieisrestrictedandisdeterminedbytherolesdefinedinSpectrum
andassignedtoauserbytheSpectrumadministrator.
ImageScope
ImageScopeallowsyoutoviewdigitalslidesandtoannotateregionsdirectlyon
aslidebyusingImageScopesdrawingtools.
2
Navigating in Genie
Spectrumisadigitalpathologysolutionthatcoordinatesalltheinformation
To develop Genie aboutthedigitalslides(patientinformation,researchprojectinformation,etc.)in
classifiers, a
Spectrum user must aneasytouse,webbasedinterface.GeniefeaturesappearontheSpectrum
have access to the pageswhenaGenielicensehasbeenenteredintoSpectrumandwhentheGenie
data group
usersareassigneduserrolesthatallowaccesstoGenie.
containing the
digital slides used in
the training set as
well as any data Logging into Spectrum
included in the
Genie project. This TologintoSpectrum:
user must also be
assigned a user role 1. OpenSpectruminyourInternetbrowser.
that permits using
Genie project and
2. LogintoSpectrumwiththeusernameandpasswordsuppliedbyyour
training sets. That Spectrumadministrator.
user role should also
permit creating
Genie annotation
templates and
creating and
modifying algorithm
macros. These
permissions are
enabled by the
_Genie user role
which the Spectrum
IfyouarelogginginastheglobalSpectrumadministrator,youmaysee
administrator can
assign to Genie ascreenpromptingyoutoselectthedatahierarchytouse.
developers or can
use as a base to
initialize a new
Genie user role. For
details on user roles
and data groups, see
the
Spectrum/Spectrum
Plus Administrators
Guide.
Orifyouarenotanadministratorbuthavebeenassignedmultipleuser
roles,youmayseeascreenfromwhichtochooseauserrole;selectthe
Genieuserrole.
3. SelecttheGeniedatahierarchyoruserroletologintotheGenieuser
interfaceofSpectrum.
YoucannavigateamongtheGeniecomponentseitherbyclickingthelinkslisted
alongtheleftsideofthepage,orbyusingthemenubaratthetopofthepage.
GenieProjectsSeeallGenieprojectsineitherlistorfolderformat,
searchforaspecificGenieproject,oraddanewproject.
TrainingSetsViewtrainingsetsinlistorfolderformatorsearchall
trainingsetstolocateaspecificone.
DigitalSlidesList,view,searchforandadddigitalslides.
ImageAnalysisViewimageanalysisjobs,macros,orclassifiers.
Toseethedetailsonaproject,clickthe iconnexttotheprojectyouare
interestedin.
TheGenieProjectDetailspageappears:
whichcontainsinformationontheproject,andthetrainingsetsanddigitalslides
associatedwithit.
TolistallGenietrainingsets,clickListAllTrainingSetsonthemainSpectrum
pageorselectAllTrainingSets(AsList)fromtheGenieTrainingSetsmenuat
thetopofthepage.
Thetrainingsetslistpageappears:
Toseethedetailsonthetrainingset,clickthe nexttothetrainingsetyouare
interestedin.
TheGenieTrainingSetDetailspageappears:
whichcontainsinformationontheproject,trainingsetdetails,including
informationonthemontageandannotationtemplates,andalistofthedigital
slidesinthetrainingset.
AperioImageAnalysisUsersGuide
DigitalIHCUsersGuide
ForinformationonusingImageScopetoviewandanalyzedigitalslides,see:
ImageScopeUsersGuide
3
Working with Genie
BeforedivingdirectlyintocreatingGenieclassifiers,itisworthwhiletospend
sometimegettingfamiliarwithGenieandconsideringhowitcanhelpyousolve
theproblemyouareworkingon.Itmaybebesttostartwithasimple
application,evenitisnotthemainapplicationthatyouareintendingtospend
yourtimeon.Aswithanynewtool,youwilllearnmanynewthingsandgain
proficiencywithtime.Itisimportanttorealizethisandbeginyourlearning
processwithsomethingsimpleandmovetomoreadvancedprojectsasyour
understandingincreases.
Afteryoureadthischapter,whichdiscusseshowtoapproachspecificissuesand
givessometroubleshootingtips,werecommendgoingthroughthestepsinthe
nextchapterforasimpleprojectsothatyouarefamiliarwiththeworkflowfor
creatingaclassifier.
Start Simple
IntroducingtoomuchcomplexityatthebeginningofyourGeniedevelopment
projectwillprovetobeveryconfusingandfrustrating.Thisisparticularlytrue
whenyouarefirstlearningGenie,butevenexperiencedalgorithmdevelopers
willagreethatworkingfromthesimpletothecomplex(introducingcomplexity
onlyasrequired)isagoodruletofollowandisthebestoverallapproach.
TrainingSlidesDontworryaboutputtingeverysampleimageyou
canfindinthetrainingsetjustaddafewrepresentativeexamplesto
beginwith.Youcanalwaysaddmoredigitalslideslater.
ParameterValuesUsetheSpectrum/Geniedefaultvaluesatfirst.As
youprogresswiththetrainingprocess,youcanconsiderchangingthese
defaultvaluesiftheperformance/accuracyofthetrainingneedstobe
improved(seeWhentoAddComplexityonpage16).
ClassesGenierequiresatleasttwoclasses,forexample,Tumorand
Background.Inthiscase,Tumoristheclassthatweareinterestedin
andBackgroundiseverythingelse.Itisnotessentialthattherebea
classforeachtypeoftissueontheslidethisisacommon
misconception.Ifyouarespecificallyinterestedinfindingand
measuringanumberofdifferenttissuetypes,thenyouwillwantaclass
foreachtype.Thegoalshouldbetohaveasfewclassesaspossible,
whileachievinggoodperformance.
RegionsYoumustprovideatleastoneregionforeachclass.Regions
shouldbeonlyaslargeasnecessarytocapturethepatternofthetissue.
Donotaddredundantregionsthatappearsimilar.Redundanttraining
datawillonlyslowthetrainingprocessandwillnotimprovetraining
accuracy.Ifaclassisbeingusedtoidentifymorethanonetissuetype,
suchasBackground,thenyouwilllikelyneedtoaddatleastone
regionofeachtypeoftissuetobeincludedinthatclass.Dontworry
aboutgivinganexhaustivesetofregionsinthebeginning.Itisbetterto
trainwithafewregionsinthebeginning,addingmoreregionsonlyas
necessary.
MontageStartwithregionsfromasingleslide.Asyoutrainandtest
theclassifieronthatslide,youwillreachapointwhereyouaresatisfied.
Whenthisoccurs,moveontoanotherslideandtesttheclassifier.Ifyou
findareasonthatslidewherepixelsarebeingmisclassified,addregions
fromthoseareastotheproperclasses,createanewmontage,and
continuethetrainingprocess.Repeatthisprocessuntilalloftheslidesin
yourtrainingsetindicateacceptableclassifierperformance.
The Montage
CreatingagoodmontageisthekeytogeneratingagoodclassifierwithGenie.
Throughoutthetrainingprocess,youwillmodifythemontageby
adding/subtractingregionsandclassesuntilyouhavearrivedatsinglemontage
thatcapturesthevariationinherentinyourtrainingset.Onceyouhave
successfullyproducedagoodclassifier,changestothemontageneedonlybe
madewhenclassifierperformancebecomesunacceptable.Thiscanhappenwhen
Genieencountersnewstructuresinadigitalslidethatarenotrepresentedinthe
montage.SinceGeniedoesnothaveanIdontknowwhatthisisclass,Genie
willputthesenewtypesofpixelsintooneoftheprescribedclasses,andmore
oftenthannot,thiswillaffectclassesthatyoucareabout.Whenthishappens,the
newslidecanbeaddedtothetrainingsetandGenieretrainedtoproperly
classifythenewlyfoundstructures.
MontageMagnificationWhenatrainingsetisfirstcreated,the
montagemagnificationissetto5x.Ifthedigitalslidesfromwhichthe
regionsareextractedwerescannedat20x,theresolutionofthemontage
isreducedbyafactorof4.Aregioninthemontagewillhave16times
fewerpixels(4squared)thanthecorrespondingregionintheparent
image.Thishastwoadvantages:First,fewertrainingpixelsmeans
trainingwillbefaster;Second,applyingtheclassifiertoadigitalslide
willalsobemuchfaster,sincethenumberofpixelstobeprocessedwill
bereducedbyafactorof16.
The5xmontagemagnificationiswellmatchedtoothersystem
componentsintermsofcomputationaltime.Increasingto10xwillcause
a4foldincreaseintrainingandanalysistimes.Montagemagnification
shouldonlybeincreasedifrequiredtoimproveclassifier
performance.
RemembertoUpdatetheMontageIfyouhaveadded/deletedregions
orclasses,orchangedthemontagemagnificationvalue,youmustcreate
anewmontagebeforecontinuingthetrainingprocess.Themontage
doesnotautomaticallyupdatewhenyouchangeanyoftheseitems.If
youfailtodothis,trainingwillcontinueontheoldmontageandwillnot
incorporateyourchanges.Thereiscurrentlynothinginthesystemto
indicatethatanewmontageisrequireditisuptoyoutoensurethat
youhaveacurrentmontage.
Training
AccuracyTheGenieTrainingalgorithmmakesiterativeimprovements
totheclassifierbycomparingthepredictedclasswiththeactualclassfor
thetrainingpixelsprovidedinthemontage.Thetrainingaccuracyof
eachclassisfirstcalculated;theseclassaccuraciesarethenaveraged
togethertoobtainameantrainingaccuracyachangetotheclassifier
willonlybemadeifitimprovesthemeantrainingaccuracy.Thisis
importanttounderstand,sinceitcauseseachclasstobegivenequal
weight,whenconsideringpotentialimprovementstotheclassifier.
BackgroundClass(es)Sinceitisnotpossibletogiveasingleclassmore
weightthananother,youmayfindthatclassesyoudontcareaboutare
improvingattheexpenseoftheonesyoudocareabout.Onewayto
partiallyovercomethisproblemistoputallofthetissuetypesthatyou
dontcareaboutintoasingleclass,likeBackground.Thiskeepsthe
numberofclassesyoudontcareabouttoaminimum,whichhelps
increasetheweighttotheonesthatareimportanttoyou.Youmayneed
morethanonebackgroundclass,buttrytokeepthenumberofthese
small.
ProvidingAdjacentRegionsWhenprovidingregionsfordifferent
classes,isithelpfultothetrainingprocesstoprovideregionsthatsharea
commonboundary.Youcandothisbydrawingaregioninthefirst
class,thendrawingtheregioninthesecondclasssothatoneofitsedges
isnexttotheboundaryoftheregioninthefirstclass.Sincemanyofthe
imageprocessingoperatorsusedbyGeniesensetheneighborhoodofthe
trainingpixels,thishelpsensurethattheboundariesbetweenclassesare
beingaccuratelytakenintoaccount.
ContinuingtheTrainingProcessEachtimeyourunthetraining
macroonthemontageimage,anewoutputlayeriscreated.These
outputlayersprovideahistoryofthechangingaccuracyandcanbe
usefultoreviewtoseehowfastimprovementsarebeingmade.
Wheneveranewmontageiscreated(byaddingregionsforexample),
theseoutputlayersareremoved.However,trainingonthenewmontage
willbeginwiththecurrentclassifierasastartingpoint.Onlyifthe
numberofclassesorthetrainingalgorithmparametersarechanged
(exceptforNumberofIterations),willthetrainingbeginfromscratch.
doingthiswillslowthetrainingandclassificationprocesses,
however.
Algorithm Macros
Developinganamingconventionforyourmacrosiscritical.Asofthisdate,all
Spectrumusersthathaveaccesstorunningalgorithmswillseeallmacrosthat
areinthesystem.Thiscanbecomeoverwhelming,unlessusersfollowagood
namingconvention.Asanexample,HER2_Genie_Trainingand
HER2_Genie_Classifierwouldbeusefultoindicatethatthesemacroswere
associatedwiththeHER2GenieProjectandthefirstisfortrainingonthe
montageimage,whiletheotherisforapplyingtheHER2classifiertoother
digitalslides.Youmayalsowishtoaddotheridentifyinginformationtothe
macronametomakeituniqueandeasilyrecognizable.
Itisimportanttorememberthatatrainingmacrocanonlyberunonthe
montageimage,whiletheclassificationmacrocanberunonanydigitalslide.
Thesystemarchitecturecurrentlydoesnotenforcethisrequirementitisupto
youtoselectthecorrectmacrowhensubmittingananalysisjob.Thisiswhere
thenamingofmacrosbecomesimportantanditisimportantthatyoupay
particularattentionwhenselectingmacros.Ifyourunthetrainingmacroona
digitalslide,theanalysisjobwillfail.Inthiscase,allyouneedtodoisresubmit
thejobwiththeintendedmacroandthingsshouldproceedasintended.Ifyou
runanontrainingmacroonamontage,thejobwillfinishandtheresultlayer
willcontainresultsforthemacroyouran.Justdeletethislayerifyoudontwant
itandproceedwithrunningthetrainingmacroonthemontage.
4
Creating a Genie Classifier
3. WerecommendcreatingoneGenieproject,specifyingitsnameand
selectingthedatagrouptowhichitbelongsfromthedropdownlist,
thenclickingAdd.TheGenieProjectDetailspageappears:
informationonmakingthisdecision,seeChapter3,WorkingwithGenieon
page13.
Thenumberofslidesdependsonthecomplexityofwhatyouaretryingto
identify,andtheamountofvariationyouwanttoencompass.
Tocreateatrainingset:
1. CreateaGenieprojectasdiscussedinStep#1.
2. OntheGenieProjectDetailspage,clickAddNewGenieTrainingSetin
theGenieProjectGenieTrainingSetssection.(Notethatyoumayhave
multipletrainingsetsforoneproject.)
TheAddNewGenieTrainingSetspageappears:
The final classifier
name will be based
on the training set
name you enter
when you create the
training set (for
example, IHC ER).
However, to ensure
that classifiers have
unique names, Genie
prepends a numeric
value to the front of 3. OntheAddNewGenieTrainingSetspage,enterthenameofthe
the classifier name.
For example, the trainingsetyouwishtoadd(forexample,IHCER),whichwillbethe
training set IHC ER basisofthenameoftheclassifieryouaregoingtocreate.
may create a
classifier named 4. Typeamontagemagnificationvalue.Thedefaultvalueis5.0,whichisa
35_IHC ER. goodstartingvalue.Forinformationonwhyyouwouldwanttochange
themagnificationvalue,seeChapter3,WorkingwithGenieonpage
13.
5. ClickAdd.
WhenyoureturntotheGenieProjectDetailspageinGenie,yournewlyadded
trainingsetislisted.
Rememberthatatrainingsetcanhaveonlyoneparentproject.Ifyou
wanttoaddatrainingsetthathasalreadybeenassignedtoanother
Genieproject,youwillhavetodetachitfromthatprojectfirst.
3. ClickAssignnexttotheGenieprojectyouwanttoassignthetrainingset
to.(IfyouhavemultipleGenieprojects,youcanusetheFilterOptionsto
searchforaspecificproject.SeetheSpectrum/SpectrumPlusOperators
GuidefordetailsonusingtheSpectrumsearchfunctions.)
YoureturntotheGenieprojectdetailpagewhereyouseethetrainingset
hasbeenadded:
Toadddigitalslidestothetrainingset:
1. GototheGenieTrainingSetsmenuatthetopoftheSpectrumpageand
selectAllGenieTrainingSets(AsList).Youseealistoftrainingsets:
2. OntheGenieTrainingSetspage,openatrainingsetbyclickingthe
iconnexttoit.Adetailspageappears:
3. IntheGenieTrainingSetDigitalSlidessection,clickAddNewDigital
Slidetoaddadigitalslidethatdoesnotyetexist(youcanadditsimage
lateraftertheslideisscanned),orAddExistingDigitalSlidetoadda
digitalslidethathasalreadybeendefinedinSpectrum.
Ifaddingexistingdigitalslides,youseetheAddUnassignedDigital
SlidestoGenieTrainingSetpage,whichcontainsalistofalldigital
slidesthatcanbeaddedtothistrainingset(thatis,slidesthatarenot
alreadyassignedtoanothertrainingset):
NotetheFilterOptionssectionwhichallowsyoutosearchforslidesthat
meetcertaincriteria(suchasslidesthatarestainedwithanERstain).
Tip:Ifyouwanttousethesamedigitalslideinmultipletrainingsets,
copytheslideusingadifferentnamesothatitappearsinSpectrumasa
differentslide.
4. Selecttheslidesyouwanttousebyselectingthecheckboxnexttoeach
one,andthenclickingAssignatthetopoftheslidelist.
Whenyouaddslidestoatrainingset,Genieappliestheannotationtemplatefor
thesettothatslide.Ifyoueditthedefinitionsoftheclassesandcorresponding
layerpropertiesintheannotationtemplateforoneslideinatrainingset,Genie
modifiesthecorrespondingannotationlayersforallslidesintheset.For
example,ifyouaddordeleteclassesorchangethenamesorcolorsofassociated
layers,theseannotationpropertieswillbemodifiedthroughoutthetrainingset.
1. Openthetrainingset.Youcandothisinavarietyofways:
a) GototheGenieTrainingSetsmenuatthetopofthepageandselect
AllGenieTrainingSets(AsList)andthenclick nexttothe
trainingsetyouwanttoopen;or,
b) OpenaprojectandundertheGenieProjectsGenieTrainingSets
click nexttothetrainingsetassignedtothatproject.
2. Onthetrainingsetdetailspage,undertheGenieTrainingSetTemplate
section,clickAddClass.
Anewboxappearsinwhichyoucantypethenameoftheclass(for
example,Tumor):
3. ClickAddClasstoaddanotherclass(forexample,Background).
4. ClickSave.
1. GototheAdministrativemenuatthetopoftheSpectrumpageand
selectGenieAnnotationTemplates.TheAddAnnotationTemplate
pageappears:
2. Enteratemplatename.
3. Todefinetheclassesinthistemplate,clickAdd.
4. Anewboxappearsinwhichyoucantypethenameoftheclass.
5. KeepclickingAdduntilyouenteralltheclassesyouwanttouse.
6. Ifyouwanttoaddattributestotheclass,clickAddAttributetoClass.
7. Ifyouwanttochangethecolorwithwhichtissueidentifiedasbelonging
totheclasswillbedisplayed,clickChooseColor.
8. Whenfinishedwiththetemplate,clickSaveanditappearsonthe
AnnotationsTemplatespage:
Toapplyanannotationtemplatetoatrainingset:
1. Openatrainingset.
2. IntheGenieTrainingSetTemplatesectionofthetrainingsetdetails
If your Internet
browser is set to page,clickLoadfromTemplateandselectthetemplateyoucreated
open popup fromthepopupwindowthatappears.
windows in a tab
instead of a new
window, the list of
templates will open
in a new tabafter
you select the
template, you may
have a problem
returning to the
main Spectrum
page. For this
reason, we
Step #5 Mark Training Samples
recommend you
Foreachofthedigitalslidesinthetrainingset,youneedtodrawannotations
change your browser
options to open a thatidentifythetypeoftissueyoudefinedinStep#4,sothatGeniecanbe
popup in a new trainedonwhattissuefitsthosedefinitions.
window rather than
in a tab. 1. OpenthetrainingsetandgototheGenieTrainingSetDigitalSlides
section.
2. ClickonthethumbnailimageofthefirstslidetoopenitinImageScope.
3. Changetheslidemagnificationusingthezoomslidertoamagnification
thatmakesiteasiertoviewcellstructures.
4. GototheImageScopeViewmenuandselectAnnotationstoseethe
templatedefinedforthistrainingset.Forexample:
6. Clickonanothernamedlayeranddrawannotationsforthattypeof
tissue.
Thecolorsusedfortheannotationsarethesameasyoupreviously
definedinthetemplate.Inourexample,thegreenshapesontheleft
identifytumorcells,andtheyellowregionontherightidentifies
backgroundtissue.Notetheuseofthenegativepentodrawanareato
excludefromanalysis(thedottedlinewithintherectanglebelow)
Ifthecolorsdonotmatchthecolorsassignedinthetemplateforthat
typeoftissue,youmaynothaveclickedonthecorrectlayerbefore
drawing.Ifyouneedtodeleteanannotation,youcandosobyclickingit
toselectitandpressingtheDeletekeyonyourkeyboard.
7. SavetheannotationsbyclosingtheimageinImageScopeandclicking
Yeswhenpromptedtosavethechanges.
8. Openthenextdigitalslideandannotatethetissuetypes.Repeatforeach
slide.
2. IntheGenieTrainingSetDetailssectionofthepage,clickCreate
Montage.(TheMontageMagnificationboxshouldalreadycontaina
valuelowermagnificationscanbeusedtomakethetrainingand
classificationrunfaster.Youcanexperimentwiththisvaluelatertosee
whichvaluesgiveacceptableperformance.)Ifyouchangethe
magnificationvaluehere,itwillnottakeeffectuntilyouclickCreate
Montagetocreateanewmontage.
Asthemontageiscreated,youseetextnexttotheRunAnalysislink
cyclethroughstatusmessagesuntilitsaysMontageComplete.
3. Whenprocessingiscomplete,themontageappearsintheGenieTraining
SetMontageImagesection:
Whenyougenerateamontage,Geniecreatesanannotationlayerthatcontains
theclassnamesandthecolorsusedtocolorcodethecorrespondingclassesinthe
markupimage.
Toseealargerversionofthemontage:
1. Clickonthethumbnailimageofthemontagetoseetheimagein
ImageScope.
2. Themontageshowsthemarkupimagesinasemitransparentlayer.The
markuplayerusesthesamecolorpaletteusedtodesignatetheclasses If you change any of
the regions in the
andassociatedlayersdefinedinthetrainingsettemplate. digital slides in a
training set (for
example, adding or
deleting regions) or
change the montage
magnification, you
must re-create the
montage for the
changes to take
effect in the
montage.
WiththemontageopeninImageScope:
1. GototheViewmenuontheImageScopemenubarandselectAnalysis.
TheAlgorithmServerJobwindowappears:
Thiswindowshowsthealgorithmmacrosthathavealreadybeen
created.Onthiswindowyoucantestanexistingmacro,createanew
macro,oranalyzewiththeselectedmacro.
2. ClickCreateontheAlgorithmServerJobwindowtoseethelistof
availablealgorithmsfromwhichmacroscanbecreated.
3. ClickGenieTrainingontheSelectanAlgorithmwindowtoselectitand
clickSelect:
YounowseetheGenieTrainingalgorithmparameters.Foraquick
referencetotheseparameters,seeAppendixA,GenieTrainingand
ClassifierAlgorithmParametersonpage51.
Inmostcases,youcanleavetheseparameterssettotheirdefaultvalues,
butoneparameterthatyoumightwanttoexperimentwithisthe
NumberofIterationsparameter.Thedefaultvalueis200.Inadjusting
thisnumber,youneedtobalancethecomplexityofyourproblemand
analysistime.Generally,thegreaterthenumberofiterations,thebetter
theaccuracy(andthelongertheanalysistime)butafterapoint
increasingthisnumberresultsinverylittleimprovement.
BecauseGenielearnseachtimeyourunthetrainingmacro,runningthe
trainingmacrooncewith1,000iterationshasthesameeffectasrunning
itfivetimeswith200iterations.Formoreinformationonusingthe
parameterstofinetuneyourtraining,seeChapter3,Workingwith
Genieonpage13.
4. ClickSaveMacro.(Thetrainingmacroconsistsofalloftheparameter
settingsforthetrainingalgorithmandisusedtoanalyzethetraining
montage.)DontclickRunyouwillbeusingtheRunAnalysislinkon
theSpectrumTrainingSetDetailspagetoanalyzethemontagewiththis
macro.
5. Inthesavemacrowindow,typeanamesuchasGenieTrainingIHC
andclickOK.
6. CloseImageScope.
2. OntheAnalysispage,makesurethemacroyousavedaboveisshownin
theSelectAnalysisMacrobox.Alsoselect:
a) Createmarkupimage(s)
b) MostRecentintheSelectInputAnnotationLayer
2. ClickAnalyze.Thissubmitstheanalysisjobandtakesyoutothe
AnalysisJobspage.Notethattheanalysismaytakeawhile,depending
onhowmanydigitalslidesyouincludedinthetrainingsetandthe
magnificationsetforthemontage.Whentheanalysisisfinished,this
pageshowsCompleteintheStatuscolumn.PressF5torefreshthepage
toseethelatestanalysisstatus.
3. Whentheanalysisiscomplete,openthetrainingset.
4. ClickonthethumbnailofthemontagetoopenitinImageScope.Yousee
aresultlayerintheImageScopeAnnotationswindow(GenieTraining
output)inadditiontotheoriginalmontagelayer.ClicktheGenie
Trainingoutputlayertoseethetrainingresults:
TheMeanTrainingAccuracyvalueistheprimaryindicatorofthe
effectivenessofthetraininganalysis.Youwillnotachieveperfection,
100%,butyoucandecideforyourselfwhatpercentageisacceptablefor
yourproject.
AndyouseethemarkupimageinthemainImageScopewindow:
IfthemarkupimageintheImageScopewindowshowssmallerareasof
colorinthemiddleofanothercolor,theserepresenterrorsintraining.
Forexample,ifthetumorareasaregreenandbackgroundareasare
yellow,smallbitsofgreeninbackgroundareasrepresentclassification
errors:
RunningthetrainingalgorithmhascreatedtheGenieclassifier,whichwewill
testinthenextstep.SeeChapter3,WorkingwithGenieonpage13fortipson
maximizingtrainingaccuracy.
3. NowclicktheNextLinkiconontheImageScopetoolbar, .
ImageScopeopenstheoriginaldigitalslideonwhichtheregionwas
drawnandcenterstheannotationinthemiddleoftheImageScope
window.(Theblacklineinitsboundaryindicateswhichregionis
selected.)
Ifyouhavethefilmstripturnedon,youcanseethatthemontageandthedigital
slidearebothopenatthesametime.(Toturnonthefilmstrip,gototheView
menuandselectFilmstrip.)
Youcanclickonthemontageinthefilmstriptogobacktothemontage,select
anotherregion,andclick togotoitsparentdigitalslide.
3. Createanewlayerfortestingpurposesbyclicking ontheLayerspane
oftheAnnotationswindow.
4. Clickonthedefaultlayernameandchangeittosomethingthatwill
remindyouofitspurpose,likeTest.
5. ClickonthatlayerintheAnnotationswindowtoselectitandusethe
ImageScoperectangletooltodrawatestingregionontheimagewhichis
largerthantheoriginaltissueannotations:
6. Savethenewannotationbyclicking ontheLayerspaneinthe
Annotationswindow.
2. ClickCreateontheAlgorithmServerJobwindowtoseethelistof
availablealgorithms.
3. ClicktheGenieClassifieralgorithmontheSelectanAlgorithmwindow
andclickSelect.
YounowseetheGenieClassifieralgorithmparameters.Foraquick
referencetotheseparameters,seeAppendixA,GenieTrainingand
ClassifierAlgorithmParametersonpage51.
4. Selecttheclassifieryouwanttousetocreatethemacrofromthe
Classifierdropdownlist(thisisthenamewegaveourtrainingset).The
listwillcontaineveryclassifieryouhavedevelopedontheSpectrum
site.
5. ClickintheClassListboxtoseetheclassesyoudefinedandselect
whichclassesyouwanttouseforthismacro.
6. ClickSaveMacro.
7. Inthesavemacrowindow,typeanamethatidentifiestheclassifieryou
selected,suchasIHC_ERandclickOK.
4. ClickAnalyze.
Whentheanalysiscompletes,theAnnotationswindowshowsanalysis
resultsintheTestlayeryoucreated,withthefractionalcontentofeach
classasapercentageoftheregionofanalysis.Alsoshownisamarkup
imageinthemainwindowthatshowsthecolorcodedtissueclasses.
1. AddregionsintheimagewheretissueclassesweremissedintheGenie
Classifieroutputlayer.Smallerareasofcolorinthemiddleofanother
colorintheImageScopemarkupimagerepresenterrorsintraining.For
example,ifthetumorareasaregreenandbackgroundareasareyellow,
smallbitsofyellowintumorareasrepresentclassificationerrors.
2. Reducethemontagemagnificationtospeedupthecalculationsand
createanewmontageimage.
3. RuntheGenietrainingalgorithmmacro.
4. Openthemontageimageandviewtheresults.
5. Openthedigitalslideandanalyzethesametestregionasbefore.Now
youwillseethatthetissueclassregionsaremuchmorefilledinandthe
classifierisdoingabetterjobatfindingmostofthetissueofthattype.
To Export a Classifier
1. LoggedinasaSpectrumadministrator,gototheAnalysismenuand
selectMacros.
2. OntheAnalysisMacrospage,chooseaclassifierintheClassifierssection
andclickExport.
3. YourInternetbrowserdisplaysitsstandardwindowforsavingafile;
savethefiletoyourdisk.Thefileissavedwitha.GSFextension.
To Import a Classifier
1. LoggedinasaSpectrumadministrator,gototheAnalysismenuand
selectMacros.
2. OntheAnalysisMacrospage,clickImportintheClassifierssectionof
thepage.YouseetheImportClassifierDefinitionpage:
3. TypeanamefortheclassifierintheNametextbox.
4. ClicktheBrowsebuttontofindthe.GSFfilethatistheexported
classifier.
5. Selectthedatagrouptoputtheclassifierinto.
6. ClickImport.
4. ClickCreatetocreateanewmacro.
5. OntheSelectanAlgorithmwindow,selectanalgorithm(forexample,
thePositivePixelCountalgorithm)andclickSelect.
6. Onthealgorithmparameterswindow,selectaGenieclassifierinthe
Classifierbox.YouhaveavailableanyoftheGenieclassifiersstoredon
thisSpectrumsitetouseasapreprocessortothealgorithmforwhich
youarecreatingthemacro.
7. Onthealgorithmparameterswindow,modifytheClassListparameter
toselecttheclassestouseforanalysis.Clickthe editicononthe
ClassListlinetoseetheclasses:
Andthenclearthecheckboxnexttoanyclassesyoudontwanttouse.
8. Savethemacrowithauniquename.
Spectrumuserscannowrunthesavedalgorithmmacroatanytime,andthe
Genieclassifierwillbeusedtopreidentifyareasonwhichtoruntheanalysis.
WethenusedthePositivePixelCountalgorithm,selectingaGenieclassifierthat
identifiespossibletumorcells.Afterrunningthealgorithm,notethecolored
areasofthemarkupimage.
ThecoloredareasindicatethetissuethatwasidentifiedbytheGenieclassifieras
tumorcellstherefore,onlythisareaoftheselectedregionwasanalyzedbythe
PositivePixelCountalgorithm.Thecolorscorrespondtothequantitativeresults
returnedbythealgorithm(forexample,thedarkredpixelsarethoseidentified
byPositivePixelCountasstronglypositivepixels)asshownintheanalysis
resultslayerintheAnnotationswindow:
Theareathatisinblackandwhiteindicatestissuethatwasnotidentifiedbythe
Genieclassifierastumorcellsandsowasnotanalyzed.
A
Genie Training and Classifier
Algorithm Parameters
Genie Architecture
A Input Montage Image.
MarkupCompressionTypeYoucanselectamongSameasprocessed
image,JPEG,orJPEG2000forthemarkupimage.
CompressionQualityForthecompressedmarkupimage,youcan
selectacompressionqualityof0to95.Higherqualitytakeslongerand
yieldslargerfiles.
ClassifierNeighborhoodSizeinmicronsofneighborhoodtopad
boundaryofeachview,asrequiredbytheclassifier.Thisparameteris
usefulinremovingedgeartifactsbetweenviews.Oncetheuserpicksa
classifierfromthelist,theappropriateClassifierNeighborhoodvalueis
automaticallycomputedandpopulated.Thereisanupperthresholdon
ClassifierNeighborhood(200microns)forspeedpurposes,whenitis
automaticallycomputed.Manualoverrideispossibleupto500microns.
ItisadvisedtosettheClassifierNeighborhoodmanuallyonlywhenthe
automaticvaluereaches200micronsandvisibleedgeartifactsareseenat
viewboundaries.
ClassifierThisparameterallowsyoutoselectfromthelistofclassifiers
thathavebeencreatedonthisSpectrumsite.
ClassListClickthe editicononthislinetochoosetheclasses
definedfortheselectedclassifier.
Index
algorithmmacros,naming,17 developing,14
annotationtemplate,26 magnification,14
backgroundclasses,15 updating,15
classtemplate,26 viewingparentslides,38
multipleuse,28 navigating
classes,13 Geniepages,8
adding,16,26 tips,11
background,15 overviewofGeniepages,9
choosing,13 prerequisites,2,7
regions,14 project
classificationperformance,improving,15,45 complexity,13,16
classifier,3 creating,19
creating,31 tips,20
creatingmacro,41 regions,14
exporting,46 Spectrum,5,7
importing,46 administratorlogin,7
introduction,2 logginginto,7
testing,39 mainwindow,8
using,47 userroles,8
classifieralgorithm template,26
parameters,54 attributes,27
running,45 multiuse,28
exporting/importingclassifiers,46 tips,27
Genie testingregion,creating,39
applicationsof,1 training,15
architecture,52 accuracy,15
gettingstartedwith,13 trainingalgorithm,17
introduction,3,13 parameters,13,16,51
logginginto,7 running,35
originsof,1 trainingmacro,creating,33
userpermisionsrequired,7 trainingsamples,creating,29
gettingstarted,13 trainingset,22
ImageScope,5 addingslides,23
LosAlamosNationalLaboratories(LANL) choosingslides,13,23
andGeniedevelopment,1 creating,20
manuals,11 defined,20
montage tips,14
creating,30 troubleshooting,13
defined,30