Springer template

合集下载

Springer论文模板要求说明书word2007word2010

Springer论文模板要求说明书word2007word2010

Instructions for Using the Microsoft Word 2007/2010Proceedings Paper Template1Working with the Document Template1.1General InformationThe template, splnproc1110.dotm, has been designed for authors preparing a paper to be published in one of Springer’s computer science proceedings series. The template supports Word 2007 and newer.Predefined style formats are available for all the necessary structures to be included in the manuscript, and these formats can be quickly accessed using a custom ribbon tab provided with the template.For a detailed description of how to prepare your text, illustrations, and references, see the Author Guidelines for the Preparation of Contributions to Springer Computer Science Proceedings.1.2General Working PrinciplesThe macros are designed to work as intuitively as possible. All commands are applied to the selected text. If no text is selected, a macro is applied to the current cursor posi-tion. For example, if you have just typed your affiliation and you are going to con-tinue with writing your abstract, do not click ‘Abstract’ before having started a new paragraph. Otherwise the abstract format will be applied to the address information, where the cursor is still positioned.Always type your text first and then click on the button to format it!1.3Installing the TemplateCopy the template file splnproc1110.dotm into the directory where you want to save your manuscript. This will help you keep the document and its template together. If the document’s link to the template file is lost, the template’s custom ribbon and mac-ros are no longer available.We recommend to register this directory as a ‘trusted location’; this will eliminate the need to enable the template’s macros manually every time you open the document: ∙In Word 2007 click on the Office button and select Word Options.In Word 2010 click the File menu and select Options.∙Then click Trust Center→Trust Center Settings→Trusted Locations→Add new loca-tion to add the manuscript directory to the registered trusted locations.More detailed information on trusted locations can be found at / en-us/word-help/create-remove-or-change-a-trusted-location-for-your-files-HA010031999.aspx#BM15 (Word 2007) and at /en-us/word-help/create-remove-or-change-a-trusted-location-for-your-files-HA010031999.aspx?CTT=1#BM3 (Word 2010).2 Using the Microsoft Word 2007/2010 Proceedings Paper Template1.4How to Start Writing a New Document Using the Template∙If you have not yet started to write your paper, please open Windows Explorer, select the template file and click New in the file’s context menu to create a new document that is based on the template.Do not open the template out of Word via Office Button/File→Open. You would edit the template instead of creating a new document that is based on the template. ∙You can easily find out whether a new document has been created by looking at the window’s title: it should read ‘Document1’ (or Document2, Document3, etc.).∙If you have not registered the manuscript directory as a trusted location (see 1.3), you will see a security warning telling you that the macros have been disabled.Click to the button next to the warning to enable them manually. If you do not see the warning in the message bar, it might have been disabled (see /en-us/word-help/show-or-hide-the-message-bar-HA010210672.aspx).∙Save the document and name it with your name and a short form of the title (e.g., Smith_TitleOfMyPaper.doc).1.5How to Apply the Template to an Existing Document∙Open the file you would like to format and click Office Button→Word Options (Word 2007)/File→Options (Word 2010). Choose Add-Ins on the left side, then select Templates in the drop-down list at the bottom of the dialog. Click Attach in the dialog box that opens, navigate to your working directory, select the splnproc1110.dotm template, then click Open. Check the option Automatically update document styles and click OK.∙If you have not registered the manuscript directory as a trusted location (see 1.3), you will see a security warning telling you that the macros have been disabled.Click to the button next to the warning to enable them manually. If you do not see the warning in the message bar, it might have been disabled (see /en-us/word-help/show-or-hide-the-message-bar-HA010210672.aspx).∙Save the document, name it with your name and a short form of the title (e.g., Smith_TitleOfMyPaper.doc) and re-open it.∙On re-opening the document, click ‘yes’ if you are asked to adjust the page setup to the template’s default. This is because the page setup and some other document set-tings cannot be updated automatically by attaching the template. They are checked, though, whenever you open the document.Click ‘No’ whenever you are asked to save changes to the template.Using the Microsoft Word 2007/2010 Proceedings Paper Template 32 What the Ribbon’s Commands DoThe template’s ‘Springer Proceedings Macros’ ribbon consists of buttons for the available style elements in the template. To use one of these styles, first enter text and then click the button. The style will then be assigned to the paragraph that currentlyhas the cursor in it. The descriptions below show you how these elements work.Fig. 1. Custom ribbon ‘Springer Proceedings Macros’2.1How to Format the Header of Your PaperButtonEffectDescriptionFormats the contribution title∙ This button does not work if more than one paragraph is selected.∙ If a subtitle follows the title, the space after the paragraph is adjusted automatically.Formats acontribution subtitle∙ This button does not work if more than one paragraph is selected.∙ The spacing between the title and the subtitle is adjusted automatically.Formats the authors’ names∙ This button does not work if more than one paragraph is selected.Formats affiliation and address information∙ This button sets the paragraph format for any affiliation information including e-mail ad-dresses and URLs.∙ The font of e-mail addresses and URLs can be adjusted by using the ‘Email/URL’ but-ton.Formats e-mail addresses and URLs ∙ This button changes the font of the current text selection to a typewriter font.∙ If no text is selected, the word next to the current cursor position is formatted with the typewriter font.Formats the abstract∙ In addition to applying the appropriate para-graph format, the word ‘Abstract’ is added at the beginning of the first paragraph.Formats the keywords∙ This button does not work if more than one paragraph is selected.∙ The word ‘Keywords’ is added at the begin-ning of the paragraph if not yet present.4 Using the Microsoft Word 2007/2010 Proceedings Paper Template2.2 How to Format HeadingsButtonEffectDescriptionFormats a level 1 heading (numbered section heading) ∙ This button does not work if more than one paragraph is selected. ∙ If you want to create a heading without anumber, e.g., ‘References’, simply place the cursor at the beginning of the text and press the backspace key [←].Formats a level 2 heading (numbered subsection heading) ∙ This button does not work if more than one paragraph is selected. ∙ If you want to create a heading without anumber, simply place the cursor at the be-ginning of the text and press the backspace key [←].Formats a level 3 heading (bold run-in heading) ∙ This button does not work if more than one paragraph is selected.∙ If applied to selected text:The selection is formatted as bold run-in heading.∙ If applied to a paragraph:The first sentence, i.e., up to the first period, is formatted in bold font style as run-in heading. ∙ If applied to an empty paragraph:Bold font style is applied to any text then typed in. Once you have finished the heading, you should press the ‘Normal Text’ button to reset the character style to normal text again.Formats a level 4 heading (italic run-in heading) ∙ This button does not work if more than one paragraph is selected.∙ If applied to selected text:The selection is formatted as italic run-in heading.∙ If applied to a paragraph:The first sentence, i.e., up to the first period, is formatted in italic font style as run-in heading. ∙ If applied to an empty paragraph:Italic font style is applied to any text then typed in. Once you have finished the heading, you should press the ‘Normal Text’ button to reset the character style to normal text again.Using the Microsoft Word 2007/2010 Proceedings Paper Template 52.3 How to Create ListsButtonEffectDescriptionCreates an unnumbered list with bullet items/dash items on the 1st level ∙ This button applies a complete itemization scheme with multiple levels. ∙ The only difference between the two buttonsis that one starts with bullets and continues with dashes on the 2nd level, while the other starts with dashes and continues with bullets on the 2nd level.∙ Use the ‘list level’ buttons to set the levels and indents for nested lists.∙ Vertical space will only be added before and after a list. The spacing is adjusted automati-cally if you select a complete block of elements before clicking on one of the list buttons. Creates a numbered list with Arabic numerals on its 1st level ∙ Contains a numbering scheme with multiple levels. The 2nd level uses alphabetic charac-ters, the 3rd level uses lower case Romannumerals, and so on.∙ Use the ‘list level’ buttons to set the levels and indents of nested lists.∙ Vertical space will only be added before and after a list. The spacing is adjusted automati-cally if you select a complete block of elements before clicking on one of the list buttons. Restarts or continues a numbered list∙ Only works for numbered lists.∙ If more than one paragraph is selected, the button only applies to the first paragraph. Increases the level of an existing numbered or unnumbered list (increases the indentation)∙ Only works for text that has already beenformatted with one of the ‘Bullet item,’ ‘Dash item,’ or ‘Num item’ buttons before.∙ Please only use this button with nested lists. ∙ If you want to create, e.g., a numbered list with bulleted subitems, you should first select all items and click on the ‘Num item’ button. Then select the subitems and hit the ‘Dash item’ button. Finally, apply ‘List level up’ to the subitems. The indentation will be shifted to the next level and the dashes will be con-verted to bullets since bullets represent the second level of the ‘Dash item’ list template.Decreases the level of an existing numbered or unnumbered list (decreases the indentation) ∙ Only works for text that has already been formatted with one of the ‘Bullet item,’ ‘Dash item,’ or ‘Num item’ buttons and has been shifted to a higher level. ∙ Please only use this button with nested lists.6 Using the Microsoft Word 2007/2010 Proceedings Paper Template2.4 How to Format Text and ParagraphsButtonEffectDescriptionFormats normal text∙ Depending on the current selection, this but-ton either applies the default font or it applies the default paragraph format:∙ If an entire paragraph (or nothing) is selected, and the underlying format is different from the standard paragraph format: The standard paragraph format is applied to the selection. ∙ If an entire paragraph (or nothing) is selected, and the underlying format is already the stan-dard paragraph format: The standard charac-ter style is applied to the selection.∙ If text is selected that does not follow the default character style: The standard charac-ter style is applied to the selection.∙ If text is selected that already follows the default character style: The standard para-graph format is applied to the selection. ∙ If you want to apply the standard paragraph format and remove a nonstandard character style, simply click on the button twice.∙ Please note that standard paragraphs are not indented after headings, captions, lists, etc., but they have a first-line indent in all other cases.Inserts vertical space ∙ This button adds 6 pt (2.1 mm) of vertical space before the selected paragraph. Removes space before and after the current selection∙ This button clears any vertical space before and after the selected text.∙ If space remains after the button has been clicked, please check the preceding and/or the following paragraphs for their settings.Inserts a footnote∙ This button inserts a footnote at the current cursor position.∙ For remarks to the contribution title, the footnote character is automatically changed to a symbol (instead of a number).Formats a reference entry ∙ This command helps you format numberedreference lists.∙ The hanging indent of the reference items is automatically adjusted based on the total number of references.∙ If you prefer unnumbered references, simply place the cursor at the beginning of each ref-erence item and press the backspace key [←] to remove the number.Using the Microsoft Word 2007/2010 Proceedings Paper Template 72.5 How to Format Special Elements of Your PaperButtonEffectDescriptionInserts an image from an external file ∙ The image is always placed in an empty paragraph.∙ If the cursor is not in an empty paragraph when clicking on this button, a new para-graph is added after the current one, and the image is inserted there. Formats a figure caption ∙ In addition to applying the appropriate paragraph format, ‘Fig. [X]’ is added atthe beginning of the paragraph ([X] is an automatic counter that is updated when-ever the document is opened).∙ This macro does not work if more than one paragraph is selected.∙ If the caption runs over multiple lines the paragraph alignment is automatically switched to justified. Formats a table caption ∙ In addition to applying the appropriate paragraph format, ‘Table [X]’ is added atthe beginning of the paragraph ([X] is an automatic counter that is updated when-ever the document is opened).∙ This macro does not work if more than one paragraph is selected.∙ If the caption runs over multiple lines, the paragraph alignment is automatically switched to justified.Formats a displayed equation∙ Displayed equations are always centered between the text margins.∙ If you want to align the equal sign in mul-tiline displays, please use the alignment feature of the equation editor.Adds an equation num-ber to a displayed equa-tion∙ This button only works if the selected paragraph was formatted with the ‘Equa-tion’ button before.∙ The automatic counter that is inserted in the right margin is updated whenever the document is opened.Formats program list-ings and command sequences∙ Please note that the paragraph format includes tabulators every 4 mm that can help you adjust the indentation of code blocks.8 Using the Microsoft Word 2007/2010 Proceedings Paper Template3Frequently Asked QuestionsI do not see the ‘Springer Proceedings Macros’ ribbon – what’s the problem?If you do not see the ‘Springer Proceedings Macros’ ribbon described in this docu-ment or if they are not functional, it has probably been deactivated by your current macro security settings. In this case, please register the template’s directory register as a ‘trusted location’ as described in 1.3.To read more about the macro security in Microsoft Office and how they are con-figured, please check the information available at /en-us/word-help/enable-or-disable-macros-in-office-documents-HA010031071.aspx.I have attached the template to an existing document with the option ‘Automati-cally update styles’ activated, but the document is not or not fully adjusted to the Springer standard.There are three possible reasons: First, only formatting styles that already existed in your original document can be updated by the template. Second, only if those styles were used in your original document, adjusting them can have a visible effect. Third, please consider that individual modifications of certain styles are usually retained, even if the original styles are overwritten by a new template. In all three cases, you should simply re-apply the appropriate styles and click the button again.I have formatted a text element by clicking the respective button, but some of the selected style’s properties were obviously not applied.There might be a conflict between the underlying paragraph style and some individual character and paragraph formatting. Most buttons in the ribbon change the underlying style only and do not generally adjust individual formatting that might be present in the selected text. Solution: First reset the text formatting by clicking the ‘Normal Text’ button twice, then apply the desired style.The automatic numbering of sections and subsections seems to be corrupted. Please simply apply the H1 and H2 formats to the affected section headings or sub-section headings once again to correct the numbering.I would like to use special characters in my text – how should I insert them? Reformatting of running text, in which special characters such as Greek letters have been entered via the keyboard, can cause these characters to disappear. In order to avoid this problem, always insert special characters to your document from the menu point Insert→Symbol. In the Symbol dialog box, select the required character.November 11, 2011。

