<?xml-stylesheet href='/static/xsl/oai.xsl' type='text/xsl'?>
<ri:Resource created="2022-01-11T08:57:49Z" status="active" updated="2025-05-19T09:50:00Z" version="1.2" xmlns:cs="http://www.ivoa.net/xml/ConeSearch/v1.0" xmlns:ri="http://www.ivoa.net/xml/RegistryInterface/v1.0" xmlns:vr="http://www.ivoa.net/xml/VOResource/v1.0" xmlns:vs="http://www.ivoa.net/xml/VODataService/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ivoa.net/xml/ConeSearch/v1.0 http://vo.ari.uni-heidelberg.de/docs/schemata/ConeSearch.xsd http://www.ivoa.net/xml/VOResource/v1.0 http://vo.ari.uni-heidelberg.de/docs/schemata/VOResource.xsd http://www.ivoa.net/xml/VODataService/v1.1 http://vo.ari.uni-heidelberg.de/docs/schemata/VODataService.xsd" xsi:type="vs:CatalogService"><title>OB stars spectral classification automated tool</title><shortName>J/A+A/657/A62</shortName><identifier>ivo://CDS.VizieR/J/A+A/657/A62</identifier><altIdentifier>doi:10.26093/cds/vizier.36570062</altIdentifier><curation><publisher ivo-id="ivo://CDS">CDS</publisher><creator><name>Kyritsis E.</name></creator><creator><name>Maravelias G.</name></creator><creator><name>Zezas A.</name></creator><creator><name>Bonfini P.</name></creator><creator><name>Kovlakas K.</name></creator><creator><name>Reig P.</name></creator><date role="Updated">2022-03-17T14:50:02Z</date><date role="Created">2022-01-11T08:57:49Z</date><contact><name>CDS support team</name><address>CDS, Observatoire de Strasbourg, 11 rue de l'Universite, F-67000 Strasbourg, France</address><email>cds-question@unistra.fr</email></contact></curation><content><subject>early-type-stars</subject><subject>ob-stars</subject><subject>stellar-spectral-types</subject><subject>morgan-keenan-classification</subject><description>As an increasing number of spectroscopic surveys become available, an automated approach to spectral classification becomes necessary. Due to the significance of the massive stars, it is of great importance to identify the phenomenological parameters of these stars (e.g., the spectral type), which can be used as proxies to their physical parameters (e.g., mass and temperature). In this work, we aim to use the random forest (RF) algorithm to develop a tool for the automated spectral classification of OB-type stars according to their sub-types. We used the regular RF algorithm, the probabilistic RF (PRF), which is an extension of RF that incorporates uncertainties, and we introduced the KDE-RF method which is a combination of the kernel-density estimation and the RF algorithm. We trained the algorithms on the equivalent width (EW) of characteristic absorption lines measured in high-quality spectra (Signal-to-Noise (S/N)&gt;50) from large Galactic (LAMOST, GOSSS) and extragalactic surveys (2dF, VFTS) with available spectral types and luminosity classes. By following an adaptive binning approach, we grouped the labels of these data in 11 spectral classes within the O2-B9 range. We examined which of the characteristic spectral lines (features) are more important for the classification based on a number of feature selection methods, and we searched for the optimal hyperparameters of the classifiers to achieve the best performance. From the feature-screening process, we find that the full set of 17 spectral lines is needed to reach the maximum performance per spectral class. We find that the overall accuracy score is ~70%, with similar results across all approaches. We apply our model in other observational data sets providing examples of the potential application of our classifier to real science cases. We find that it performs well for both single massive stars and for the companion massive stars in Be X-ray binaries, especially for data of similar quality to the training sample. In addition, we propose a reduced ten-features scheme that can be applied to large data sets with lower S/N~20-50. The similarity in the performances of our models indicates the robustness and the reliability of the RF algorithm when it is used for the spectral classification of early-type stars. The score of ~70% is high if we consider (a) the complexity of such multiclass classification problems (i.e., 11 classes), (b) the intrinsic scatter of the EW distributions within the examined spectral classes, and (c) the diversity of the training set since we use data obtained from different surveys with different observing strategies. In addition, the approach presented in this work is applicable to products from different surveys in terms of quality (e.g., different resolution) and different formats (e.g., absolute or normalized flux), while our classifier is agnostic to the luminosity class of a star, and, as much as possible, it is metallicity independent.</description><source format="bibcode">2022A&amp;A...657A..62K</source><referenceURL>https://cdsarc.cds.unistra.fr/viz-bin/cat/J/A+A/657/A62</referenceURL><type>Catalog</type><contentLevel>Research</contentLevel><relationship><relationshipType>IsServedBy</relationshipType><relatedResource ivo-id="ivo://CDS.VizieR/TAP">TAP VizieR generic service</relatedResource></relationship><relationship><relationshipType>IsServedBy</relationshipType><relatedResource>Conesearch service</relatedResource></relationship></content><rights>https://cds.unistra.fr/vizier-org/licences_vizier.html</rights><capability><interface xsi:type="vr:WebBrowser"><accessURL use="full">https://vizier.cds.unistra.fr/viz-bin/VizieR-2?-source=J/A+A/657/A62</accessURL><mirrorURL title="VizieR at IUCAA: Pune, India">https://vizier.iucaa.in/viz-bin/VizieR-2?-source=J/A+A/657/A62</mirrorURL><mirrorURL title="VizieR at SAAO: SAAO, South Africa">http://vizieridia.saao.ac.za/viz-bin/VizieR-2?-source=J/A+A/657/A62</mirrorURL></interface></capability><capability><interface xsi:type="vs:ParamHTTP"><accessURL use="base">https://vizier.cds.unistra.fr/viz-bin/votable?-source=J/A+A/657/A62</accessURL><mirrorURL title="VizieR at IUCAA: Pune, India">https://vizier.iucaa.in/viz-bin/votable?-source=J/A+A/657/A62</mirrorURL><mirrorURL title="VizieR at SAAO: SAAO, South Africa">http://vizieridia.saao.ac.za/viz-bin/votable?-source=J/A+A/657/A62</mirrorURL><queryType>GET</queryType><resultType>text/xml+votable</resultType></interface></capability><capability standardID="ivo://ivoa.net/std/TAP#aux"><interface xsi:type="vs:ParamHTTP" role="std"><accessURL use="base">https://tapvizier.cds.unistra.fr/TAPVizieR/tap</accessURL></interface></capability><capability xsi:type="cs:ConeSearch" standardID="ivo://ivoa.net/std/ConeSearch"><description>Cone search capability for table J/A+A/657/A62/table6 (Spectral type classification of stars in the IACOB survey)</description><interface xsi:type="vs:ParamHTTP" role="std"><accessURL use="base">https://vizier.cds.unistra.fr/viz-bin/conesearch/J/A+A/657/A62/table6?</accessURL><mirrorURL title="VizieR at IUCAA: Pune, India">https://vizier.iucaa.in/viz-bin/conesearch/J/A+A/657/A62/table6?</mirrorURL><mirrorURL title="VizieR at SAAO: SAAO, South Africa">http://vizieridia.saao.ac.za/viz-bin/conesearch/J/A+A/657/A62/table6?</mirrorURL><queryType>GET</queryType><resultType>text/xml+votable</resultType></interface><maxSR>180.0</maxSR><maxRecords>50000</maxRecords><verbosity>true</verbosity><testQuery><ra>2.6236478</ra><dec>57.1654756</dec><sr>0.005555555555555556</sr></testQuery></capability><coverage><spatial>6/63 161 326 455 461 463 472 474 496 649 859 867 1196 1198 1277 1293 1302 1323 1332 1385 1430 1539 1558 1704 1737 1764 1766 1770-1771 1789-1790 1826 1842 1946 2259 2359 2371 2409 2467 2593 2664 2737 2774-2775 2790 2806 2948 2970 2976 3000 3044 3051 3058 3060 3132 3136-3137 3144 3214 3220 3228 3242 3251 3256 3261 3307 3319 3430 3595 3621 3632 3637 3660 3704 3750 3830 4266 5506 6715 6891 6894 7767 7839 8547 9054 9680 9847 9936 10081 10731 10822 11599 12472 12651 12865 12927 12932 12943 12971 12991 13040 13155 13258 13292 13457 13557 13559 13572 13611 13682 13709 13733 13780 13910 13953 14008 14013 14077 14264 14313 14381 14431 14484 14522 14527 14545 14576 14581 14625 14632 14636 14641 14643 14653 14662 14669 14682 14706 14764 14777 14784 14810 14824 14843 14911 14945 14986 15368-15369 15417 15478 15504 15568 15604 15625 15631 15672 15686 15745 15747 15881 16275 16443 17194 17312 17322 18566 19245 19309 19336 19780 20012 20854 20860 21105 21309 21364 21401 21432 21434-21436 21438-21439 21467 21635 21647 21655 21677 21729 21879 22070 22102 22167 22209 22216 22249 22253 22258 22357 22400 22750 22769 22772 22787 22790 22805 22850 22854 22859 22862 22884 22888-22889 22893 22907 22920 22958 23005 23007 23122 23281 23358 23442 23483 23485 23637 23669 23673 23675 23692 23714 23717 23769 23776 23860 23977 23982 24029 24059 24132 24139 24179 24410 24480 24494 25016 26879 27322 27574 28827 28845 28851 28897 29097 29149 29213 29238 29253 29283 29327 29876 30088 30114 30289 30325 30476 30482 30643 30693 30723 31292 31812 32095 32604 32738 36018 36121 36651 39922 40502 40595 40599 40685 40807 42980 44310 44319 44461 44822 44892 48767 48884 49049 49109 49149</spatial><footprint ivo-id="ivo://ivoa.net/std/moc">https://cdsarc.cds.unistra.fr/viz-bin/moc/J/A+A/657/A62?format=ascii</footprint><waveband>Optical</waveband></coverage><tableset><schema><name>default</name><table><name>J/A+A/657/A62/table6</name><description>Spectral type classification of stars in the IACOB survey</description><column><name>recno</name><description>Record number assigned by the VizieR team. Should Not be used for identification.</description><ucd>meta.record</ucd><dataType xsi:type="vs:VOTableType">int</dataType></column><column><name>ID</name><description>Object's ID in the IACOB database</description><ucd>meta.id;meta.main</ucd><dataType xsi:type="vs:VOTableType" arraysize="9*">char</dataType></column><column><name>IACOBSpType</name><description>Published spectral type</description><ucd>src.spType</ucd><dataType xsi:type="vs:VOTableType" arraysize="2*">char</dataType></column><column><name>RFSpType</name><description>Predicted spectral class based on the RF method</description><ucd>src.spType</ucd><dataType xsi:type="vs:VOTableType" arraysize="5*">char</dataType></column><column><name>Prob</name><description>Probability of predicted spectral class</description><ucd>src.spType</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>ConfLevel</name><description>Confidence level flag (see Sec. 5.1 of the paper)</description><ucd>meta.code</ucd><dataType xsi:type="vs:VOTableType" arraysize="16*">char</dataType></column><column><name>B0</name><description>Probability for class B0</description><ucd>stat.fit.goodness</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>B1</name><description>Probability for class B1</description><ucd>stat.fit.goodness</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>B2</name><description>Probability for class B2</description><ucd>stat.fit.goodness</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>B3-B4</name><description>Probability for class B3-B4</description><ucd>stat.fit.goodness</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>B5-B7</name><description>Probability for class B5-B7</description><ucd>stat.fit.goodness</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>B8</name><description>Probability for class B8</description><ucd>stat.fit.goodness</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>B9</name><description>Probability for class B9</description><ucd>stat.fit.goodness</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>O2-O6</name><description>Probability for class O2-O6</description><ucd>stat.fit.goodness</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>O7</name><description>Probability for class O7</description><ucd>stat.fit.goodness</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>O8</name><description>Probability for class O8</description><ucd>stat.fit.goodness</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>O9</name><description>Probability for class O9</description><ucd>stat.fit.goodness</ucd><dataType xsi:type="vs:VOTableType">float</dataType></column><column><name>SimbadName</name><description>Simbad column added by the CDS</description><ucd>meta.id</ucd><dataType xsi:type="vs:VOTableType" arraysize="8*">char</dataType><flag>nullable</flag></column><column><name>_RA</name><description>Right Ascension (J2000) from SIMBAD (not part of the original data)</description><unit>deg</unit><ucd>pos.eq.ra;meta.main</ucd></column><column><name>_DE</name><description>Declination (J2000) from SIMBAD (not part of the original data)</description><unit>deg</unit><ucd>pos.eq.dec;meta.main</ucd></column></table></schema></tableset></ri:Resource>