{"id":3499,"date":"2025-08-31T11:12:59","date_gmt":"2025-08-31T09:12:59","guid":{"rendered":"https:\/\/neuraldesigner.com\/learning\/gamma\/"},"modified":"2025-10-06T10:32:48","modified_gmt":"2025-10-06T08:32:48","slug":"gamma","status":"publish","type":"learning","link":"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/","title":{"rendered":"Detect gamma rays using machine learning"},"content":{"rendered":"<p>The objective is to design a machine learning model that accurately detects gamma rays and distinguishes them from the background.<\/p>\n<p>The Cherenkov telescope uses the atmosphere as the detector.<\/p>\n<p>Gamma rays create air showers that emit Cherenkov light.<\/p>\n<p>The camera records this light as a \u201crain image.\u201d<\/p>\n<p>These images let us distinguish gamma events (signal) from hadronic showers (background).<\/p>\n<p>We use Hillas parameters, along with features like energy asymmetry, cluster extent, and total signal, for discrimination.<\/p>\n<section>This example is solved with <a href=\"https:\/\/www.neuraldesigner.com\/\">Neural Designer<\/a>. To follow it step by step, you can use the <a href=\"https:\/\/www.neuraldesigner.com\/free-trial\">free trial<\/a>.<\/section>\n<section>\n<h3>Contents<\/h3>\n<ol>\n<li><a href=\"#ApplicationType\">Application type<\/a>.<\/li>\n<li><a href=\"#DataSet\">Data set<\/a>.<\/li>\n<li><a href=\"#NeuralNetwork\">Neural network<\/a>.<\/li>\n<li><a href=\"#TrainingStrategy\">Training strategy<\/a>.<\/li>\n<li><a href=\"#ModelSelection\">Model selection<\/a>.<\/li>\n<li><a href=\"#TestingAnalysis\">Testing analysis<\/a>.<\/li>\n<li><a href=\"#ModelDeployment\">Model deployment<\/a>.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h2>1. Application type<\/h2>\n<p>This is a <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-networks-applications#Classification\">classification<\/a> project since the variable to be predicted is binary: gamma (signal) or hadron (background).<\/p>\n<\/section>\n<section>\n<h2>2. Data set<\/h2>\n<p>The first step is to prepare the\u00a0<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\"><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set\" target=\"_blank\" rel=\"noopener\">dataset<\/a>, which serves as<\/span>\u00a0the source of information for the classification problem.<\/p>\n<p>For that, we need to configure the following concepts:<\/p>\n<ul>\n<li>Data source.<\/li>\n<li>Variables.<\/li>\n<li>Instances.<\/li>\n<\/ul>\n<h3>Data source<\/h3>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#DataSource\">data source<\/a> is the file <a href=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/10\/gamma.csv\">gamma.csv<\/a>. It contains the data for this example in comma-separated values (CSV) format. The number of columns is 11, and the number of rows is 19020.<\/p>\n<p>The CORSIKA simulation program generated the data set, utilizing a Monte Carlo code to simulate extensive air showers.<\/p>\n<p>Additionally, it has been utilized to simulate the registration of high-energy gamma particles from the Cherenkov gamma telescope using the imaging technique.<\/p>\n<h3>Variables<\/h3>\n<p>The <a style=\"font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size ); font-weight: var( --e-global-typography-text-font-weight ); background-color: #ffffff;\" href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#Variables\">variables are:<\/a><\/p>\n<\/section>\n<h4>Shape features<\/h4>\n<ul>\n<li data-start=\"104\" data-end=\"150\"><strong data-start=\"104\" data-end=\"114\">length<\/strong> \u2013 Major axis of the ellipse (mm).<\/li>\n<li data-start=\"153\" data-end=\"198\"><strong data-start=\"153\" data-end=\"162\">width<\/strong> \u2013 Minor axis of the ellipse (mm).<\/li>\n<li data-start=\"201\" data-end=\"272\"><strong data-start=\"201\" data-end=\"211\">M3Long<\/strong> \u2013 Cube root of the third moment along the major axis (mm).<\/li>\n<li data-start=\"275\" data-end=\"347\"><strong data-start=\"275\" data-end=\"286\">M3Trans<\/strong> \u2013 Cube root of the third moment along the minor axis (mm).<\/li>\n<\/ul>\n<h4>Intensity\/concentration features<\/h4>\n<ul>\n<li data-start=\"396\" data-end=\"446\"><strong data-start=\"396\" data-end=\"404\">size<\/strong> \u2013 Log of total pixel content (photons).<\/li>\n<li data-start=\"449\" data-end=\"512\"><strong data-start=\"449\" data-end=\"457\">conc<\/strong> \u2013 Ratio of the two highest pixel sums to total size.<\/li>\n<li data-start=\"515\" data-end=\"570\"><strong data-start=\"515\" data-end=\"524\">conc1<\/strong> \u2013 Ratio of the highest pixel to total size.<\/li>\n<\/ul>\n<h4>Geometry and orientation features<\/h4>\n<ul>\n<li data-start=\"616\" data-end=\"697\"><strong data-start=\"616\" data-end=\"624\">asym<\/strong> \u2013 Distance from highest pixel to center, projected on major axis (mm).<\/li>\n<li data-start=\"700\" data-end=\"778\"><strong data-start=\"700\" data-end=\"709\">alpha<\/strong> \u2013 Angle of the ellipse\u2019s major axis relative to the origin vector (\u00b0).<\/li>\n<li data-start=\"781\" data-end=\"850\"><strong data-start=\"781\" data-end=\"793\">distance<\/strong> \u2013 Distance from the origin to the ellipse center (mm).<\/li>\n<\/ul>\n<h4>Target variable<\/h4>\n<ul>\n<li><strong data-start=\"880\" data-end=\"889\">class<\/strong> \u2013 Event type: <em data-start=\"904\" data-end=\"911\">gamma<\/em> (signal) or <em data-start=\"924\" data-end=\"932\">hadron<\/em> (background).<\/li>\n<\/ul>\n<section>\n<h3>Instances<\/h3>\n<p>Neural Designer randomly splits the <a style=\"font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-size: var( --e-global-typography-text-font-size ); font-weight: var( --e-global-typography-text-font-weight ); background-color: #ffffff;\" href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#Instances\">instances<\/a> into 60% training (11,412), 20% validation (3,804), and 20% testing (3,804).<\/p>\n<h3>Variables distributions<\/h3>\n<p>We can calculate the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#Distributions\">distributions<\/a> of all variables. The following figure is the pie chart for the gamma or hadron cases.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/gamma-pie-chart.webp\" \/><\/p>\n<p>As we can see, most of the samples are gamma signals. The hadron class (background) represents the majority of events in the actual data.<\/p>\n<h3>Input-target correlations<\/h3>\n<p>Finally, the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#InputsTargetsCorrelations\">input-target correlations<\/a> might indicate to us what factors most influence.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/gamma-correlation.webp\" \/><\/p>\n<p>The most correlated variables with the classification are alpha and dist, which refer to ellipse variables.<\/p>\n<p>Additionally, there are not many correlated variables, such as fConc1 and fM3Trans.<\/p>\n<\/section>\n<section>\n<h2>3. Neural network<\/h2>\n<p>The second step is to choose a <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\">neural network<\/a>. In classification problems, it is usually composed of:<\/p>\n<ul>\n<li>A scaling layer.<\/li>\n<li>Two perceptron layers.<\/li>\n<li>A probabilistic layer.<\/li>\n<\/ul>\n<h3>Scaling layer<\/h3>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#ScalingLayer\">scaling layer<\/a> contains the statistics on the inputs calculated from the data file and the method for scaling the input variables.<\/p>\n<h3>Hidden dense layer<\/h3>\n<p>The number of <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#PerceptronLayers\">perceptron layers<\/a> is 1. This perceptron layer has 10 inputs and 10 neurons.<\/p>\n<h3>Output dense layer<\/h3>\n<p>Finally, we will set the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#BinaryProbabilisticMethod\">binary probabilistic method<\/a> for the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#ProbabilisticLayer\">probabilistic layer<\/a>, as we want the predicted target variable to be binary.<\/p>\n<h3>Neural network graph<\/h3>\n<p>The following figure is a graphical representation of this <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network#ClassificationNeuralNetworks\">classification neural network<\/a>.<\/p>\n<p>In this diagram, yellow circles are scaling neurons, blue circles are perceptron neurons, and red circles are probabilistic neurons.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/gamma-neural-network.webp\" \/><\/p>\n<p>The number of inputs is 10, and the number of outputs is 1.<\/p>\n<\/section>\n<section>\n<h2>4. Training strategy<\/h2>\n<p>The fourth step is to set the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy\">training strategy<\/a>, which is composed of:<\/p>\n<ul>\n<li>Loss index.<\/li>\n<li>Optimization algorithm.<\/li>\n<\/ul>\n<h3>Loss index<\/h3>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#LossIndex\">loss index<\/a> chosen for this application is the\u00a0<a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#NormalizedSquaredError\">normalized squared error<\/a>\u00a0with <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#L2Regularization\">L2 regularization<\/a>.<\/p>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#ErrorTerm\">error term<\/a>\u00a0<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">trains the neural network using the\u00a0<a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#TrainingInstances\" target=\"_blank\" rel=\"noopener\">training instances<\/a> of the dataset<\/span>.<\/p>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#RegularizationTerm\">regularization term<\/a> makes the model more stable and improves generalization.<\/p>\n<h3>Optimization algorithm<\/h3>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#OptimizationAlgorithm\">optimization algorithm<\/a> searches for the neural network parameters that minimize the loss index.<\/p>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy#QuasiNewtonMethod\">quasi-Newton method<\/a>\u00a0is chosen here.<\/p>\n<h3>Training<\/h3>\n<p>The following chart illustrates how the training and selection errors decrease over the course of training epochs.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/gamma-quasi-newton.webp\" \/><\/p>\n<p>The final values are <b>training error = 0.547 NSE<\/b> (blue) and <b>selection error = 0.550 NSE<\/b> (orange).<\/p>\n<\/section>\n<section>\n<h2>5. Model selection<\/h2>\n<p>The objective of <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-selection\">model selection<\/a> is to find the network architecture with the best generalization properties, which minimizes the error on the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set#SelectionInstances\">selected instances<\/a> of the data set.<\/p>\n<p>More specifically, we\u00a0<span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">aim to develop a neural network with a selection error of less than\u00a0<strong>0.550 WSE<\/strong>, the value we have previously <\/span>achieved.<\/p>\n<p><a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-selection#OrderSelection\">Order selection<\/a> algorithms train several network architectures with different numbers of neurons and select the one with the smallest selection error.<\/p>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-selection#IncrementalOrder\">incremental order<\/a> method starts with a few neurons and increases the complexity at each iteration.<\/p>\n<\/section>\n<section>\n<h2>6. Testing analysis<\/h2>\n<p>The last step is to <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis\">test<\/a> the neural network\u2019s generalization by comparing its predicted values with the observed ones.<\/p>\n<h3>ROC curve<\/h3>\n<p>We can use the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis#RocCurve\">ROC curve<\/a> as it is the standard testing method for binary classification projects.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/images\/gamma-roc.webp\" \/><\/p>\n<h3>Confusion matrix<\/h3>\n<\/section>\n<p>In the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis#ConfusionMatrix\">confusion matrix<\/a>, rows are the actual values and columns are the predicted values.<\/p>\n<p>Diagonal cells show correct classifications, while off-diagonal cells show errors.<\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th>Predicted positive (gamma)<\/th>\n<th>Predicted negative (background)<\/th>\n<\/tr>\n<tr>\n<th>Real positive (gamma)<\/th>\n<td style=\"text-align: right;\">2120 (55.8%)<\/td>\n<td style=\"text-align: right;\">283 (7.4%)<\/td>\n<\/tr>\n<tr>\n<th>Real negative (background)<\/th>\n<td style=\"text-align: right;\">407 (10.7%)<\/td>\n<td style=\"text-align: right;\">993 (26.1%)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>As we can see, the model correctly predicts 3114 instances (81.9%), while misclassifying 690 (18.1%).<\/p>\n<p>This indicates that our predictive model achieves high classification accuracy.<\/p>\n<h3>Binary classification metrics<\/h3>\n<p>The following list depicts the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis#BinaryClassificationTests\">binary classification tests<\/a> for this application:<\/p>\n<ul>\n<li><b>Classification accuracy: 81.9% <\/b> (percentage of correctly classified samples).<\/li>\n<li><b>Error rate: 18.1%<\/b> (percentage of misclassified samples).<\/li>\n<li><b>Sensitivity: 88.2%<\/b> (percentage of actual positives classified as positive).<\/li>\n<li><b>Specificity: 70.9%<\/b> (percentage of actual negatives classified as negative).<\/li>\n<\/ul>\n<section>\n<h2>7. Model deployment<\/h2>\n<p>The neural network is now ready to predict outputs for inputs it has never seen. This process is called <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-deployment\">model deployment<\/a>.<\/p>\n<h3>Neural network outputs<\/h3>\n<p>We calculate the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-deployment#NeuralNetworkOutputs\">neural network outputs<\/a> from the different variables to classify a given signal. For instance:<\/p>\n<ul>\n<li><b>lenght:<\/b> 341.4 mm.<\/li>\n<li><b>width:<\/b> 190.3 mm.<\/li>\n<li><b>size:<\/b> 25.7 phot.<\/li>\n<li><b>conc:<\/b> 0.4.<\/li>\n<li><b>conc1:<\/b> 0.2.<\/li>\n<li><b>asym:<\/b> 24.4 mm.<\/li>\n<li><b>M3Long:<\/b> 118.4 mm.<\/li>\n<li><b>M3Trans:<\/b> 1.5 mm.<\/li>\n<li><b>alpha:<\/b> 182.6 degrees.<\/li>\n<li><b>dist:<\/b> 225.2 mm.<\/li>\n<li><b>Probability of signal gamma:<\/b> 80%.<\/li>\n<\/ul>\n<p>The neural network would classify the signal as a gamma-ray signal for this case.<\/p>\n<h2>Conclusions<\/h2>\n<pre>We have just built a predictive model to determine whether the measured data originates from gamma rays or from the hadron shower, which we consider as background.<\/pre>\n<\/section>\n<section>\n<h2>References<\/h2>\n<ul>\n<li>The data for this problem has been taken from the <a href=\"http:\/\/archive.ics.uci.edu\/ml\/datasets\/MAGIC+Gamma+Telescope\" target=\"_blank\" rel=\"noopener\">UCI Machine Learning Repository<\/a>.<\/li>\n<li>Bock, R.K., Chilingarian, A., Gaug, M., Hakl, F., Hengstebeck, T., Jirina, M., Klaschka, J., Kotrc, E., Savicky, P., Towers, S., Vaicilius, A., Wittek W. (2004). Methods for multidimensional event classification: a case study using images from a Cherenkov gamma-ray telescope. Nucl.Instr.Meth. A, 516, pp. 511-528.<\/li>\n<li>P. Savicky, E. Kotrc. Experimental Study of Leaf Confidences for Random Forest. Proceedings of COMPSTAT 2004, In: Computational Statistics. (Ed.: Antoch J.) &#8211; Heidelberg, Physica Verlag 2004, pp. 1767-1774.<\/li>\n<li>J. Dvorak, P. Savicky. Softening Splits in Decision Trees Using Simulated Annealing. Proceedings of ICANNGA 2007, Warsaw, (Ed.: Beliczynski et. al), Part I, LNCS 4431, pp. 721-729.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>Related posts<\/h2>\n<\/section>\n","protected":false},"author":13,"featured_media":2137,"template":"","categories":[29],"tags":[],"class_list":["post-3499","learning","type-learning","status-publish","has-post-thumbnail","hentry","category-examples"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Detect gamma rays using machine learning<\/title>\n<meta name=\"description\" content=\"Build a machine learning model to develop a classification method to detect gamma rays while it discriminate the background.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gamma ray machine learning example\" \/>\n<meta property=\"og:description\" content=\"In this example, we develop a classification method to detect gamma signal\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/\" \/>\n<meta property=\"og:site_name\" content=\"Neural Designer\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-06T08:32:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/gamma-telescope.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Gamma ray machine learning example\" \/>\n<meta name=\"twitter:description\" content=\"In this example, we develop a classification method to detect gamma signal\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/gamma-telescope.webp\" \/>\n<meta name=\"twitter:site\" content=\"@NeuralDesigner\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/\",\"name\":\"Detect gamma rays using machine learning\",\"isPartOf\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/gamma-telescope.webp\",\"datePublished\":\"2025-08-31T09:12:59+00:00\",\"dateModified\":\"2025-10-06T08:32:48+00:00\",\"description\":\"Build a machine learning model to develop a classification method to detect gamma rays while it discriminate the background.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/#primaryimage\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/gamma-telescope.webp\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/gamma-telescope.webp\",\"width\":1200,\"height\":628},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.neuraldesigner.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learning\",\"item\":\"https:\/\/www.neuraldesigner.com\/learning\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Detect gamma rays using machine learning\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"name\":\"Neural Designer\",\"description\":\"Explanable AI Platform\",\"publisher\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.neuraldesigner.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\",\"name\":\"Neural Designer\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"width\":1024,\"height\":223,\"caption\":\"Neural Designer\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/NeuralDesigner\",\"https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Detect gamma rays using machine learning","description":"Build a machine learning model to develop a classification method to detect gamma rays while it discriminate the background.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/","og_locale":"en_US","og_type":"article","og_title":"Gamma ray machine learning example","og_description":"In this example, we develop a classification method to detect gamma signal","og_url":"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/","og_site_name":"Neural Designer","article_modified_time":"2025-10-06T08:32:48+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/gamma-telescope.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_title":"Gamma ray machine learning example","twitter_description":"In this example, we develop a classification method to detect gamma signal","twitter_image":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/gamma-telescope.webp","twitter_site":"@NeuralDesigner","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/","url":"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/","name":"Detect gamma rays using machine learning","isPartOf":{"@id":"https:\/\/www.neuraldesigner.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/#primaryimage"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/#primaryimage"},"thumbnailUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/gamma-telescope.webp","datePublished":"2025-08-31T09:12:59+00:00","dateModified":"2025-10-06T08:32:48+00:00","description":"Build a machine learning model to develop a classification method to detect gamma rays while it discriminate the background.","breadcrumb":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/#primaryimage","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/gamma-telescope.webp","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/gamma-telescope.webp","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/gamma\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.neuraldesigner.com\/"},{"@type":"ListItem","position":2,"name":"Learning","item":"https:\/\/www.neuraldesigner.com\/learning\/"},{"@type":"ListItem","position":3,"name":"Detect gamma rays using machine learning"}]},{"@type":"WebSite","@id":"https:\/\/www.neuraldesigner.com\/#website","url":"https:\/\/www.neuraldesigner.com\/","name":"Neural Designer","description":"Explanable AI Platform","publisher":{"@id":"https:\/\/www.neuraldesigner.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.neuraldesigner.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.neuraldesigner.com\/#organization","name":"Neural Designer","url":"https:\/\/www.neuraldesigner.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","width":1024,"height":223,"caption":"Neural Designer"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/NeuralDesigner","https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning\/3499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning"}],"about":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/types\/learning"}],"author":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/users\/13"}],"version-history":[{"count":0,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning\/3499\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media\/2137"}],"wp:attachment":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media?parent=3499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/categories?post=3499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/tags?post=3499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}