Springer-word模板

Springer-word模板

Lecture Notes in Computer Science:Authors’ Instructions for the Preparationof Camera-Ready Contributionsto LNCS/LNAI/LNBI ProceedingsAlfred Hofmann1,1, Brigitte Apfel1, Ursula Barth1, Christine Günther1, Ingrid Haas1, Frank Holzwarth1, Anna Kramer1, Leonie Kunz1,Nicole Sator1, Erika Siebert-Cole1 and Peter Straßer1,1 Springer-Verlag, Computer Science Editorial, Tiergartenstr. 17,69121 Heidelberg, Germany{Alfred.Hofmann, Brigitte.Apfel, Ursula.Barth, Christine.Guenther,Ingrid.Haas, Frank.Holzwarth, Anna.Kramer, Leonie.Kunz,Nicole.Sator, Erika.Siebert-Cole, Peter.Strasser, LNCS}@ Abstract. The abstract should summarize the contents of the paper and shouldcontain at least 70 and at most 150 words. It should be set in 9-point font sizeand should be inset 1.0 cm from the right and left margins. There should be twoblank (10-point) lines before and after the abstract. This document is in therequired format.Keywords: We would like to encourage you to list your keywords in thissection.1 IntroductionThis instruction file for Word users (there is a separate instruction file for LaTeX users) may be used as a template. Kindly send the final and checked Word and PDF files of your paper to the Contact Volume Editor. This is usually one of the organizers of the conference. You should make sure that the Word and the PDF files are identical and correct and that only one version of your paper is sent. It is not possible to update files at a later stage. Please note that we do not need the printed paper.We would like to draw your attention to the fact that it is not possible to modify a paper in any way, once it has been published. This applies to both the printed book and the online version of the publication. Every detail, including the order of the names of the authors, should be checked before the paper is sent to the Volume Editors.1Please note that the LNCS Editorial assumes that all authors have used the westernnaming convention, with given names preceding surnames. This determines thestructure of the names in the running heads and the author index.1.1 Checking the PDF FileKindly assure that the Contact Volume Editor is given the name and email address of the contact author for your paper. The Contact Volume Editor uses these details to compile a list for our production department at SPS in India. Once the files have been worked upon, SPS sends a copy of the final pdf of each paper to its contact author. The contact author is asked to check through the final pdf to make sure that no errors have crept in during the transfer or preparation of the files. This should not be seen as an opportunity to update or copyedit the papers, which is not possible due to time constraints. Only errors introduced during the preparation of the files will be corrected.This round of checking takes place about two weeks after the files have been sent to the Editorial by the Contact Volume Editor, i.e., roughly seven weeks before the start of the conference for conference proceedings, or seven weeks before the volume leaves the printer’s, for post-proceedings. If SPS does not receive a reply from a particular contact author, within the timeframe given, then it is presumed that the author has found no errors in the paper. The tight publication schedule of LNCS does not allow SPS to send reminders or search for alternative email addresses on the Internet.In some cases, it is the Contact Volume Editor that checks all the pdfs. In such cases, the authors are not involved in the checking phase.1.2 Additional Information Required by the Volume EditorIf you have more than one surname, please make sure that the Volume Editor knows how you are to be listed in the author index.1.3 Copyright FormsThe copyright form may be downloaded from the For Authors section of the LNCS Webpage: /lncs. Please send your signed copyright form to the Contact Volume Editor, either as a scanned pdf or by fax or by courier. One author may sign on behalf of all of the other authors of a particular paper. Digital signatures are acceptable.2 Paper PreparationThe printing area is 122 mm × 193 mm. The text should be justified to occupy the full line width, so that the right margin is not ragged, with words hyphenated as appropriate. Please fill pages so that the length of the text is no less than 180 mm, if possible.Use 10-point type for the name(s) of the author(s) and 9-point type for the address(es) and the abstract. For the main text, please use 10-point type and single-line spacing. We recommend the use of Computer Modern Roman or Times. Italictype may be used to emphasize words in running text. Bold type and underlining should be avoided.Papers not complying with the LNCS style will be reformatted. This can lead to an increase in the overall number of pages. We would therefore urge you not to squash your paper.Headings.Headings should be capitalized (i.e., nouns, verbs, and all other words except articles, prepositions, and conjunctions should be set with an initial capital) and should, with the exception of the title, be aligned to the left. Words joined by a hyphen are subject to a special rule. If the first word can stand alone, the second word should be capitalized. The font sizes are given in Table 1.Here are some examples of headings: "Criteria to Disprove Context-Freeness of Collage Languages", "On Correcting the Intrusion of Tracing Non-deterministic Programs by Software", "A User-Friendly and Extendable Data Distribution System", "Multi-flip Networks: Parallelizing GenSAT", "Self-determinations of Man".Table 1.Font sizes of headings. Table captions should always be positioned above the tables.Heading level Example Font size and styleTitle (centered) Lecture Notes …14 point, bold1st-level heading 1 Introduction12 point, bold2nd-level heading 2.1 Printing Area10 point, bold3rd-level heading Headings.Text fol lows …10 point, bold4th-level heading Remark.Text follows …10 point, italic Lemmas, Propositions, and Theorems.The numbers accorded to lemmas, propositions, and theorems, etc. should appear in consecutive order, starting with Lemma 1, and not, for example, with Lemma 11.2.1 FiguresPlease check that the lines in line drawings are not interrupted and have a constant width. Grids and details within the figures must be clearly legible and may not be written one on top of the other. Line drawings should have a resolution of at least 800 dpi (preferably 1200 dpi). The lettering in figures should have a height of 2 mm (10-point type). Figures should be numbered and should have a caption which should always be positioned under the figures, in contrast to the caption belonging to a table, which should always appear above the table. Please center the captions between the margins and set them in 9-point type (Fig. 1 shows an example). The distance between text and figure should be about 8 mm, the distance between figure and caption about 6 mm.To ensure that the reproduction of your illustrations is of a reasonable quality, we advise against the use of shading. The contrast should be as pronounced as possible.If screenshots are necessary, please make sure that you are happy with the print quality before you send the files.Remark 1. In the printed volumes, illustrations are generally black and white (halftones), and only in exceptional cases, and if the author is prepared to cover the extra costs involved, are colored pictures accepted. Colored pictures are welcome in the electronic version free of charge. If you send colored figures that are to be printed in black and white, please make sure that they really are legible in black and white. Some colors show up very poorly when printed in black and white.Fig. 1. One kernel at x s (dotted kernel) or two kernels at x i and x j (left and right) lead to the same summed estimate at x s. This shows a figure consisting of different types of lines. Elements of the figure described in the caption should be set in italics, in parentheses, as shown in this sample caption.2.2 FormulasDisplayed equations or formulas are centered and set on a separate line (with an extra line or halfline space above and below). Displayed expressions should be numbered for reference. The numbers should be consecutive within each section or within the contribution, with numbers enclosed in parentheses and set on the right margin.x + y = z . (1) Equations should be punctuated in the same way as ordinary text but with a small space before the end punctuation mark.2.3 FootnotesThe superscript numeral used to refer to a footnote appears in the text either directly after the word to be discussed or – in relation to a phrase or a sentence – following the punctuation mark (comma, semicolon, or period). Footnotes should appear at the bottom of the normal text area, with a line of about 5cm set immediately above them2.2.4 Program CodeProgram listings or program commands in the text are normally set in typewriter font, e.g., CMTT10 or Courier.Example of a Computer Program from Jensen K., Wirth N. (1991) Pascal user manual and report. Springer, New Yorkprogram Inflation (Output){Assuming annual inflation rates of 7%, 8%, and10%,... years};const MaxYears = 10;var Year: 0..MaxYears;Factor1, Factor2, Factor3: Real;beginYear := 0;2The footnote numeral is set flush left and the text follows with the usual word spacing.Factor1 := 1.0; Factor2 := 1.0; Factor3 := 1.0;WriteLn('Year 7% 8% 10%'); WriteLn;repeatYear := Year + 1;Factor1 := Factor1 * 1.07;Factor2 := Factor2 * 1.08;Factor3 := Factor3 * 1.10;WriteLn(Year:5,Factor1:7:3,Factor2:7:3,Factor3:7:3)until Year = MaxYearsend.2.5 CitationsFor citations in the text please use square brackets and consecutive numbers: [1], [2], [3], etc.2.6 Page Numbering and Running HeadsThere is no need to include page numbers. If your paper title is too long to serve as a running head, it will be shortened. Your suggestion as to how to shorten it would be most welcome.3 LNCS OnlineThe online version of the volume will be available in LNCS Online. Members of institutes subscribing to the Lecture Notes in Computer Science series have access to all the pdfs of all the online publications. Non-subscribers can only read as far as the abstracts. If they try to go beyond this point, they are automatically asked, whether they would like to order the pdf, and are given instructions as to how to do so.Please note that, if your email address is given in your paper, it will also be included in the meta data of the online version.4 BibTeX EntriesThe correct BibTeX entries for the Lecture Notes in Computer Science volumes can be found at the following Website shortly after the publication of the book: rmatik.uni-trier.de/~ley/db/journals/lncs.html Acknowledgments. The heading should be treated as a 3rd level heading and should not be assigned a number.5 The References SectionIn order to permit cross referencing within LNCS-Online, and eventually between different publishers and their online databases, LNCS will, from now on, be standardizing the format of the references. This new feature will increase the visibility of publications and facilitate academic research considerably. Please base your references on the examples below. References that don’t adhere to this style will be reformatted by Springer. You should therefore check your references thoroughly when you receive the final pdf of your paper. The reference section must be complete. You may not omit references. Instructions as to where to find a fuller version of the references are not permissible.We only accept references written using the latin alphabet. If the title of the book you are referring to is in Russian or Chinese, then please write (in Russian) or (in Chinese) at the end of the transcript or translation of the title.The following section shows a sample reference list with entries for journal articles [1], an LNCS chapter [2], a book [3], proceedings without editors [4] and [5], as well as a URL [6]. Please note that proceedings published in LNCS are not cited with their full titles, but with their acronyms!References1. Smith, T.F., Waterman, M.S.: Identification of Common Molecular Subsequences. J. Mol.Biol. 147, 195--197 (1981)2. May, P., Ehrlich, H.C., Steinke, T.: ZIB Structure Prediction Pipeline: Composing aComplex Biological Workflow through Web Services. In: Nagel, W.E., Walter, W.V., Lehner, W. (eds.) Euro-Par 2006. LNCS, vol. 4128, pp. 1148--1158. Springer, Heidelberg (2006)3. Foster, I., Kesselman, C.: The Grid: Blueprint for a New Computing Infrastructure. MorganKaufmann, San Francisco (1999)4. Czajkowski, K., Fitzgerald, S., Foster, I., Kesselman, C.: Grid Information Services forDistributed Resource Sharing. In: 10th IEEE International Symposium on High Performance Distributed Computing, pp. 181--184. IEEE Press, New York (2001)5. Foster, I., Kesselman, C., Nick, J., Tuecke, S.: The Physiology of the Grid: an Open GridServices Architecture for Distributed Systems Integration. Technical report, Global Grid Forum (2002)6. National Center for Biotechnology Information, Appendix: Springer-Author DiscountLNCS authors are entitled to a 33.3% discount off all Springer publications. Before placing an order, they should send an email to **********************************, giving full details of their Springer publication, to obtain a so-called token. This token is a number, which must be entered when placing an order via the Internet, in order to obtain the discount.Checklist of Items to be Sent to Volume Editors1.A final Word or RTF file2.A final PDF file3.A copyright form, signed by one author on behalf of all of the authors of the paper4.A readme giving the name and email address of the corresponding author。

template的用法

template的用法

template的用法Template的用法Template是一种在编程中广泛使用的概念,它可以帮助程序员更加高效地编写代码。

在本文中,我们将探讨template的用法,以及它在不同编程语言中的应用。

我们需要了解template的定义。

Template是一种通用的编程工具,它可以在编译时或运行时根据参数生成代码。

这意味着程序员可以编写一次代码,然后使用不同的参数来生成多个版本的代码。

这种方法可以大大减少代码的重复性,提高代码的可维护性和可扩展性。

在C++中,template是一种非常强大的工具。

它可以用来定义通用的数据结构和算法,例如容器类和排序算法。

使用template,程序员可以编写一次代码,然后在不同的数据类型上进行实例化。

这使得程序员可以更加高效地编写代码,同时也可以提高代码的可读性和可维护性。

在Java中,template被称为泛型。

它可以用来定义通用的数据类型和算法,例如集合类和排序算法。

使用泛型,程序员可以编写一次代码,然后在不同的数据类型上进行实例化。

这使得程序员可以更加高效地编写代码,同时也可以提高代码的可读性和可维护性。

在Python中,template被称为模板。

它可以用来定义通用的数据类型和算法,例如列表和排序算法。

使用模板,程序员可以编写一次代码,然后在不同的数据类型上进行实例化。

这使得程序员可以更加高效地编写代码,同时也可以提高代码的可读性和可维护性。

template是一种非常有用的编程工具,它可以帮助程序员更加高效地编写代码。

无论是在C++、Java还是Python中,template都是一种非常重要的概念。

如果您是一名程序员,那么一定要学会使用template,这将使您的编程工作更加轻松和愉快。

施普林格的格式要求

施普林格的格式要求

施普林格的格式要求1. 介绍施普林格(Springer)是一家以科学、技术和医学为主题的出版公司。

对于投稿到施普林格的期刊或出版物,有一定的格式要求。

本文将详细探讨施普林格的格式要求,包括文本排版、图表、参考文献等方面的要求。

2. 文本排版要求文本排版对于提高文章的可读性和专业性非常重要。

下面是施普林格对于文本排版的要求:2.1 字体和字号施普林格要求使用Times New Roman字体,并使用12磅的字号。

标题应使用粗体,并根据级别使用不同的字号,一级标题使用14磅,二级标题使用12磅。

2.2 段落和行间距段落间距应设置为1.5倍行距。

行距应设置为1.15倍行距,这样可以方便读者阅读文本。

2.3 缩进和对齐段落应进行首行缩进,缩进距离为0.5英寸。

文本要求两端对齐,使得整篇文章的排版整齐。

2.4 引用和引号对于长篇引用,应在正文中使用缩进,并使用较小的字号。

引用的来源应明确标注,以避免剽窃行为。

对于短篇引用,可以使用引号,但应明确标明引用来源。

3. 图表要求图表在科技论文中起着重要的作用,它们可以直观地展示实验结果和数据。

下面是施普林格对于图表的要求:3.1 图片格式图片应以常见的格式如JPEG、PNG等保存,并具有较高的分辨率,以确保图片清晰可见。

3.2 图片位置和标注图片应嵌入在正文中相应的位置,并且应有相应的标题和标注,以便读者理解。

图表的编号应按照其在文章中的顺序进行,并在正文中进行引用。

3.3 表格格式表格应具有清晰的结构和格式,每行每列应具有准确的标注。

表格的编号和标题应与图片同样遵循施普林格的要求。

4. 参考文献要求参考文献是文章的重要组成部分,它体现了作者对前人工作的尊重和对相关研究的引用。

下面是施普林格对于参考文献的要求:4.1 引用格式施普林格要求使用APA或MLA等常用的引用格式,确保引用格式的一致性和准确性。

引用的来源应具有清晰的信息,包括作者、文章标题、期刊或书籍名称、发表日期等。

Spring3核心技术之JdbcTemplate

Spring3核心技术之JdbcTemplate

Spring3核心技术之JdbcTemplate Spring3核心技术之JdbcTemplateSpring对JDBC的支持 Spring通过抽象JDBC访问并提供一致的API来简化JDBC编程的工作量。

我们只需要声明SQL、调用合适的Spring JDBC框架API、处理结果集即可。

事务由Spring管理,并将JDBC受查异常转换为Spring一致的非受查异常,从而简化开发。

Java代码1. ....2. Connection conn = null;3. PreparedStatement pstmt = null;4. try {5. conn = getConnection(); //1.获取JDBC连接6. String sql = "select * from tableName"; //2.声明SQL7. pstmt = conn.prepareStatement(sql); //3.预编译SQL8. ResultSet rs = pstmt.executeQuery(); //4.执行SQL9. process(rs); //5.处理结果集10. closeResultSet(rs); //5.释放结果集11. closeStatement(pstmt); //6.释放Statement12. mit(); //8.提交事务13. } catch (Exception e) {14. //9.处理异常并回滚事务15. conn.rollback();16. throw e;17. } finally {18. //10.释放JDBC连接,防止JDBC连接不关闭造成的内存泄漏19. closeConnection(conn);20. }21. ....以上代码片段具有冗长、重复、容易忘记某一步骤从而导致出错、显示控制事务、显示处理受检查异常等等。

Spring主要提供JDBC模板方式、关系数据库对象化方式和SimpleJdbc方式三种方式来简化JDBC编程,这三种方式就是Spring JDBC的工作模式: Spring JDBC抽象框架core包提供了JDBC模板类,其中JdbcTemplate是core包的核心类,所以其他模板类都是基于它封装完成的,JDBC模板类是第一种工作模式。

Springer-word模板

Springer-word模板

Lecture Notes in Computer Science: Authors’ Instructions for the Preparationof Camera-Ready Contributionsto LNCS/LNAI/LNBI ProceedingsAlfred Hofmann1,1, Brigitte Apfel1, Ursula Barth1, ChristineGünther1,Ingrid Haas1, Frank Holzwarth1, Anna Kramer1, Leonie Kunz1,Nicole Sator1, Erika Siebert-Cole1 and Peter Straßer1,1 Springer-Verlag, Computer Science Editorial, Tiergartenstr. 17,69121 Heidelberg, Germany{Alfred.Hofmann, Brigitte.Apfel, Ursula.Barth, Christine.Guenther, Ingrid.Haas, Frank.Holzwarth, Anna.Kramer, Leonie.Kunz, Nicole.Sator, Erika.Siebert-Cole, Peter.Strasser, LNCS}Springer.Abstract.The abstract should summarize the contents of thepaper and should contain at least 70 and at most 150 words. Itshould be set in 9-point font size and should be inset 1.0 cmfrom the right and left margins. There should be two blank (10-point) lines before and after the abstract. This document is inthe required format.Keywords: We would like to encourage you to list your keywordsin this section.1 IntroductionThis instruction file for Word users (there is a separate instruction file for LaTeX users) may be used as a template. Kindly send the final and checked Word and PDF files of your paper to the Contact Volume Editor. This is usually one of the organizers of the conference. You should make sure that the Word and the PDF files are identical and correct and that only one version of your paper is sent.1Please note that the LNCS Editorial assumes that all authors have used the westernnaming convention, with given names preceding surnames. This determines thestructure of the names in the running heads and the author index.It is not possible to update files at a later stage. Please note that we do not need the printed paper.We would like to draw your attention to the fact that it is not possible to modify a paper in any way, once it has been published. This applies to both the printed book and the online version of the publication. Every detail, including the order of the names of the authors, should be checked before the paper is sent to the Volume Editors.1.1 Checking the PDF FileKindly assure that the Contact Volume Editor is given the name and email address of the contact author for your paper. The Contact Volume Editor uses these details to compile a list for our production department at SPS in India. Once the files have been worked upon, SPS sends a copy of the final pdf of each paper to its contact author. The contact author is asked to check through the final pdf to make sure that no errors have crept in during the transfer or preparation of the files. This should not be seen as an opportunity to update or copyedit the papers, which is not possible due to time constraints. Only errors introduced during the preparation of the files will be corrected.This round of checking takes place about two weeks after the files have been sent to the Editorial by the Contact Volume Editor, i.e., roughly seven weeks before the start of the conference for conference proceedings, or seven weeks before the volume leaves the printer’s, for post-proceedings. If SPS does not receive a reply from a particular contact author, within the timeframe given, then it is presumed that the author has found no errors in the paper. The tight publication schedule of LNCS does not allow SPS to send reminders or search for alternative email addresses on the Internet.In some cases, it is the Contact Volume Editor that checks all the pdfs. In such cases, the authors are not involved in the checking phase.1.2 Additional Information Required by the Volume EditorIf you have more than one surname, please make sure that the Volume Editor knows how you are to be listed in the author index.1.3 Copyright FormsThe copyright form may be downloaded from the For Authors section of the LNCS Webpage: .springer./lncs. Please send your signed copyright form to the Contact Volume Editor, either as a scanned pdf or by fax or by courier. One author may sign on behalf of all of the other authors of a particular paper. Digital signatures are acceptable.2 Paper PreparationThe printing area is 122 mm × 193 mm. The text should be justified to occupy the full line width, so that the right margin is not ragged, with words hyphenated as appropriate. Please fill pages so that the length of the text is no less than 180 mm, if possible.Use 10-point type for the name(s) of the author(s) and 9-point type for the address(es) and the abstract. For the main text, please use 10-point type and single-line spacing. We recommend the use of Computer Modern Roman or Times. Italic type may be used to emphasize words in running text. Bold type and underlining should be avoided.Papers not complying with the LNCS style will be reformatted. This can lead to an increase in the overall number of pages. We would therefore urge you not to squash your paper.Headings.Headings should be capitalized (i.e., nouns, verbs, and all other words except articles, prepositions, and conjunctions should be set with an initial capital) and should, with the exception of the title, be aligned to the left. Words joined by a hyphen are subject to a special rule. If the first word can stand alone, the second word should be capitalized. The font sizes are given in Table 1.Here are some examples of headings: "Criteria to Disprove Context-Freeness of Collage Languages", "On Correcting the Intrusion of Tracing Non-deterministic Programs by Software", "A User-Friendly and Extendable Data Distribution System", "Multi-flip Networks: Parallelizing GenSAT", "Self-determinations of Man".Table 1. Font sizes of headings. Table captions should always be positioned above the tables.Heading level Example Font size andstyleTitle (centered) Lecture Notes …14 point, bold1st-level heading 1 Introduction12 point, bold2nd-level heading 2.1 Printing Area10 point, bold10 point, bold3rd-level heading Headings.Textfol lows …4th-level heading Remark. Text f ollows …10 point, italicLemmas, Propositions, and Theorems.The numbers accorded to lemmas, propositions, and theorems, etc. should appear in consecutive order, starting with Lemma 1, and not, for example, with Lemma 11.2.1 FiguresPlease check that the lines in line drawings are not interrupted and have a constant width. Grids and details within the figures must be clearly legible and may not be written one on top of the other. Line drawings should have a resolution of at least 800 dpi (preferably 1200 dpi). The lettering in figures should have a height of 2 mm (10-point type). Figures should be numbered and should have a caption which should always be positioned under the figures, in contrast to the caption belonging to a table, which should always appear above the table. Please center the captions between the margins and set them in 9-point type (Fig. 1 shows an example). The distance between text and figure should be about 8 mm, the distance between figure and caption about 6 mm.To ensure that the reproduction of your illustrations is of a reasonable quality, we advise against the use of shading. The contrast should be as pronounced as possible.If screenshots are necessary, please make sure that you are happy with the print quality before you send the files.Remark 1. In the printed volumes, illustrations are generally black and white (halftones), and only in exceptional cases, and if the author is prepared to cover the extra costs involved, are colored pictures accepted. Colored pictures are welcome in the electronic version free of charge. If you send colored figures that are to be printed in black and white, please make sure that they really are legible in black and white. Some colors show up very poorly when printed in black and white.Fig. 1. One kernel at x s (dotted kernel) or two kernels at x i and x j (left and right) lead to the same summed estimate at x s. This shows a figure consisting of different types of lines. Elements of the figure described in the caption should be set in italics, in parentheses, as shown in this sample caption.2.2 FormulasDisplayed equations or formulas are centered and set on a separate line (with an extra line or halfline space above and below). Displayed expressions should be numbered for reference. The numbers should be consecutive within each section or within the contribution, with numbers enclosed in parentheses and set on the right margin.x + y = z . (1)Equations should be punctuated in the same way as ordinary text but with a small space before the end punctuation mark.2.3 FootnotesThe superscript numeral used to refer to a footnote appears in the text either directly after the word to be discussed or – in relation to a phrase or a sentence – following the punctuation mark (comma, semicolon, or period). Footnotes should appear at the bottom of the normal text area, with a line of about 5cm set immediately above them2.2.4 Program CodeProgram listings or program commands in the text are normally set in typewriter font, e.g., CMTT10 or Courier.Example of a Computer Program from Jensen K., Wirth N. (1991) Pascal user manual and report. Springer, New Yorkprogram Inflation (Output){Assuming annual inflation rates of 7%, 8%, and10%,... years};const MaxYears = 10;var Year: 0..MaxYears;Factor1, Factor2, Factor3: Real;beginYear := 0;Factor1 := 1.0; Factor2 := 1.0; Factor3 := 1.0;WriteLn('Year 7% 8% 10%'); WriteLn;repeatYear := Year + 1;Factor1 := Factor1 * 1.07;Factor2 := Factor2 * 1.08;Factor3 := Factor3 * 1.10;WriteLn(Year:5,Factor1:7:3,Factor2:7:3,Factor3:7:3)until Year = MaxYearsend.2The footnote numeral is set flush left and the text follows with the usual word spacing.2.5 CitationsFor citations in the text please use square brackets and consecutive numbers: [1], [2], [3], etc.2.6 Page Numbering and Running HeadsThere is no need to include page numbers. If your paper title is too long to serve as a running head, it will be shortened. Your suggestion as to how to shorten it would be most welcome.3 LNCS OnlineThe online version of the volume will be available in LNCS Online. Members of institutes subscribing to the Lecture Notes in Computer Science series have access to all the pdfs of all the online publications. Non-subscribers can only read as far as the abstracts. If they try to go beyond this point, they are automatically asked, whether they would like to order the pdf, and are given instructions as to how to do so.Please note that, if your email address is given in your paper, it will also be included in the meta data of the online version.4 BibTeX EntriesThe correct BibTeX entries for the Lecture Notes in Computer Science volumes can be found at the following Website shortly after the publication of the book: .informatik.uni-trier.de/~ley/db/journals/lncs.htmlAcknowledgments. The heading should be treated as a 3rd level heading and should not be assigned a number.5 The References SectionIn order to permit cross referencing within LNCS-Online, and eventually between different publishers and their online databases,LNCS will, from now on, be standardizing the format of the references. This new feature will increase the visibility of publications and facilitate academic research considerably. Please base your references on the examples below. References that don’t adhere to this style will be reformatted by Springer. You should therefore check your references thoroughly when you receive the final pdf of your paper. The reference section must be complete. You may not omit references. Instructions as to where to find a fuller version of the references are not permissible.We only accept references written using the latin alphabet. If the title of the book you are referring to is in Russian or Chinese, then please write (in Russian) or (in Chinese) at the end of the transcript or translation of the title.The following section shows a sample reference list with entries for journal articles [1], an LNCS chapter [2], a book [3], proceedings without editors [4] and [5], as well as a URL [6]. Please note that proceedings published in LNCS are not cited with their full titles, but with their acronyms!References1. Smith, T.F., Waterman, M.S.: Identification of Common MolecularSubsequences. J. Mol. Biol. 147, 195--197 (1981)2. May, P., Ehrlich, H.C., Steinke, T.: ZIB Structure Prediction Pipeline:Composing a Complex Biological Workflow through Web Services. In: Nagel, W.E., Walter, W.V., Lehner, W. (eds.) Euro-Par 2006. LNCS, vol. 4128, pp.1148--1158. Springer, Heidelberg (2006)3. Foster, I., Kesselman, C.: The Grid: Blueprint for a New ComputingInfrastructure. Morgan Kaufmann, San Francisco (1999)4. Czajkowski, K., Fitzgerald, S., Foster, I., Kesselman, C.: GridInformation Services for Distributed Resource Sharing. In: 10th IEEE International Symposium on High Performance Distributed Computing, pp.181--184. IEEE Press, New York (2001)5. Foster, I., Kesselman, C., Nick, J., Tuecke, S.: The Physiology of theGrid: an Open Grid Services Architecture for Distributed Systems Integration. Technical report, Global Grid Forum (2002)6. National Center for Biotechnology Information, Appendix: Springer-Author DiscountLNCS authors are entitled to a 33.3% discount off all Springer publications. Before placing an order, they should send an email to orders-HD-individualsspringer., giving full details of their Springer publication, to obtain a so-called token. This token is a number, which must be entered when placing an order via the Internet, in order to obtain the discount.Checklist of Items to be Sent to Volume Editors1.A final Word or RTF file2.A final PDF file3.A copyright form, signed by one author on behalf of all of theauthors of the paper4.A readme giving the name and email address of the correspondingauthor。

SpringJdbcTemplate教程及存储过程

SpringJdbcTemplate教程及存储过程

SpringJdbcTemplate教程及存储过程JdbcTemplate主要提供以下五类方法:execute方法:可以用于执行任何SQL语句,一般用于执行DDL 语句;update方法及batchUpdate方法:update方法用于执行新增、修改、删除等语句;batchUpdate方法用于执行批处理相关语句;query方法及queryForXXX方法:用于执行查询相关语句;call方法:用于执行存储过程、函数相关语句。

JdbcTemplate类支持的回调类:预编译语句及存储过程创建回调:用于根据JdbcTemplate提供的连接创建相应的语句;PreparedStatementCreator:通过回调获取JdbcTemplate提供的Connection,由用户使用该Conncetion创建相关的PreparedStatement;CallableStatementCreator:通过回调获取JdbcTemplate提供的Connection,由用户使用该Conncetion创建相关的CallableStatement;预编译语句设值回调:用于给预编译语句相应参数设值;PreparedStatementSetter:通过回调获取JdbcT emplate提供的PreparedStatement,由用户来对相应的预编译语句相应参数设值;BatchPreparedStatementSetter:;类似于PreparedStatementSetter,但用于批处理,需要指定批处理大小;自定义功能回调:提供给用户一个扩展点,用户可以在指定类型的扩展点执行任何数量需要的操作;ConnectionCallback:通过回调获取JdbcT emplate提供的Connection,用户可在该Connection执行任何数量的操作;StatementCallback:通过回调获取JdbcTemplate提供的Statement,用户可以在该Statement执行任何数量的操作;PreparedStatementCallback:通过回调获取JdbcTemplate提供的PreparedStatement,用户可以在该PreparedStatement执行任何数量的操作;CallableStatementCallback:通过回调获取JdbcT emplate提供的CallableStatement,用户可以在该CallableStatement执行任何数量的操作;结果集处理回调:通过回调处理ResultSet或将ResultSet转换为需要的形式;RowMapper:用于将结果集每行数据转换为需要的类型,用户需实现方法mapRow(ResultSet rs, int rowNum)来完成将每行数据转换为相应的类型。

yaml中template的用法

yaml中template的用法

yaml中template的用法1. YAML中Template的用法什么是Template?在YAML(YAML Ain’t Markup Language)中,Template是一种用于定义和渲染文本的模板语言。

它可以在YAML文件中结合变量、条件语句和循环结构,以动态生成输出结果。

Template的基本语法YAML中的Template使用双花括号“{{}}”来表示需要进行渲染的部分,其中包含模板表达式。

模板表达式可以是变量、条件语句或循环结构。

变量使用{{变量名}}的形式表示一个变量。

变量可以在模板中引用已定义的值,并动态替换。

示例:name: {{name}}条件语句使用{% if %}和{% endif %}来表示条件语句的开始和结束。

可以在条件语句中根据条件的成立与否输出不同的内容。

示例:{% if age >= 18 %}You are an adult.{% else %}You are a minor.{% endif %}循环结构使用{% for %}和{% endfor %}来表示循环结构的开始和结束。

可以在循环结构中遍历一个列表,并输出重复的内容。

示例:{% for item in items %}- {{ item }}{% endfor %}Template的高级用法除了基本的变量、条件语句和循环结构之外,Template还支持更多的高级用法,例如过滤器、宏等。

过滤器过滤器在模板表达式中使用管道符“|”来应用。

它可以对变量进行一些处理,如格式化、截取等。

示例:name: {{ name | capitalize }}宏宏是一种可以在模板中定义和重用的代码块。

使用{% macro %}和{% endmacro %}来定义和结束一个宏。

示例:{% macro say_hello(name) %}Hello, {{ name }}!{% endmacro %}{{ say_hello("Alice") }}2. 总结通过上述对YAML中Template的讲解,我们可以看到Template是一种强大的模板语言,可以在YAML文件中进行动态内容的生成。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Rapid Identification of Waste Cooking Oil with Near Infrared Spectroscopy Based on Support VectorMachineXiong Shen1,a, Xiao Zheng1,b, Zhiqiang Song1,c, Dongping He2,d, Peishi Qi3,e1Institute of Mechanical Engineering, Wuhan Polytechnic University, Wuhan 430023,China; 2Institute of Food Science and Engineering, Wuhan Polytechnic University, Wuhan 430023,China;3PASHUN GROUP, Wuhan 430023,Chinaa******************.cn,b******************.cn, c*****************,d******************,e************.comAbstract. The qualitative model for rapidly discriminating the waste oil andfour normal edible vegetable oils is developed using near infrared spectroscopycombined with support vector machine (SVM). Principal component analysis(PCA) has been carried out on the base of the combination of spectralpretreatment of vector normalization, first derivation and nine point smoothing,and seven principal components are selected. The radial basis function (RBF) isused as the kernel function; the penalty parameter C and kernel functionparameter γare optimized by K-fold Cross Validation (K-CV), GeneticAlgorithm (GA), Particle Swarm Optimization (PSO), respectively. The resultshows that the best classification model is developed by GA optimization whenthe parameters C = 911.33, γ= 2.91. The recognition rate of the model for 208samples in training set and 85 samples in prediction set is 100% and 90.59%,respectively. By comparison with K-means and Linear Discriminant Analysis(LDA), the result indicates that the SVM recognition rate is higher, wellgeneralization, can quickly and accurately identify the waste cooking oil andnormal edible vegetable oils.Keywords: near infrared spectroscopy, waste cooking oil, support vectormachine, parameters optimization1 IntroductionCatering waste oils include drainage oil (in narrow sense), hogwash fat (waste cooking oil) and fried old oil. After pickling, washing, decoloration, deodorization and other processing, the catering waste oils often close to or completely achieve the national Hygienic Standard of Edible Vegetable Oil in sensory index and conventional typical properties, which consumers and government supervisors are difficult to identify by the sense of the sights and smell. At present, a complete set of testing technology standard of identification of the catering waste oil hasn’t been established domestically or abroad. The Ministry of Health is requesting proposals for proposals from the public. Near Infrared Spectroscopy (NIR) technology is a nondestructive testing technique rapidly developed in recent years [1]. The domesticscholars make use of NIR qualitative analysis to research the types of edible oil [2-4], however, qualitative analysis for catering waste oil is still limited.Support Vector Machine (SVM) is a new kind of machine learning algorithm based on the minimum principle of statistical learning theory and structural risk, which has advantages of simple structure, strong generalization ability and others. It presents many unique advantages in solving problems of pattern recognition in small sample, nonlinear, high dimension, local minimum [5]. The methods combined SVM with NIR have been applied successfully in identifying the category of tea, milk powder, apple and others [6-9]. The objective of this study is to develop a classified model for catering waste oil and four normal edible vegetable oils by combining SVM with NIR. This model provides a new approach to fast and effective identification of catering waste oil.2 Experiments and Methods2.1 Experimental SamplesCatering waste oils used in this experiment include drainage oil and hogwash fat obtained through different degree of refining of decoloration, deodorization, and normal edible vegetable oil which are of different brands or the same brand of different batches in major supermarkets. The samples make up of the following table 1:Table position of the experimental samplesTraining set Predicting set In total The first category: drainage oil and hogwash fat 99 47 146 The second category: soybean oil 40 19 59 The third category: peanut oil 26 7 33 The forth category: olive oil 23 6 29 The fifth category: blend oil 20 6 26In total 208 85 2932.2 Experimental MethodsAdopt SupNIR-5700 NIRS (Focused Photonics (Hangzhou), Inc.) to collect NIR spectra of all samples. Spectral measurement of samples uses random RIMP software and its testing method is: transmission, measurement range: 1000~1800nm, scanning speed:10 times/sec, spectral resolution: 6nm, temperature of sample cell: 60°C, testing method: load the sample into the three-quarters of sample bottle, and then place the sample bottle into the sample cell. Stabilized in constant temperature for 5min, the bottle is taken out to check if there exist bubbles. It starts to collect spectrogram if there is no bubble, and each sample averages out three times.Use NIRS random RIMP software and MATLAB7.8 to collect spectra and convert data format, use chemometrics software Unscrambler X 10.1 to pretreatment the spectral data and analyse principal component, and use SVM pattern recognition and regression software package designed by a professor Lin Zhiren from National Taiwan University to build SVM models in MATLAB7.8 and parameters optimization.3 Results and Discussion3.1 Pretreatment for Spectral DataBesides samples’ information collected through NIRS, it contains other irrelevant information and noise, therefore, it is very important and necessary to pretreatment spectra before developing model. Many kinds of methods for spectral pretreatment, including mean centralization, normalization, Savitzky-Golay smoothing, Savitzky-Golay first derivation and second derivation and so on, have been tried in this study. The attempted result indicates that NIR obtains the best pretreatment effect by combining vector normalization with Savitzky-Golay first derivation and nine-point smoothing. Fig.1 shows raw and spectra after pretreatment respectively.(a) Raw spectra(b) Pretreatment spectraFig. 1. Conventional and spectra after pretreatment3.2 Extraction of Spectral Principal ComponentAnalyze the principal component of spectra after pretreatment, as shown in Fig.2-a, the X-axis stands for the first principal component (PC1), Y-axis represents the second principal component (PC2). The figure shows the good effect of sample distribution. This experiment proves that principal component can reflect most of information when principal component’s accumulative contributing rate is above 95% and principal component scree plot (as shown in Fig.2-b) is quite smoothing. Therefore, this paper selects the previous seven principal components (accumulative contributing rate is 96.56%) as SVM input.(a) PCA SCORE(b) Explained VarianceFig. 2. PCA SCORE and explained variance3.3 SVM Model Building and Parameter OptimizationLibsvm includes two classification models: C-SVC and nu-SVC. Based on one-against-one algorithm solving multi-classes pattern recognition, this paper uses C-SVC to establish classification modeling. It needs to select kernel function and parameters when using SVM for pattern recognition. At present there is no unified international model, so we could only use experience or experimental comparison. Typically, using RBF kernel function often gets better simulation results [9], and reduces complexity of computation during the training process. Therefore, this paper makes use of RBF kernel function to establish identification model.It is very important to select penalty parameter C and kernel function parameter γ in RBF kernel function. C is used to measure the size of the penalty, γis used to control function regression error and directly influence the initial characteristic value and feature vector. The research respectively uses K-CV, GA and PSO algorithm to optimize the models of C and γto reach the highest accuracy of classification of training set under the best parameters C and γ. However, it cannot guarantee the testing set to reach the highest accuracy of classification. Fig.3 shows the results of three parameters optimization. Fig.3-a gives the optimization results using K-CV parameter optimization. Fig.3-b gives the optimization results of fitness curve using GA parameter optimization, where the maximum number is 100, the population size is 20, the crossover probability is 0.8, the range of parameters C and γare 0-1000, other parameters are by default. Fig.3-c gives the optimization results of fitness curve using PSO parameter optimization, where the maximum number of iterations is 100, the initial population size is 20, the learning factor c1=1.5, c2=1.7, the range of parameters C and γare 0-1000, other parameters are by default.Use the default parameters (C = 1, γ= 1 / K = 0.1429) and optimal results of three different parameters to respectively establish the SVM recognition model, which are analyzed in Table 2.(a) K-CV(b) GA(c) PSOFig. 3. The results of three parameters optimizationFrom the table 2, it is clear that SVM model recognition rate of the default parameters is very low, and almost four kinds of normal edible vegetable oils can be classified as catering waste oils; recognition rate of SVM model increases significantly about 90% after optimal results of different parameters of K -CV, GA and PSO. The learning ability and generalization ability of SVM classifier with optimal parameters C andγcan keep a balance and avoid the occurrence of learning state and non-learning state. Examples show that SVM classification model established when GA optimal parameters C= 911.331,γ = 2.91045, recognition rate of the 208 training sets and 85 predicting sets is 100% and 90.59% respectively, only occurs four blend oils mistaken for catering waste oil, four hogwash oils for blend oils. In the meantime, compared with methods of k-means clustering and LDA, the recognition rate of GA-SVM model is higher than those about 10%. Therefore, SVM model is superior to the methods of k-means clustering and LDA.Table 2.Different parameters—analysis of SVM modeling resultsDefault (C=1, γ=0.1429)K-CV(C=1024, γ=0.03125)GA(C=911.331, γ=2.91045)PSO(C=2287.16, γ=0.01)Returning error number PredictingerrornumberReturningerrornumberPredictingerrornumberReturningerrornumberPredictingerrornumberReturningerrornumberPredictingerrornumberThe firstcategory0 0 2 0 0 4 2 1 The secondcategory40 19 1 0 0 0 1 0The thirdcategory26 7 0 0 0 0 0 0The forthcategory15 5 0 0 0 0 0 0 The fifthcategory20 6 20 6 0 4 20 6Recognitionrate51.44% 56.47% 88.94% 92.94% 100% 90.59% 88.94% 91.76% 5 ConclusionsThe research uses GA-SVM to establish NIR classification model for catering waste oil and four normal edible vegetable oils, and determines the appropriate model parameters. The recognition rate of the established models is achieved respectively 100% for training set and 90.59% for predicting set, the recognition rate and generalization ability of GA-SVM of NIR classification model is higher than conventional analysis model, which can rapidly and accurately identifies the catering waste oil.The sample source of catering waste oil in the research is limited and cannot completely represent diversity and complexity of catering waste oil. In addition, the law breakers usually add catering waste oil to qualified edible vegetable oil according to a certain proportion, and then sell the fake oil, therefore, it needs to further collect representative adulterated samples in the future.It is essential to keep developing new methods of qualitative classification to research, and constantly strengthen the maintenance for the models of qualitative classification; in addition, a rapid portable detecting instrument for testing catering waste oils based on the models of NIR quantitative classification needs to be developed in order to protect the security of food production, to provide a more reliable basis for food supervisions and to prevent catering waste oils back to the table. AcknowledgmentFunds for this research was provided by the National Science and Technology Plan Projects (2009BADB9B08), the major projects foster special of food nutrition and safety of Wuhan Polytechnic University (2011Z06), the entrust projects of Wuhan PASHUN Group green energy technology Co., LTD, and the postgraduate 2010 innovation fund of Wuhan Polytechnic University(2010cx005). References1. Lu Wanzhen. Modern Near Infrared Spectroscopy Analytical Technology (Second Edition)[M]. Beijing: Chinese Oil and Chemical Press, 2006, 19-36(in Chinese)2. Wu Jingzhu, Liu Cuiling, Li Hui et al. Application of NIR technology on identifying typesand determining main fatty acid content of edible vegetable oil [J]. Journal of Beijing Technology and Business University (Natural Science Edition), 2010, 28(5):56-59.3. Liu Fuli, Chen Huacai, Jiang Liyi et al. Rapid discrimination of edible oil by near infraredtransmission spectroscopy using clustering analysis [J]. Journal of China Jiliang University, 2008, 19(3):278-282.4. Li Juan, Fan Lu, Deng Dewen et al. Principal component analysis of 6 kinds of vegetable oilsand fats by near infrared spectroscopy. Journal of Henan University of Technology (Natural Science Edition), 2008, 29(5):18-21.5. Zhang Xuegong. Introduction to Statistical Learning Theory and Support Vector Machines[J]. Acta Automatica Sinica, 2000, 26(1):32-34.6. Chen QuanSheng, Zhao Jiewen, Zhang Haidong et al. Indentification of Authenticity of Teawith Near Infrared Spectroscopy Based on Support Voctor Machine [J]. Acta Optica sinica, 2006, 26(6):933-937.7. Zhao Jiewen, Hu Huaiping, Zhou Xiaobo. Application of Support Vector Machine to appleclassification with near—infrared spectroscopy [J]. Transactions of the CSAE, 2007, 23(4):149-152.8. Wu Jingzhu,Wang Yiming, Zhang Xiaochao et al. Applied Study on Support VectorMachines in Identifying Standard and Sub-standard Milk Powder with NIR Spectrometry [J].Agricultural Mechanization Sciences, 2001, 1(1):155-158.9. Ye Meiying, Wang Xiaodong. Identification of Chaotic Optical System Based on SupportVector Machine [J]. Acta Optica sinica, 2004, 24(7):953-956.。

相关文档
最新文档